diff --git a/dist/ccdb5.js b/dist/ccdb5.js index e8e795a7..60b47c38 100644 --- a/dist/ccdb5.js +++ b/dist/ccdb5.js @@ -1,4 +1,4 @@ -var qY=Object.defineProperty,KY=Object.defineProperties;var ZY=Object.getOwnPropertyDescriptors;var NT=Object.getOwnPropertySymbols;var aR=Object.prototype.hasOwnProperty,sR=Object.prototype.propertyIsEnumerable;var lR=Math.pow,N5=(Oa,wa,Rn)=>wa in Oa?qY(Oa,wa,{enumerable:!0,configurable:!0,writable:!0,value:Rn}):Oa[wa]=Rn,zr=(Oa,wa)=>{for(var Rn in wa||(wa={}))aR.call(wa,Rn)&&N5(Oa,Rn,wa[Rn]);if(NT)for(var Rn of NT(wa))sR.call(wa,Rn)&&N5(Oa,Rn,wa[Rn]);return Oa},ho=(Oa,wa)=>KY(Oa,ZY(wa));var go=(Oa,wa)=>{var Rn={};for(var Zu in Oa)aR.call(Oa,Zu)&&wa.indexOf(Zu)<0&&(Rn[Zu]=Oa[Zu]);if(Oa!=null&&NT)for(var Zu of NT(Oa))wa.indexOf(Zu)<0&&sR.call(Oa,Zu)&&(Rn[Zu]=Oa[Zu]);return Rn};var gl=(Oa,wa,Rn)=>N5(Oa,typeof wa!="symbol"?wa+"":wa,Rn);var fo=(Oa,wa,Rn)=>new Promise((Zu,We)=>{var ue=_t=>{try{z(Rn.next(_t))}catch(m){We(m)}},ht=_t=>{try{z(Rn.throw(_t))}catch(m){We(m)}},z=_t=>_t.done?Zu(_t.value):Promise.resolve(_t.value).then(ue,ht);z((Rn=Rn.apply(Oa,wa)).next())});(()=>{var Oa={3861:(We,ue,ht)=>{(function(z,_t){We.exports=_t(ht(3224))})(window,function(z){return function(_t){var m={};function y(R){if(m[R])return m[R].exports;var j=m[R]={i:R,l:!1,exports:{}};return _t[R].call(j.exports,j,j.exports,y),j.l=!0,j.exports}return y.m=_t,y.c=m,y.d=function(R,j,et){y.o(R,j)||Object.defineProperty(R,j,{enumerable:!0,get:et})},y.r=function(R){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(R,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(R,"__esModule",{value:!0})},y.t=function(R,j){if(1&j&&(R=y(R)),8&j||4&j&&typeof R=="object"&&R&&R.__esModule)return R;var et=Object.create(null);if(y.r(et),Object.defineProperty(et,"default",{enumerable:!0,value:R}),2&j&&typeof R!="string")for(var K in R)y.d(et,K,function(J){return R[J]}.bind(null,K));return et},y.n=function(R){var j=R&&R.__esModule?function(){return R.default}:function(){return R};return y.d(j,"a",j),j},y.o=function(R,j){return Object.prototype.hasOwnProperty.call(R,j)},y.p="",y(y.s=88)}([function(_t,m,y){"use strict";y.r(m);var R=function(ot,D){return otD?1:ot>=D?0:NaN},j=function(ot){var D;return ot.length===1&&(D=ot,ot=function(P,W){return R(D(P),W)}),{left:function(P,W,lt,it){for(lt==null&&(lt=0),it==null&&(it=P.length);lt>>1;ot(P[vt],W)<0?lt=vt+1:it=vt}return lt},right:function(P,W,lt,it){for(lt==null&&(lt=0),it==null&&(it=P.length);lt>>1;ot(P[vt],W)>0?it=vt:lt=vt+1}return lt}}},et=j(R),K=et.right,J=et.left,q=K,Z=function(ot,D){D==null&&(D=tt);for(var P=0,W=ot.length-1,lt=ot[0],it=new Array(W<0?0:W);Pot?1:D>=ot?0:NaN},B=function(ot){return ot===null?NaN:+ot},U=function(ot,D){var P,W,lt=ot.length,it=0,vt=-1,pt=0,xt=0;if(D==null)for(;++vt1)return xt/(it-1)},d=function(ot,D){var P=U(ot,D);return P&&Math.sqrt(P)},L=function(ot,D){var P,W,lt,it=ot.length,vt=-1;if(D==null){for(;++vt=P)for(W=lt=P;++vtP&&(W=P),lt=P)for(W=lt=P;++vtP&&(W=P),lt0)return[ot];if((W=D0)for(ot=Math.ceil(ot/vt),D=Math.floor(D/vt),it=new Array(lt=Math.ceil(D-ot+1));++pt=0?(it>=C?10:it>=E?5:it>=S?2:1)*Math.pow(10,lt):-Math.pow(10,-lt)/(it>=C?10:it>=E?5:it>=S?2:1)}function x(ot,D,P){var W=Math.abs(D-ot)/Math.max(0,P),lt=Math.pow(10,Math.floor(Math.log(W)/Math.LN10)),it=W/lt;return it>=C?lt*=10:it>=E?lt*=5:it>=S&&(lt*=2),DNt;)gt.pop(),--wt;var Rt,jt=new Array(wt+1);for(it=0;it<=wt;++it)(Rt=jt[it]=[]).x0=it>0?gt[it-1]:Tt,Rt.x1=it=1)return+P(ot[W-1],W-1,ot);var W,lt=(W-1)*D,it=Math.floor(lt),vt=+P(ot[it],it,ot);return vt+(+P(ot[it+1],it+1,ot)-vt)*(lt-it)}},b=function(ot,D,P){return ot=w.call(ot,B).sort(R),Math.ceil((P-D)/(2*(f(ot,.75)-f(ot,.25))*Math.pow(ot.length,-1/3)))},F=function(ot,D,P){return Math.ceil((P-D)/(3.5*d(ot)*Math.pow(ot.length,-1/3)))},T=function(ot,D){var P,W,lt=ot.length,it=-1;if(D==null){for(;++it=P)for(W=P;++itW&&(W=P)}else for(;++it=P)for(W=P;++itW&&(W=P);return W},k=function(ot,D){var P,W=ot.length,lt=W,it=-1,vt=0;if(D==null)for(;++it=0;)for(D=(W=ot[lt]).length;--D>=0;)P[--vt]=W[D];return P},nt=function(ot,D){var P,W,lt=ot.length,it=-1;if(D==null){for(;++it=P)for(W=P;++itP&&(W=P)}else for(;++it=P)for(W=P;++itP&&(W=P);return W},dt=function(ot,D){for(var P=D.length,W=new Array(P);P--;)W[P]=ot[D[P]];return W},mt=function(ot,D){if(P=ot.length){var P,W,lt=0,it=0,vt=ot[it];for(D==null&&(D=R);++lt0))return d;do d.push(U=new Date(+H)),J(H,B),K(H);while(U=X)for(;K(X),!H(X);)X.setTime(X-1)},function(X,B){if(X>=X)if(B<0)for(;++B<=0;)for(;J(X,-1),!H(X););else for(;--B>=0;)for(;J(X,1),!H(X););})},q&&(tt.count=function(H,X){return R.setTime(+H),j.setTime(+X),K(R),K(j),Math.floor(q(R,j))},tt.every=function(H){return H=Math.floor(H),isFinite(H)&&H>0?H>1?tt.filter(Z?function(X){return Z(X)%H==0}:function(X){return tt.count(0,X)%H==0}):tt:null}),tt}},function(_t,m,y){"use strict";y.r(m);var R=y(29),j=y(64),et=function(E){return Object(j.a)(Object(R.a)(E).call(document.documentElement))},K=0;function J(){return new q}function q(){this._="@"+(++K).toString(36)}q.prototype=J.prototype={constructor:q,get:function(E){for(var S=this._;!(S in E);)if(!(E=E.parentNode))return;return E[S]},set:function(E,S){return E[this._]=S},remove:function(E){return this._ in E&&delete E[this._]},toString:function(){return this._}};var Z=y(66),tt=y(84),H=y(44),X=y(32),B=y(30),U=y(23),d=function(E){return typeof E=="string"?new U.a([document.querySelectorAll(E)],[document.documentElement]):new U.a([E==null?[]:E],U.c)},L=y(43),M=y(65),s=y(67),w=y(85),_=y(46),o=function(E,S){S==null&&(S=Object(_.a)().touches);for(var v=0,g=S?S.length:0,x=new Array(g);v180||tt<-180?tt-360*Math.round(tt/360):tt):Object(R.a)(isNaN(q)?Z:q)}function K(q){return(q=+q)==1?J:function(Z,tt){return tt-Z?function(H,X,B){return H=Math.pow(H,B),X=Math.pow(X,B)-H,B=1/B,function(U){return Math.pow(H+U*X,B)}}(Z,tt,q):Object(R.a)(isNaN(Z)?tt:Z)}}function J(q,Z){var tt=Z-q;return tt?j(q,tt):Object(R.a)(isNaN(q)?Z:q)}},function(_t,m,y){"use strict";y.d(m,"g",function(){return K}),y.d(m,"c",function(){return J}),y.d(m,"k",function(){return q}),y.d(m,"m",function(){return Z}),y.d(m,"i",function(){return tt}),y.d(m,"a",function(){return H}),y.d(m,"e",function(){return X}),y.d(m,"h",function(){return B}),y.d(m,"d",function(){return U}),y.d(m,"l",function(){return d}),y.d(m,"n",function(){return L}),y.d(m,"j",function(){return M}),y.d(m,"b",function(){return s}),y.d(m,"f",function(){return w});var R=y(1),j=y(3);function et(_){return Object(R.a)(function(o){o.setDate(o.getDate()-(o.getDay()+7-_)%7),o.setHours(0,0,0,0)},function(o,u){o.setDate(o.getDate()+7*u)},function(o,u){return(u-o-(u.getTimezoneOffset()-o.getTimezoneOffset())*j.c)/j.e})}var K=et(0),J=et(1),q=et(2),Z=et(3),tt=et(4),H=et(5),X=et(6),B=K.range,U=J.range,d=q.range,L=Z.range,M=tt.range,s=H.range,w=X.range},function(_t,m,y){"use strict";y.d(m,"g",function(){return K}),y.d(m,"c",function(){return J}),y.d(m,"k",function(){return q}),y.d(m,"m",function(){return Z}),y.d(m,"i",function(){return tt}),y.d(m,"a",function(){return H}),y.d(m,"e",function(){return X}),y.d(m,"h",function(){return B}),y.d(m,"d",function(){return U}),y.d(m,"l",function(){return d}),y.d(m,"n",function(){return L}),y.d(m,"j",function(){return M}),y.d(m,"b",function(){return s}),y.d(m,"f",function(){return w});var R=y(1),j=y(3);function et(_){return Object(R.a)(function(o){o.setUTCDate(o.getUTCDate()-(o.getUTCDay()+7-_)%7),o.setUTCHours(0,0,0,0)},function(o,u){o.setUTCDate(o.getUTCDate()+7*u)},function(o,u){return(u-o)/j.e})}var K=et(0),J=et(1),q=et(2),Z=et(3),tt=et(4),H=et(5),X=et(6),B=K.range,U=J.range,d=q.range,L=Z.range,M=tt.range,s=H.range,w=X.range},function(_t,m,y){"use strict";y.d(m,"a",function(){return j}),y.d(m,"d",function(){return et}),y.d(m,"c",function(){return K}),y.d(m,"e",function(){return _}),y.d(m,"h",function(){return C}),y.d(m,"g",function(){return E}),y.d(m,"b",function(){return S}),y.d(m,"f",function(){return f});var R=y(15);function j(){}var et=.7,K=1/et,J="\\s*([+-]?\\d+)\\s*",q="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Z="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tt=/^#([0-9a-f]{3,8})$/,H=new RegExp("^rgb\\("+[J,J,J]+"\\)$"),X=new RegExp("^rgb\\("+[Z,Z,Z]+"\\)$"),B=new RegExp("^rgba\\("+[J,J,J,q]+"\\)$"),U=new RegExp("^rgba\\("+[Z,Z,Z,q]+"\\)$"),d=new RegExp("^hsl\\("+[q,Z,Z]+"\\)$"),L=new RegExp("^hsla\\("+[q,Z,Z,q]+"\\)$"),M={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function s(){return this.rgb().formatHex()}function w(){return this.rgb().formatRgb()}function _(T){var k,Q;return T=(T+"").trim().toLowerCase(),(k=tt.exec(T))?(Q=k[1].length,k=parseInt(k[1],16),Q===6?o(k):Q===3?new S(k>>8&15|k>>4&240,k>>4&15|240&k,(15&k)<<4|15&k,1):Q===8?new S(k>>24&255,k>>16&255,k>>8&255,(255&k)/255):Q===4?new S(k>>12&15|k>>8&240,k>>8&15|k>>4&240,k>>4&15|240&k,((15&k)<<4|15&k)/255):null):(k=H.exec(T))?new S(k[1],k[2],k[3],1):(k=X.exec(T))?new S(255*k[1]/100,255*k[2]/100,255*k[3]/100,1):(k=B.exec(T))?u(k[1],k[2],k[3],k[4]):(k=U.exec(T))?u(255*k[1]/100,255*k[2]/100,255*k[3]/100,k[4]):(k=d.exec(T))?p(k[1],k[2]/100,k[3]/100,1):(k=L.exec(T))?p(k[1],k[2]/100,k[3]/100,k[4]):M.hasOwnProperty(T)?o(M[T]):T==="transparent"?new S(NaN,NaN,NaN,0):null}function o(T){return new S(T>>16&255,T>>8&255,255&T,1)}function u(T,k,Q,st){return st<=0&&(T=k=Q=NaN),new S(T,k,Q,st)}function C(T){return T instanceof j||(T=_(T)),T?new S((T=T.rgb()).r,T.g,T.b,T.opacity):new S}function E(T,k,Q,st){return arguments.length===1?C(T):new S(T,k,Q,st==null?1:st)}function S(T,k,Q,st){this.r=+T,this.g=+k,this.b=+Q,this.opacity=+st}function v(){return"#"+x(this.r)+x(this.g)+x(this.b)}function g(){var T=this.opacity;return((T=isNaN(T)?1:Math.max(0,Math.min(1,T)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(T===1?")":", "+T+")")}function x(T){return((T=Math.max(0,Math.min(255,Math.round(T)||0)))<16?"0":"")+T.toString(16)}function p(T,k,Q,st){return st<=0?T=k=Q=NaN:Q<=0||Q>=1?T=k=NaN:k<=0&&(T=NaN),new b(T,k,Q,st)}function l(T){if(T instanceof b)return new b(T.h,T.s,T.l,T.opacity);if(T instanceof j||(T=_(T)),!T)return new b;if(T instanceof b)return T;var k=(T=T.rgb()).r/255,Q=T.g/255,st=T.b/255,nt=Math.min(k,Q,st),dt=Math.max(k,Q,st),mt=NaN,Et=dt-nt,Mt=(dt+nt)/2;return Et?(mt=k===dt?(Q-st)/Et+6*(Q0&&Mt<1?0:mt,new b(mt,Et,Mt,T.opacity)}function f(T,k,Q,st){return arguments.length===1?l(T):new b(T,k,Q,st==null?1:st)}function b(T,k,Q,st){this.h=+T,this.s=+k,this.l=+Q,this.opacity=+st}function F(T,k,Q){return 255*(T<60?k+(Q-k)*T/60:T<180?Q:T<240?k+(Q-k)*(240-T)/60:k)}Object(R.a)(j,_,{copy:function(T){return Object.assign(new this.constructor,this,T)},displayable:function(){return this.rgb().displayable()},hex:s,formatHex:s,formatHsl:function(){return l(this).formatHsl()},formatRgb:w,toString:w}),Object(R.a)(S,E,Object(R.b)(j,{brighter:function(T){return T=T==null?K:Math.pow(K,T),new S(this.r*T,this.g*T,this.b*T,this.opacity)},darker:function(T){return T=T==null?et:Math.pow(et,T),new S(this.r*T,this.g*T,this.b*T,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:v,formatHex:v,formatRgb:g,toString:g})),Object(R.a)(b,f,Object(R.b)(j,{brighter:function(T){return T=T==null?K:Math.pow(K,T),new b(this.h,this.s,this.l*T,this.opacity)},darker:function(T){return T=T==null?et:Math.pow(et,T),new b(this.h,this.s,this.l*T,this.opacity)},rgb:function(){var T=this.h%360+360*(this.h<0),k=isNaN(T)||isNaN(this.s)?0:this.s,Q=this.l,st=Q+(Q<.5?Q:1-Q)*k,nt=2*Q-st;return new S(F(T>=240?T-240:T+120,nt,st),F(T,nt,st),F(T<120?T+240:T-120,nt,st),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var T=this.opacity;return((T=isNaN(T)?1:Math.max(0,Math.min(1,T)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(T===1?")":", "+T+")")}}))},function(_t,m,y){"use strict";y.r(m);var R,j,et=y(23),K=y(79),J=0,q=0,Z=0,tt=0,H=0,X=0,B=typeof performance=="object"&&performance.now?performance:Date,U=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Ot){setTimeout(Ot,17)};function d(){return H||(U(L),H=B.now()+X)}function L(){H=0}function M(){this._call=this._time=this._next=null}function s(Ot,Bt,Ut){var zt=new M;return zt.restart(Ot,Bt,Ut),zt}function w(){H=(tt=B.now())+X,J=q=0;try{(function(){d(),++J;for(var Ot,Bt=R;Bt;)(Ot=H-Bt._time)>=0&&Bt._call.call(null,Ot),Bt=Bt._next;--J})()}finally{J=0,function(){for(var Ot,Bt,Ut=R,zt=1/0;Ut;)Ut._call?(zt>Ut._time&&(zt=Ut._time),Ot=Ut,Ut=Ut._next):(Bt=Ut._next,Ut._next=null,Ut=Ot?Ot._next=Bt:R=Bt);j=Ot,o(zt)}(),H=0}}function _(){var Ot=B.now(),Bt=Ot-tt;Bt>1e3&&(X-=Bt,tt=Ot)}function o(Ot){J||(q&&(q=clearTimeout(q)),Ot-H>24?(Ot<1/0&&(q=setTimeout(w,Ot-B.now()-X)),Z&&(Z=clearInterval(Z))):(Z||(tt=B.now(),Z=setInterval(_,1e3)),J=1,U(w)))}M.prototype=s.prototype={constructor:M,restart:function(Ot,Bt,Ut){if(typeof Ot!="function")throw new TypeError("callback is not a function");Ut=(Ut==null?d():+Ut)+(Bt==null?0:+Bt),this._next||j===this||(j?j._next=this:R=this,j=this),this._call=Ot,this._time=Ut,o()},stop:function(){this._call&&(this._call=null,this._time=1/0,o())}};var u=function(Ot,Bt,Ut){var zt=new M;return Bt=Bt==null?0:+Bt,zt.restart(function(ce){zt.stop(),Ot(ce+Bt)},Bt,Ut),zt},C=Object(K.a)("start","end","cancel","interrupt"),E=[],S=function(Ot,Bt,Ut,zt,ce,_e){var ye=Ot.__transition;if(ye){if(Ut in ye)return}else Ot.__transition={};(function(qe,hn,yn){var Nn,pn=qe.__transition;function Mn(ge){var Ie,Ge,ve,Re;if(yn.state!==1)return fr();for(Ie in pn)if((Re=pn[Ie]).name===yn.name){if(Re.state===3)return u(Mn);Re.state===4?(Re.state=6,Re.timer.stop(),Re.on.call("interrupt",qe,qe.__data__,Re.index,Re.group),delete pn[Ie]):+Ie0)throw new Error("too late; already scheduled");return Ut}function g(Ot,Bt){var Ut=x(Ot,Bt);if(Ut.state>3)throw new Error("too late; already running");return Ut}function x(Ot,Bt){var Ut=Ot.__transition;if(!Ut||!(Ut=Ut[Bt]))throw new Error("transition not found");return Ut}var p=function(Ot,Bt){var Ut,zt,ce,_e=Ot.__transition,ye=!0;if(_e){for(ce in Bt=Bt==null?null:Bt+"",_e)(Ut=_e[ce]).name===Bt?(zt=Ut.state>2&&Ut.state<5,Ut.state=6,Ut.timer.stop(),Ut.on.call(zt?"interrupt":"cancel",Ot,Ot.__data__,Ut.index,Ut.group),delete _e[ce]):ye=!1;ye&&delete Ot.__transition}},l=y(77),f=y(44);function b(Ot,Bt){var Ut,zt;return function(){var ce=g(this,Ot),_e=ce.tween;if(_e!==Ut){for(var ye=0,qe=(zt=Ut=_e).length;ye=0&&(qe=qe.slice(0,hn)),!qe||qe==="start"})}(Bt)?v:g;return function(){var ye=_e(this,Ot),qe=ye.on;qe!==zt&&(ce=(zt=qe).copy()).on(Bt,Ut),ye.on=ce}}var Nt=y(43),gt=y(65),wt=et.b.prototype.constructor,Rt=y(67);function jt(Ot){return function(){this.style.removeProperty(Ot)}}function Zt(Ot,Bt,Ut){return function(zt){this.style.setProperty(Ot,Bt.call(this,zt),Ut)}}function ne(Ot,Bt,Ut){var zt,ce;function _e(){var ye=Bt.apply(this,arguments);return ye!==ce&&(zt=(ce=ye)&&Zt(Ot,ye,Ut)),zt}return _e._value=Bt,_e}function Wt(Ot){return function(Bt){this.textContent=Ot.call(this,Bt)}}function le(Ot){var Bt,Ut;function zt(){var ce=Ot.apply(this,arguments);return ce!==Ut&&(Bt=(Ut=ce)&&Wt(ce)),Bt}return zt._value=Ot,zt}var de=0;function xe(Ot,Bt,Ut,zt){this._groups=Ot,this._parents=Bt,this._name=Ut,this._id=zt}function be(Ot){return Object(et.b)().transition(Ot)}function Ye(){return++de}var tn=et.b.prototype;xe.prototype=be.prototype={constructor:xe,select:function(Ot){var Bt=this._name,Ut=this._id;typeof Ot!="function"&&(Ot=Object(Nt.a)(Ot));for(var zt=this._groups,ce=zt.length,_e=new Array(ce),ye=0;ye1&&Ut.name===Bt)return new xe([[Ot]],Kt,Bt,+zt)}return null};y.d(m,"transition",function(){return be}),y.d(m,"active",function(){return te}),y.d(m,"interrupt",function(){return p})},function(_t,m,y){"use strict";y.r(m);var R=y(56);y.d(m,"formatDefaultLocale",function(){return R.a}),y.d(m,"format",function(){return R.b}),y.d(m,"formatPrefix",function(){return R.c});var j=y(68);y.d(m,"formatLocale",function(){return j.a});var et=y(40);y.d(m,"formatSpecifier",function(){return et.b}),y.d(m,"FormatSpecifier",function(){return et.a});var K=y(80);y.d(m,"precisionFixed",function(){return K.a});var J=y(81);y.d(m,"precisionPrefix",function(){return J.a});var q=y(82);y.d(m,"precisionRound",function(){return q.a})},function(_t,m,y){"use strict";var R;(R=function(){return{colorSchemas:{britecharts:["#6aedc7","#39c2c9","#ffce00","#ffa71a","#f866b9","#998ce3"],grey:["#F8F8FA","#EFF2F5","#D2D6DF","#C3C6CF","#ADB0B6","#666A73","#45494E","#363A43","#282C35"],orange:["#fcc870","#ffa71a","#fb8825","#f6682f","#db5a2c","#bf4c28","#a43b1c","#892a10","#f9e9c5"],blueGreen:["#ccf7f6","#70e4e0","#00d8d2","#00acaf","#007f8c","#005e66","#003c3f","#002d2f","#0d2223"],teal:["#ccfffe","#94f7f4","#00fff8","#1de1e1","#39c2c9","#2e9a9d","#227270","#1a5957","#133f3e"],green:["#edfff7","#d7ffef","#c0ffe7","#95f5d7","#6aedc7","#59c3a3","#479980","#34816a","#206953"],yellow:["#f9f2b3","#fbe986","#fce05a","#fed72d","#ffce00","#fcc11c","#f9b438","#eda629","#e09819"],pink:["#fdd1ea","#fb9cd2","#f866b9","#fc40b6","#ff1ab3","#e3239d","#c62c86","#a62073","#85135f"],purple:["#ddd6fc","#bbb1f0","#998ce3","#8e6bc1","#824a9e","#77337f","#6b1c60","#591650","#470f3f"],red:["#ffd8d4","#ffb5b0","#ff938c","#ff766c","#ff584c","#f04b42","#e03d38","#be2e29","#9c1e19"]},colorSchemasHuman:{britecharts:"Britecharts Default",grey:"Britecharts Grey",orange:"Orange",blueGreen:"Blue",teal:"Light Blue",green:"Green",yellow:"Yellow",pink:"Pink",purple:"Purple",red:"Red"},colorGradients:{greenBlue:["#39C7EA","#4CDCBA"],orangePink:["#FBC670","#F766B8"],bluePurple:["#3DC3C9","#824a9e"]},colorGradientsHuman:{greenBlue:"Green to Blue",orangePink:"Orange to Pink",bluePurple:"Blue to Purple"},singleColors:{aloeGreen:["#7bdcc0"],greenColor:["#6aedc7"],blueColor:["#39c2c9"],yellowColor:["#ffce00"],orangeColor:["#ffa71a"],pinkColor:["#f866b9"],purpleColor:["#998ce3"]},singleColorsHuman:{aloeGreen:"Aloe Green",greenColor:"Green",blueColor:"Blue",yellowColor:"Yellow",orangeColor:"Orange",pinkColor:"Pink",purpleColor:"Purple"}}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";function R(F){return+F}function j(F){return F*F}function et(F){return F*(2-F)}function K(F){return((F*=2)<=1?F*F:--F*(2-F)+1)/2}y.r(m);var J=y(49),q=function F(T){function k(Q){return Math.pow(Q,T)}return T=+T,k.exponent=F,k}(3),Z=function F(T){function k(Q){return 1-Math.pow(1-Q,T)}return T=+T,k.exponent=F,k}(3),tt=function F(T){function k(Q){return((Q*=2)<=1?Math.pow(Q,T):2-Math.pow(2-Q,T))/2}return T=+T,k.exponent=F,k}(3),H=Math.PI,X=H/2;function B(F){return 1-Math.cos(F*X)}function U(F){return Math.sin(F*X)}function d(F){return(1-Math.cos(H*F))/2}function L(F){return Math.pow(2,10*F-10)}function M(F){return 1-Math.pow(2,-10*F)}function s(F){return((F*=2)<=1?Math.pow(2,10*F-10):2-Math.pow(2,10-10*F))/2}function w(F){return 1-Math.sqrt(1-F*F)}function _(F){return Math.sqrt(1- --F*F)}function o(F){return((F*=2)<=1?1-Math.sqrt(1-F*F):Math.sqrt(1-(F-=2)*F)+1)/2}var u=7.5625;function C(F){return 1-E(1-F)}function E(F){return(F=+F)<.36363636363636365?u*F*F:F<.7272727272727273?u*(F-=.5454545454545454)*F+.75:F<.9090909090909091?u*(F-=.8181818181818182)*F+.9375:u*(F-=.9545454545454546)*F+.984375}function S(F){return((F*=2)<=1?1-E(1-F):E(F-1)+1)/2}var v=function F(T){function k(Q){return Q*Q*((T+1)*Q-T)}return T=+T,k.overshoot=F,k}(1.70158),g=function F(T){function k(Q){return--Q*Q*((T+1)*Q+T)+1}return T=+T,k.overshoot=F,k}(1.70158),x=function F(T){function k(Q){return((Q*=2)<1?Q*Q*((T+1)*Q-T):(Q-=2)*Q*((T+1)*Q+T)+2)/2}return T=+T,k.overshoot=F,k}(1.70158),p=2*Math.PI,l=function F(T,k){var Q=Math.asin(1/(T=Math.max(1,T)))*(k/=p);function st(nt){return T*Math.pow(2,10*--nt)*Math.sin((Q-nt)/k)}return st.amplitude=function(nt){return F(nt,k*p)},st.period=function(nt){return F(T,nt)},st}(1,.3),f=function F(T,k){var Q=Math.asin(1/(T=Math.max(1,T)))*(k/=p);function st(nt){return 1-T*Math.pow(2,-10*(nt=+nt))*Math.sin((nt+Q)/k)}return st.amplitude=function(nt){return F(nt,k*p)},st.period=function(nt){return F(T,nt)},st}(1,.3),b=function F(T,k){var Q=Math.asin(1/(T=Math.max(1,T)))*(k/=p);function st(nt){return((nt=2*nt-1)<0?T*Math.pow(2,10*nt)*Math.sin((Q-nt)/k):2-T*Math.pow(2,-10*nt)*Math.sin((Q+nt)/k))/2}return st.amplitude=function(nt){return F(nt,k*p)},st.period=function(nt){return F(T,nt)},st}(1,.3);y.d(m,"easeLinear",function(){return R}),y.d(m,"easeQuad",function(){return K}),y.d(m,"easeQuadIn",function(){return j}),y.d(m,"easeQuadOut",function(){return et}),y.d(m,"easeQuadInOut",function(){return K}),y.d(m,"easeCubic",function(){return J.b}),y.d(m,"easeCubicIn",function(){return J.a}),y.d(m,"easeCubicOut",function(){return J.c}),y.d(m,"easeCubicInOut",function(){return J.b}),y.d(m,"easePoly",function(){return tt}),y.d(m,"easePolyIn",function(){return q}),y.d(m,"easePolyOut",function(){return Z}),y.d(m,"easePolyInOut",function(){return tt}),y.d(m,"easeSin",function(){return d}),y.d(m,"easeSinIn",function(){return B}),y.d(m,"easeSinOut",function(){return U}),y.d(m,"easeSinInOut",function(){return d}),y.d(m,"easeExp",function(){return s}),y.d(m,"easeExpIn",function(){return L}),y.d(m,"easeExpOut",function(){return M}),y.d(m,"easeExpInOut",function(){return s}),y.d(m,"easeCircle",function(){return o}),y.d(m,"easeCircleIn",function(){return w}),y.d(m,"easeCircleOut",function(){return _}),y.d(m,"easeCircleInOut",function(){return o}),y.d(m,"easeBounce",function(){return E}),y.d(m,"easeBounceIn",function(){return C}),y.d(m,"easeBounceOut",function(){return E}),y.d(m,"easeBounceInOut",function(){return S}),y.d(m,"easeBack",function(){return x}),y.d(m,"easeBackIn",function(){return v}),y.d(m,"easeBackOut",function(){return g}),y.d(m,"easeBackInOut",function(){return x}),y.d(m,"easeElastic",function(){return f}),y.d(m,"easeElasticIn",function(){return l}),y.d(m,"easeElasticOut",function(){return f}),y.d(m,"easeElasticInOut",function(){return b})},function(_t,m,y){"use strict";y.r(m);var R=y(0);function j(ve,Re){switch(arguments.length){case 0:break;case 1:this.range(ve);break;default:this.range(Re).domain(ve)}return this}function et(ve,Re){switch(arguments.length){case 0:break;case 1:this.interpolator(ve);break;default:this.interpolator(Re).domain(ve)}return this}var K=y(25),J=Array.prototype,q=J.map,Z=J.slice,tt={name:"implicit"};function H(){var ve=Object(K.map)(),Re=[],ze=[],Oe=tt;function De(Ze){var Sn=Ze+"",Me=ve.get(Sn);if(!Me){if(Oe!==tt)return Oe;ve.set(Sn,Me=Re.push(Ze))}return ze[(Me-1)%ze.length]}return De.domain=function(Ze){if(!arguments.length)return Re.slice();Re=[],ve=Object(K.map)();for(var Sn,Me,en=-1,xn=Ze.length;++enOe&&(Re=ze,ze=Oe,Oe=Re),function(De){return Math.max(ze,Math.min(Oe,De))}}function C(ve,Re,ze){var Oe=ve[0],De=ve[1],Ze=Re[0],Sn=Re[1];return De2?E:C,De=Ze=null,bn}function bn(nn){return isNaN(nn=+nn)?ze:(De||(De=Oe(Sn.map(ve),Me,en)))(ve(xn(nn)))}return bn.invert=function(nn){return xn(Re((Ze||(Ze=Oe(Me,Sn.map(ve),L.a)))(nn)))},bn.domain=function(nn){return arguments.length?(Sn=q.call(nn,s),xn===_||(xn=u(Sn)),Te()):Sn.slice()},bn.range=function(nn){return arguments.length?(Me=Z.call(nn),Te()):Me.slice()},bn.rangeRound=function(nn){return Me=Z.call(nn),en=M.a,Te()},bn.clamp=function(nn){return arguments.length?(xn=nn?u(Sn):_,bn):xn!==_},bn.interpolate=function(nn){return arguments.length?(en=nn,Te()):en},bn.unknown=function(nn){return arguments.length?(ze=nn,bn):ze},function(nn,fn){return ve=nn,Re=fn,Te()}}function g(ve,Re){return v()(ve,Re)}var x=y(40),p=y(81),l=y(56),f=y(82),b=y(80),F=function(ve,Re,ze,Oe){var De,Ze=Object(R.tickStep)(ve,Re,ze);switch((Oe=Object(x.b)(Oe==null?",f":Oe)).type){case"s":var Sn=Math.max(Math.abs(ve),Math.abs(Re));return Oe.precision!=null||isNaN(De=Object(p.a)(Ze,Sn))||(Oe.precision=De),Object(l.c)(Oe,Sn);case"":case"e":case"g":case"p":case"r":Oe.precision!=null||isNaN(De=Object(f.a)(Ze,Math.max(Math.abs(ve),Math.abs(Re))))||(Oe.precision=De-(Oe.type==="e"));break;case"f":case"%":Oe.precision!=null||isNaN(De=Object(b.a)(Ze))||(Oe.precision=De-2*(Oe.type==="%"))}return Object(l.b)(Oe)};function T(ve){var Re=ve.domain;return ve.ticks=function(ze){var Oe=Re();return Object(R.ticks)(Oe[0],Oe[Oe.length-1],ze==null?10:ze)},ve.tickFormat=function(ze,Oe){var De=Re();return F(De[0],De[De.length-1],ze==null?10:ze,Oe)},ve.nice=function(ze){ze==null&&(ze=10);var Oe,De=Re(),Ze=0,Sn=De.length-1,Me=De[Ze],en=De[Sn];return en0?(Me=Math.floor(Me/Oe)*Oe,en=Math.ceil(en/Oe)*Oe,Oe=Object(R.tickIncrement)(Me,en,ze)):Oe<0&&(Me=Math.ceil(Me*Oe)/Oe,en=Math.floor(en*Oe)/Oe,Oe=Object(R.tickIncrement)(Me,en,ze)),Oe>0?(De[Ze]=Math.floor(Me/Oe)*Oe,De[Sn]=Math.ceil(en/Oe)*Oe,Re(De)):Oe<0&&(De[Ze]=Math.ceil(Me*Oe)/Oe,De[Sn]=Math.floor(en*Oe)/Oe,Re(De)),ve},ve}function k(){var ve=g(_,_);return ve.copy=function(){return S(ve,k())},j.apply(ve,arguments),T(ve)}function Q(ve){var Re;function ze(Oe){return isNaN(Oe=+Oe)?Re:Oe}return ze.invert=ze,ze.domain=ze.range=function(Oe){return arguments.length?(ve=q.call(Oe,s),ze):ve.slice()},ze.unknown=function(Oe){return arguments.length?(Re=Oe,ze):Re},ze.copy=function(){return Q(ve).unknown(Re)},ve=arguments.length?q.call(ve,s):[0,1],T(ze)}var st=function(ve,Re){var ze,Oe=0,De=(ve=ve.slice()).length-1,Ze=ve[Oe],Sn=ve[De];return Sn0){for(;vnbn)break;dr.push(wn)}}else for(;vn=1;--fn)if(!((wn=nn*fn)bn)break;dr.push(wn)}}else dr=Object(R.ticks)(vn,cr,Math.min(cr-vn,Jn)).map(ze);return en?dr.reverse():dr},Oe.tickFormat=function(Me,en){if(en==null&&(en=Ze===10?".0e":","),typeof en!="function"&&(en=Object(l.b)(en)),Me===1/0)return en;Me==null&&(Me=10);var xn=Math.max(1,Ze*Me/Oe.ticks().length);return function(Te){var bn=Te/ze(Math.round(Re(Te)));return bn*Ze0?Oe[Me-1]:Re[0],Me=Oe?[De[Oe-1],ze]:[De[xn-1],De[xn]]},Sn.unknown=function(en){return arguments.length&&(ve=en),Sn},Sn.thresholds=function(){return De.slice()},Sn.copy=function(){return Nt().domain([Re,ze]).range(Ze).unknown(ve)},j.apply(T(Sn),arguments)}function gt(){var ve,Re=[.5],ze=[0,1],Oe=1;function De(Ze){return Ze<=Ze?ze[Object(R.bisect)(Re,Ze,0,Oe)]:ve}return De.domain=function(Ze){return arguments.length?(Re=Z.call(Ze),Oe=Math.min(Re.length,ze.length-1),De):Re.slice()},De.range=function(Ze){return arguments.length?(ze=Z.call(Ze),Oe=Math.min(Re.length,ze.length-1),De):ze.slice()},De.invertExtent=function(Ze){var Sn=ze.indexOf(Ze);return[Re[Sn-1],Re[Sn]]},De.unknown=function(Ze){return arguments.length?(ve=Ze,De):ve},De.copy=function(){return gt().domain(Re).range(ze).unknown(ve)},j.apply(De,arguments)}var wt=y(33),Rt=y(69),jt=y(5),Zt=y(53),ne=y(70),Wt=y(71),le=y(51),de=y(52),xe=y(21);function be(ve){return new Date(ve)}function Ye(ve){return ve instanceof Date?+ve:+new Date(+ve)}function tn(ve,Re,ze,Oe,De,Ze,Sn,Me,en){var xn=g(_,_),Te=xn.invert,bn=xn.domain,nn=en(".%L"),fn=en(":%S"),wn=en("%I:%M"),vn=en("%I %p"),cr=en("%a %d"),Jn=en("%b %d"),dr=en("%B"),gr=en("%Y"),er=[[Sn,1,1e3],[Sn,5,5e3],[Sn,15,15e3],[Sn,30,3e4],[Ze,1,6e4],[Ze,5,3e5],[Ze,15,9e5],[Ze,30,18e5],[De,1,36e5],[De,3,108e5],[De,6,216e5],[De,12,432e5],[Oe,1,864e5],[Oe,2,1728e5],[ze,1,6048e5],[Re,1,2592e6],[Re,3,7776e6],[ve,1,31536e6]];function Dr(ar){return(Sn(ar)svg{background:"+this.chartBackground+";padding: 20px;}"}};function tt(d,L){if(d){d.attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg");var M=J.initializeSerializer()(d.node());return M=function(s){return navigator.userAgent.search("FireFox")>-1?s.replace(/url.*"\)/,'url("linearGradient[id*="-gradient-"]");'):s}(M),M=function(s){return s.replace(">",">"+Z.styleBackgroundString)}(M=U.call(this,M,L,parseInt(d.attr("width"),10)))}}function H(d){var L=new Image;return L.src=""+Z.imageSourceBase+q(encodeURIComponent(d).replace(/%([0-9A-F]{2})/g,function(M,s){return String.fromCharCode("0x"+s)})),L}function X(d,L){return L.getContext("2d").drawImage(d,0,0),L}function B(d,L,M){M.preventDefault(),function(s){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z.defaultFilename,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"image/png",o=s.toDataURL(_),u=document.createElement("a");u.href=o,u.download=w,document.body.appendChild(u),u.click(),document.body.removeChild(u)}(X(this,d),L)}function U(d,L,M){if(!L||!M)return d;var s=K.grey;return d=d.replace(/ '+L+" ya in Ma?nG(Ma,ya,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Ma[ya]=Dn,Fr=(Ma,ya)=>{for(var Dn in ya||(ya={}))sR.call(ya,Dn)&&U5(Ma,Dn,ya[Dn]);if(BT)for(var Dn of BT(ya))lR.call(ya,Dn)&&U5(Ma,Dn,ya[Dn]);return Ma},co=(Ma,ya)=>rG(Ma,iG(ya));var go=(Ma,ya)=>{var Dn={};for(var oc in Ma)sR.call(Ma,oc)&&ya.indexOf(oc)<0&&(Dn[oc]=Ma[oc]);if(Ma!=null&&BT)for(var oc of BT(Ma))ya.indexOf(oc)<0&&lR.call(Ma,oc)&&(Dn[oc]=Ma[oc]);return Dn};var wl=(Ma,ya,Dn)=>U5(Ma,typeof ya!="symbol"?ya+"":ya,Dn);var ho=(Ma,ya,Dn)=>new Promise((oc,We)=>{var ue=_t=>{try{j(Dn.next(_t))}catch(m){We(m)}},ht=_t=>{try{j(Dn.throw(_t))}catch(m){We(m)}},j=_t=>_t.done?oc(_t.value):Promise.resolve(_t.value).then(ue,ht);j((Dn=Dn.apply(Ma,ya)).next())});(()=>{var Ma={3861:(We,ue,ht)=>{(function(j,_t){We.exports=_t(ht(3224))})(window,function(j){return function(_t){var m={};function y(R){if(m[R])return m[R].exports;var B=m[R]={i:R,l:!1,exports:{}};return _t[R].call(B.exports,B,B.exports,y),B.l=!0,B.exports}return y.m=_t,y.c=m,y.d=function(R,B,et){y.o(R,B)||Object.defineProperty(R,B,{enumerable:!0,get:et})},y.r=function(R){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(R,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(R,"__esModule",{value:!0})},y.t=function(R,B){if(1&B&&(R=y(R)),8&B||4&B&&typeof R=="object"&&R&&R.__esModule)return R;var et=Object.create(null);if(y.r(et),Object.defineProperty(et,"default",{enumerable:!0,value:R}),2&B&&typeof R!="string")for(var K in R)y.d(et,K,function(J){return R[J]}.bind(null,K));return et},y.n=function(R){var B=R&&R.__esModule?function(){return R.default}:function(){return R};return y.d(B,"a",B),B},y.o=function(R,B){return Object.prototype.hasOwnProperty.call(R,B)},y.p="",y(y.s=88)}([function(_t,m,y){"use strict";y.r(m);var R=function(ot,D){return otD?1:ot>=D?0:NaN},B=function(ot){var D;return ot.length===1&&(D=ot,ot=function(P,W){return R(D(P),W)}),{left:function(P,W,lt,it){for(lt==null&&(lt=0),it==null&&(it=P.length);lt>>1;ot(P[vt],W)<0?lt=vt+1:it=vt}return lt},right:function(P,W,lt,it){for(lt==null&&(lt=0),it==null&&(it=P.length);lt>>1;ot(P[vt],W)>0?it=vt:lt=vt+1}return lt}}},et=B(R),K=et.right,J=et.left,q=K,Z=function(ot,D){D==null&&(D=tt);for(var P=0,W=ot.length-1,lt=ot[0],it=new Array(W<0?0:W);Pot?1:D>=ot?0:NaN},F=function(ot){return ot===null?NaN:+ot},U=function(ot,D){var P,W,lt=ot.length,it=0,vt=-1,pt=0,xt=0;if(D==null)for(;++vt1)return xt/(it-1)},d=function(ot,D){var P=U(ot,D);return P&&Math.sqrt(P)},L=function(ot,D){var P,W,lt,it=ot.length,vt=-1;if(D==null){for(;++vt=P)for(W=lt=P;++vtP&&(W=P),lt=P)for(W=lt=P;++vtP&&(W=P),lt0)return[ot];if((W=D0)for(ot=Math.ceil(ot/vt),D=Math.floor(D/vt),it=new Array(lt=Math.ceil(D-ot+1));++pt=0?(it>=C?10:it>=E?5:it>=S?2:1)*Math.pow(10,lt):-Math.pow(10,-lt)/(it>=C?10:it>=E?5:it>=S?2:1)}function x(ot,D,P){var W=Math.abs(D-ot)/Math.max(0,P),lt=Math.pow(10,Math.floor(Math.log(W)/Math.LN10)),it=W/lt;return it>=C?lt*=10:it>=E?lt*=5:it>=S&&(lt*=2),DNt;)gt.pop(),--wt;var Rt,jt=new Array(wt+1);for(it=0;it<=wt;++it)(Rt=jt[it]=[]).x0=it>0?gt[it-1]:Tt,Rt.x1=it=1)return+P(ot[W-1],W-1,ot);var W,lt=(W-1)*D,it=Math.floor(lt),vt=+P(ot[it],it,ot);return vt+(+P(ot[it+1],it+1,ot)-vt)*(lt-it)}},b=function(ot,D,P){return ot=_.call(ot,F).sort(R),Math.ceil((P-D)/(2*(f(ot,.75)-f(ot,.25))*Math.pow(ot.length,-1/3)))},z=function(ot,D,P){return Math.ceil((P-D)/(3.5*d(ot)*Math.pow(ot.length,-1/3)))},T=function(ot,D){var P,W,lt=ot.length,it=-1;if(D==null){for(;++it=P)for(W=P;++itW&&(W=P)}else for(;++it=P)for(W=P;++itW&&(W=P);return W},k=function(ot,D){var P,W=ot.length,lt=W,it=-1,vt=0;if(D==null)for(;++it=0;)for(D=(W=ot[lt]).length;--D>=0;)P[--vt]=W[D];return P},nt=function(ot,D){var P,W,lt=ot.length,it=-1;if(D==null){for(;++it=P)for(W=P;++itP&&(W=P)}else for(;++it=P)for(W=P;++itP&&(W=P);return W},dt=function(ot,D){for(var P=D.length,W=new Array(P);P--;)W[P]=ot[D[P]];return W},mt=function(ot,D){if(P=ot.length){var P,W,lt=0,it=0,vt=ot[it];for(D==null&&(D=R);++lt0))return d;do d.push(U=new Date(+H)),J(H,F),K(H);while(U=X)for(;K(X),!H(X);)X.setTime(X-1)},function(X,F){if(X>=X)if(F<0)for(;++F<=0;)for(;J(X,-1),!H(X););else for(;--F>=0;)for(;J(X,1),!H(X););})},q&&(tt.count=function(H,X){return R.setTime(+H),B.setTime(+X),K(R),K(B),Math.floor(q(R,B))},tt.every=function(H){return H=Math.floor(H),isFinite(H)&&H>0?H>1?tt.filter(Z?function(X){return Z(X)%H==0}:function(X){return tt.count(0,X)%H==0}):tt:null}),tt}},function(_t,m,y){"use strict";y.r(m);var R=y(29),B=y(64),et=function(E){return Object(B.a)(Object(R.a)(E).call(document.documentElement))},K=0;function J(){return new q}function q(){this._="@"+(++K).toString(36)}q.prototype=J.prototype={constructor:q,get:function(E){for(var S=this._;!(S in E);)if(!(E=E.parentNode))return;return E[S]},set:function(E,S){return E[this._]=S},remove:function(E){return this._ in E&&delete E[this._]},toString:function(){return this._}};var Z=y(66),tt=y(84),H=y(44),X=y(32),F=y(30),U=y(23),d=function(E){return typeof E=="string"?new U.a([document.querySelectorAll(E)],[document.documentElement]):new U.a([E==null?[]:E],U.c)},L=y(43),M=y(65),s=y(67),_=y(85),w=y(46),o=function(E,S){S==null&&(S=Object(w.a)().touches);for(var v=0,g=S?S.length:0,x=new Array(g);v180||tt<-180?tt-360*Math.round(tt/360):tt):Object(R.a)(isNaN(q)?Z:q)}function K(q){return(q=+q)==1?J:function(Z,tt){return tt-Z?function(H,X,F){return H=Math.pow(H,F),X=Math.pow(X,F)-H,F=1/F,function(U){return Math.pow(H+U*X,F)}}(Z,tt,q):Object(R.a)(isNaN(Z)?tt:Z)}}function J(q,Z){var tt=Z-q;return tt?B(q,tt):Object(R.a)(isNaN(q)?Z:q)}},function(_t,m,y){"use strict";y.d(m,"g",function(){return K}),y.d(m,"c",function(){return J}),y.d(m,"k",function(){return q}),y.d(m,"m",function(){return Z}),y.d(m,"i",function(){return tt}),y.d(m,"a",function(){return H}),y.d(m,"e",function(){return X}),y.d(m,"h",function(){return F}),y.d(m,"d",function(){return U}),y.d(m,"l",function(){return d}),y.d(m,"n",function(){return L}),y.d(m,"j",function(){return M}),y.d(m,"b",function(){return s}),y.d(m,"f",function(){return _});var R=y(1),B=y(3);function et(w){return Object(R.a)(function(o){o.setDate(o.getDate()-(o.getDay()+7-w)%7),o.setHours(0,0,0,0)},function(o,u){o.setDate(o.getDate()+7*u)},function(o,u){return(u-o-(u.getTimezoneOffset()-o.getTimezoneOffset())*B.c)/B.e})}var K=et(0),J=et(1),q=et(2),Z=et(3),tt=et(4),H=et(5),X=et(6),F=K.range,U=J.range,d=q.range,L=Z.range,M=tt.range,s=H.range,_=X.range},function(_t,m,y){"use strict";y.d(m,"g",function(){return K}),y.d(m,"c",function(){return J}),y.d(m,"k",function(){return q}),y.d(m,"m",function(){return Z}),y.d(m,"i",function(){return tt}),y.d(m,"a",function(){return H}),y.d(m,"e",function(){return X}),y.d(m,"h",function(){return F}),y.d(m,"d",function(){return U}),y.d(m,"l",function(){return d}),y.d(m,"n",function(){return L}),y.d(m,"j",function(){return M}),y.d(m,"b",function(){return s}),y.d(m,"f",function(){return _});var R=y(1),B=y(3);function et(w){return Object(R.a)(function(o){o.setUTCDate(o.getUTCDate()-(o.getUTCDay()+7-w)%7),o.setUTCHours(0,0,0,0)},function(o,u){o.setUTCDate(o.getUTCDate()+7*u)},function(o,u){return(u-o)/B.e})}var K=et(0),J=et(1),q=et(2),Z=et(3),tt=et(4),H=et(5),X=et(6),F=K.range,U=J.range,d=q.range,L=Z.range,M=tt.range,s=H.range,_=X.range},function(_t,m,y){"use strict";y.d(m,"a",function(){return B}),y.d(m,"d",function(){return et}),y.d(m,"c",function(){return K}),y.d(m,"e",function(){return w}),y.d(m,"h",function(){return C}),y.d(m,"g",function(){return E}),y.d(m,"b",function(){return S}),y.d(m,"f",function(){return f});var R=y(15);function B(){}var et=.7,K=1/et,J="\\s*([+-]?\\d+)\\s*",q="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Z="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tt=/^#([0-9a-f]{3,8})$/,H=new RegExp("^rgb\\("+[J,J,J]+"\\)$"),X=new RegExp("^rgb\\("+[Z,Z,Z]+"\\)$"),F=new RegExp("^rgba\\("+[J,J,J,q]+"\\)$"),U=new RegExp("^rgba\\("+[Z,Z,Z,q]+"\\)$"),d=new RegExp("^hsl\\("+[q,Z,Z]+"\\)$"),L=new RegExp("^hsla\\("+[q,Z,Z,q]+"\\)$"),M={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function s(){return this.rgb().formatHex()}function _(){return this.rgb().formatRgb()}function w(T){var k,Q;return T=(T+"").trim().toLowerCase(),(k=tt.exec(T))?(Q=k[1].length,k=parseInt(k[1],16),Q===6?o(k):Q===3?new S(k>>8&15|k>>4&240,k>>4&15|240&k,(15&k)<<4|15&k,1):Q===8?new S(k>>24&255,k>>16&255,k>>8&255,(255&k)/255):Q===4?new S(k>>12&15|k>>8&240,k>>8&15|k>>4&240,k>>4&15|240&k,((15&k)<<4|15&k)/255):null):(k=H.exec(T))?new S(k[1],k[2],k[3],1):(k=X.exec(T))?new S(255*k[1]/100,255*k[2]/100,255*k[3]/100,1):(k=F.exec(T))?u(k[1],k[2],k[3],k[4]):(k=U.exec(T))?u(255*k[1]/100,255*k[2]/100,255*k[3]/100,k[4]):(k=d.exec(T))?p(k[1],k[2]/100,k[3]/100,1):(k=L.exec(T))?p(k[1],k[2]/100,k[3]/100,k[4]):M.hasOwnProperty(T)?o(M[T]):T==="transparent"?new S(NaN,NaN,NaN,0):null}function o(T){return new S(T>>16&255,T>>8&255,255&T,1)}function u(T,k,Q,st){return st<=0&&(T=k=Q=NaN),new S(T,k,Q,st)}function C(T){return T instanceof B||(T=w(T)),T?new S((T=T.rgb()).r,T.g,T.b,T.opacity):new S}function E(T,k,Q,st){return arguments.length===1?C(T):new S(T,k,Q,st==null?1:st)}function S(T,k,Q,st){this.r=+T,this.g=+k,this.b=+Q,this.opacity=+st}function v(){return"#"+x(this.r)+x(this.g)+x(this.b)}function g(){var T=this.opacity;return((T=isNaN(T)?1:Math.max(0,Math.min(1,T)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(T===1?")":", "+T+")")}function x(T){return((T=Math.max(0,Math.min(255,Math.round(T)||0)))<16?"0":"")+T.toString(16)}function p(T,k,Q,st){return st<=0?T=k=Q=NaN:Q<=0||Q>=1?T=k=NaN:k<=0&&(T=NaN),new b(T,k,Q,st)}function l(T){if(T instanceof b)return new b(T.h,T.s,T.l,T.opacity);if(T instanceof B||(T=w(T)),!T)return new b;if(T instanceof b)return T;var k=(T=T.rgb()).r/255,Q=T.g/255,st=T.b/255,nt=Math.min(k,Q,st),dt=Math.max(k,Q,st),mt=NaN,Et=dt-nt,Mt=(dt+nt)/2;return Et?(mt=k===dt?(Q-st)/Et+6*(Q0&&Mt<1?0:mt,new b(mt,Et,Mt,T.opacity)}function f(T,k,Q,st){return arguments.length===1?l(T):new b(T,k,Q,st==null?1:st)}function b(T,k,Q,st){this.h=+T,this.s=+k,this.l=+Q,this.opacity=+st}function z(T,k,Q){return 255*(T<60?k+(Q-k)*T/60:T<180?Q:T<240?k+(Q-k)*(240-T)/60:k)}Object(R.a)(B,w,{copy:function(T){return Object.assign(new this.constructor,this,T)},displayable:function(){return this.rgb().displayable()},hex:s,formatHex:s,formatHsl:function(){return l(this).formatHsl()},formatRgb:_,toString:_}),Object(R.a)(S,E,Object(R.b)(B,{brighter:function(T){return T=T==null?K:Math.pow(K,T),new S(this.r*T,this.g*T,this.b*T,this.opacity)},darker:function(T){return T=T==null?et:Math.pow(et,T),new S(this.r*T,this.g*T,this.b*T,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:v,formatHex:v,formatRgb:g,toString:g})),Object(R.a)(b,f,Object(R.b)(B,{brighter:function(T){return T=T==null?K:Math.pow(K,T),new b(this.h,this.s,this.l*T,this.opacity)},darker:function(T){return T=T==null?et:Math.pow(et,T),new b(this.h,this.s,this.l*T,this.opacity)},rgb:function(){var T=this.h%360+360*(this.h<0),k=isNaN(T)||isNaN(this.s)?0:this.s,Q=this.l,st=Q+(Q<.5?Q:1-Q)*k,nt=2*Q-st;return new S(z(T>=240?T-240:T+120,nt,st),z(T,nt,st),z(T<120?T+240:T-120,nt,st),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var T=this.opacity;return((T=isNaN(T)?1:Math.max(0,Math.min(1,T)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(T===1?")":", "+T+")")}}))},function(_t,m,y){"use strict";y.r(m);var R,B,et=y(23),K=y(79),J=0,q=0,Z=0,tt=0,H=0,X=0,F=typeof performance=="object"&&performance.now?performance:Date,U=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Ot){setTimeout(Ot,17)};function d(){return H||(U(L),H=F.now()+X)}function L(){H=0}function M(){this._call=this._time=this._next=null}function s(Ot,Bt,Ut){var zt=new M;return zt.restart(Ot,Bt,Ut),zt}function _(){H=(tt=F.now())+X,J=q=0;try{(function(){d(),++J;for(var Ot,Bt=R;Bt;)(Ot=H-Bt._time)>=0&&Bt._call.call(null,Ot),Bt=Bt._next;--J})()}finally{J=0,function(){for(var Ot,Bt,Ut=R,zt=1/0;Ut;)Ut._call?(zt>Ut._time&&(zt=Ut._time),Ot=Ut,Ut=Ut._next):(Bt=Ut._next,Ut._next=null,Ut=Ot?Ot._next=Bt:R=Bt);B=Ot,o(zt)}(),H=0}}function w(){var Ot=F.now(),Bt=Ot-tt;Bt>1e3&&(X-=Bt,tt=Ot)}function o(Ot){J||(q&&(q=clearTimeout(q)),Ot-H>24?(Ot<1/0&&(q=setTimeout(_,Ot-F.now()-X)),Z&&(Z=clearInterval(Z))):(Z||(tt=F.now(),Z=setInterval(w,1e3)),J=1,U(_)))}M.prototype=s.prototype={constructor:M,restart:function(Ot,Bt,Ut){if(typeof Ot!="function")throw new TypeError("callback is not a function");Ut=(Ut==null?d():+Ut)+(Bt==null?0:+Bt),this._next||B===this||(B?B._next=this:R=this,B=this),this._call=Ot,this._time=Ut,o()},stop:function(){this._call&&(this._call=null,this._time=1/0,o())}};var u=function(Ot,Bt,Ut){var zt=new M;return Bt=Bt==null?0:+Bt,zt.restart(function(ce){zt.stop(),Ot(ce+Bt)},Bt,Ut),zt},C=Object(K.a)("start","end","cancel","interrupt"),E=[],S=function(Ot,Bt,Ut,zt,ce,we){var ye=Ot.__transition;if(ye){if(Ut in ye)return}else Ot.__transition={};(function(qe,hn,yn){var Nn,mn=qe.__transition;function Mn(ge){var Ie,Ge,ve,Le;if(yn.state!==1)return fr();for(Ie in mn)if((Le=mn[Ie]).name===yn.name){if(Le.state===3)return u(Mn);Le.state===4?(Le.state=6,Le.timer.stop(),Le.on.call("interrupt",qe,qe.__data__,Le.index,Le.group),delete mn[Ie]):+Ie0)throw new Error("too late; already scheduled");return Ut}function g(Ot,Bt){var Ut=x(Ot,Bt);if(Ut.state>3)throw new Error("too late; already running");return Ut}function x(Ot,Bt){var Ut=Ot.__transition;if(!Ut||!(Ut=Ut[Bt]))throw new Error("transition not found");return Ut}var p=function(Ot,Bt){var Ut,zt,ce,we=Ot.__transition,ye=!0;if(we){for(ce in Bt=Bt==null?null:Bt+"",we)(Ut=we[ce]).name===Bt?(zt=Ut.state>2&&Ut.state<5,Ut.state=6,Ut.timer.stop(),Ut.on.call(zt?"interrupt":"cancel",Ot,Ot.__data__,Ut.index,Ut.group),delete we[ce]):ye=!1;ye&&delete Ot.__transition}},l=y(77),f=y(44);function b(Ot,Bt){var Ut,zt;return function(){var ce=g(this,Ot),we=ce.tween;if(we!==Ut){for(var ye=0,qe=(zt=Ut=we).length;ye=0&&(qe=qe.slice(0,hn)),!qe||qe==="start"})}(Bt)?v:g;return function(){var ye=we(this,Ot),qe=ye.on;qe!==zt&&(ce=(zt=qe).copy()).on(Bt,Ut),ye.on=ce}}var Nt=y(43),gt=y(65),wt=et.b.prototype.constructor,Rt=y(67);function jt(Ot){return function(){this.style.removeProperty(Ot)}}function Zt(Ot,Bt,Ut){return function(zt){this.style.setProperty(Ot,Bt.call(this,zt),Ut)}}function ne(Ot,Bt,Ut){var zt,ce;function we(){var ye=Bt.apply(this,arguments);return ye!==ce&&(zt=(ce=ye)&&Zt(Ot,ye,Ut)),zt}return we._value=Bt,we}function Wt(Ot){return function(Bt){this.textContent=Ot.call(this,Bt)}}function le(Ot){var Bt,Ut;function zt(){var ce=Ot.apply(this,arguments);return ce!==Ut&&(Bt=(Ut=ce)&&Wt(ce)),Bt}return zt._value=Ot,zt}var fe=0;function xe(Ot,Bt,Ut,zt){this._groups=Ot,this._parents=Bt,this._name=Ut,this._id=zt}function be(Ot){return Object(et.b)().transition(Ot)}function Ye(){return++fe}var tn=et.b.prototype;xe.prototype=be.prototype={constructor:xe,select:function(Ot){var Bt=this._name,Ut=this._id;typeof Ot!="function"&&(Ot=Object(Nt.a)(Ot));for(var zt=this._groups,ce=zt.length,we=new Array(ce),ye=0;ye1&&Ut.name===Bt)return new xe([[Ot]],Kt,Bt,+zt)}return null};y.d(m,"transition",function(){return be}),y.d(m,"active",function(){return te}),y.d(m,"interrupt",function(){return p})},function(_t,m,y){"use strict";y.r(m);var R=y(56);y.d(m,"formatDefaultLocale",function(){return R.a}),y.d(m,"format",function(){return R.b}),y.d(m,"formatPrefix",function(){return R.c});var B=y(68);y.d(m,"formatLocale",function(){return B.a});var et=y(40);y.d(m,"formatSpecifier",function(){return et.b}),y.d(m,"FormatSpecifier",function(){return et.a});var K=y(80);y.d(m,"precisionFixed",function(){return K.a});var J=y(81);y.d(m,"precisionPrefix",function(){return J.a});var q=y(82);y.d(m,"precisionRound",function(){return q.a})},function(_t,m,y){"use strict";var R;(R=function(){return{colorSchemas:{britecharts:["#6aedc7","#39c2c9","#ffce00","#ffa71a","#f866b9","#998ce3"],grey:["#F8F8FA","#EFF2F5","#D2D6DF","#C3C6CF","#ADB0B6","#666A73","#45494E","#363A43","#282C35"],orange:["#fcc870","#ffa71a","#fb8825","#f6682f","#db5a2c","#bf4c28","#a43b1c","#892a10","#f9e9c5"],blueGreen:["#ccf7f6","#70e4e0","#00d8d2","#00acaf","#007f8c","#005e66","#003c3f","#002d2f","#0d2223"],teal:["#ccfffe","#94f7f4","#00fff8","#1de1e1","#39c2c9","#2e9a9d","#227270","#1a5957","#133f3e"],green:["#edfff7","#d7ffef","#c0ffe7","#95f5d7","#6aedc7","#59c3a3","#479980","#34816a","#206953"],yellow:["#f9f2b3","#fbe986","#fce05a","#fed72d","#ffce00","#fcc11c","#f9b438","#eda629","#e09819"],pink:["#fdd1ea","#fb9cd2","#f866b9","#fc40b6","#ff1ab3","#e3239d","#c62c86","#a62073","#85135f"],purple:["#ddd6fc","#bbb1f0","#998ce3","#8e6bc1","#824a9e","#77337f","#6b1c60","#591650","#470f3f"],red:["#ffd8d4","#ffb5b0","#ff938c","#ff766c","#ff584c","#f04b42","#e03d38","#be2e29","#9c1e19"]},colorSchemasHuman:{britecharts:"Britecharts Default",grey:"Britecharts Grey",orange:"Orange",blueGreen:"Blue",teal:"Light Blue",green:"Green",yellow:"Yellow",pink:"Pink",purple:"Purple",red:"Red"},colorGradients:{greenBlue:["#39C7EA","#4CDCBA"],orangePink:["#FBC670","#F766B8"],bluePurple:["#3DC3C9","#824a9e"]},colorGradientsHuman:{greenBlue:"Green to Blue",orangePink:"Orange to Pink",bluePurple:"Blue to Purple"},singleColors:{aloeGreen:["#7bdcc0"],greenColor:["#6aedc7"],blueColor:["#39c2c9"],yellowColor:["#ffce00"],orangeColor:["#ffa71a"],pinkColor:["#f866b9"],purpleColor:["#998ce3"]},singleColorsHuman:{aloeGreen:"Aloe Green",greenColor:"Green",blueColor:"Blue",yellowColor:"Yellow",orangeColor:"Orange",pinkColor:"Pink",purpleColor:"Purple"}}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";function R(z){return+z}function B(z){return z*z}function et(z){return z*(2-z)}function K(z){return((z*=2)<=1?z*z:--z*(2-z)+1)/2}y.r(m);var J=y(49),q=function z(T){function k(Q){return Math.pow(Q,T)}return T=+T,k.exponent=z,k}(3),Z=function z(T){function k(Q){return 1-Math.pow(1-Q,T)}return T=+T,k.exponent=z,k}(3),tt=function z(T){function k(Q){return((Q*=2)<=1?Math.pow(Q,T):2-Math.pow(2-Q,T))/2}return T=+T,k.exponent=z,k}(3),H=Math.PI,X=H/2;function F(z){return 1-Math.cos(z*X)}function U(z){return Math.sin(z*X)}function d(z){return(1-Math.cos(H*z))/2}function L(z){return Math.pow(2,10*z-10)}function M(z){return 1-Math.pow(2,-10*z)}function s(z){return((z*=2)<=1?Math.pow(2,10*z-10):2-Math.pow(2,10-10*z))/2}function _(z){return 1-Math.sqrt(1-z*z)}function w(z){return Math.sqrt(1- --z*z)}function o(z){return((z*=2)<=1?1-Math.sqrt(1-z*z):Math.sqrt(1-(z-=2)*z)+1)/2}var u=7.5625;function C(z){return 1-E(1-z)}function E(z){return(z=+z)<.36363636363636365?u*z*z:z<.7272727272727273?u*(z-=.5454545454545454)*z+.75:z<.9090909090909091?u*(z-=.8181818181818182)*z+.9375:u*(z-=.9545454545454546)*z+.984375}function S(z){return((z*=2)<=1?1-E(1-z):E(z-1)+1)/2}var v=function z(T){function k(Q){return Q*Q*((T+1)*Q-T)}return T=+T,k.overshoot=z,k}(1.70158),g=function z(T){function k(Q){return--Q*Q*((T+1)*Q+T)+1}return T=+T,k.overshoot=z,k}(1.70158),x=function z(T){function k(Q){return((Q*=2)<1?Q*Q*((T+1)*Q-T):(Q-=2)*Q*((T+1)*Q+T)+2)/2}return T=+T,k.overshoot=z,k}(1.70158),p=2*Math.PI,l=function z(T,k){var Q=Math.asin(1/(T=Math.max(1,T)))*(k/=p);function st(nt){return T*Math.pow(2,10*--nt)*Math.sin((Q-nt)/k)}return st.amplitude=function(nt){return z(nt,k*p)},st.period=function(nt){return z(T,nt)},st}(1,.3),f=function z(T,k){var Q=Math.asin(1/(T=Math.max(1,T)))*(k/=p);function st(nt){return 1-T*Math.pow(2,-10*(nt=+nt))*Math.sin((nt+Q)/k)}return st.amplitude=function(nt){return z(nt,k*p)},st.period=function(nt){return z(T,nt)},st}(1,.3),b=function z(T,k){var Q=Math.asin(1/(T=Math.max(1,T)))*(k/=p);function st(nt){return((nt=2*nt-1)<0?T*Math.pow(2,10*nt)*Math.sin((Q-nt)/k):2-T*Math.pow(2,-10*nt)*Math.sin((Q+nt)/k))/2}return st.amplitude=function(nt){return z(nt,k*p)},st.period=function(nt){return z(T,nt)},st}(1,.3);y.d(m,"easeLinear",function(){return R}),y.d(m,"easeQuad",function(){return K}),y.d(m,"easeQuadIn",function(){return B}),y.d(m,"easeQuadOut",function(){return et}),y.d(m,"easeQuadInOut",function(){return K}),y.d(m,"easeCubic",function(){return J.b}),y.d(m,"easeCubicIn",function(){return J.a}),y.d(m,"easeCubicOut",function(){return J.c}),y.d(m,"easeCubicInOut",function(){return J.b}),y.d(m,"easePoly",function(){return tt}),y.d(m,"easePolyIn",function(){return q}),y.d(m,"easePolyOut",function(){return Z}),y.d(m,"easePolyInOut",function(){return tt}),y.d(m,"easeSin",function(){return d}),y.d(m,"easeSinIn",function(){return F}),y.d(m,"easeSinOut",function(){return U}),y.d(m,"easeSinInOut",function(){return d}),y.d(m,"easeExp",function(){return s}),y.d(m,"easeExpIn",function(){return L}),y.d(m,"easeExpOut",function(){return M}),y.d(m,"easeExpInOut",function(){return s}),y.d(m,"easeCircle",function(){return o}),y.d(m,"easeCircleIn",function(){return _}),y.d(m,"easeCircleOut",function(){return w}),y.d(m,"easeCircleInOut",function(){return o}),y.d(m,"easeBounce",function(){return E}),y.d(m,"easeBounceIn",function(){return C}),y.d(m,"easeBounceOut",function(){return E}),y.d(m,"easeBounceInOut",function(){return S}),y.d(m,"easeBack",function(){return x}),y.d(m,"easeBackIn",function(){return v}),y.d(m,"easeBackOut",function(){return g}),y.d(m,"easeBackInOut",function(){return x}),y.d(m,"easeElastic",function(){return f}),y.d(m,"easeElasticIn",function(){return l}),y.d(m,"easeElasticOut",function(){return f}),y.d(m,"easeElasticInOut",function(){return b})},function(_t,m,y){"use strict";y.r(m);var R=y(0);function B(ve,Le){switch(arguments.length){case 0:break;case 1:this.range(ve);break;default:this.range(Le).domain(ve)}return this}function et(ve,Le){switch(arguments.length){case 0:break;case 1:this.interpolator(ve);break;default:this.interpolator(Le).domain(ve)}return this}var K=y(25),J=Array.prototype,q=J.map,Z=J.slice,tt={name:"implicit"};function H(){var ve=Object(K.map)(),Le=[],Ue=[],Oe=tt;function De(Ze){var Sn=Ze+"",Me=ve.get(Sn);if(!Me){if(Oe!==tt)return Oe;ve.set(Sn,Me=Le.push(Ze))}return Ue[(Me-1)%Ue.length]}return De.domain=function(Ze){if(!arguments.length)return Le.slice();Le=[],ve=Object(K.map)();for(var Sn,Me,en=-1,xn=Ze.length;++enOe&&(Le=Ue,Ue=Oe,Oe=Le),function(De){return Math.max(Ue,Math.min(Oe,De))}}function C(ve,Le,Ue){var Oe=ve[0],De=ve[1],Ze=Le[0],Sn=Le[1];return De2?E:C,De=Ze=null,bn}function bn(nn){return isNaN(nn=+nn)?Ue:(De||(De=Oe(Sn.map(ve),Me,en)))(ve(xn(nn)))}return bn.invert=function(nn){return xn(Le((Ze||(Ze=Oe(Me,Sn.map(ve),L.a)))(nn)))},bn.domain=function(nn){return arguments.length?(Sn=q.call(nn,s),xn===w||(xn=u(Sn)),Te()):Sn.slice()},bn.range=function(nn){return arguments.length?(Me=Z.call(nn),Te()):Me.slice()},bn.rangeRound=function(nn){return Me=Z.call(nn),en=M.a,Te()},bn.clamp=function(nn){return arguments.length?(xn=nn?u(Sn):w,bn):xn!==w},bn.interpolate=function(nn){return arguments.length?(en=nn,Te()):en},bn.unknown=function(nn){return arguments.length?(Ue=nn,bn):Ue},function(nn,fn){return ve=nn,Le=fn,Te()}}function g(ve,Le){return v()(ve,Le)}var x=y(40),p=y(81),l=y(56),f=y(82),b=y(80),z=function(ve,Le,Ue,Oe){var De,Ze=Object(R.tickStep)(ve,Le,Ue);switch((Oe=Object(x.b)(Oe==null?",f":Oe)).type){case"s":var Sn=Math.max(Math.abs(ve),Math.abs(Le));return Oe.precision!=null||isNaN(De=Object(p.a)(Ze,Sn))||(Oe.precision=De),Object(l.c)(Oe,Sn);case"":case"e":case"g":case"p":case"r":Oe.precision!=null||isNaN(De=Object(f.a)(Ze,Math.max(Math.abs(ve),Math.abs(Le))))||(Oe.precision=De-(Oe.type==="e"));break;case"f":case"%":Oe.precision!=null||isNaN(De=Object(b.a)(Ze))||(Oe.precision=De-2*(Oe.type==="%"))}return Object(l.b)(Oe)};function T(ve){var Le=ve.domain;return ve.ticks=function(Ue){var Oe=Le();return Object(R.ticks)(Oe[0],Oe[Oe.length-1],Ue==null?10:Ue)},ve.tickFormat=function(Ue,Oe){var De=Le();return z(De[0],De[De.length-1],Ue==null?10:Ue,Oe)},ve.nice=function(Ue){Ue==null&&(Ue=10);var Oe,De=Le(),Ze=0,Sn=De.length-1,Me=De[Ze],en=De[Sn];return en0?(Me=Math.floor(Me/Oe)*Oe,en=Math.ceil(en/Oe)*Oe,Oe=Object(R.tickIncrement)(Me,en,Ue)):Oe<0&&(Me=Math.ceil(Me*Oe)/Oe,en=Math.floor(en*Oe)/Oe,Oe=Object(R.tickIncrement)(Me,en,Ue)),Oe>0?(De[Ze]=Math.floor(Me/Oe)*Oe,De[Sn]=Math.ceil(en/Oe)*Oe,Le(De)):Oe<0&&(De[Ze]=Math.ceil(Me*Oe)/Oe,De[Sn]=Math.floor(en*Oe)/Oe,Le(De)),ve},ve}function k(){var ve=g(w,w);return ve.copy=function(){return S(ve,k())},B.apply(ve,arguments),T(ve)}function Q(ve){var Le;function Ue(Oe){return isNaN(Oe=+Oe)?Le:Oe}return Ue.invert=Ue,Ue.domain=Ue.range=function(Oe){return arguments.length?(ve=q.call(Oe,s),Ue):ve.slice()},Ue.unknown=function(Oe){return arguments.length?(Le=Oe,Ue):Le},Ue.copy=function(){return Q(ve).unknown(Le)},ve=arguments.length?q.call(ve,s):[0,1],T(Ue)}var st=function(ve,Le){var Ue,Oe=0,De=(ve=ve.slice()).length-1,Ze=ve[Oe],Sn=ve[De];return Sn0){for(;vnbn)break;dr.push(wn)}}else for(;vn=1;--fn)if(!((wn=nn*fn)bn)break;dr.push(wn)}}else dr=Object(R.ticks)(vn,cr,Math.min(cr-vn,Jn)).map(Ue);return en?dr.reverse():dr},Oe.tickFormat=function(Me,en){if(en==null&&(en=Ze===10?".0e":","),typeof en!="function"&&(en=Object(l.b)(en)),Me===1/0)return en;Me==null&&(Me=10);var xn=Math.max(1,Ze*Me/Oe.ticks().length);return function(Te){var bn=Te/Ue(Math.round(Le(Te)));return bn*Ze0?Oe[Me-1]:Le[0],Me=Oe?[De[Oe-1],Ue]:[De[xn-1],De[xn]]},Sn.unknown=function(en){return arguments.length&&(ve=en),Sn},Sn.thresholds=function(){return De.slice()},Sn.copy=function(){return Nt().domain([Le,Ue]).range(Ze).unknown(ve)},B.apply(T(Sn),arguments)}function gt(){var ve,Le=[.5],Ue=[0,1],Oe=1;function De(Ze){return Ze<=Ze?Ue[Object(R.bisect)(Le,Ze,0,Oe)]:ve}return De.domain=function(Ze){return arguments.length?(Le=Z.call(Ze),Oe=Math.min(Le.length,Ue.length-1),De):Le.slice()},De.range=function(Ze){return arguments.length?(Ue=Z.call(Ze),Oe=Math.min(Le.length,Ue.length-1),De):Ue.slice()},De.invertExtent=function(Ze){var Sn=Ue.indexOf(Ze);return[Le[Sn-1],Le[Sn]]},De.unknown=function(Ze){return arguments.length?(ve=Ze,De):ve},De.copy=function(){return gt().domain(Le).range(Ue).unknown(ve)},B.apply(De,arguments)}var wt=y(33),Rt=y(69),jt=y(5),Zt=y(53),ne=y(70),Wt=y(71),le=y(51),fe=y(52),xe=y(21);function be(ve){return new Date(ve)}function Ye(ve){return ve instanceof Date?+ve:+new Date(+ve)}function tn(ve,Le,Ue,Oe,De,Ze,Sn,Me,en){var xn=g(w,w),Te=xn.invert,bn=xn.domain,nn=en(".%L"),fn=en(":%S"),wn=en("%I:%M"),vn=en("%I %p"),cr=en("%a %d"),Jn=en("%b %d"),dr=en("%B"),gr=en("%Y"),nr=[[Sn,1,1e3],[Sn,5,5e3],[Sn,15,15e3],[Sn,30,3e4],[Ze,1,6e4],[Ze,5,3e5],[Ze,15,9e5],[Ze,30,18e5],[De,1,36e5],[De,3,108e5],[De,6,216e5],[De,12,432e5],[Oe,1,864e5],[Oe,2,1728e5],[Ue,1,6048e5],[Le,1,2592e6],[Le,3,7776e6],[ve,1,31536e6]];function Nr(sr){return(Sn(sr)svg{background:"+this.chartBackground+";padding: 20px;}"}};function tt(d,L){if(d){d.attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg");var M=J.initializeSerializer()(d.node());return M=function(s){return navigator.userAgent.search("FireFox")>-1?s.replace(/url.*"\)/,'url("linearGradient[id*="-gradient-"]");'):s}(M),M=function(s){return s.replace(">",">"+Z.styleBackgroundString)}(M=U.call(this,M,L,parseInt(d.attr("width"),10)))}}function H(d){var L=new Image;return L.src=""+Z.imageSourceBase+q(encodeURIComponent(d).replace(/%([0-9A-F]{2})/g,function(M,s){return String.fromCharCode("0x"+s)})),L}function X(d,L){return L.getContext("2d").drawImage(d,0,0),L}function F(d,L,M){M.preventDefault(),function(s){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z.defaultFilename,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"image/png",o=s.toDataURL(w),u=document.createElement("a");u.href=o,u.download=_,document.body.appendChild(u),u.click(),document.body.removeChild(u)}(X(this,d),L)}function U(d,L,M){if(!L||!M)return d;var s=K.grey;return d=d.replace(/ '+L+" @@ -159,9 +159,9 @@ var qY=Object.defineProperty,KY=Object.defineProperties;var ZY=Object.getOwnProp - `}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";y.r(m);var R=Array.prototype.slice,j=function(d){return d};function et(d){return"translate("+(d+.5)+",0)"}function K(d){return"translate(0,"+(d+.5)+")"}function J(d){return function(L){return+d(L)}}function q(d){var L=Math.max(0,d.bandwidth()-1)/2;return d.round()&&(L=Math.round(L)),function(M){return+d(M)+L}}function Z(){return!this.__axis}function tt(d,L){var M=[],s=null,w=null,_=6,o=6,u=3,C=d===1||d===4?-1:1,E=d===4||d===2?"x":"y",S=d===1||d===3?et:K;function v(g){var x=s==null?L.ticks?L.ticks.apply(L,M):L.domain():s,p=w==null?L.tickFormat?L.tickFormat.apply(L,M):j:w,l=Math.max(_,0)+u,f=L.range(),b=+f[0]+.5,F=+f[f.length-1]+.5,T=(L.bandwidth?q:J)(L.copy()),k=g.selection?g.selection():g,Q=k.selectAll(".domain").data([null]),st=k.selectAll(".tick").data(x,L).order(),nt=st.exit(),dt=st.enter().append("g").attr("class","tick"),mt=st.select("line"),Et=st.select("text");Q=Q.merge(Q.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),st=st.merge(dt),mt=mt.merge(dt.append("line").attr("stroke","currentColor").attr(E+"2",C*_)),Et=Et.merge(dt.append("text").attr("fill","currentColor").attr(E,C*l).attr("dy",d===1?"0em":d===3?"0.71em":"0.32em")),g!==k&&(Q=Q.transition(g),st=st.transition(g),mt=mt.transition(g),Et=Et.transition(g),nt=nt.transition(g).attr("opacity",1e-6).attr("transform",function(Mt){return isFinite(Mt=T(Mt))?S(Mt):this.getAttribute("transform")}),dt.attr("opacity",1e-6).attr("transform",function(Mt){var I=this.parentNode.__axis;return S(I&&isFinite(I=I(Mt))?I:T(Mt))})),nt.remove(),Q.attr("d",d===4||d==2?o?"M"+C*o+","+b+"H0.5V"+F+"H"+C*o:"M0.5,"+b+"V"+F:o?"M"+b+","+C*o+"V0.5H"+F+"V"+C*o:"M"+b+",0.5H"+F),st.attr("opacity",1).attr("transform",function(Mt){return S(T(Mt))}),mt.attr(E+"2",C*_),Et.attr(E,C*l).text(p),k.filter(Z).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",d===2?"start":d===4?"end":"middle"),k.each(function(){this.__axis=T})}return v.scale=function(g){return arguments.length?(L=g,v):L},v.ticks=function(){return M=R.call(arguments),v},v.tickArguments=function(g){return arguments.length?(M=g==null?[]:R.call(g),v):M.slice()},v.tickValues=function(g){return arguments.length?(s=g==null?null:R.call(g),v):s&&s.slice()},v.tickFormat=function(g){return arguments.length?(w=g,v):w},v.tickSize=function(g){return arguments.length?(_=o=+g,v):_},v.tickSizeInner=function(g){return arguments.length?(_=+g,v):_},v.tickSizeOuter=function(g){return arguments.length?(o=+g,v):o},v.tickPadding=function(g){return arguments.length?(u=+g,v):u},v}function H(d){return tt(1,d)}function X(d){return tt(2,d)}function B(d){return tt(3,d)}function U(d){return tt(4,d)}y.d(m,"axisTop",function(){return H}),y.d(m,"axisRight",function(){return X}),y.d(m,"axisBottom",function(){return B}),y.d(m,"axisLeft",function(){return U})},function(_t,m,y){"use strict";y.r(m);var R=y(41),j=y(61),et=y(42),K=y(58),J=y(60),q=function(Q){var st=Q.length;return function(nt){return Q[Math.max(0,Math.min(st-1,Math.floor(nt*st)))]}},Z=y(4),tt=function(Q,st){var nt=Object(Z.c)(+Q,+st);return function(dt){var mt=nt(dt);return mt-360*Math.floor(mt/360)}},H=y(14),X=y(31),B=y(62),U=y(83),d=y(59),L=y(77),M=Math.SQRT2;function s(Q){return((Q=Math.exp(Q))+1/Q)/2}var w=function(Q,st){var nt,dt,mt=Q[0],Et=Q[1],Mt=Q[2],I=st[0],Y=st[1],rt=st[2],ot=I-mt,D=Y-Et,P=ot*ot+D*D;if(P<1e-12)dt=Math.log(rt/Mt)/M,nt=function(xt){return[mt+xt*ot,Et+xt*D,Mt*Math.exp(M*xt*dt)]};else{var W=Math.sqrt(P),lt=(rt*rt-Mt*Mt+4*P)/(2*Mt*2*W),it=(rt*rt-Mt*Mt-4*P)/(2*rt*2*W),vt=Math.log(Math.sqrt(lt*lt+1)-lt),pt=Math.log(Math.sqrt(it*it+1)-it);dt=(pt-vt)/M,nt=function(xt){var Ct,Tt=xt*dt,Nt=s(vt),gt=Mt/(2*W)*(Nt*(Ct=M*Tt+vt,((Ct=Math.exp(2*Ct))-1)/(Ct+1))-function(wt){return((wt=Math.exp(wt))-1/wt)/2}(vt));return[mt+gt*ot,Et+gt*D,Mt*Nt/s(M*Tt+vt)]}}return nt.duration=1e3*dt,nt},_=y(36),o=y(7);function u(Q){return function(st,nt){var dt=Q((st=Object(o.f)(st)).h,(nt=Object(o.f)(nt)).h),mt=Object(Z.a)(st.s,nt.s),Et=Object(Z.a)(st.l,nt.l),Mt=Object(Z.a)(st.opacity,nt.opacity);return function(I){return st.h=dt(I),st.s=mt(I),st.l=Et(I),st.opacity=Mt(I),st+""}}}var C=u(Z.c),E=u(Z.a),S=y(50);function v(Q,st){var nt=Object(Z.a)((Q=Object(S.a)(Q)).l,(st=Object(S.a)(st)).l),dt=Object(Z.a)(Q.a,st.a),mt=Object(Z.a)(Q.b,st.b),Et=Object(Z.a)(Q.opacity,st.opacity);return function(Mt){return Q.l=nt(Mt),Q.a=dt(Mt),Q.b=mt(Mt),Q.opacity=Et(Mt),Q+""}}function g(Q){return function(st,nt){var dt=Q((st=Object(S.c)(st)).h,(nt=Object(S.c)(nt)).h),mt=Object(Z.a)(st.c,nt.c),Et=Object(Z.a)(st.l,nt.l),Mt=Object(Z.a)(st.opacity,nt.opacity);return function(I){return st.h=dt(I),st.c=mt(I),st.l=Et(I),st.opacity=Mt(I),st+""}}}var x=g(Z.c),p=g(Z.a),l=y(78);function f(Q){return function st(nt){function dt(mt,Et){var Mt=Q((mt=Object(l.a)(mt)).h,(Et=Object(l.a)(Et)).h),I=Object(Z.a)(mt.s,Et.s),Y=Object(Z.a)(mt.l,Et.l),rt=Object(Z.a)(mt.opacity,Et.opacity);return function(ot){return mt.h=Mt(ot),mt.s=I(ot),mt.l=Y(Math.pow(ot,nt)),mt.opacity=rt(ot),mt+""}}return nt=+nt,dt.gamma=st,dt}(1)}var b=f(Z.c),F=f(Z.a);function T(Q,st){for(var nt=0,dt=st.length-1,mt=st[0],Et=new Array(dt<0?0:dt);ntvt?1:it>=vt?0:NaN}var H=y(44);function X(it){return function(){this.removeAttribute(it)}}function B(it){return function(){this.removeAttributeNS(it.space,it.local)}}function U(it,vt){return function(){this.setAttribute(it,vt)}}function d(it,vt){return function(){this.setAttributeNS(it.space,it.local,vt)}}function L(it,vt){return function(){var pt=vt.apply(this,arguments);pt==null?this.removeAttribute(it):this.setAttribute(it,pt)}}function M(it,vt){return function(){var pt=vt.apply(this,arguments);pt==null?this.removeAttributeNS(it.space,it.local):this.setAttributeNS(it.space,it.local,pt)}}var s=y(67);function w(it){return function(){delete this[it]}}function _(it,vt){return function(){this[it]=vt}}function o(it,vt){return function(){var pt=vt.apply(this,arguments);pt==null?delete this[it]:this[it]=pt}}function u(it){return it.trim().split(/^|\s+/)}function C(it){return it.classList||new E(it)}function E(it){this._node=it,this._names=u(it.getAttribute("class")||"")}function S(it,vt){for(var pt=C(it),xt=-1,Ct=vt.length;++xt=0&&(this._names.splice(vt,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(it){return this._names.indexOf(it)>=0}};function l(){this.textContent=""}function f(it){return function(){this.textContent=it}}function b(it){return function(){var vt=it.apply(this,arguments);this.textContent=vt==null?"":vt}}function F(){this.innerHTML=""}function T(it){return function(){this.innerHTML=it}}function k(it){return function(){var vt=it.apply(this,arguments);this.innerHTML=vt==null?"":vt}}function Q(){this.nextSibling&&this.parentNode.appendChild(this)}function st(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var nt=y(29);function dt(){return null}function mt(){var it=this.parentNode;it&&it.removeChild(this)}function Et(){var it=this.cloneNode(!1),vt=this.parentNode;return vt?vt.insertBefore(it,this.nextSibling):it}function Mt(){var it=this.cloneNode(!0),vt=this.parentNode;return vt?vt.insertBefore(it,this.nextSibling):it}var I=y(37),Y=y(45);function rt(it,vt,pt){var xt=Object(Y.a)(it),Ct=xt.CustomEvent;typeof Ct=="function"?Ct=new Ct(vt,pt):(Ct=xt.document.createEvent("Event"),pt?(Ct.initEvent(vt,pt.bubbles,pt.cancelable),Ct.detail=pt.detail):Ct.initEvent(vt,!1,!1)),it.dispatchEvent(Ct)}function ot(it,vt){return function(){return rt(this,it,vt)}}function D(it,vt){return function(){return rt(this,it,vt.apply(this,arguments))}}y.d(m,"c",function(){return P}),y.d(m,"a",function(){return W});var P=[null];function W(it,vt){this._groups=it,this._parents=vt}function lt(){return new W([[document.documentElement]],P)}W.prototype=lt.prototype={constructor:W,select:function(it){typeof it!="function"&&(it=Object(R.a)(it));for(var vt=this._groups,pt=vt.length,xt=new Array(pt),Ct=0;Ct=Jt&&(Jt=an+1);!(tn=be[Jt])&&++Jt=0;)(xt=Ct[Tt])&&(Nt&&4^xt.compareDocumentPosition(Nt)&&Nt.parentNode.insertBefore(xt,Nt),Nt=xt);return this},sort:function(it){function vt(Zt,ne){return Zt&&ne?it(Zt.__data__,ne.__data__):!Zt-!ne}it||(it=tt);for(var pt=this._groups,xt=pt.length,Ct=new Array(xt),Tt=0;Tt1?this.each((vt==null?w:typeof vt=="function"?o:_)(it,vt)):this.node()[it]},classed:function(it,vt){var pt=u(it+"");if(arguments.length<2){for(var xt=C(this.node()),Ct=-1,Tt=pt.length;++Ct=o.length)return s!=null&&E.sort(s),w!=null?w(E):E;for(var x,p,l,f=-1,b=E.length,F=o[S++],T=et(),k=v();++fo.length)return v;var x,p=u[g-1];return w!=null&&g>=o.length?x=v.entries():(x=[],v.each(function(l,f){x.push({key:f,values:S(l,g)})})),p!=null?x.sort(function(l,f){return p(l.key,f.key)}):x}(C(E,0,Z,tt),0)},key:function(E){return o.push(E),_},sortKeys:function(E){return u[o.length-1]=E,_},sortValues:function(E){return s=E,_},rollup:function(E){return w=E,_}}};function J(){return{}}function q(s,w,_){s[w]=_}function Z(){return et()}function tt(s,w,_){s.set(w,_)}function H(){}var X=et.prototype;function B(s,w){var _=new H;if(s instanceof H)s.each(function(C){_.add(C)});else if(s){var o=-1,u=s.length;if(w==null)for(;++o1&&arguments[1]!==void 0?arguments[1]:12,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Arial",d=document.createElement("canvas"),L=d.getContext("2d");return L.font=B+"px "+U,L.measureText(X).width},wrapText:function(X,B,U,d){var L=et.select(d),M=L.text().split(/\s+/).reverse(),s=void 0,w=[],_=0,o=K*q,u=L.attr("y"),C=parseFloat(L.attr("dy")),E=B*Z,S=L.text(null).append("tspan").attr("x",X).attr("y",u-5).attr("dy",C+"em").classed(tt,!0).style("font-size",B+"px");for(S.text(M.pop()),S=L.append("tspan").classed(H,!0).attr("x",X).attr("y",u+J).attr("dy",++_*o+C+"em").style("font-size",E+"px");s=M.pop();)w.push(s),S.text(w.join(" ")),S.node()&&S.node().getComputedTextLength()>U-50&&(w.pop(),S.text(w.join(" ")),w=[s],S=L.append("tspan").classed(H,!0).attr("x",X).attr("y",u+J).attr("dy",++_*o+C+"em").text(s).style("font-size",E+"px"))},wrapTextWithEllipses:function(X,B){var U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1.2;X.each(function(){var M,s,w,_,o,u,C;for(M=(X=et.select(this)).text().split(/\s+/).reverse(),w=[],_=0,o=X.attr("y"),u=parseFloat(X.attr("dy")),C=X.text(null).append("tspan").attr("x",U).attr("y",o).attr("dy",u+"em");s=M.pop();)if(w.push(s),C.text(w.join(" ")),C.node()&&C.node().getComputedTextLength()>B){if(w.pop(),C.text(w.join(" ")),!(_1e-6)if(Math.abs(Ln*Ue-rn*En)>1e-6&&pe){var pr=ae-ke,ir=he-Ke,$n=Ue*Ue+rn*rn,sr=pr*pr+ir*ir,Cr=Math.sqrt($n),wr=Math.sqrt(Un),Ir=pe*Math.tan((R-Math.acos(($n+Un-sr)/(2*Cr*wr)))/2),$r=Ir/wr,ui=Ir/Cr;Math.abs($r-1)>1e-6&&(this._+="L"+(At+$r*En)+","+(Yt+$r*Ln)),this._+="A"+pe+","+pe+",0,0,"+ +(Ln*pr>En*ir)+","+(this._x1=At+ui*Ue)+","+(this._y1=Yt+ui*rn)}else this._+="L"+(this._x1=At)+","+(this._y1=Yt)},arc:function(At,Yt,ae,he,pe,ke){At=+At,Yt=+Yt,ke=!!ke;var Ke=(ae=+ae)*Math.cos(he),Ue=ae*Math.sin(he),rn=At+Ke,En=Yt+Ue,Ln=1^ke,Un=ke?he-pe:pe-he;if(ae<0)throw new Error("negative radius: "+ae);this._x1===null?this._+="M"+rn+","+En:(Math.abs(this._x1-rn)>1e-6||Math.abs(this._y1-En)>1e-6)&&(this._+="L"+rn+","+En),ae&&(Un<0&&(Un=Un%j+j),Un>et?this._+="A"+ae+","+ae+",0,1,"+Ln+","+(At-Ke)+","+(Yt-Ue)+"A"+ae+","+ae+",0,1,"+Ln+","+(this._x1=rn)+","+(this._y1=En):Un>1e-6&&(this._+="A"+ae+","+ae+",0,"+ +(Un>=R)+","+Ln+","+(this._x1=At+ae*Math.cos(pe))+","+(this._y1=Yt+ae*Math.sin(pe))))},rect:function(At,Yt,ae,he){this._+="M"+(this._x0=this._x1=+At)+","+(this._y0=this._y1=+Yt)+"h"+ +ae+"v"+ +he+"h"+-ae+"Z"},toString:function(){return this._}};var q=J,Z=function(At){return function(){return At}},tt=Math.abs,H=Math.atan2,X=Math.cos,B=Math.max,U=Math.min,d=Math.sin,L=Math.sqrt,M=Math.PI,s=M/2,w=2*M;function _(At){return At>1?0:At<-1?M:Math.acos(At)}function o(At){return At>=1?s:At<=-1?-s:Math.asin(At)}function u(At){return At.innerRadius}function C(At){return At.outerRadius}function E(At){return At.startAngle}function S(At){return At.endAngle}function v(At){return At&&At.padAngle}function g(At,Yt,ae,he,pe,ke,Ke,Ue){var rn=ae-At,En=he-Yt,Ln=Ke-pe,Un=Ue-ke,pr=Un*rn-Ln*En;if(!(pr*pr<1e-12))return[At+(pr=(Ln*(Yt-ke)-Un*(At-pe))/pr)*rn,Yt+pr*En]}function x(At,Yt,ae,he,pe,ke,Ke){var Ue=At-ae,rn=Yt-he,En=(Ke?ke:-ke)/L(Ue*Ue+rn*rn),Ln=En*rn,Un=-En*Ue,pr=At+Ln,ir=Yt+Un,$n=ae+Ln,sr=he+Un,Cr=(pr+$n)/2,wr=(ir+sr)/2,Ir=$n-pr,$r=sr-ir,ui=Ir*Ir+$r*$r,Ni=pe-ke,Ai=pr*sr-$n*ir,yi=($r<0?-1:1)*L(B(0,Ni*Ni*ui-Ai*Ai)),Pi=(Ai*$r-Ir*yi)/ui,Di=(-Ai*Ir-$r*yi)/ui,Oi=(Ai*$r+Ir*yi)/ui,Wi=(-Ai*Ir+$r*yi)/ui,to=Pi-Cr,Xi=Di-wr,To=Oi-Cr,Ro=Wi-wr;return to*to+Xi*Xi>To*To+Ro*Ro&&(Pi=Oi,Di=Wi),{cx:Pi,cy:Di,x01:-Ln,y01:-Un,x11:Pi*(pe/Ni-1),y11:Di*(pe/Ni-1)}}var p=function(){var At=u,Yt=C,ae=Z(0),he=null,pe=E,ke=S,Ke=v,Ue=null;function rn(){var En,Ln,Un=+At.apply(this,arguments),pr=+Yt.apply(this,arguments),ir=pe.apply(this,arguments)-s,$n=ke.apply(this,arguments)-s,sr=tt($n-ir),Cr=$n>ir;if(Ue||(Ue=En=q()),pr1e-12)if(sr>w-1e-12)Ue.moveTo(pr*X(ir),pr*d(ir)),Ue.arc(0,0,pr,ir,$n,!Cr),Un>1e-12&&(Ue.moveTo(Un*X($n),Un*d($n)),Ue.arc(0,0,Un,$n,ir,Cr));else{var wr,Ir,$r=ir,ui=$n,Ni=ir,Ai=$n,yi=sr,Pi=sr,Di=Ke.apply(this,arguments)/2,Oi=Di>1e-12&&(he?+he.apply(this,arguments):L(Un*Un+pr*pr)),Wi=U(tt(pr-Un)/2,+ae.apply(this,arguments)),to=Wi,Xi=Wi;if(Oi>1e-12){var To=o(Oi/Un*d(Di)),Ro=o(Oi/pr*d(Di));(yi-=2*To)>1e-12?(Ni+=To*=Cr?1:-1,Ai-=To):(yi=0,Ni=Ai=(ir+$n)/2),(Pi-=2*Ro)>1e-12?($r+=Ro*=Cr?1:-1,ui-=Ro):(Pi=0,$r=ui=(ir+$n)/2)}var po=pr*X($r),no=pr*d($r),_o=Un*X(Ai),Zo=Un*d(Ai);if(Wi>1e-12){var oo,Mi=pr*X(ui),aa=pr*d(ui),sa=Un*X(Ni),ko=Un*d(Ni);if(sr1e-12?Xi>1e-12?(wr=x(sa,ko,po,no,pr,Xi,Cr),Ir=x(Mi,aa,_o,Zo,pr,Xi,Cr),Ue.moveTo(wr.cx+wr.x01,wr.cy+wr.y01),Xi1e-12&&yi>1e-12?to>1e-12?(wr=x(_o,Zo,Mi,aa,Un,-to,Cr),Ir=x(po,no,sa,ko,Un,-to,Cr),Ue.lineTo(wr.cx+wr.x01,wr.cy+wr.y01),to=pr;--ir)Ue.point(Ir[ir],$r[ir]);Ue.lineEnd(),Ue.areaEnd()}wr&&(Ir[Un]=+At($n,Un,Ln),$r[Un]=+ae($n,Un,Ln),Ue.point(Yt?+Yt($n,Un,Ln):Ir[Un],he?+he($n,Un,Ln):$r[Un]))}if(sr)return Ue=null,sr+""||null}function En(){return T().defined(pe).curve(Ke).context(ke)}return rn.x=function(Ln){return arguments.length?(At=typeof Ln=="function"?Ln:Z(+Ln),Yt=null,rn):At},rn.x0=function(Ln){return arguments.length?(At=typeof Ln=="function"?Ln:Z(+Ln),rn):At},rn.x1=function(Ln){return arguments.length?(Yt=Ln==null?null:typeof Ln=="function"?Ln:Z(+Ln),rn):Yt},rn.y=function(Ln){return arguments.length?(ae=typeof Ln=="function"?Ln:Z(+Ln),he=null,rn):ae},rn.y0=function(Ln){return arguments.length?(ae=typeof Ln=="function"?Ln:Z(+Ln),rn):ae},rn.y1=function(Ln){return arguments.length?(he=Ln==null?null:typeof Ln=="function"?Ln:Z(+Ln),rn):he},rn.lineX0=rn.lineY0=function(){return En().x(At).y(ae)},rn.lineY1=function(){return En().x(At).y(he)},rn.lineX1=function(){return En().x(Yt).y(ae)},rn.defined=function(Ln){return arguments.length?(pe=typeof Ln=="function"?Ln:Z(!!Ln),rn):pe},rn.curve=function(Ln){return arguments.length?(Ke=Ln,ke!=null&&(Ue=Ke(ke)),rn):Ke},rn.context=function(Ln){return arguments.length?(Ln==null?ke=Ue=null:Ue=Ke(ke=Ln),rn):ke},rn},Q=function(At,Yt){return YtAt?1:Yt>=At?0:NaN},st=function(At){return At},nt=function(){var At=st,Yt=Q,ae=null,he=Z(0),pe=Z(w),ke=Z(0);function Ke(Ue){var rn,En,Ln,Un,pr,ir=Ue.length,$n=0,sr=new Array(ir),Cr=new Array(ir),wr=+he.apply(this,arguments),Ir=Math.min(w,Math.max(-w,pe.apply(this,arguments)-wr)),$r=Math.min(Math.abs(Ir)/ir,ke.apply(this,arguments)),ui=$r*(Ir<0?-1:1);for(rn=0;rn0&&($n+=pr);for(Yt!=null?sr.sort(function(Ni,Ai){return Yt(Cr[Ni],Cr[Ai])}):ae!=null&&sr.sort(function(Ni,Ai){return ae(Ue[Ni],Ue[Ai])}),rn=0,Ln=$n?(Ir-ir*ui)/$n:0;rn0?pr*Ln:0)+ui,Cr[En]={data:Ue[En],index:rn,value:pr,startAngle:wr,endAngle:Un,padAngle:$r};return Cr}return Ke.value=function(Ue){return arguments.length?(At=typeof Ue=="function"?Ue:Z(+Ue),Ke):At},Ke.sortValues=function(Ue){return arguments.length?(Yt=Ue,ae=null,Ke):Yt},Ke.sort=function(Ue){return arguments.length?(ae=Ue,Yt=null,Ke):ae},Ke.startAngle=function(Ue){return arguments.length?(he=typeof Ue=="function"?Ue:Z(+Ue),Ke):he},Ke.endAngle=function(Ue){return arguments.length?(pe=typeof Ue=="function"?Ue:Z(+Ue),Ke):pe},Ke.padAngle=function(Ue){return arguments.length?(ke=typeof Ue=="function"?Ue:Z(+Ue),Ke):ke},Ke},dt=Et(f);function mt(At){this._curve=At}function Et(At){function Yt(ae){return new mt(At(ae))}return Yt._curve=At,Yt}function Mt(At){var Yt=At.curve;return At.angle=At.x,delete At.x,At.radius=At.y,delete At.y,At.curve=function(ae){return arguments.length?Yt(Et(ae)):Yt()._curve},At}mt.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(At,Yt){this._curve.point(Yt*Math.sin(At),Yt*-Math.cos(At))}};var I=function(){return Mt(T().curve(dt))},Y=function(){var At=k().curve(dt),Yt=At.curve,ae=At.lineX0,he=At.lineX1,pe=At.lineY0,ke=At.lineY1;return At.angle=At.x,delete At.x,At.startAngle=At.x0,delete At.x0,At.endAngle=At.x1,delete At.x1,At.radius=At.y,delete At.y,At.innerRadius=At.y0,delete At.y0,At.outerRadius=At.y1,delete At.y1,At.lineStartAngle=function(){return Mt(ae())},delete At.lineX0,At.lineEndAngle=function(){return Mt(he())},delete At.lineX1,At.lineInnerRadius=function(){return Mt(pe())},delete At.lineY0,At.lineOuterRadius=function(){return Mt(ke())},delete At.lineY1,At.curve=function(Ke){return arguments.length?Yt(Et(Ke)):Yt()._curve},At},rt=function(At,Yt){return[(Yt=+Yt)*Math.cos(At-=Math.PI/2),Yt*Math.sin(At)]},ot=Array.prototype.slice;function D(At){return At.source}function P(At){return At.target}function W(At){var Yt=D,ae=P,he=b,pe=F,ke=null;function Ke(){var Ue,rn=ot.call(arguments),En=Yt.apply(this,rn),Ln=ae.apply(this,rn);if(ke||(ke=Ue=q()),At(ke,+he.apply(this,(rn[0]=En,rn)),+pe.apply(this,rn),+he.apply(this,(rn[0]=Ln,rn)),+pe.apply(this,rn)),Ue)return ke=null,Ue+""||null}return Ke.source=function(Ue){return arguments.length?(Yt=Ue,Ke):Yt},Ke.target=function(Ue){return arguments.length?(ae=Ue,Ke):ae},Ke.x=function(Ue){return arguments.length?(he=typeof Ue=="function"?Ue:Z(+Ue),Ke):he},Ke.y=function(Ue){return arguments.length?(pe=typeof Ue=="function"?Ue:Z(+Ue),Ke):pe},Ke.context=function(Ue){return arguments.length?(ke=Ue==null?null:Ue,Ke):ke},Ke}function lt(At,Yt,ae,he,pe){At.moveTo(Yt,ae),At.bezierCurveTo(Yt=(Yt+he)/2,ae,Yt,pe,he,pe)}function it(At,Yt,ae,he,pe){At.moveTo(Yt,ae),At.bezierCurveTo(Yt,ae=(ae+pe)/2,he,ae,he,pe)}function vt(At,Yt,ae,he,pe){var ke=rt(Yt,ae),Ke=rt(Yt,ae=(ae+pe)/2),Ue=rt(he,ae),rn=rt(he,pe);At.moveTo(ke[0],ke[1]),At.bezierCurveTo(Ke[0],Ke[1],Ue[0],Ue[1],rn[0],rn[1])}function pt(){return W(lt)}function xt(){return W(it)}function Ct(){var At=W(vt);return At.angle=At.x,delete At.x,At.radius=At.y,delete At.y,At}var Tt={draw:function(At,Yt){var ae=Math.sqrt(Yt/M);At.moveTo(ae,0),At.arc(0,0,ae,0,w)}},Nt={draw:function(At,Yt){var ae=Math.sqrt(Yt/5)/2;At.moveTo(-3*ae,-ae),At.lineTo(-ae,-ae),At.lineTo(-ae,-3*ae),At.lineTo(ae,-3*ae),At.lineTo(ae,-ae),At.lineTo(3*ae,-ae),At.lineTo(3*ae,ae),At.lineTo(ae,ae),At.lineTo(ae,3*ae),At.lineTo(-ae,3*ae),At.lineTo(-ae,ae),At.lineTo(-3*ae,ae),At.closePath()}},gt=Math.sqrt(1/3),wt=2*gt,Rt={draw:function(At,Yt){var ae=Math.sqrt(Yt/wt),he=ae*gt;At.moveTo(0,-ae),At.lineTo(he,0),At.lineTo(0,ae),At.lineTo(-he,0),At.closePath()}},jt=Math.sin(M/10)/Math.sin(7*M/10),Zt=Math.sin(w/10)*jt,ne=-Math.cos(w/10)*jt,Wt={draw:function(At,Yt){var ae=Math.sqrt(.8908130915292852*Yt),he=Zt*ae,pe=ne*ae;At.moveTo(0,-ae),At.lineTo(he,pe);for(var ke=1;ke<5;++ke){var Ke=w*ke/5,Ue=Math.cos(Ke),rn=Math.sin(Ke);At.lineTo(rn*ae,-Ue*ae),At.lineTo(Ue*he-rn*pe,rn*he+Ue*pe)}At.closePath()}},le={draw:function(At,Yt){var ae=Math.sqrt(Yt),he=-ae/2;At.rect(he,he,ae,ae)}},de=Math.sqrt(3),xe={draw:function(At,Yt){var ae=-Math.sqrt(Yt/(3*de));At.moveTo(0,2*ae),At.lineTo(-de*ae,-ae),At.lineTo(de*ae,-ae),At.closePath()}},be=Math.sqrt(3)/2,Ye=1/Math.sqrt(12),tn=3*(Ye/2+1),an={draw:function(At,Yt){var ae=Math.sqrt(Yt/tn),he=ae/2,pe=ae*Ye,ke=he,Ke=ae*Ye+ae,Ue=-ke,rn=Ke;At.moveTo(he,pe),At.lineTo(ke,Ke),At.lineTo(Ue,rn),At.lineTo(-.5*he-be*pe,be*he+-.5*pe),At.lineTo(-.5*ke-be*Ke,be*ke+-.5*Ke),At.lineTo(-.5*Ue-be*rn,be*Ue+-.5*rn),At.lineTo(-.5*he+be*pe,-.5*pe-be*he),At.lineTo(-.5*ke+be*Ke,-.5*Ke-be*ke),At.lineTo(-.5*Ue+be*rn,-.5*rn-be*Ue),At.closePath()}},Jt=[Tt,Nt,Rt,le,Wt,xe,an],Kt=function(){var At=Z(Tt),Yt=Z(64),ae=null;function he(){var pe;if(ae||(ae=pe=q()),At.apply(this,arguments).draw(ae,+Yt.apply(this,arguments)),pe)return ae=null,pe+""||null}return he.type=function(pe){return arguments.length?(At=typeof pe=="function"?pe:Z(pe),he):At},he.size=function(pe){return arguments.length?(Yt=typeof pe=="function"?pe:Z(+pe),he):Yt},he.context=function(pe){return arguments.length?(ae=pe==null?null:pe,he):ae},he},te=function(){};function Ot(At,Yt,ae){At._context.bezierCurveTo((2*At._x0+At._x1)/3,(2*At._y0+At._y1)/3,(At._x0+2*At._x1)/3,(At._y0+2*At._y1)/3,(At._x0+4*At._x1+Yt)/6,(At._y0+4*At._y1+ae)/6)}function Bt(At){this._context=At}Bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ot(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(At,Yt){switch(At=+At,Yt=+Yt,this._point){case 0:this._point=1,this._line?this._context.lineTo(At,Yt):this._context.moveTo(At,Yt);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ot(this,At,Yt)}this._x0=this._x1,this._x1=At,this._y0=this._y1,this._y1=Yt}};var Ut=function(At){return new Bt(At)};function zt(At){this._context=At}zt.prototype={areaStart:te,areaEnd:te,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(At,Yt){switch(At=+At,Yt=+Yt,this._point){case 0:this._point=1,this._x2=At,this._y2=Yt;break;case 1:this._point=2,this._x3=At,this._y3=Yt;break;case 2:this._point=3,this._x4=At,this._y4=Yt,this._context.moveTo((this._x0+4*this._x1+At)/6,(this._y0+4*this._y1+Yt)/6);break;default:Ot(this,At,Yt)}this._x0=this._x1,this._x1=At,this._y0=this._y1,this._y1=Yt}};var ce=function(At){return new zt(At)};function _e(At){this._context=At}_e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(At,Yt){switch(At=+At,Yt=+Yt,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var ae=(this._x0+4*this._x1+At)/6,he=(this._y0+4*this._y1+Yt)/6;this._line?this._context.lineTo(ae,he):this._context.moveTo(ae,he);break;case 3:this._point=4;default:Ot(this,At,Yt)}this._x0=this._x1,this._x1=At,this._y0=this._y1,this._y1=Yt}};var ye=function(At){return new _e(At)};function qe(At,Yt){this._basis=new Bt(At),this._beta=Yt}qe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var At=this._x,Yt=this._y,ae=At.length-1;if(ae>0)for(var he,pe=At[0],ke=Yt[0],Ke=At[ae]-pe,Ue=Yt[ae]-ke,rn=-1;++rn<=ae;)he=rn/ae,this._basis.point(this._beta*At[rn]+(1-this._beta)*(pe+he*Ke),this._beta*Yt[rn]+(1-this._beta)*(ke+he*Ue));this._x=this._y=null,this._basis.lineEnd()},point:function(At,Yt){this._x.push(+At),this._y.push(+Yt)}};var hn=function At(Yt){function ae(he){return Yt===1?new Bt(he):new qe(he,Yt)}return ae.beta=function(he){return At(+he)},ae}(.85);function yn(At,Yt,ae){At._context.bezierCurveTo(At._x1+At._k*(At._x2-At._x0),At._y1+At._k*(At._y2-At._y0),At._x2+At._k*(At._x1-Yt),At._y2+At._k*(At._y1-ae),At._x2,At._y2)}function Nn(At,Yt){this._context=At,this._k=(1-Yt)/6}Nn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:yn(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(At,Yt){switch(At=+At,Yt=+Yt,this._point){case 0:this._point=1,this._line?this._context.lineTo(At,Yt):this._context.moveTo(At,Yt);break;case 1:this._point=2,this._x1=At,this._y1=Yt;break;case 2:this._point=3;default:yn(this,At,Yt)}this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=Yt}};var pn=function At(Yt){function ae(he){return new Nn(he,Yt)}return ae.tension=function(he){return At(+he)},ae}(0);function Mn(At,Yt){this._context=At,this._k=(1-Yt)/6}Mn.prototype={areaStart:te,areaEnd:te,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(At,Yt){switch(At=+At,Yt=+Yt,this._point){case 0:this._point=1,this._x3=At,this._y3=Yt;break;case 1:this._point=2,this._context.moveTo(this._x4=At,this._y4=Yt);break;case 2:this._point=3,this._x5=At,this._y5=Yt;break;default:yn(this,At,Yt)}this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=Yt}};var Kn=function At(Yt){function ae(he){return new Mn(he,Yt)}return ae.tension=function(he){return At(+he)},ae}(0);function fr(At,Yt){this._context=At,this._k=(1-Yt)/6}fr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(At,Yt){switch(At=+At,Yt=+Yt,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:yn(this,At,Yt)}this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=Yt}};var ge=function At(Yt){function ae(he){return new fr(he,Yt)}return ae.tension=function(he){return At(+he)},ae}(0);function Ie(At,Yt,ae){var he=At._x1,pe=At._y1,ke=At._x2,Ke=At._y2;if(At._l01_a>1e-12){var Ue=2*At._l01_2a+3*At._l01_a*At._l12_a+At._l12_2a,rn=3*At._l01_a*(At._l01_a+At._l12_a);he=(he*Ue-At._x0*At._l12_2a+At._x2*At._l01_2a)/rn,pe=(pe*Ue-At._y0*At._l12_2a+At._y2*At._l01_2a)/rn}if(At._l23_a>1e-12){var En=2*At._l23_2a+3*At._l23_a*At._l12_a+At._l12_2a,Ln=3*At._l23_a*(At._l23_a+At._l12_a);ke=(ke*En+At._x1*At._l23_2a-Yt*At._l12_2a)/Ln,Ke=(Ke*En+At._y1*At._l23_2a-ae*At._l12_2a)/Ln}At._context.bezierCurveTo(he,pe,ke,Ke,At._x2,At._y2)}function Ge(At,Yt){this._context=At,this._alpha=Yt}Ge.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(At,Yt){if(At=+At,Yt=+Yt,this._point){var ae=this._x2-At,he=this._y2-Yt;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(ae*ae+he*he,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(At,Yt):this._context.moveTo(At,Yt);break;case 1:this._point=2;break;case 2:this._point=3;default:Ie(this,At,Yt)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=Yt}};var ve=function At(Yt){function ae(he){return Yt?new Ge(he,Yt):new Nn(he,0)}return ae.alpha=function(he){return At(+he)},ae}(.5);function Re(At,Yt){this._context=At,this._alpha=Yt}Re.prototype={areaStart:te,areaEnd:te,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(At,Yt){if(At=+At,Yt=+Yt,this._point){var ae=this._x2-At,he=this._y2-Yt;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(ae*ae+he*he,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=At,this._y3=Yt;break;case 1:this._point=2,this._context.moveTo(this._x4=At,this._y4=Yt);break;case 2:this._point=3,this._x5=At,this._y5=Yt;break;default:Ie(this,At,Yt)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=Yt}};var ze=function At(Yt){function ae(he){return Yt?new Re(he,Yt):new Mn(he,0)}return ae.alpha=function(he){return At(+he)},ae}(.5);function Oe(At,Yt){this._context=At,this._alpha=Yt}Oe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(At,Yt){if(At=+At,Yt=+Yt,this._point){var ae=this._x2-At,he=this._y2-Yt;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(ae*ae+he*he,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ie(this,At,Yt)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=Yt}};var De=function At(Yt){function ae(he){return Yt?new Oe(he,Yt):new fr(he,0)}return ae.alpha=function(he){return At(+he)},ae}(.5);function Ze(At){this._context=At}Ze.prototype={areaStart:te,areaEnd:te,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(At,Yt){At=+At,Yt=+Yt,this._point?this._context.lineTo(At,Yt):(this._point=1,this._context.moveTo(At,Yt))}};var Sn=function(At){return new Ze(At)};function Me(At){return At<0?-1:1}function en(At,Yt,ae){var he=At._x1-At._x0,pe=Yt-At._x1,ke=(At._y1-At._y0)/(he||pe<0&&-0),Ke=(ae-At._y1)/(pe||he<0&&-0),Ue=(ke*pe+Ke*he)/(he+pe);return(Me(ke)+Me(Ke))*Math.min(Math.abs(ke),Math.abs(Ke),.5*Math.abs(Ue))||0}function xn(At,Yt){var ae=At._x1-At._x0;return ae?(3*(At._y1-At._y0)/ae-Yt)/2:Yt}function Te(At,Yt,ae){var he=At._x0,pe=At._y0,ke=At._x1,Ke=At._y1,Ue=(ke-he)/3;At._context.bezierCurveTo(he+Ue,pe+Ue*Yt,ke-Ue,Ke-Ue*ae,ke,Ke)}function bn(At){this._context=At}function nn(At){this._context=new fn(At)}function fn(At){this._context=At}function wn(At){return new bn(At)}function vn(At){return new nn(At)}function cr(At){this._context=At}function Jn(At){var Yt,ae,he=At.length-1,pe=new Array(he),ke=new Array(he),Ke=new Array(he);for(pe[0]=0,ke[0]=2,Ke[0]=At[0]+2*At[1],Yt=1;Yt=0;--Yt)pe[Yt]=(Ke[Yt]-pe[Yt+1])/ke[Yt];for(ke[he-1]=(At[he]+pe[he-1])/2,Yt=0;Yt=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(At,Yt){switch(At=+At,Yt=+Yt,this._point){case 0:this._point=1,this._line?this._context.lineTo(At,Yt):this._context.moveTo(At,Yt);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,Yt),this._context.lineTo(At,Yt);else{var ae=this._x*(1-this._t)+At*this._t;this._context.lineTo(ae,this._y),this._context.lineTo(ae,Yt)}}this._x=At,this._y=Yt}};var er=function(At){return new gr(At,.5)};function Dr(At){return new gr(At,0)}function Rr(At){return new gr(At,1)}var ar=function(At,Yt){if((pe=At.length)>1)for(var ae,he,pe,ke=1,Ke=At[Yt[0]],Ue=Ke.length;ke=0;)ae[Yt]=Yt;return ae};function Nr(At,Yt){return At[Yt]}var hi=function(){var At=Z([]),Yt=Dn,ae=ar,he=Nr;function pe(ke){var Ke,Ue,rn=At.apply(this,arguments),En=ke.length,Ln=rn.length,Un=new Array(Ln);for(Ke=0;Ke0){for(var ae,he,pe,ke=0,Ke=At[0].length;ke0)for(var ae,he,pe,ke,Ke,Ue,rn=0,En=At[Yt[0]].length;rn0?(he[0]=ke,he[1]=ke+=pe):pe<0?(he[1]=Ke,he[0]=Ke+=pe):(he[0]=0,he[1]=pe)},Sr=function(At,Yt){if((ae=At.length)>0){for(var ae,he=0,pe=At[Yt[0]],ke=pe.length;he0&&(he=(ae=At[Yt[0]]).length)>0){for(var ae,he,pe,ke=0,Ke=1;Keke&&(ke=Yt,he=ae);return he}var Xe=function(At){var Yt=At.map(Qe);return Dn(At).sort(function(ae,he){return Yt[ae]-Yt[he]})};function Qe(At){for(var Yt,ae=0,he=-1,pe=At.length;++he0?Object(R.a)(function(J){J.setFullYear(Math.floor(J.getFullYear()/K)*K),J.setMonth(0,1),J.setHours(0,0,0,0)},function(J,q){J.setFullYear(J.getFullYear()+q*K)}):null},m.a=j;var et=j.range},function(_t,m,y){"use strict";y.d(m,"b",function(){return et});var R=y(1),j=Object(R.a)(function(K){K.setUTCMonth(0,1),K.setUTCHours(0,0,0,0)},function(K,J){K.setUTCFullYear(K.getUTCFullYear()+J)},function(K,J){return J.getUTCFullYear()-K.getUTCFullYear()},function(K){return K.getUTCFullYear()});j.every=function(K){return isFinite(K=Math.floor(K))&&K>0?Object(R.a)(function(J){J.setUTCFullYear(Math.floor(J.getUTCFullYear()/K)*K),J.setUTCMonth(0,1),J.setUTCHours(0,0,0,0)},function(J,q){J.setUTCFullYear(J.getUTCFullYear()+q*K)}):null},m.a=j;var et=j.range},function(_t,m,y){"use strict";var R;(R=function(){var j=y(27),et=y(39);return{axisTimeCombinations:{MINUTE_HOUR:"minute-hour",HOUR_DAY:"hour-daymonth",DAY_MONTH:"day-month",MONTH_YEAR:"month-year",CUSTOM:"custom"},curveMap:{linear:j.curveLinear,basis:j.curveBasis,cardinal:j.curveCardinal,catmullRom:j.curveCatmullRom,monotoneX:j.curveMonotoneX,monotoneY:j.curveMonotoneY,natural:j.curveNatural,step:j.curveStep,stepAfter:j.curveStepAfter,stepBefore:j.curveStepBefore},emptyDonutData:[{quantity:1,percentage:100}],timeBenchmarks:{ONE_AND_A_HALF_YEARS:47304e6,ONE_YEAR:31536000365,ONE_DAY:86400001},lineGradientId:"lineGradientId",timeIntervals:{timeMillisecond:et.timeMillisecond,utcMillisecond:et.utcMillisecond,timeSecond:et.timeSecond,utcSecond:et.utcSecond,timeMinute:et.timeMinute,utcMinute:et.utcMinute,timeHour:et.timeHour,utcHour:et.utcHour,timeDay:et.timeDay,utcDay:et.utcDay,timeWeek:et.timeWeek,utcWeek:et.utcWeek,timeSunday:et.timeSunday,utcSunday:et.utcSunday,timeMonday:et.timeMonday,utcMonday:et.utcMonday,timeTuesday:et.timeTuesday,utcTuesday:et.utcTuesday,timeWednesday:et.timeWednesday,utcWednesday:et.utcWednesday,timeThursday:et.timeThursday,utcThursday:et.utcThursday,timeFriday:et.timeFriday,utcFriday:et.utcFriday,timeSaturday:et.timeSaturday,utcSaturday:et.utcSaturday,timeMonth:et.timeMonth,utcMonth:et.utcMonth,timeYear:et.timeYear,utcYear:et.utcYear},FORMAT_LOCALE_URL:"https://cdn.jsdelivr.net/npm/d3-format/locale"}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";y.d(m,"b",function(){return q}),y.d(m,"c",function(){return Z});var R=y(7),j=y(42),et=y(58),K=y(4);function J(tt){return function(H){var X,B,U=H.length,d=new Array(U),L=new Array(U),M=new Array(U);for(X=0;X=0&&(B=X.slice(U+1),X=X.slice(0,U)),{type:X,name:B}})}function q(H){return function(){var X=this.__on;if(X){for(var B,U=0,d=-1,L=X.length;U1?K[0]+K.slice(2):K,+R.slice(et+1)]}},function(_t,m,y){"use strict";y.r(m);var R=y(1);y.d(m,"timeInterval",function(){return R.a});var j=y(52);y.d(m,"timeMillisecond",function(){return j.a}),y.d(m,"timeMilliseconds",function(){return j.b}),y.d(m,"utcMillisecond",function(){return j.a}),y.d(m,"utcMilliseconds",function(){return j.b});var et=y(51);y.d(m,"timeSecond",function(){return et.a}),y.d(m,"timeSeconds",function(){return et.b}),y.d(m,"utcSecond",function(){return et.a}),y.d(m,"utcSeconds",function(){return et.b});var K=y(71);y.d(m,"timeMinute",function(){return K.a}),y.d(m,"timeMinutes",function(){return K.b});var J=y(70);y.d(m,"timeHour",function(){return J.a}),y.d(m,"timeHours",function(){return J.b});var q=y(53);y.d(m,"timeDay",function(){return q.b}),y.d(m,"timeDays",function(){return q.a});var Z=y(5);y.d(m,"timeWeek",function(){return Z.g}),y.d(m,"timeWeeks",function(){return Z.h}),y.d(m,"timeSunday",function(){return Z.g}),y.d(m,"timeSundays",function(){return Z.h}),y.d(m,"timeMonday",function(){return Z.c}),y.d(m,"timeMondays",function(){return Z.d}),y.d(m,"timeTuesday",function(){return Z.k}),y.d(m,"timeTuesdays",function(){return Z.l}),y.d(m,"timeWednesday",function(){return Z.m}),y.d(m,"timeWednesdays",function(){return Z.n}),y.d(m,"timeThursday",function(){return Z.i}),y.d(m,"timeThursdays",function(){return Z.j}),y.d(m,"timeFriday",function(){return Z.a}),y.d(m,"timeFridays",function(){return Z.b}),y.d(m,"timeSaturday",function(){return Z.e}),y.d(m,"timeSaturdays",function(){return Z.f});var tt=y(69);y.d(m,"timeMonth",function(){return tt.a}),y.d(m,"timeMonths",function(){return tt.b});var H=y(33);y.d(m,"timeYear",function(){return H.a}),y.d(m,"timeYears",function(){return H.b});var X=y(74);y.d(m,"utcMinute",function(){return X.a}),y.d(m,"utcMinutes",function(){return X.b});var B=y(73);y.d(m,"utcHour",function(){return B.a}),y.d(m,"utcHours",function(){return B.b});var U=y(54);y.d(m,"utcDay",function(){return U.a}),y.d(m,"utcDays",function(){return U.b});var d=y(6);y.d(m,"utcWeek",function(){return d.g}),y.d(m,"utcWeeks",function(){return d.h}),y.d(m,"utcSunday",function(){return d.g}),y.d(m,"utcSundays",function(){return d.h}),y.d(m,"utcMonday",function(){return d.c}),y.d(m,"utcMondays",function(){return d.d}),y.d(m,"utcTuesday",function(){return d.k}),y.d(m,"utcTuesdays",function(){return d.l}),y.d(m,"utcWednesday",function(){return d.m}),y.d(m,"utcWednesdays",function(){return d.n}),y.d(m,"utcThursday",function(){return d.i}),y.d(m,"utcThursdays",function(){return d.j}),y.d(m,"utcFriday",function(){return d.a}),y.d(m,"utcFridays",function(){return d.b}),y.d(m,"utcSaturday",function(){return d.e}),y.d(m,"utcSaturdays",function(){return d.f});var L=y(72);y.d(m,"utcMonth",function(){return L.a}),y.d(m,"utcMonths",function(){return L.b});var M=y(34);y.d(m,"utcYear",function(){return M.a}),y.d(m,"utcYears",function(){return M.b})},function(_t,m,y){"use strict";y.d(m,"b",function(){return j}),y.d(m,"a",function(){return et});var R=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function j(K){if(!(J=R.exec(K)))throw new Error("invalid format: "+K);var J;return new et({fill:J[1],align:J[2],sign:J[3],symbol:J[4],zero:J[5],width:J[6],comma:J[7],precision:J[8]&&J[8].slice(1),trim:J[9],type:J[10]})}function et(K){this.fill=K.fill===void 0?" ":K.fill+"",this.align=K.align===void 0?">":K.align+"",this.sign=K.sign===void 0?"-":K.sign+"",this.symbol=K.symbol===void 0?"":K.symbol+"",this.zero=!!K.zero,this.width=K.width===void 0?void 0:+K.width,this.comma=!!K.comma,this.precision=K.precision===void 0?void 0:+K.precision,this.trim=!!K.trim,this.type=K.type===void 0?"":K.type+""}j.prototype=et.prototype,et.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(_t,m,y){"use strict";var R=y(7),j=y(36),et=y(61),K=y(60),J=y(14),q=y(62),Z=y(59),tt=y(48),H=y(31);m.a=function(X,B){var U,d=typeof B;return B==null||d==="boolean"?Object(tt.a)(B):(d==="number"?J.a:d==="string"?(U=Object(R.e)(B))?(B=U,j.a):Z.a:B instanceof R.e?j.a:B instanceof Date?K.a:Object(H.b)(B)?H.a:Array.isArray(B)?et.b:typeof B.valueOf!="function"&&typeof B.toString!="function"||isNaN(B)?q.a:J.a)(X,B)}},function(_t,m,y){"use strict";function R(j,et,K,J,q){var Z=j*j,tt=Z*j;return((1-3*j+3*Z-tt)*et+(4-6*Z+3*tt)*K+(1+3*j+3*Z-3*tt)*J+tt*q)/6}y.d(m,"a",function(){return R}),m.b=function(j){var et=j.length-1;return function(K){var J=K<=0?K=0:K>=1?(K=1,et-1):Math.floor(K*et),q=j[J],Z=j[J+1],tt=J>0?j[J-1]:2*q-Z,H=J=0&&(et=j.slice(0,K))!=="xmlns"&&(j=j.slice(K+1)),R.a.hasOwnProperty(et)?{space:R.a[et],local:j}:j}},function(_t,m,y){"use strict";m.a=function(R){return R.ownerDocument&&R.ownerDocument.defaultView||R.document&&R||R.defaultView}},function(_t,m,y){"use strict";var R=y(37);m.a=function(){for(var j,et=R.c;j=et.sourceEvent;)et=j;return et}},function(_t,m,y){"use strict";y.d(m,"a",function(){return R}),y.d(m,"b",function(){return j});var R=Math.PI/180,j=180/Math.PI},function(_t,m,y){"use strict";m.a=function(R){return function(){return R}}},function(_t,m,y){"use strict";function R(K){return K*K*K}function j(K){return--K*K*K+1}function et(K){return((K*=2)<=1?K*K*K:(K-=2)*K*K+2)/2}y.d(m,"a",function(){return R}),y.d(m,"c",function(){return j}),y.d(m,"b",function(){return et})},function(_t,m,y){"use strict";y.d(m,"b",function(){return Z}),y.d(m,"a",function(){return tt}),y.d(m,"d",function(){return M}),y.d(m,"c",function(){return s});var R=y(15),j=y(7),et=y(47),K=6/29,J=3*K*K;function q(o){if(o instanceof H)return new H(o.l,o.a,o.b,o.opacity);if(o instanceof w)return _(o);o instanceof j.b||(o=Object(j.h)(o));var u,C,E=d(o.r),S=d(o.g),v=d(o.b),g=X((.2225045*E+.7168786*S+.0606169*v)/1);return E===S&&S===v?u=C=g:(u=X((.4360747*E+.3850649*S+.1430804*v)/.96422),C=X((.0139322*E+.0971045*S+.7141733*v)/.82521)),new H(116*g-16,500*(u-g),200*(g-C),o.opacity)}function Z(o,u){return new H(o,0,0,u==null?1:u)}function tt(o,u,C,E){return arguments.length===1?q(o):new H(o,u,C,E==null?1:E)}function H(o,u,C,E){this.l=+o,this.a=+u,this.b=+C,this.opacity=+E}function X(o){return o>.008856451679035631?Math.pow(o,.3333333333333333):o/J+.13793103448275862}function B(o){return o>K?o*o*o:J*(o-.13793103448275862)}function U(o){return 255*(o<=.0031308?12.92*o:1.055*Math.pow(o,.4166666666666667)-.055)}function d(o){return(o/=255)<=.04045?o/12.92:Math.pow((o+.055)/1.055,2.4)}function L(o){if(o instanceof w)return new w(o.h,o.c,o.l,o.opacity);if(o instanceof H||(o=q(o)),o.a===0&&o.b===0)return new w(NaN,00?K>1?Object(R.a)(function(J){J.setTime(Math.floor(J/K)*K)},function(J,q){J.setTime(+J+q*K)},function(J,q){return(q-J)/K}):j:null},m.a=j;var et=j.range},function(_t,m,y){"use strict";y.d(m,"a",function(){return K});var R=y(1),j=y(3),et=Object(R.a)(function(J){J.setHours(0,0,0,0)},function(J,q){J.setDate(J.getDate()+q)},function(J,q){return(q-J-(q.getTimezoneOffset()-J.getTimezoneOffset())*j.c)/j.a},function(J){return J.getDate()-1});m.b=et;var K=et.range},function(_t,m,y){"use strict";y.d(m,"b",function(){return K});var R=y(1),j=y(3),et=Object(R.a)(function(J){J.setUTCHours(0,0,0,0)},function(J,q){J.setUTCDate(J.getUTCDate()+q)},function(J,q){return(q-J)/j.a},function(J){return J.getUTCDate()-1});m.a=et;var K=et.range},,function(_t,m,y){"use strict";y.d(m,"b",function(){return j}),y.d(m,"c",function(){return et}),y.d(m,"a",function(){return J});var R,j,et,K=y(68);function J(q){return R=Object(K.a)(q),j=R.format,et=R.formatPrefix,R}J({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})},function(_t,m){var y=/^(?:0|[1-9]\d*)$/;function R(C,E,S){switch(S.length){case 0:return C.call(E);case 1:return C.call(E,S[0]);case 2:return C.call(E,S[0],S[1]);case 3:return C.call(E,S[0],S[1],S[2])}return C.apply(E,S)}var j,et,K=Object.prototype,J=K.hasOwnProperty,q=K.toString,Z=K.propertyIsEnumerable,tt=(j=Object.keys,et=Object,function(C){return j(et(C))}),H=Math.max,X=!Z.call({valueOf:1},"valueOf");function B(C,E){var S=s(C)||function(p){return function(l){return function(f){return!!f&&typeof f=="object"}(l)&&w(l)}(p)&&J.call(p,"callee")&&(!Z.call(p,"callee")||q.call(p)=="[object Arguments]")}(C)?function(p,l){for(var f=-1,b=Array(p);++f-1&&C%1==0&&C-1&&E%1==0&&E<=9007199254740991}(C.length)&&!function(E){var S=_(E)?q.call(E):"";return S=="[object Function]"||S=="[object GeneratorFunction]"}(C)}function _(C){var E=typeof C;return!!C&&(E=="object"||E=="function")}var o,u=(o=function(C,E){if(X||L(E)||w(E))(function(v,g,x,p){x||(x={});for(var l=-1,f=g.length;++l1?E[v-1]:void 0,x=v>2?E[2]:void 0;for(g=o.length>3&&typeof g=="function"?(v--,g):void 0,x&&function(l,f,b){if(!_(b))return!1;var F=typeof f;return!!(F=="number"?w(b)&&d(f,b.length):F=="string"&&f in b)&&M(b[f],l)}(E[0],E[1],x)&&(g=v<3?void 0:g,v=1),C=Object(C);++SH&&(tt=J.slice(H,tt),B[X]?B[X]+=tt:B[++X]=tt),(q=q[0])===(Z=Z[0])?B[X]?B[X]+=Z:B[++X]=Z:(B[++X]=null,U.push({i:X,x:Object(R.a)(q,Z)})),H=et.lastIndex;return H=12)]},q:function(Te){return 1+~~(Te.getMonth()/3)},Q:Bt,s:Ut,S:W,u:lt,U:it,V:vt,w:pt,W:xt,x:null,X:null,y:Ct,Y:Tt,Z:Nt,"%":Ot},Ze={a:function(Te){return yn[Te.getUTCDay()]},A:function(Te){return hn[Te.getUTCDay()]},b:function(Te){return pn[Te.getUTCMonth()]},B:function(Te){return Nn[Te.getUTCMonth()]},c:null,d:gt,e:gt,f:ne,H:wt,I:Rt,j:jt,L:Zt,m:Wt,M:le,p:function(Te){return qe[+(Te.getUTCHours()>=12)]},q:function(Te){return 1+~~(Te.getUTCMonth()/3)},Q:Bt,s:Ut,S:de,u:xe,U:be,V:Ye,w:tn,W:an,x:null,X:null,y:Jt,Y:Kt,Z:te,"%":Ot},Sn={a:function(Te,bn,nn){var fn=Ie.exec(bn.slice(nn));return fn?(Te.w=Ge[fn[0].toLowerCase()],nn+fn[0].length):-1},A:function(Te,bn,nn){var fn=fr.exec(bn.slice(nn));return fn?(Te.w=ge[fn[0].toLowerCase()],nn+fn[0].length):-1},b:function(Te,bn,nn){var fn=ze.exec(bn.slice(nn));return fn?(Te.m=Oe[fn[0].toLowerCase()],nn+fn[0].length):-1},B:function(Te,bn,nn){var fn=ve.exec(bn.slice(nn));return fn?(Te.m=Re[fn[0].toLowerCase()],nn+fn[0].length):-1},c:function(Te,bn,nn){return xn(Te,ce,bn,nn)},d:f,e:f,f:st,H:F,I:F,j:b,L:Q,m:l,M:T,p:function(Te,bn,nn){var fn=Mn.exec(bn.slice(nn));return fn?(Te.p=Kn[fn[0].toLowerCase()],nn+fn[0].length):-1},q:p,Q:dt,s:mt,S:k,u,U:C,V:E,w:o,W:S,x:function(Te,bn,nn){return xn(Te,_e,bn,nn)},X:function(Te,bn,nn){return xn(Te,ye,bn,nn)},y:g,Y:v,Z:x,"%":nt};function Me(Te,bn){return function(nn){var fn,wn,vn,cr=[],Jn=-1,dr=0,gr=Te.length;for(nn instanceof Date||(nn=new Date(+nn));++Jn53)return null;"w"in vn||(vn.w=1),"Z"in vn?(wn=(fn=tt(H(vn.y,0,1))).getUTCDay(),fn=wn>4||wn===0?R.c.ceil(fn):Object(R.c)(fn),fn=j.a.offset(fn,7*(vn.V-1)),vn.y=fn.getUTCFullYear(),vn.m=fn.getUTCMonth(),vn.d=fn.getUTCDate()+(vn.w+6)%7):(wn=(fn=Z(H(vn.y,0,1))).getDay(),fn=wn>4||wn===0?et.c.ceil(fn):Object(et.c)(fn),fn=K.b.offset(fn,7*(vn.V-1)),vn.y=fn.getFullYear(),vn.m=fn.getMonth(),vn.d=fn.getDate()+(vn.w+6)%7)}else("W"in vn||"U"in vn)&&("w"in vn||(vn.w="u"in vn?vn.u%7:"W"in vn?1:0),wn="Z"in vn?tt(H(vn.y,0,1)).getUTCDay():Z(H(vn.y,0,1)).getDay(),vn.m=0,vn.d="W"in vn?(vn.w+6)%7+7*vn.W-(wn+5)%7:vn.w+7*vn.U-(wn+6)%7);return"Z"in vn?(vn.H+=vn.Z/100|0,vn.M+=vn.Z%100,tt(vn)):Z(vn)}}function xn(Te,bn,nn,fn){for(var wn,vn,cr=0,Jn=bn.length,dr=nn.length;cr=dr)return-1;if((wn=bn.charCodeAt(cr++))===37){if(wn=bn.charAt(cr++),!(vn=Sn[wn in B?bn.charAt(cr++):wn])||(fn=vn(Te,nn,fn))<0)return-1}else if(wn!=nn.charCodeAt(fn++))return-1}return fn}return De.x=Me(_e,De),De.X=Me(ye,De),De.c=Me(ce,De),Ze.x=Me(_e,Ze),Ze.X=Me(ye,Ze),Ze.c=Me(ce,Ze),{format:function(Te){var bn=Me(Te+="",De);return bn.toString=function(){return Te},bn},parse:function(Te){var bn=en(Te+="",!1);return bn.toString=function(){return Te},bn},utcFormat:function(Te){var bn=Me(Te+="",Ze);return bn.toString=function(){return Te},bn},utcParse:function(Te){var bn=en(Te+="",!0);return bn.toString=function(){return Te},bn}}}var B={"-":"",_:" ",0:"0"},U=/^\s*\d+/,d=/^%/,L=/[\\^$*+?|[\]().{}]/g;function M(zt,ce,_e){var ye=zt<0?"-":"",qe=(ye?-zt:zt)+"",hn=qe.length;return ye+(hn<_e?new Array(_e-hn+1).join(ce)+qe:qe)}function s(zt){return zt.replace(L,"\\$&")}function w(zt){return new RegExp("^(?:"+zt.map(s).join("|")+")","i")}function _(zt){for(var ce={},_e=-1,ye=zt.length;++_e68?1900:2e3),_e+ye[0].length):-1}function x(zt,ce,_e){var ye=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ce.slice(_e,_e+6));return ye?(zt.Z=ye[1]?0:-(ye[2]+(ye[3]||"00")),_e+ye[0].length):-1}function p(zt,ce,_e){var ye=U.exec(ce.slice(_e,_e+1));return ye?(zt.q=3*ye[0]-3,_e+ye[0].length):-1}function l(zt,ce,_e){var ye=U.exec(ce.slice(_e,_e+2));return ye?(zt.m=ye[0]-1,_e+ye[0].length):-1}function f(zt,ce,_e){var ye=U.exec(ce.slice(_e,_e+2));return ye?(zt.d=+ye[0],_e+ye[0].length):-1}function b(zt,ce,_e){var ye=U.exec(ce.slice(_e,_e+3));return ye?(zt.m=0,zt.d=+ye[0],_e+ye[0].length):-1}function F(zt,ce,_e){var ye=U.exec(ce.slice(_e,_e+2));return ye?(zt.H=+ye[0],_e+ye[0].length):-1}function T(zt,ce,_e){var ye=U.exec(ce.slice(_e,_e+2));return ye?(zt.M=+ye[0],_e+ye[0].length):-1}function k(zt,ce,_e){var ye=U.exec(ce.slice(_e,_e+2));return ye?(zt.S=+ye[0],_e+ye[0].length):-1}function Q(zt,ce,_e){var ye=U.exec(ce.slice(_e,_e+3));return ye?(zt.L=+ye[0],_e+ye[0].length):-1}function st(zt,ce,_e){var ye=U.exec(ce.slice(_e,_e+6));return ye?(zt.L=Math.floor(ye[0]/1e3),_e+ye[0].length):-1}function nt(zt,ce,_e){var ye=d.exec(ce.slice(_e,_e+1));return ye?_e+ye[0].length:-1}function dt(zt,ce,_e){var ye=U.exec(ce.slice(_e));return ye?(zt.Q=+ye[0],_e+ye[0].length):-1}function mt(zt,ce,_e){var ye=U.exec(ce.slice(_e));return ye?(zt.s=+ye[0],_e+ye[0].length):-1}function Et(zt,ce){return M(zt.getDate(),ce,2)}function Mt(zt,ce){return M(zt.getHours(),ce,2)}function I(zt,ce){return M(zt.getHours()%12||12,ce,2)}function Y(zt,ce){return M(1+K.b.count(Object(J.a)(zt),zt),ce,3)}function rt(zt,ce){return M(zt.getMilliseconds(),ce,3)}function ot(zt,ce){return rt(zt,ce)+"000"}function D(zt,ce){return M(zt.getMonth()+1,ce,2)}function P(zt,ce){return M(zt.getMinutes(),ce,2)}function W(zt,ce){return M(zt.getSeconds(),ce,2)}function lt(zt){var ce=zt.getDay();return ce===0?7:ce}function it(zt,ce){return M(et.g.count(Object(J.a)(zt)-1,zt),ce,2)}function vt(zt,ce){var _e=zt.getDay();return zt=_e>=4||_e===0?Object(et.i)(zt):et.i.ceil(zt),M(et.i.count(Object(J.a)(zt),zt)+(Object(J.a)(zt).getDay()===4),ce,2)}function pt(zt){return zt.getDay()}function xt(zt,ce){return M(et.c.count(Object(J.a)(zt)-1,zt),ce,2)}function Ct(zt,ce){return M(zt.getFullYear()%100,ce,2)}function Tt(zt,ce){return M(zt.getFullYear()%1e4,ce,4)}function Nt(zt){var ce=zt.getTimezoneOffset();return(ce>0?"-":(ce*=-1,"+"))+M(ce/60|0,"0",2)+M(ce%60,"0",2)}function gt(zt,ce){return M(zt.getUTCDate(),ce,2)}function wt(zt,ce){return M(zt.getUTCHours(),ce,2)}function Rt(zt,ce){return M(zt.getUTCHours()%12||12,ce,2)}function jt(zt,ce){return M(1+j.a.count(Object(q.a)(zt),zt),ce,3)}function Zt(zt,ce){return M(zt.getUTCMilliseconds(),ce,3)}function ne(zt,ce){return Zt(zt,ce)+"000"}function Wt(zt,ce){return M(zt.getUTCMonth()+1,ce,2)}function le(zt,ce){return M(zt.getUTCMinutes(),ce,2)}function de(zt,ce){return M(zt.getUTCSeconds(),ce,2)}function xe(zt){var ce=zt.getUTCDay();return ce===0?7:ce}function be(zt,ce){return M(R.g.count(Object(q.a)(zt)-1,zt),ce,2)}function Ye(zt,ce){var _e=zt.getUTCDay();return zt=_e>=4||_e===0?Object(R.i)(zt):R.i.ceil(zt),M(R.i.count(Object(q.a)(zt),zt)+(Object(q.a)(zt).getUTCDay()===4),ce,2)}function tn(zt){return zt.getUTCDay()}function an(zt,ce){return M(R.c.count(Object(q.a)(zt)-1,zt),ce,2)}function Jt(zt,ce){return M(zt.getUTCFullYear()%100,ce,2)}function Kt(zt,ce){return M(zt.getUTCFullYear()%1e4,ce,4)}function te(){return"+0000"}function Ot(){return"%"}function Bt(zt){return+zt}function Ut(zt){return Math.floor(+zt/1e3)}},function(_t,m,y){"use strict";var R=y(23);m.a=function(j){return typeof j=="string"?new R.a([[document.querySelector(j)]],[document.documentElement]):new R.a([[j]],R.c)}},function(_t,m,y){"use strict";function R(){return[]}m.a=function(j){return j==null?R:function(){return this.querySelectorAll(j)}}},function(_t,m,y){"use strict";m.a=function(R){return function(){return this.matches(R)}}},function(_t,m,y){"use strict";y.d(m,"b",function(){return J});var R=y(45);function j(q){return function(){this.style.removeProperty(q)}}function et(q,Z,tt){return function(){this.style.setProperty(q,Z,tt)}}function K(q,Z,tt){return function(){var H=Z.apply(this,arguments);H==null?this.style.removeProperty(q):this.style.setProperty(q,H,tt)}}function J(q,Z){return q.style.getPropertyValue(Z)||Object(R.a)(q).getComputedStyle(q,null).getPropertyValue(Z)}m.a=function(q,Z,tt){return arguments.length>1?this.each((Z==null?j:typeof Z=="function"?K:et)(q,Z,tt==null?"":tt)):J(this.node(),q)}},function(_t,m,y){"use strict";var R,j=y(22),et=y(40),K=y(38),J=function(X,B){var U=Object(K.a)(X,B);if(!U)return X+"";var d=U[0],L=U[1];return L<0?"0."+new Array(-L).join("0")+d:d.length>L+1?d.slice(0,L+1)+"."+d.slice(L+1):d+new Array(L-d.length+2).join("0")},q={"%":function(X,B){return(100*X).toFixed(B)},b:function(X){return Math.round(X).toString(2)},c:function(X){return X+""},d:function(X){return Math.round(X).toString(10)},e:function(X,B){return X.toExponential(B)},f:function(X,B){return X.toFixed(B)},g:function(X,B){return X.toPrecision(B)},o:function(X){return Math.round(X).toString(8)},p:function(X,B){return J(100*X,B)},r:J,s:function(X,B){var U=Object(K.a)(X,B);if(!U)return X+"";var d=U[0],L=U[1],M=L-(R=3*Math.max(-8,Math.min(8,Math.floor(L/3))))+1,s=d.length;return M===s?d:M>s?d+new Array(M-s+1).join("0"):M>0?d.slice(0,M)+"."+d.slice(M):"0."+new Array(1-M).join("0")+Object(K.a)(X,Math.max(0,B+M-1))[0]},X:function(X){return Math.round(X).toString(16).toUpperCase()},x:function(X){return Math.round(X).toString(16)}},Z=function(X){return X},tt=Array.prototype.map,H=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];m.a=function(X){var B,U,d=X.grouping===void 0||X.thousands===void 0?Z:(B=tt.call(X.grouping,Number),U=X.thousands+"",function(E,S){for(var v=E.length,g=[],x=0,p=B[0],l=0;v>0&&p>0&&(l+p+1>S&&(p=Math.max(1,S-l)),g.push(E.substring(v-=p,v+p)),!((l+=p+1)>S));)p=B[x=(x+1)%B.length];return g.reverse().join(U)}),L=X.currency===void 0?"":X.currency[0]+"",M=X.currency===void 0?"":X.currency[1]+"",s=X.decimal===void 0?".":X.decimal+"",w=X.numerals===void 0?Z:function(E){return function(S){return S.replace(/[0-9]/g,function(v){return E[+v]})}}(tt.call(X.numerals,String)),_=X.percent===void 0?"%":X.percent+"",o=X.minus===void 0?"-":X.minus+"",u=X.nan===void 0?"NaN":X.nan+"";function C(E){var S=(E=Object(et.b)(E)).fill,v=E.align,g=E.sign,x=E.symbol,p=E.zero,l=E.width,f=E.comma,b=E.precision,F=E.trim,T=E.type;T==="n"?(f=!0,T="g"):q[T]||(b===void 0&&(b=12),F=!0,T="g"),(p||S==="0"&&v==="=")&&(p=!0,S="0",v="=");var k=x==="$"?L:x==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",Q=x==="$"?M:/[%p]/.test(T)?_:"",st=q[T],nt=/[defgprs%]/.test(T);function dt(mt){var Et,Mt,I,Y=k,rt=Q;if(T==="c")rt=st(mt)+rt,mt="";else{var ot=(mt=+mt)<0;if(mt=isNaN(mt)?u:st(Math.abs(mt),b),F&&(mt=function(W){t:for(var lt,it=W.length,vt=1,pt=-1;vt0&&(pt=0)}return pt>0?W.slice(0,pt)+W.slice(lt+1):W}(mt)),ot&&+mt==0&&(ot=!1),Y=(ot?g==="("?g:o:g==="-"||g==="("?"":g)+Y,rt=(T==="s"?H[8+R/3]:"")+rt+(ot&&g==="("?")":""),nt){for(Et=-1,Mt=mt.length;++Et(I=mt.charCodeAt(Et))||I>57){rt=(I===46?s+mt.slice(Et+1):mt.slice(Et))+rt,mt=mt.slice(0,Et);break}}}f&&!p&&(mt=d(mt,1/0));var D=Y.length+mt.length+rt.length,P=D>1)+Y+mt+rt+P.slice(D);break;default:mt=P+Y+mt+rt}return w(mt)}return b=b===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),dt.toString=function(){return E+""},dt}return{format:C,formatPrefix:function(E,S){var v=C(((E=Object(et.b)(E)).type="f",E)),g=3*Math.max(-8,Math.min(8,Math.floor(Object(j.a)(S)/3))),x=Math.pow(10,-g),p=H[8+g/3];return function(l){return v(x*l)+p}}}}},function(_t,m,y){"use strict";y.d(m,"b",function(){return et});var R=y(1),j=Object(R.a)(function(K){K.setDate(1),K.setHours(0,0,0,0)},function(K,J){K.setMonth(K.getMonth()+J)},function(K,J){return J.getMonth()-K.getMonth()+12*(J.getFullYear()-K.getFullYear())},function(K){return K.getMonth()});m.a=j;var et=j.range},function(_t,m,y){"use strict";y.d(m,"b",function(){return K});var R=y(1),j=y(3),et=Object(R.a)(function(J){J.setTime(J-J.getMilliseconds()-J.getSeconds()*j.d-J.getMinutes()*j.c)},function(J,q){J.setTime(+J+q*j.b)},function(J,q){return(q-J)/j.b},function(J){return J.getHours()});m.a=et;var K=et.range},function(_t,m,y){"use strict";y.d(m,"b",function(){return K});var R=y(1),j=y(3),et=Object(R.a)(function(J){J.setTime(J-J.getMilliseconds()-J.getSeconds()*j.d)},function(J,q){J.setTime(+J+q*j.c)},function(J,q){return(q-J)/j.c},function(J){return J.getMinutes()});m.a=et;var K=et.range},function(_t,m,y){"use strict";y.d(m,"b",function(){return et});var R=y(1),j=Object(R.a)(function(K){K.setUTCDate(1),K.setUTCHours(0,0,0,0)},function(K,J){K.setUTCMonth(K.getUTCMonth()+J)},function(K,J){return J.getUTCMonth()-K.getUTCMonth()+12*(J.getUTCFullYear()-K.getUTCFullYear())},function(K){return K.getUTCMonth()});m.a=j;var et=j.range},function(_t,m,y){"use strict";y.d(m,"b",function(){return K});var R=y(1),j=y(3),et=Object(R.a)(function(J){J.setUTCMinutes(0,0,0)},function(J,q){J.setTime(+J+q*j.b)},function(J,q){return(q-J)/j.b},function(J){return J.getUTCHours()});m.a=et;var K=et.range},function(_t,m,y){"use strict";y.d(m,"b",function(){return K});var R=y(1),j=y(3),et=Object(R.a)(function(J){J.setUTCSeconds(0,0)},function(J,q){J.setTime(+J+q*j.c)},function(J,q){return(q-J)/j.c},function(J){return J.getUTCMinutes()});m.a=et;var K=et.range},function(_t,m,y){"use strict";var R,j=function(J,q){if(Array.isArray(J))return J;if(Symbol.iterator in Object(J))return function(Z,tt){var H=[],X=!0,B=!1,U=void 0;try{for(var d,L=Z[Symbol.iterator]();!(X=(d=L.next()).done)&&(H.push(d.value),!tt||H.length!==tt);X=!0);}catch(M){B=!0,U=M}finally{try{!X&&L.return&&L.return()}finally{if(B)throw U}}return H}(J,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J};function K(J,q,Z){return q in J?Object.defineProperty(J,q,{value:Z,enumerable:!0,configurable:!0,writable:!0}):J[q]=Z,J}(R=function(J){var q,Z=y(39),tt=y(28),H=y(35),X=H.axisTimeCombinations,B=H.timeBenchmarks,U=y(87),d=U.convertMillisecondsToDays,L=U.getLocaleDateFormatter,M={minute:tt.timeFormat("%M m"),hour:tt.timeFormat("%H %p"),day:tt.timeFormat("%e"),daymonth:tt.timeFormat("%d %b"),month:tt.timeFormat("%b"),year:tt.timeFormat("%Y")},s=(K(q={},X.MINUTE_HOUR,Z.timeHour.every(1)),K(q,X.HOUR_DAY,Z.timeDay.every(1)),K(q,X.DAY_MONTH,Z.timeMonth.every(1)),K(q,X.MONTH_YEAR,Z.timeYear.every(1)),q),w=function(o){var u=B.ONE_YEAR;return o2&&arguments[2]!==void 0?arguments[2]:null,E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,S=new Date(o[0].date),v=new Date(o[o.length-1].date),g=v-S;E&&(typeof Intl=="undefined"||(typeof Intl=="undefined"?"undefined":et(Intl))==="object"&&!Intl.DateTimeFormat)&&(E=null),C||(C=w(g));var x=C.split("-"),p=j(x,2),l=p[0],f=p[1],b=s[C],F=_(u,d(g));return{minor:{format:E?L(E,l):M[l],tick:F},major:{format:E?L(E,f):M[f],tick:b}}}}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R;(R=function(j){y(2);var et="highlight-filter";return{bounceCircleHighlight:function(K,J,q){var Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2*q,tt=100,H=50;K.transition().ease(J).duration(tt).attr("r",Z).transition().ease(J).delay(H).duration(tt).attr("r",q)},createFilterContainer:function(K){return K.append("defs").append("filter").attr("id",et)},createGausianBlur:function(K){return K.append("feGaussianBlur").attr("stdDeviation",1).attr("result","coloredBlur"),et},createWhiteGlow:function(K){K.attr("x","-5000%").attr("y","-5000%").attr("width","10000%").attr("height","10000%"),K.append("feFlood").attr("result","flood").attr("flood-color","#ffffff").attr("flood-opacity","1"),K.append("feComposite").attr("result","mask").attr("in2","SourceGraphic").attr("operator","in").attr("in","flood"),K.append("feMorphology").attr("result","dilated").attr("operator","dilate").attr("radius","2").attr("in","mask"),K.append("feGaussianBlur").attr("result","blurred").attr("stdDeviation","5").attr("in","dilated");var J=K.append("feMerge");return J.append("feMergeNode").attr("in","blurred"),J.append("feMergeNode").attr("in","SourceGraphic"),et},createGlow:function(K){K.attr("x","-30%").attr("y","-30%").attr("width","160%").attr("height","160%"),K.append("feGaussianBlur").attr("stdDeviation","0.9 0.9").attr("result","glow");var J=K.append("feMerge");return J.append("feMergeNode").attr("in","glow"),J.append("feMergeNode").attr("in","glow"),J.append("feMergeNode").attr("in","glow"),et},createGlowWithMatrix:function(K){K.attr("x","-500%").attr("y","-500%").attr("width","1800%").attr("height","1800%"),K.append("feColorMatrix").attr("type","matrix").attr("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"),K.append("feGaussianBlur").attr("stdDeviation","1").attr("result","coloredBlur").attr("in","SourceGraphic");var J=K.append("feMerge");return J.append("feMergeNode").attr("in","coloredBlur"),J.append("feMergeNode").attr("in","SourceGraphic"),et}}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,j,et,K,J=y(14),q=180/Math.PI,Z={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},tt=function(U,d,L,M,s,w){var _,o,u;return(_=Math.sqrt(U*U+d*d))&&(U/=_,d/=_),(u=U*L+d*M)&&(L-=U*u,M-=d*u),(o=Math.sqrt(L*L+M*M))&&(L/=o,M/=o,u/=o),U*M180?E+=360:E-C>180&&(C+=360),v.push({i:S.push(s(S)+"rotate(",null,M)-2,x:Object(J.a)(C,E)})):E&&S.push(s(S)+"rotate("+E+M)}(w.rotate,_.rotate,o,u),function(C,E,S,v){C!==E?v.push({i:S.push(s(S)+"skewX(",null,M)-2,x:Object(J.a)(C,E)}):E&&S.push(s(S)+"skewX("+E+M)}(w.skewX,_.skewX,o,u),function(C,E,S,v,g,x){if(C!==S||E!==v){var p=g.push(s(g)+"scale(",null,",",null,")");x.push({i:p-4,x:Object(J.a)(C,S)},{i:p-2,x:Object(J.a)(E,v)})}else S===1&&v===1||g.push(s(g)+"scale("+S+","+v+")")}(w.scaleX,w.scaleY,_.scaleX,_.scaleY,o,u),w=_=null,function(C){for(var E,S=-1,v=u.length;++S=0&&(X=H.slice(B+1),H=H.slice(0,B)),H&&!tt.hasOwnProperty(H))throw new Error("unknown type: "+H);return{type:H,name:X}})}function J(Z,tt){for(var H,X=0,B=Z.length;X0)for(var H,X,B=new Array(H),U=0;U=0))throw u(_,new Error(Tt.tagName+"@"+gt));for(var Rt=Nt.length-1;wt"&&">")||Tt=="&"&&"&"||Tt=='"'&&"""||"&#"+Tt.charCodeAt()+";"}function F(Tt,Nt){if(Nt(Tt))return!0;if(Tt=Tt.firstChild)do if(F(Tt,Nt))return!0;while(Tt=Tt.nextSibling)}function T(){}function k(Tt,Nt,gt,wt){Tt&&Tt._inc++,gt.namespaceURI=="http://www.w3.org/2000/xmlns/"&&delete Nt._nsMap[gt.prefix?gt.localName:""]}function Q(Tt,Nt,gt){if(Tt&&Tt._inc){Tt._inc++;var wt=Nt.childNodes;if(gt)wt[wt.length++]=gt;else{for(var Rt=Nt.firstChild,jt=0;Rt;)wt[jt++]=Rt,Rt=Rt.nextSibling;wt.length=jt}}}function st(Tt,Nt){var gt=Nt.previousSibling,wt=Nt.nextSibling;return gt?gt.nextSibling=wt:Tt.firstChild=wt,wt?wt.previousSibling=gt:Tt.lastChild=gt,Q(Tt.ownerDocument,Tt),Nt}function nt(Tt,Nt,gt){var wt=Nt.parentNode;if(wt&&wt.removeChild(Nt),Nt.nodeType===d){var Rt=Nt.firstChild;if(Rt==null)return Nt;var jt=Nt.lastChild}else Rt=jt=Nt;var Zt=gt?gt.previousSibling:Tt.lastChild;Rt.previousSibling=Zt,jt.nextSibling=gt,Zt?Zt.nextSibling=Rt:Tt.firstChild=Rt,gt==null?Tt.lastChild=jt:gt.previousSibling=jt;do Rt.parentNode=Tt;while(Rt!==jt&&(Rt=Rt.nextSibling));return Q(Tt.ownerDocument||Tt,Tt),Nt.nodeType==d&&(Nt.firstChild=Nt.lastChild=null),Nt}function dt(){this._nsMap={}}function mt(){}function Et(){}function Mt(){}function I(){}function Y(){}function rt(){}function ot(){}function D(){}function P(){}function W(){}function lt(){}function it(){}function vt(Tt,Nt){var gt=[],wt=this.nodeType==9?this.documentElement:this,Rt=wt.prefix,jt=wt.namespaceURI;if(jt&&Rt==null&&(Rt=wt.lookupPrefix(jt))==null)var Zt=[{namespace:jt,prefix:null}];return xt(this,gt,Tt,Nt,Zt),gt.join("")}function pt(Tt,Nt,gt){var wt=Tt.prefix||"",Rt=Tt.namespaceURI;if(!wt&&!Rt||wt==="xml"&&Rt==="http://www.w3.org/XML/1998/namespace"||Rt=="http://www.w3.org/2000/xmlns/")return!1;for(var jt=gt.length;jt--;){var Zt=gt[jt];if(Zt.prefix==wt)return Zt.namespace!=Rt}return!0}function xt(Tt,Nt,gt,wt,Rt){if(wt){if(!(Tt=wt(Tt)))return;if(typeof Tt=="string")return void Nt.push(Tt)}switch(Tt.nodeType){case et:Rt||(Rt=[]),Rt.length;var jt=Tt.attributes,Zt=jt.length,ne=Tt.firstChild,Wt=Tt.tagName;gt=Tt.namespaceURI==="http://www.w3.org/1999/xhtml"||gt,Nt.push("<",Wt);for(var le=0;le"),gt&&/^script$/i.test(Wt))for(;ne;)ne.data?Nt.push(ne.data):xt(ne,Nt,gt,wt,Rt),ne=ne.nextSibling;else for(;ne;)xt(ne,Nt,gt,wt,Rt),ne=ne.nextSibling;Nt.push("")}else Nt.push("/>");return;case B:case d:for(ne=Tt.firstChild;ne;)xt(ne,Nt,gt,wt,Rt),ne=ne.nextSibling;return;case K:return Nt.push(" ",Tt.name,'="',Tt.value.replace(/[<&"]/g,b),'"');case J:return Nt.push(Tt.data.replace(/[<&]/g,b));case q:return Nt.push("");case X:return Nt.push("");case U:var tn=Tt.publicId,an=Tt.systemId;if(Nt.push("');else if(an&&an!=".")Nt.push(' SYSTEM "',an,'">');else{var Jt=Tt.internalSubset;Jt&&Nt.push(" [",Jt,"]"),Nt.push(">")}return;case H:return Nt.push("");case Z:return Nt.push("&",Tt.nodeName,";");default:Nt.push("??",Tt.nodeName)}}function Ct(Tt,Nt,gt){Tt[Nt]=gt}u.prototype=Error.prototype,y(M,u),C.prototype={length:0,item:function(Tt){return this[Tt]||null},toString:function(Tt,Nt){for(var gt=[],wt=0;wt0},lookupPrefix:function(Tt){for(var Nt=this;Nt;){var gt=Nt._nsMap;if(gt){for(var wt in gt)if(gt[wt]==Tt)return wt}Nt=Nt.nodeType==K?Nt.ownerDocument:Nt.parentNode}return null},lookupNamespaceURI:function(Tt){for(var Nt=this;Nt;){var gt=Nt._nsMap;if(gt&&Tt in gt)return gt[Tt];Nt=Nt.nodeType==K?Nt.ownerDocument:Nt.parentNode}return null},isDefaultNamespace:function(Tt){return this.lookupPrefix(Tt)==null}},y(j,f),y(j,f.prototype),T.prototype={nodeName:"#document",nodeType:B,doctype:null,documentElement:null,_inc:1,insertBefore:function(Tt,Nt){if(Tt.nodeType==d){for(var gt=Tt.firstChild;gt;){var wt=gt.nextSibling;this.insertBefore(gt,Nt),gt=wt}return Tt}return this.documentElement==null&&Tt.nodeType==et&&(this.documentElement=Tt),nt(this,Tt,Nt),Tt.ownerDocument=this,Tt},removeChild:function(Tt){return this.documentElement==Tt&&(this.documentElement=null),st(this,Tt)},importNode:function(Tt,Nt){return function gt(wt,Rt,jt){var Zt;switch(Rt.nodeType){case et:(Zt=Rt.cloneNode(!1)).ownerDocument=wt;case d:break;case K:jt=!0}if(Zt||(Zt=Rt.cloneNode(!1)),Zt.ownerDocument=wt,Zt.parentNode=null,jt)for(var ne=Rt.firstChild;ne;)Zt.appendChild(gt(wt,ne,jt)),ne=ne.nextSibling;return Zt}(this,Tt,Nt)},getElementById:function(Tt){var Nt=null;return F(this.documentElement,function(gt){if(gt.nodeType==et&>.getAttribute("id")==Tt)return Nt=gt,!0}),Nt},createElement:function(Tt){var Nt=new dt;return Nt.ownerDocument=this,Nt.nodeName=Tt,Nt.tagName=Tt,Nt.childNodes=new C,(Nt.attributes=new v)._ownerElement=Nt,Nt},createDocumentFragment:function(){var Tt=new W;return Tt.ownerDocument=this,Tt.childNodes=new C,Tt},createTextNode:function(Tt){var Nt=new Mt;return Nt.ownerDocument=this,Nt.appendData(Tt),Nt},createComment:function(Tt){var Nt=new I;return Nt.ownerDocument=this,Nt.appendData(Tt),Nt},createCDATASection:function(Tt){var Nt=new Y;return Nt.ownerDocument=this,Nt.appendData(Tt),Nt},createProcessingInstruction:function(Tt,Nt){var gt=new lt;return gt.ownerDocument=this,gt.tagName=gt.target=Tt,gt.nodeValue=gt.data=Nt,gt},createAttribute:function(Tt){var Nt=new mt;return Nt.ownerDocument=this,Nt.name=Tt,Nt.nodeName=Tt,Nt.localName=Tt,Nt.specified=!0,Nt},createEntityReference:function(Tt){var Nt=new P;return Nt.ownerDocument=this,Nt.nodeName=Tt,Nt},createElementNS:function(Tt,Nt){var gt=new dt,wt=Nt.split(":"),Rt=gt.attributes=new v;return gt.childNodes=new C,gt.ownerDocument=this,gt.nodeName=Nt,gt.tagName=Nt,gt.namespaceURI=Tt,wt.length==2?(gt.prefix=wt[0],gt.localName=wt[1]):gt.localName=Nt,Rt._ownerElement=gt,gt},createAttributeNS:function(Tt,Nt){var gt=new mt,wt=Nt.split(":");return gt.ownerDocument=this,gt.nodeName=Nt,gt.name=Nt,gt.namespaceURI=Tt,gt.specified=!0,wt.length==2?(gt.prefix=wt[0],gt.localName=wt[1]):gt.localName=Nt,gt}},R(T,f),dt.prototype={nodeType:et,hasAttribute:function(Tt){return this.getAttributeNode(Tt)!=null},getAttribute:function(Tt){var Nt=this.getAttributeNode(Tt);return Nt&&Nt.value||""},getAttributeNode:function(Tt){return this.attributes.getNamedItem(Tt)},setAttribute:function(Tt,Nt){var gt=this.ownerDocument.createAttribute(Tt);gt.value=gt.nodeValue=""+Nt,this.setAttributeNode(gt)},removeAttribute:function(Tt){var Nt=this.getAttributeNode(Tt);Nt&&this.removeAttributeNode(Nt)},appendChild:function(Tt){return Tt.nodeType===d?this.insertBefore(Tt,null):function(Nt,gt){var wt=gt.parentNode;if(wt){var Rt=Nt.lastChild;wt.removeChild(gt),Rt=Nt.lastChild}return Rt=Nt.lastChild,gt.parentNode=Nt,gt.previousSibling=Rt,gt.nextSibling=null,Rt?Rt.nextSibling=gt:Nt.firstChild=gt,Nt.lastChild=gt,Q(Nt.ownerDocument,Nt,gt),gt}(this,Tt)},setAttributeNode:function(Tt){return this.attributes.setNamedItem(Tt)},setAttributeNodeNS:function(Tt){return this.attributes.setNamedItemNS(Tt)},removeAttributeNode:function(Tt){return this.attributes.removeNamedItem(Tt.nodeName)},removeAttributeNS:function(Tt,Nt){var gt=this.getAttributeNodeNS(Tt,Nt);gt&&this.removeAttributeNode(gt)},hasAttributeNS:function(Tt,Nt){return this.getAttributeNodeNS(Tt,Nt)!=null},getAttributeNS:function(Tt,Nt){var gt=this.getAttributeNodeNS(Tt,Nt);return gt&>.value||""},setAttributeNS:function(Tt,Nt,gt){var wt=this.ownerDocument.createAttributeNS(Tt,Nt);wt.value=wt.nodeValue=""+gt,this.setAttributeNode(wt)},getAttributeNodeNS:function(Tt,Nt){return this.attributes.getNamedItemNS(Tt,Nt)},getElementsByTagName:function(Tt){return new E(this,function(Nt){var gt=[];return F(Nt,function(wt){wt===Nt||wt.nodeType!=et||Tt!=="*"&&wt.tagName!=Tt||gt.push(wt)}),gt})},getElementsByTagNameNS:function(Tt,Nt){return new E(this,function(gt){var wt=[];return F(gt,function(Rt){Rt===gt||Rt.nodeType!==et||Tt!=="*"&&Rt.namespaceURI!==Tt||Nt!=="*"&&Rt.localName!=Nt||wt.push(Rt)}),wt})}},T.prototype.getElementsByTagName=dt.prototype.getElementsByTagName,T.prototype.getElementsByTagNameNS=dt.prototype.getElementsByTagNameNS,R(dt,f),mt.prototype.nodeType=K,R(mt,f),Et.prototype={data:"",substringData:function(Tt,Nt){return this.data.substring(Tt,Tt+Nt)},appendData:function(Tt){Tt=this.data+Tt,this.nodeValue=this.data=Tt,this.length=Tt.length},insertData:function(Tt,Nt){this.replaceData(Tt,0,Nt)},appendChild:function(Tt){throw new Error(s[w])},deleteData:function(Tt,Nt){this.replaceData(Tt,Nt,"")},replaceData:function(Tt,Nt,gt){gt=this.data.substring(0,Tt)+gt+this.data.substring(Tt+Nt),this.nodeValue=this.data=gt,this.length=gt.length}},R(Et,f),Mt.prototype={nodeName:"#text",nodeType:J,splitText:function(Tt){var Nt=this.data,gt=Nt.substring(Tt);Nt=Nt.substring(0,Tt),this.data=this.nodeValue=Nt,this.length=Nt.length;var wt=this.ownerDocument.createTextNode(gt);return this.parentNode&&this.parentNode.insertBefore(wt,this.nextSibling),wt}},R(Mt,Et),I.prototype={nodeName:"#comment",nodeType:X},R(I,Et),Y.prototype={nodeName:"#cdata-section",nodeType:q},R(Y,Et),rt.prototype.nodeType=U,R(rt,f),ot.prototype.nodeType=L,R(ot,f),D.prototype.nodeType=tt,R(D,f),P.prototype.nodeType=Z,R(P,f),W.prototype.nodeName="#document-fragment",W.prototype.nodeType=d,R(W,f),lt.prototype.nodeType=H,R(lt,f),it.prototype.serializeToString=function(Tt,Nt,gt){return vt.call(Tt,Nt,gt)},f.prototype.toString=vt;try{Object.defineProperty&&(Object.defineProperty(E.prototype,"length",{get:function(){return S(this),this.$$length}}),Object.defineProperty(f.prototype,"textContent",{get:function(){return function Tt(Nt){switch(Nt.nodeType){case et:case d:var gt=[];for(Nt=Nt.firstChild;Nt;)Nt.nodeType!==7&&Nt.nodeType!==8&>.push(Tt(Nt)),Nt=Nt.nextSibling;return gt.join("");default:return Nt.nodeValue}}(this)},set:function(Tt){switch(this.nodeType){case et:case d:for(;this.firstChild;)this.removeChild(this.firstChild);(Tt||String(Tt))&&this.appendChild(this.ownerDocument.createTextNode(Tt));break;default:this.data=Tt,this.value=Tt,this.nodeValue=Tt}}}),Ct=function(Tt,Nt,gt){Tt["$$"+Nt]=gt})}catch(Tt){}m.DOMImplementation=l,m.XMLSerializer=it},function(_t,m,y){"use strict";var R;(R=function(j){return y(9),{addDays:function(et,K){var J=new Date(et);return J.setDate(J.getDate()+K),String(J)},convertMillisecondsToDays:function(et){return Math.ceil(et/864e5)},diffDays:function(et,K){return Math.ceil(Math.abs((new Date(et).getTime()-new Date(K).getTime())/864e5))},getLocaleDateFormatter:function(et){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"day",J=localeTimeMap[K],q=new Intl.DateTimeFormat(et,J);return function(Z){return q.format(Z)}}}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.colors=m.bullet=m.brush=m.step=m.heatmap=m.stackedBar=m.groupedRow=m.groupedBar=m.scatterPlot=m.stackedArea=m.sparkline=m.row=m.miniTooltip=m.tooltip=m.loadingStates=m.line=m.legend=m.donut=m.bar=void 0;var R=u(y(90)),j=u(y(101)),et=u(y(102)),K=u(y(103)),J=u(y(18)),q=u(y(104)),Z=u(y(106)),tt=u(y(107)),H=u(y(108)),X=u(y(109)),B=u(y(110)),U=u(y(111)),d=u(y(112)),L=u(y(113)),M=u(y(114)),s=u(y(115)),w=u(y(116)),_=u(y(117)),o=u(y(10));function u(C){return C&&C.__esModule?C:{default:C}}m.bar=R.default,m.donut=j.default,m.legend=et.default,m.line=K.default,m.loadingStates=J.default,m.tooltip=Z.default,m.miniTooltip=tt.default,m.row=q.default,m.sparkline=H.default,m.stackedArea=X.default,m.scatterPlot=B.default,m.groupedBar=U.default,m.groupedRow=d.default,m.stackedBar=L.default,m.heatmap=M.default,m.step=s.default,m.brush=w.default,m.bullet=_.default,m.colors=o.default},,function(_t,m,y){"use strict";var R,j=Object.assign||function(et){for(var K=1;K]*>/,""),(u=new ActiveXObject("Microsoft.XMLDOM")).async="false",u.loadXML(o),u)},s.Property=function(o,u){this.name=o,this.value=u},s.Property.prototype.getValue=function(){return this.value},s.Property.prototype.hasValue=function(){return this.value!=null&&this.value!=""},s.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var o=parseFloat(this.value);return(this.value+"").match(/%$/)&&(o/=100),o},s.Property.prototype.valueOrDefault=function(o){return this.hasValue()?this.value:o},s.Property.prototype.numValueOrDefault=function(o){return this.hasValue()?this.numValue():o},s.Property.prototype.addOpacity=function(o){var u=this.value;if(o.value!=null&&o.value!=""&&typeof this.value=="string"){var C=new R(this.value);C.ok&&(u="rgba("+C.r+", "+C.g+", "+C.b+", "+o.numValue()+")")}return new s.Property(this.name,u)},s.Property.prototype.getDefinition=function(){var o=this.value.match(/#([^\)'"]+)/);return o&&(o=o[1]),o||(o=this.value),s.Definitions[o]},s.Property.prototype.isUrlDefinition=function(){return this.value.indexOf("url(")==0},s.Property.prototype.getFillStyleDefinition=function(o,u){var C=this.getDefinition();if(C!=null&&C.createGradient)return C.createGradient(s.ctx,o,u);if(C!=null&&C.createPattern){if(C.getHrefAttribute().hasValue()){var E=C.attribute("patternTransform");C=C.getHrefAttribute().getDefinition(),E.hasValue()&&(C.attribute("patternTransform",!0).value=E.value)}return C.createPattern(s.ctx,o)}return null},s.Property.prototype.getDPI=function(o){return 96},s.Property.prototype.getEM=function(o){var u=12,C=new s.Property("fontSize",s.Font.Parse(s.ctx.font).fontSize);return C.hasValue()&&(u=C.toPixels(o)),u},s.Property.prototype.getUnits=function(){return(this.value+"").replace(/[0-9\.\-]/g,"")},s.Property.prototype.toPixels=function(o,u){if(!this.hasValue())return 0;var C=this.value+"";if(C.match(/em$/))return this.numValue()*this.getEM(o);if(C.match(/ex$/))return this.numValue()*this.getEM(o)/2;if(C.match(/px$/))return this.numValue();if(C.match(/pt$/))return this.numValue()*this.getDPI(o)*(1/72);if(C.match(/pc$/))return 15*this.numValue();if(C.match(/cm$/))return this.numValue()*this.getDPI(o)/2.54;if(C.match(/mm$/))return this.numValue()*this.getDPI(o)/25.4;if(C.match(/in$/))return this.numValue()*this.getDPI(o);if(C.match(/%$/))return this.numValue()*s.ViewPort.ComputeSize(o);var E=this.numValue();return u&&E<1?E*s.ViewPort.ComputeSize(o):E},s.Property.prototype.toMilliseconds=function(){if(!this.hasValue())return 0;var o=this.value+"";return o.match(/s$/)?1e3*this.numValue():(o.match(/ms$/),this.numValue())},s.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var o=this.value+"";return o.match(/deg$/)?this.numValue()*(Math.PI/180):o.match(/grad$/)?this.numValue()*(Math.PI/200):o.match(/rad$/)?this.numValue():this.numValue()*(Math.PI/180)};var _={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};return s.Property.prototype.toTextBaseline=function(){return this.hasValue()?_[this.value]:null},s.Font=new function(){this.Styles="normal|italic|oblique|inherit",this.Variants="normal|small-caps|inherit",this.Weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",this.CreateFont=function(u,C,E,S,v,g){var x=g!=null?this.Parse(g):this.CreateFont("","","","","",s.ctx.font);return{fontFamily:v||x.fontFamily,fontSize:S||x.fontSize,fontStyle:u||x.fontStyle,fontWeight:E||x.fontWeight,fontVariant:C||x.fontVariant,toString:function(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var o=this;this.Parse=function(u){for(var C={},E=s.trim(s.compressSpaces(u||"")).split(" "),S={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1},v="",g=0;gthis.x2&&(this.x2=S)),v!=null&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=v,this.y2=v),vthis.y2&&(this.y2=v))},this.addX=function(S){this.addPoint(S,null)},this.addY=function(S){this.addPoint(null,S)},this.addBoundingBox=function(S){this.addPoint(S.x1,S.y1),this.addPoint(S.x2,S.y2)},this.addQuadraticCurve=function(S,v,g,x,p,l){var f=S+.6666666666666666*(g-S),b=v+2/3*(x-v),F=f+1/3*(p-S),T=b+1/3*(l-v);this.addBezierCurve(S,v,f,F,b,T,p,l)},this.addBezierCurve=function(S,v,g,x,p,l,f,b){var F=[S,v],T=[g,x],k=[p,l],Q=[f,b];this.addPoint(F[0],F[1]),this.addPoint(Q[0],Q[1]);for(var st=0;st<=1;st++){var nt=function(ot){return Math.pow(1-ot,3)*F[st]+3*Math.pow(1-ot,2)*ot*T[st]+3*(1-ot)*Math.pow(ot,2)*k[st]+Math.pow(ot,3)*Q[st]},dt=6*F[st]-12*T[st]+6*k[st],mt=-3*F[st]+9*T[st]-9*k[st]+3*Q[st],Et=3*T[st]-3*F[st];if(mt!=0){var Mt=Math.pow(dt,2)-4*Et*mt;if(!(Mt<0)){var I=(-dt+Math.sqrt(Mt))/(2*mt);0=0;l--)this.transforms[l].unapply(p)},this.applyToPoint=function(p){for(var l=0;lT&&(this.styles[F]=f[F],this.stylesSpecificity[F]=b)}}},o!=null&&o.nodeType==1){for(var u=0;u0&&u.push([this.points[this.points.length-1],u[u.length-1][1]]),u}},s.Element.polyline.prototype=new s.Element.PathElementBase,s.Element.polygon=function(o){this.base=s.Element.polyline,this.base(o),this.basePath=this.path,this.path=function(u){var C=this.basePath(u);return u!=null&&(u.lineTo(this.points[0].x,this.points[0].y),u.closePath()),C}},s.Element.polygon.prototype=new s.Element.polyline,s.Element.path=function(o){this.base=s.Element.PathElementBase,this.base(o);var u=this.attribute("d").value;u=u.replace(/,/gm," ");for(var C=0;C<2;C++)u=u.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2");for(u=(u=u.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2")).replace(/([0-9])([+\-])/gm,"$1 $2"),C=0;C<2;C++)u=u.replace(/(\.[0-9]*)(\.)/gm,"$1 $2");u=u.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 "),u=s.compressSpaces(u),u=s.trim(u),this.PathParser=new function(E){this.tokens=E.split(" "),this.reset=function(){this.i=-1,this.command="",this.previousCommand="",this.start=new s.Point(0,0),this.control=new s.Point(0,0),this.current=new s.Point(0,0),this.points=[],this.angles=[]},this.isEnd=function(){return this.i>=this.tokens.length-1},this.isCommandOrEnd=function(){return!!this.isEnd()||this.tokens[this.i+1].match(/^[A-Za-z]$/)!=null},this.isRelativeCommand=function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0}return!1},this.getToken=function(){return this.i++,this.tokens[this.i]},this.getScalar=function(){return parseFloat(this.getToken())},this.nextCommand=function(){this.previousCommand=this.command,this.command=this.getToken()},this.getPoint=function(){var S=new s.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(S)},this.getAsControlPoint=function(){var S=this.getPoint();return this.control=S,S},this.getAsCurrentPoint=function(){var S=this.getPoint();return this.current=S,S},this.getReflectedControlPoint=function(){return this.previousCommand.toLowerCase()!="c"&&this.previousCommand.toLowerCase()!="s"&&this.previousCommand.toLowerCase()!="q"&&this.previousCommand.toLowerCase()!="t"?this.current:new s.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y)},this.makeAbsolute=function(S){return this.isRelativeCommand()&&(S.x+=this.current.x,S.y+=this.current.y),S},this.addMarker=function(S,v,g){g!=null&&this.angles.length>0&&this.angles[this.angles.length-1]==null&&(this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(g)),this.addMarkerAngle(S,v==null?null:v.angleTo(S))},this.addMarkerAngle=function(S,v){this.points.push(S),this.angles.push(v)},this.getMarkerPoints=function(){return this.points},this.getMarkerAngles=function(){for(var S=0;S1&&(T*=Math.sqrt(mt),k*=Math.sqrt(mt));var Et=(st==nt?-1:1)*Math.sqrt((Math.pow(T,2)*Math.pow(k,2)-Math.pow(T,2)*Math.pow(dt.y,2)-Math.pow(k,2)*Math.pow(dt.x,2))/(Math.pow(T,2)*Math.pow(dt.y,2)+Math.pow(k,2)*Math.pow(dt.x,2)));isNaN(Et)&&(Et=0);var Mt=new s.Point(Et*T*dt.y/k,Et*-k*dt.x/T),I=new s.Point((l.x+F.x)/2+Math.cos(Q)*Mt.x-Math.sin(Q)*Mt.y,(l.y+F.y)/2+Math.sin(Q)*Mt.x+Math.cos(Q)*Mt.y),Y=function(Tt){return Math.sqrt(Math.pow(Tt[0],2)+Math.pow(Tt[1],2))},rt=function(Tt,Nt){return(Tt[0]*Nt[0]+Tt[1]*Nt[1])/(Y(Tt)*Y(Nt))},ot=function(Tt,Nt){return(Tt[0]*Nt[1]=1&&(lt=0);var it=1-nt?1:-1,vt=D+it*(lt/2),pt=new s.Point(I.x+T*Math.cos(vt),I.y+k*Math.sin(vt));if(S.addMarkerAngle(pt,vt-it*Math.PI/2),S.addMarkerAngle(F,vt-it*Math.PI),v.addPoint(F.x,F.y),E!=null){rt=T>k?T:k;var xt=T>k?1:T/k,Ct=T>k?k/T:1;E.translate(I.x,I.y),E.rotate(Q),E.scale(xt,Ct),E.arc(0,0,rt,D,D+lt,1-nt),E.scale(1/xt,1/Ct),E.rotate(-Q),E.translate(-I.x,-I.y)}}break;case"Z":case"z":E!=null&&E.closePath(),S.current=S.start}return v},this.getMarkers=function(){for(var E=this.PathParser.getMarkerPoints(),S=this.PathParser.getMarkerAngles(),v=[],g=0;g1&&(this.offset=1);var u=this.style("stop-color",!0);u.value==""&&(u.value="#000"),this.style("stop-opacity").hasValue()&&(u=u.addOpacity(this.style("stop-opacity"))),this.color=u.value},s.Element.stop.prototype=new s.Element.ElementBase,s.Element.AnimateBase=function(o){this.base=s.Element.ElementBase,this.base(o),s.Animations.push(this),this.duration=0,this.begin=this.attribute("begin").toMilliseconds(),this.maxDuration=this.begin+this.attribute("dur").toMilliseconds(),this.getProperty=function(){var u=this.attribute("attributeType").value,C=this.attribute("attributeName").value;return u=="CSS"?this.parent.style(C,!0):this.parent.attribute(C,!0)},this.initialValue=null,this.initialUnits="",this.removed=!1,this.calcValue=function(){return""},this.update=function(u){if(this.initialValue==null&&(this.initialValue=this.getProperty().value,this.initialUnits=this.getProperty().getUnits()),this.duration>this.maxDuration){if(this.attribute("repeatCount").value=="indefinite"||this.attribute("repeatDur").value=="indefinite")this.duration=0;else if(this.attribute("fill").valueOrDefault("remove")!="freeze"||this.frozen){if(this.attribute("fill").valueOrDefault("remove")=="remove"&&!this.removed)return this.removed=!0,this.getProperty().value=this.parent.animationFrozen?this.parent.animationFrozenValue:this.initialValue,!0}else this.frozen=!0,this.parent.animationFrozen=!0,this.parent.animationFrozenValue=this.getProperty().value;return!1}this.duration=this.duration+u;var C=!1;if(this.beginE&&x.attribute("x").hasValue())break;v+=x.measureTextRecursive(u)}return-1*(S=="end"?v:v/2)}return 0},this.renderChild=function(u,C,E,S){var v=E.children[S];for(v.attribute("x").hasValue()?(v.x=v.attribute("x").toPixels("x")+C.getAnchorDelta(u,E,S),v.attribute("dx").hasValue()&&(v.x+=v.attribute("dx").toPixels("x"))):(v.attribute("dx").hasValue()&&(C.x+=v.attribute("dx").toPixels("x")),v.x=C.x),C.x=v.x+v.measureText(u),v.attribute("y").hasValue()?(v.y=v.attribute("y").toPixels("y"),v.attribute("dy").hasValue()&&(v.y+=v.attribute("dy").toPixels("y"))):(v.attribute("dy").hasValue()&&(C.y+=v.attribute("dy").toPixels("y")),v.y=C.y),C.y=v.y,v.render(u),S=0;S0&&C[E-1]!=" "&&E0&&C[E-1]!=" "&&(E==C.length-1||C[E+1]==" ")&&(g="initial"),u.glyphs[S]!==void 0&&(v=u.glyphs[S][g])==null&&u.glyphs[S].type=="glyph"&&(v=u.glyphs[S])}else v=u.glyphs[S];return v==null&&(v=u.missingGlyph),v},this.renderChildren=function(u){var C=this.parent.style("font-family").getDefinition();if(C==null)u.fillStyle!=""&&u.fillText(s.compressSpaces(this.getText()),this.x,this.y),u.strokeStyle!=""&&u.strokeText(s.compressSpaces(this.getText()),this.x,this.y);else{var E=this.parent.style("font-size").numValueOrDefault(s.Font.Parse(s.ctx.font).fontSize),S=this.parent.style("font-style").valueOrDefault(s.Font.Parse(s.ctx.font).fontStyle),v=this.getText();C.isRTL&&(v=v.split("").reverse().join(""));for(var g=s.ToNumberArray(this.parent.attribute("dx").value),x=0;x0?"":this.text}},s.Element.tspan.prototype=new s.Element.TextElementBase,s.Element.tref=function(o){this.base=s.Element.TextElementBase,this.base(o),this.getText=function(){var u=this.getHrefAttribute().getDefinition();if(u!=null)return u.children[0].getText()}},s.Element.tref.prototype=new s.Element.TextElementBase,s.Element.a=function(o){this.base=s.Element.TextElementBase,this.base(o),this.hasText=o.childNodes.length>0;for(var u=0;u0){var S=new s.Element.g;S.children=this.children,S.parent=this,S.render(C)}},this.onclick=function(){window.open(this.getHrefAttribute().value)},this.onmousemove=function(){s.ctx.canvas.style.cursor="pointer"}},s.Element.a.prototype=new s.Element.TextElementBase,s.Element.image=function(o){this.base=s.Element.RenderedElementBase,this.base(o);var u=this.getHrefAttribute().value;if(u!=""){var C=u.match(/\.svg$/);if(s.Images.push(this),this.loaded=!1,C)this.img=s.ajax(u),this.loaded=!0;else{this.img=document.createElement("img"),s.opts.useCORS==1&&(this.img.crossOrigin="Anonymous");var E=this;this.img.onload=function(){E.loaded=!0},this.img.onerror=function(){s.log('ERROR: image "'+u+'" not found'),E.loaded=!0},this.img.src=u}this.renderChildren=function(S){var v=this.attribute("x").toPixels("x"),g=this.attribute("y").toPixels("y"),x=this.attribute("width").toPixels("x"),p=this.attribute("height").toPixels("y");x!=0&&p!=0&&(S.save(),C?S.drawSvg(this.img,v,g,x,p):(S.translate(v,g),s.AspectRatio(S,this.attribute("preserveAspectRatio").value,x,this.img.width,p,this.img.height,0,0),S.drawImage(this.img,0,0)),S.restore())},this.getBoundingBox=function(){var S=this.attribute("x").toPixels("x"),v=this.attribute("y").toPixels("y"),g=this.attribute("width").toPixels("x"),x=this.attribute("height").toPixels("y");return new s.BoundingBox(S,v,S+g,v+x)}}},s.Element.image.prototype=new s.Element.RenderedElementBase,s.Element.g=function(o){this.base=s.Element.RenderedElementBase,this.base(o),this.getBoundingBox=function(){for(var u=new s.BoundingBox,C=0;C0)for(var nt=Q[st].indexOf("url"),dt=Q[st].indexOf(")",nt),mt=Q[st].substr(nt+5,dt-nt-6),Et=s.parseXml(s.ajax(mt)).getElementsByTagName("font"),Mt=0;Mt~\.\[:]+)/g,0),Z(/(\.[^\s\+>~\.\[:]+)/g,1),Z(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,2),Z(/(:[\w-]+\([^\)]*\))/gi,1),Z(/(:[^\s\+>~\.\[:]+)/g,1),J=(J=J.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," "),Z(/([^\s\+>~\.\[:]+)/g,2),q.join("")}_t.exports=et},function(_t,m){_t.exports=function(y){this.ok=!1,this.alpha=1,y.charAt(0)=="#"&&(y=y.substr(1,6)),y=(y=y.replace(/ /g,"")).toLowerCase();var R={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};y=R[y]||y;for(var j=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(tt){return[parseInt(tt[1]),parseInt(tt[2]),parseInt(tt[3]),parseFloat(tt[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(tt){return[parseInt(tt[1]),parseInt(tt[2]),parseInt(tt[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(tt){return[parseInt(tt[1],16),parseInt(tt[2],16),parseInt(tt[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(tt){return[parseInt(tt[1]+tt[1],16),parseInt(tt[2]+tt[2],16),parseInt(tt[3]+tt[3],16)]}}],et=0;et3&&(this.alpha=Z[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var tt=this.r.toString(16),H=this.g.toString(16),X=this.b.toString(16);return tt.length==1&&(tt="0"+tt),H.length==1&&(H="0"+H),X.length==1&&(X="0"+X),"#"+tt+H+X},this.getHelpXML=function(){for(var tt=new Array,H=0;H "+M.toRGB()+" -> "+M.toHex());L.appendChild(s),L.appendChild(w),d.appendChild(L)}catch(_){}return d}}},function(_t,m){var y=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],R=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function j(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}_t.exports=function(et,K,J,q){if(!(isNaN(q)||q<1)){var Z,tt,H,X,B,U,d,L,M,s,w,_,o,u,C,E,S,v,g,x,p,l,f,b,F=(q|=0)+q+1,T=K-1,k=J-1,Q=q+1,st=Q*(Q+1)/2,nt=new j,dt=nt;for(H=1;H>Y,f!=0?(f=255/f,et[U]=(L*I>>Y)*f,et[U+1]=(M*I>>Y)*f,et[U+2]=(s*I>>Y)*f):et[U]=et[U+1]=et[U+2]=0,L-=_,M-=o,s-=u,w-=C,_-=Et.r,o-=Et.g,u-=Et.b,C-=Et.a,X=d+((X=Z+q+1)>Y,f>0?(f=255/f,et[X]=(L*I>>Y)*f,et[X+1]=(M*I>>Y)*f,et[X+2]=(s*I>>Y)*f):et[X]=et[X+1]=et[X+2]=0,L-=_,M-=o,s-=u,w-=C,_-=Et.r,o-=Et.g,u-=Et.b,C-=Et.a,X=Z+((X=tt+Q)=X+B||X?new java.lang.String(H,X,B)+"":H}function q(H,X){H.currentElement?H.currentElement.appendChild(X):H.doc.appendChild(X)}R.prototype.parseFromString=function(H,X){var B=this.options,U=new Z,d=B.domBuilder||new j,L=B.errorHandler,M=B.locator,s=B.xmlns||{},w={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return M&&d.setDocumentLocator(M),U.errorHandler=function(_,o,u){if(!_){if(o instanceof j)return o;_=o}var C={},E=_ instanceof Function;function S(v){var g=_[v];!g&&E&&(g=_.length==2?function(x){_(v,x)}:_),C[v]=g&&function(x){g("[xmldom "+v+"] "+x+K(u))}||function(){}}return u=u||{},S("warning"),S("error"),S("fatalError"),C}(L,d,M),U.domBuilder=B.domBuilder||d,/\/x?html?$/.test(X)&&(w.nbsp="\xA0",w.copy="\xA9",s[""]="http://www.w3.org/1999/xhtml"),s.xml=s.xml||"http://www.w3.org/XML/1998/namespace",H?U.parse(H,s,w):U.errorHandler.error("invalid doc source"),d.doc},j.prototype={startDocument:function(){this.doc=new tt().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(H,X,B,U){var d=this.doc,L=d.createElementNS(H,B||X),M=U.length;q(this,L),this.currentElement=L,this.locator&&et(this.locator,L);for(var s=0;s":switch(E){case 0:s.setTagName(L.slice(M,C));case 5:case 6:case 7:break;case 4:case 1:(v=L.slice(M,C)).slice(-1)==="/"&&(s.closed=!0,v=v.slice(0,-1));case 2:E===2&&(v=u),E==4?(o.warning('attribute "'+v+'" missed quot(")!!'),s.add(u,v.replace(/&#?\w+;/g,_),M)):(w[""]==="http://www.w3.org/1999/xhtml"&&v.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+v+'" missed value!! "'+v+'" instead!!'),s.add(v,v,M));break;case 3:throw new Error("attribute value missed!!")}return C;case"\x80":S=" ";default:if(S<=" ")switch(E){case 0:s.setTagName(L.slice(M,C)),E=6;break;case 1:u=L.slice(M,C),E=2;break;case 4:var v=L.slice(M,C).replace(/&#?\w+;/g,_);o.warning('attribute "'+v+'" missed quot(")!!'),s.add(u,v,M);case 5:E=6}else switch(E){case 2:s.tagName,w[""]==="http://www.w3.org/1999/xhtml"&&u.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead2!!'),s.add(u,u,M),M=C,E=1;break;case 5:o.warning('attribute space is required"'+u+'"!!');case 6:E=1,M=C;break;case 3:E=4,M=C;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}C++}}function q(L,M,s){for(var w=L.tagName,_=null,o=L.length;o--;){var u=L[o],C=u.qName,E=u.value;if((x=C.indexOf(":"))>0)var S=u.prefix=C.slice(0,x),v=C.slice(x+1),g=S==="xmlns"&&v;else v=C,S=null,g=C==="xmlns"&&"";u.localName=v,g!==!1&&(_==null&&(_={},H(s,s={})),s[g]=_[g]=E,u.uri="http://www.w3.org/2000/xmlns/",M.startPrefixMapping(g,E))}for(o=L.length;o--;)(S=(u=L[o]).prefix)&&(S==="xml"&&(u.uri="http://www.w3.org/XML/1998/namespace"),S!=="xmlns"&&(u.uri=s[S||""]));var x;(x=w.indexOf(":"))>0?(S=L.prefix=w.slice(0,x),v=L.localName=w.slice(x+1)):(S=null,v=L.localName=w);var p=L.uri=s[S||""];if(M.startElement(p,v,w,L),!L.closed)return L.currentNSMap=s,L.localNSMap=_,!0;if(M.endElement(p,v,w),_)for(S in _)M.endPrefixMapping(S)}function Z(L,M,s,w,_){if(/^(?:script|textarea)$/i.test(s)){var o=L.indexOf("",M),u=L.substring(M+1,o);if(/[&<]/.test(u))return/^script$/i.test(s)?(_.characters(u,0,u.length),o):(u=u.replace(/&#?\w+;/g,w),_.characters(u,0,u.length),o)}return M+1}function tt(L,M,s,w){var _=w[s];return _==null&&((_=L.lastIndexOf(""))",M+4))>M?(s.comment(L,M+4,_-M-4),_+3):(w.error("Unclosed comment"),-1):-1;default:if(L.substr(M+3,6)=="CDATA["){var _=L.indexOf("]]>",M+9);return s.startCDATA(),s.characters(L,M+9,_-M-9),s.endCDATA(),_+3}var o=function(g,x){var p,l=[],f=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(f.lastIndex=x,f.exec(g);p=f.exec(g);)if(l.push(p),p[1])return l}(L,M),u=o.length;if(u>1&&/!doctype/i.test(o[0][0])){var C=o[1][0],E=u>3&&/^public$/i.test(o[2][0])&&o[3][0],S=u>4&&o[4][0],v=o[u-1];return s.startDTD(C,E&&E.replace(/^(['"])(.*?)\1$/,"$2"),S&&S.replace(/^(['"])(.*?)\1$/,"$2")),s.endDTD(),v.index+v[0].length}}return-1}function B(L,M,s){var w=L.indexOf("?>",M);if(w){var _=L.substring(M,w).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return _?(_[0].length,s.processingInstruction(_[1],_[2]),w+2):-1}return-1}function U(L){}function d(L,M){return L.__proto__=M,L}et.prototype={parse:function(L,M,s){var w=this.domBuilder;w.startDocument(),H(M,M={}),function(_,o,u,C,E){function S(lt){var it=lt.slice(1,-1);return it in u?u[it]:it.charAt(0)==="#"?function(vt){if(vt>65535){var pt=55296+((vt-=65536)>>10),xt=56320+(1023&vt);return String.fromCharCode(pt,xt)}return String.fromCharCode(vt)}(parseInt(it.substr(1).replace("x","0x"))):(E.error("entity not found:"+lt),lt)}function v(lt){if(lt>T){var it=_.substring(T,lt).replace(/&#?\w+;/g,S);f&&g(T),C.characters(it,0,lt-T),T=lt}}function g(lt,it){for(;lt>=p&&(it=l.exec(_));)x=it.index,p=x+it[0].length,f.lineNumber++;f.columnNumber=lt-x+1}for(var x=0,p=0,l=/.*(?:\r\n?|\n)|.*$/g,f=C.locator,b=[{currentNSMap:o}],F={},T=0;;){try{var k=_.indexOf("<",T);if(k<0){if(!_.substr(T).match(/^\s*$/)){var Q=C.doc,st=Q.createTextNode(_.substr(T));Q.appendChild(st),C.currentElement=st}return}switch(k>T&&v(k),_.charAt(k+1)){case"/":var nt=_.indexOf(">",k+3),dt=_.substring(k+2,nt),mt=b.pop();nt<0?(dt=_.substring(k+2).replace(/[\s<].*/,""),E.error("end tag name: "+dt+" is not complete:"+mt.tagName),nt=k+1+dt.length):dt.match(/\sT?T=nt:v(Math.max(k,T)+1)}}(L,M,s,w,this.errorHandler),w.endDocument()}},U.prototype={setTagName:function(L){if(!j.test(L))throw new Error("invalid tagName:"+L);this.tagName=L},add:function(L,M,s){if(!j.test(L))throw new Error("invalid attribute:"+L);this[this.length++]={qName:L,value:M,offset:s}},length:0,getLocalName:function(L){return this[L].localName},getLocator:function(L){return this[L].locator},getQName:function(L){return this[L].qName},getURI:function(L){return this[L].uri},getValue:function(L){return this[L].value}},d({},d.prototype)instanceof d||(d=function(L,M){function s(){}for(M in s.prototype=M,s=new s,L)s[M]=L[M];return s}),m.XMLReader=et},function(_t,m,y){"use strict";var R,j,et;_t.exports=(R={BASE:!0,HEAD:!0,HTML:!0,META:!0,NOFRAME:!0,NOSCRIPT:!0,PARAM:!0,SCRIPT:!0,STYLE:!0,TITLE:!0},j=["A","ABBR","ADDRESS","AREA","ARTICLE","ASIDE","AUDIO","B","BASE","BDI","BDO","BLOCKQUOTE","BODY","BR","BUTTON","CANVAS","CAPTION","CENTER","CITE","CODE","COL","COLGROUP","COMMAND","DATALIST","DD","DEL","DETAILS","DFN","DIV","DL","DT","EM","EMBED","FIELDSET","FIGCAPTION","FIGURE","FONT","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEAD","HEADER","HGROUP","HR","HTML","I","IFRAME","IMG","INPUT","INS","KBD","LABEL","LEGEND","LI","LINK","MAP","MARK","MATH","MENU","META","METER","NAV","NOBR","NOSCRIPT","OBJECT","OL","OPTION","OPTGROUP","OUTPUT","P","PARAM","PRE","PROGRESS","Q","RP","RT","RUBY","S","SAMP","SCRIPT","SECTION","SELECT","SMALL","SOURCE","SPAN","STRONG","STYLE","SUB","SUMMARY","SUP","SVG","TABLE","TBODY","TD","TEXTAREA","TFOOT","TH","THEAD","TIME","TITLE","TR","TRACK","U","UL","VAR","VIDEO","WBR"],et=function(K){var J={},q=document.body.appendChild(document.createElement(K)),Z=window.getComputedStyle(q);return[].forEach.call(Z,function(tt){J[tt]=Z[tt]}),document.body.removeChild(q),J},{initializeSerializer:function(){var K={};return[].forEach.call(j,function(J){R[J]||(K[J]=et(J))}),function(J){var q,Z=[],tt=void 0,H=void 0,X=void 0;if(J&&J.nodeType===Node.ELEMENT_NODE)return Z=[],tt=J.querySelectorAll("*"),[].forEach.call(tt,function(B,U){var d;R[B.tagName]||(H=window.getComputedStyle(B),d=(d=B.tagName).toUpperCase(),K[d]||(K[d]=et(d)),X=K[d],Z[U]=B.style.cssText,[].forEach.call(H,function(L){H[L]!==X[L]&&(B.style[L]=H[L])}))}),q=new XMLSerializer().serializeToString(J),tt=[].map.call(tt,function(B,U){return B.style.cssText=Z[U],B}),q}}})},function(_t,m,y){(function(R,j){var et;/*! http://mths.be/base64 v0.1.0 by @mathias | MIT license */(function(K){var J=m,q=(R&&R.exports,typeof j=="object"&&j);q.global!==q&&q.window;var Z=function(U){this.message=U};(Z.prototype=new Error).name="InvalidCharacterError";var tt=function(U){throw new Z(U)},H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",X=/[\t\n\f\r ]/g,B={encode:function(U){U=String(U),/[^\0-\xFF]/.test(U)&&tt("The string to be encoded contains characters outside of the Latin1 range.");for(var d,L,M,s,w=U.length%3,_="",o=-1,u=U.length-w;++o>18&63)+H.charAt(s>>12&63)+H.charAt(s>>6&63)+H.charAt(63&s);return w==2?(d=U.charCodeAt(o)<<8,L=U.charCodeAt(++o),_+=H.charAt((s=d+L)>>10)+H.charAt(s>>4&63)+H.charAt(s<<2&63)+"="):w==1&&(s=U.charCodeAt(o),_+=H.charAt(s>>2)+H.charAt(s<<4&63)+"=="),_},decode:function(U){var d=(U=String(U).replace(X,"")).length;d%4==0&&(d=(U=U.replace(/==?$/,"")).length),(d%4==1||/[^+a-zA-Z0-9/]/.test(U))&&tt("Invalid character: the string to be decoded is not correctly encoded.");for(var L,M,s=0,w="",_=-1;++_>(-2*s&6)));return w},version:"0.1.0"};(et=function(){return B}.call(m,y,m,R))===void 0||(R.exports=et)})()}).call(this,y(98)(_t),y(99))},function(_t,m){_t.exports=function(y){return y.webpackPolyfill||(y.deprecate=function(){},y.paths=[],y.children||(y.children=[]),Object.defineProperty(y,"loaded",{enumerable:!0,get:function(){return y.l}}),Object.defineProperty(y,"id",{enumerable:!0,get:function(){return y.i}}),y.webpackPolyfill=1),y}},function(_t,m){var y;y=function(){return this}();try{y=y||new Function("return this")()}catch(R){typeof window=="object"&&(y=window)}_t.exports=y},function(_t,m,y){"use strict";var R,j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et};(R=function(et){var K=y(9).formatDefaultLocale,J=["decimal","thousands","grouping","currency"];return{setDefaultLocale:function(q){if(function(Z){return(Z===void 0?"undefined":j(Z))=="object"&&J.every(function(tt){return Z.hasOwnProperty(tt)})}(q))return K(q);throw new Error("Please pass in a valid locale object definition")}}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,j=Object.assign||function(et){for(var K=1;K2&&arguments[2]!==void 0?arguments[2]:0;H.select(Wt).transition().delay(de).attrTween("d",function(xe){var be=q.interpolate(xe.outerRadius,le);return function(Ye){return xe.outerRadius=be(Ye),f(xe)}})}function Zt(Wt){var le=void 0;return Wt.innerRadius=0,le=q.interpolate({startAngle:0,endAngle:0},Wt),function(de){return f(le(de))}}function ne(Wt,le){var de=g/5;B.wrapText.call(null,0,de,le,Wt.node())}return xt.centeredTextFunction=function(Wt){return arguments.length?(D=Wt,this):D},xt.colorSchema=function(Wt){return arguments.length?(ot=Wt,this):ot},xt.emptyDataConfig=function(Wt){return arguments.length?(Mt=Wt,this):Mt},xt.exportChart=function(Wt,le){X.call(xt,F,Wt,le)},xt.externalRadius=function(Wt){return arguments.length?(g=Wt,this):g},xt.hasHoverAnimation=function(Wt){return arguments.length?(dt=Wt,this):dt},xt.hasFixedHighlightedSlice=function(Wt){return arguments.length?(nt=Wt,this):nt},xt.hasLastHoverSliceHighlighted=function(Wt){return arguments.length?(mt=Wt,this):mt},xt.height=function(Wt){return arguments.length?(_=Wt,this):_},xt.highlightSliceById=function(Wt){return arguments.length?(Q=Wt,this):Q},xt.internalRadius=function(Wt){return arguments.length?(x=Wt,this):x},xt.isAnimated=function(Wt){return arguments.length?(T=Wt,this):T},xt.loadingState=function(Wt){return arguments.length?(o=Wt,this):o},xt.margin=function(Wt){return arguments.length?(s=j({},s,Wt),this):s},xt.numberFormat=function(Wt){return arguments.length?(Y=Wt,this):Y},xt.on=function(){var Wt=pt.on.apply(pt,arguments);return Wt===pt?xt:Wt},xt.orderingFunction=function(Wt){return arguments.length?(lt=Wt,this):lt},xt.percentageFormat=function(Wt){return arguments.length?(I=Wt,this):I},xt.radiusHoverOffset=function(Wt){return arguments.length?(C=Wt,this):C},xt.width=function(Wt){return arguments.length?(w=Wt,this):w},xt}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,j=Object.assign||function(et){for(var K=1;K0&&b.select("g.legend-container-group").attr("transform","translate("+ot+",0)")):function(){b.select(".legend-group").selectAll("g").remove(),(x=b.select(".legend-group").selectAll("g.legend-line").data(f)).enter().append("g").classed("legend-line",!0).append("g").classed("legend-entry",!0).attr("data-item",C).attr("transform",function(W,lt){return"translate("+(U+Q())+","+(lt+1)*(l/(f.length+1))+")"}).merge(x).append("circle").classed("legend-circle",!0).attr("cx",U/2).attr("cy",-5).attr("r",U/2).style("fill",v).style("stroke-width",1),b.select(".legend-group").selectAll("g.legend-line").selectAll("g.legend-entry").append("text").classed("legend-entry-name",!0).text(E).attr("x",Q()).style("font-size","12px").style("letter-spacing","0.5px"),_?b.select(".legend-group").selectAll("g.legend-line").selectAll("g.legend-entry").append("text").classed("legend-entry-value",!0).text(S).attr("x",p-40).style("font-size","12px").style("letter-spacing","0.8px").style("text-anchor","end").style("startOffset","100%"):function(){var W=b.select("g.legend-container-group").node().getBoundingClientRect().width,lt=X-W,it=lt/2-W/2;lt>0&&b.select("g.legend-container-group").attr("transform","translate("+it+",0)")}(),b.select(".legend-group").selectAll("g.legend-line").exit().transition().style("opacity",0).remove()}(),w&&(T(),k(w))})}function T(){b.select(".legend-group").selectAll("g.legend-entry").classed("is-faded",!1)}function k(st){var nt=b.select('[data-item="'+st+'"]');nt.nodes().length&&(b.select(".legend-group").selectAll("g.legend-entry").classed("is-faded",!0),nt.classed("is-faded",!1))}function Q(){return d*U}return F.clearHighlight=function(){T()},F.colorSchema=function(st){return arguments.length?(u=st,this):u},F.height=function(st){return arguments.length?(B=st,this):B},F.highlight=function(st){T(),k(st)},F.highlightEntryById=function(st){return arguments.length?(w=st,this):w},F.isHorizontal=function(st){return arguments.length?(s=st,this):s},F.margin=function(st){return arguments.length?(H=j({},H,st),this):H},F.marginRatio=function(st){return arguments.length?(d=st,this):d},F.markerSize=function(st){return arguments.length?(U=st,this):U},F.numberFormat=function(st){return arguments.length?(L=st,this):L},F.unit=function(st){return arguments.length?(M=st,this):M},F.width=function(st){return arguments.length?(X=st,this):X},F}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,j=function(J,q){if(Array.isArray(J))return J;if(Symbol.iterator in Object(J))return function(Z,tt){var H=[],X=!0,B=!1,U=void 0;try{for(var d,L=Z[Symbol.iterator]();!(X=(d=L.next()).done)&&(H.push(d.value),!tt||H.length!==tt);X=!0);}catch(M){B=!0,U=M}finally{try{!X&&L.return&&L.return()}finally{if(B)throw U}}return H}(J,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},et=Object.assign||function(J){for(var q=1;q=0||Object.prototype.hasOwnProperty.call(si,Bi)&&(Sr[Bi]=si[Bi]);return Sr}(ar,["dates"]),hi=Dn.map(function(si){return{date:new Date(si[Ye]),value:+si[tn]}});return Rr.push(et({dates:hi},Nr)),Rr},[]),dataByDate:gr,dataRange:er}}(bn);de=nn.dataByTopic,xe=nn.dataByDate,be=nn.dataRange;var fn,wn,vn,cr=jt?300:0;Mt=k-T.left-T.right-cr,I=Q-T.top-T.bottom,function(){var Jn=q.min(de,function(ar){var Dn=ar.dates;return q.min(Dn,ge)}),dr=q.max(de,function(ar){var Dn=ar.dates;return q.max(Dn,ge)}),gr=q.max(de,function(ar){var Dn=ar.dates;return q.max(Dn,Ie)}),er=q.min(de,function(ar){var Dn=ar.dates;return q.min(Dn,Ie)}),Dr=er<0?er:0;Y=U.scaleTime().domain([Jn,dr]).rangeRound([0,Mt]),rt=U.scaleLinear().domain([Dr,Math.abs(gr)]).rangeRound([I,0]).nice();var Rr=(ot=U.scaleOrdinal().range(it).domain(de.map(Ge))).range();vt=ot.domain().reduce(function(ar,Dn,Nr){return ar[Dn]=Rr[Nr],ar},{})}(),function(Jn){mt||(mt=L.select(Jn).append("svg").classed("britechart line-chart",!0),function(){var dr=mt.append("g").classed("container-group",!0).attr("transform","translate("+T.left+","+T.top+")");dr.append("g").classed("x-axis-group",!0).append("g").classed("axis x",!0),dr.selectAll(".x-axis-group").append("g").classed("month-axis",!0),dr.append("g").classed("y-axis-group",!0).append("g").classed("axis y",!0),dr.append("g").classed("grid-lines-group",!0),dr.append("g").classed("chart-group",!0),jt&&dr.append("g").classed("legend-group",!0),dr.append("g").classed("metadata-group",!0)}()),mt.attr("width",k).attr("height",Q)}(this),function(){var Jn=void 0,dr=void 0;if(Ct==="custom"&&typeof Nt=="string")Jn={tick:Tt,format:M.timeFormat(Nt)},dr=null;else{var gr=u(xe,k,Ct,gt);Jn=gr.minor,dr=gr.major,P=Z.axisBottom(Y).ticks(dr.tick).tickSize(0,0).tickFormat(dr.format)}D=Z.axisBottom(Y).ticks(Jn.tick).tickSize(10,0).tickPadding(5).tickFormat(Jn.format),W=Z.axisLeft(rt).ticks(Ut).tickSize([0]).tickPadding(5).tickFormat(Oe),function(er,Dr){mt.select(".grid-lines-group").selectAll("line").remove(),(qe==="horizontal"||qe==="full")&&mt.select(".grid-lines-group").selectAll("line.horizontal-grid-line").data(rt.ticks(Dr)).enter().append("line").attr("class","horizontal-grid-line").attr("x1",-lt-30).attr("x2",Mt).attr("y1",function(Rr){return rt(Rr)}).attr("y2",function(Rr){return rt(Rr)}),qe!=="vertical"&&qe!=="full"||mt.select(".grid-lines-group").selectAll("line.vertical-grid-line").data(Y.ticks(er)).enter().append("line").attr("class","vertical-grid-line").attr("y1",0).attr("y2",I).attr("x1",function(Rr){return Y(Rr)}).attr("x2",function(Rr){return Y(Rr)}),mt.select(".grid-lines-group").selectAll("line.extended-x-line").data([0]).enter().append("line").attr("class","extended-x-line").attr("x1",-lt-30).attr("x2",Mt).attr("y1",Q-T.bottom-T.top).attr("y2",Q-T.bottom-T.top)}(Jn.tick,Ut)}(),function(){if(mt.select(".x-axis-group .axis.x").attr("transform","translate(0, "+I+")").call(D),Ct!=="custom"&&mt.select(".x-axis-group .month-axis").attr("transform","translate(0, "+(I+28)+")").call(P),Jt){Kt&&mt.selectAll(".x-axis-label").remove();var Jn=Mt/2,dr=I+28+36;Kt=mt.select(".x-axis-group").append("text").attr("x",Jn).attr("y",dr).attr("text-anchor","middle").attr("class","x-axis-label").text(Jt)}if(mt.select(".y-axis-group .axis.y").attr("transform","translate("+-lt+", 0)").call(W).call(ze),te){Ot&&mt.selectAll(".y-axis-label").remove();var gr=-Bt-lt,er=-I/2;Ot=mt.select(".y-axis-group").append("text").attr("x",er).attr("y",gr).attr("text-anchor","middle").attr("transform","rotate(270)").attr("class","y-axis-label").text(te)}}(),function(){if(be){var Jn=d.area().curve(S[le]).x(function(dr){var gr=dr.date;return Y(gr)}).y0(function(dr){var gr=dr.min;return rt(gr)}).y1(function(dr){var gr=dr.max;return rt(gr)});mt.select(".chart-group").append("g").attr("class","area").append("path").data([be]).attr("class","area").attr("d",Jn)}}(),fn=void 0,wn=void 0,wn=d.line().curve(S[le]).x(function(Jn){var dr=Jn.date;return Y(dr)}).y(function(Jn){var dr=Jn.value;return rt(dr)}),fn=mt.select(".chart-group").selectAll(".line").data(de,Ge),Et=fn.enter().append("g").attr("class","topic").append("path").attr("class","line").merge(fn).attr("id",function(Jn){return Jn.topic}).attr("d",function(Jn){var dr=Jn.dates;return wn(dr)}).style("stroke",function(Jn){return dr=Jn.topic,ot(dr);var dr}).style("opacity",function(Jn){return Jn.hasOwnProperty("show")?Jn.show?1:0:1}).style("stroke-dasharray",function(Jn){return!!Jn.hasOwnProperty("show")&&!!Jn.dashed&&[.5,4]}),fn.exit().remove(),function(){if(jt){var Jn=Number.parseInt(Mt)+Number.parseInt(T.right);Nn=mt.selectAll(".legend-group").append("g").attr("transform","translate("+Jn+", 0)").classed("tooltip-text",!0),Mn=Nn.append("text").classed("tooltip-title",!0).attr("x",-43).attr("dy",".35em").attr("y",16).style("fill","#282C35").style("font-size","12px"),Nn.append("line").classed("tooltip-divider",!0).attr("x1",-43).attr("x2",225).attr("y1",31).attr("y2",31).style("stroke","#D2D6DF"),pn=Nn.append("g").classed("tooltip-body",!0).style("transform","translateY(8px)").style("fill","#282C35");var dr=void 0;dr=de[0].hasOwnProperty("show")?de.filter(function(ar){return ar.show}):de;for(var gr=0;grdt&&(zt||(zt=mt.select(".metadata-group").append("rect").attr("class","overlay").attr("y1",0).attr("y2",Q).attr("height",I).attr("width",Mt).attr("fill","rgba(0, 0, 0, 0)").style("display","none")),ce||(ce=mt.select(".metadata-group").append("g").attr("class","hover-marker vertical-marker-container").attr("transform","translate(9999, 0)"),_e=ce.selectAll("path").data([{x1:0,y1:0,x2:0,y2:0}]).enter().append("line").classed("vertical-marker",!0).attr("x1",0).attr("y1",I).attr("x2",0).attr("y2",0)),mt.on("mouseover",function(Jn){(function(dr,gr){zt.style("display","block"),_e.classed("bc-is-active",!0),ve.call("customMouseOver",dr,gr,L.mouse(dr))})(this,Jn)}).on("mouseout",function(Jn){(function(dr,gr){zt.style("display","none"),_e.classed("bc-is-active",!1),ve.call("customMouseOut",dr,gr,L.mouse(dr))})(this,Jn)}).on("mousemove",function(Jn){var dr,gr,er,Dr,Rr,ar,Dn,Nr;dr=this,gr=L.mouse(dr),er=j(gr,2),Dr=er[0],Rr=er[1],ar=-T.left,Dn=Sn(Dr+ar),Nr=void 0,Dn&&(xn(Nr=Y(new Date(Dn.date))),en(Dn),ve.call("customMouseMove",dr,Dn,vt,Nr,Rr))})),wt&&function(){mt.select(".chart-group").selectAll(".data-points-container").remove();var Jn=Et.nodes().reduce(function(dr,gr){return dr[gr.id]=gr,dr},{});xe.reduce(function(dr,gr){var er=gr.topics.map(function(Dr){return{topic:Dr,node:Jn[Dr.name]}});return dr=[].concat(K(dr),K(er))},[])}(),mt.on("touchmove",function(Jn){(function(dr,gr){ve.call("customTouchMove",dr,gr,L.touch(dr))})(this,Jn)}),Zt&&(vn=Sn(Mt))&&(xn(Y(new Date(vn.date))),en(vn))})}function ze(Te){Te.selectAll(".tick text").attr("transform","translate(0, -7)")}function Oe(Te){var bn=void 0;return bn=F(Te)?f:b,ye&&(bn=B.format(ye)),bn(Te)}function De(Te){return new Date(Te).toLocaleDateString()}function Ze(Te){var bn,nn,fn=void 0,wn=void 0;bn=Te.topicName,nn=Te.sum.toLocaleString(),wn=pn.append("text").classed("tooltip-left-text",!0).attr("dy","1em").attr("x",-15).attr("y",Kn).style("fill","#000000").style("font-size","12px").text(bn).call(Me,200,12,-25),fn=pn.append("text").classed("tooltip-right-text",!0).attr("dy","1em").attr("x",-15).attr("y",Kn).style("fill","#000000").style("font-size","12px").text(nn),fr=wn.node().getBBox().height?wn.node().getBBox().height:fr,fr+5,yn=fn.node().getBBox().width?fn.node().getBBox().width:yn,fn.attr("x",300-yn-75),pn.append("circle").classed("tooltip-circle",!0).attr("cx",-35).attr("cy",Kn+8).attr("r",5).style("fill",vt[Te.topic]).style("stroke-width",1),Kn+=fr+7}function Sn(Te){var bn,nn,fn,wn=Y.invert(Te),vn=(0,q.bisector(ge).left)(xe,wn,1),cr=xe[vn],Jn=xe[vn-1],dr=void 0;return Jn&&cr?(bn=wn,nn=cr,fn=Jn,dr=new Date(bn).getTime()-new Date(nn.date).getTime()>new Date(fn.date).getTime()-new Date(bn).getTime()?nn:fn):dr=cr,dr}function Me(Te,bn,nn){var fn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;Te.each(function(){var wn,vn,cr,Jn,dr,gr,er;for(wn=(Te=L.select(this)).text().split(/\s+/).reverse(),cr=[],Jn=0,dr=Te.attr("y"),gr=parseFloat(Te.attr("dy")),er=Te.text(null).append("tspan").attr("x",fn).attr("y",dr).attr("dy",gr+"em");vn=wn.pop();)cr.push(vn),er.text(cr.join(" ")),s.getTextWidth(cr.join(" "),nn,"Karla, sans-serif")>bn&&(cr.pop(),er.text(cr.join(" ")),Jn<4&&(cr=[vn],er=Te.append("tspan").attr("x",fn).attr("y",dr).attr("dy",1.2*++Jn+gr+"em").text(vn)))})}function en(Te){ce.selectAll(".circle-container").remove();var bn=Et.nodes().reduce(function(wn,vn){return wn[vn.id]=vn,wn},{}),nn=de.filter(function(wn){return!wn.show}).map(function(wn){return wn.topicName}),fn=Te.topics.map(function(wn){return{topic:wn,node:bn[wn.name]}}).filter(function(wn){return!!wn.topic}).sort(function(wn,vn){return vt[wn.topic.name]hi.x+Rr;){var Kr=(Dn+Nr)/2;if(hi=er.getPointAtLength(Kr),gr0?"+":"")+B.format(Et)(Ie)+"%"},Jt=function(ge){var Ie=ge.parentCount,Ge=ge.value;return Ie?p(Ie)+mt:p(Ge)+mt},Kt=function(ge){var Ie=ge.name;return l(Ie)+I*(3/8)};function te(ge){ge.each(function(Ie){var Ge=_.left+_.right;g=u>600?u-Ge-1.2*it-100:u-Ge,x=C-_.top-_.bottom;var ve=function(Re){var ze=Re.reduce(function(De,Ze){return Ze.name=String(Ze[le]),Ze.pctOfSet=+Ze.pctOfSet,Ze.pctChange=+Ze[de],Ze.value=+Ze[ne],Ze.width=+Ze.width,[].concat(et(De),[Ze])},[]),Oe=ze.slice();return{data:ze,dataZeroed:Oe}}(Ie);S=ve.data,v=ve.dataZeroed,function(){Ut=function(Oe,De){var Ze=Oe.length,Sn=J.sum(Oe,De),Me=ce(Oe),en=(x-(Ze-1)*ot*x/Ze-2*P*x/Ze)/Sn;if(Me.length===0)return en;var xn=U.scalePow().exponent(1/Me.length).domain([0,100]).range([0,10*Me.length])(Ze);return en-(xe?2*xn:xn)}(S,Ot),zt=function(Oe,De,Ze){var Sn=Bt(Oe,De,Ze),Me=Oe.length,en=function(xn,Te){var bn=[];return xn.forEach(function(nn){var fn=Te.map(function(wn,vn){return wn.name===nn||wn.parent===nn?vn:null}).filter(function(wn){return wn});bn.push(fn)}),bn}(ce(Oe),Oe);return function(xn,Te){var bn=ot*x/Me,nn=P*x/Me+J.sum(Oe.slice(0,Te),De)*Ze+Te*bn+Sn(Te)/2;return en.forEach(function(fn){fn[0]>1&&Te>=fn[0]&&(nn+=xe?20:D),Te>fn[fn.length-1]&&(nn+=xe?20:D)}),nn+_.top}}(S,Ot,Ut),Bt(S,Ot,Ut);var Re=Math.min(Q*q.max(S,tn));p=U.scaleLinear().domain([0,Re]).rangeRound([0,g]);var ze=S.map(zt);l=U.scaleOrdinal().domain(S.map(Ye)).range(ze),b=S.map(function(Oe){return Oe}).map(function(Oe,De){return{name:Oe.name,color:f[De%f.length]}}),F=function(Oe){return b.filter(function(De){return De.name===Oe})[0].color}}(),W=tt.axisBottom(p).ticks(k,st).tickSizeInner([-x]),lt=tt.axisLeft(l),function(Re){o=Re,pt||((pt=d.select(Re).append("svg").classed("britechart row-chart",!0)).append("rect").classed("export-wrapper",!0).attr("width",u).attr("height",C).attr("fill","white"),function(){var ze=pt.append("g").classed("container-group",!0).attr("transform","translate("+(_.left+it)+", "+_.top+")");ze.append("g").classed("chart-group",!0),ze.append("g").classed("title-group",!0),ze.append("g").classed("x-axis-group axis",!0),ze.append("g").attr("transform","translate("+-1*it+", 0)").classed("y-axis-group axis",!0),ze.append("g").classed("metadata-group",!0)}()),pt.attr("width",u).attr("height",C)}(this),function(){if(!(!S||!S[0])){var Re=S[0].parentCount?p(S[0].parentCount):1;Re=Re>0?Re:1;var ze=S[0].parentCount;pt.select(".title-group").selectAll("g").remove(),pt.select(".title-group").selectAll("text").remove();var Oe=window.navigator.userAgent,De=Oe.indexOf("Edge")>-1||Oe.indexOf("MSIE")>-1;if(wt&&ze){for(var Ze=wt+" "+ze.toLocaleString(),Sn=L.getTextWidth(Ze,Y,"sans-serif"),Me=xe?100:40,en=_.left+Re-Me-0,xn=!1;Sn>en;)wt=wt.slice(0,-1),xn=!0,Ze=wt+"... "+ze.toLocaleString(),Sn=L.getTextWidth(Ze,Y,"sans-serif");var Te=pt.select(".title-group").append("text").text(null).attr("y",10);wt=xn?wt+"...":wt;var bn=Te.append("tspan").text(wt).attr("font-size",Y);Te.append("tspan").text(ze.toLocaleString()).classed("count",!0).attr("dx",5).attr("font-size",Y).attr("font-weight",600);var nn=bn.node().getBoundingClientRect().width+10;xe&&De&&(nn+=40);var fn=Re-nn-5;Te.attr("x",fn)}if(jt){var wn=jt.toLocaleString(),vn=Rt+" "+wn,cr=L.getTextWidth(vn,Y,"Karla, sans-serif"),Jn=xe&&De?10:0,dr=De?5:0,gr=pt.select(".title-group").append("text").text(null).attr("x",g-cr-Jn-10-dr-5).attr("y",10);gr.append("tspan").text(Rt).attr("font-size",Y),gr.append("tspan").text(wn).classed("count",!0).attr("dx",5).attr("font-size",Y).attr("font-weight",600);var er=u>600?g-gr.node().getBoundingClientRect().width-10-Jn:g-gr.node().getBoundingClientRect().width-10;gr.attr("x",er)}Zt&&u>600&&pt.select(".title-group").append("text").text("Change in past "+Zt).attr("font-size",Y).attr("x",g+5).attr("y",10)}}(),function(){var Re=void 0;xt?(Nn(Re=pt.select(".chart-group").selectAll(".row").data(v)),S&&S[0]&&S[0].parentCount&&pt.select(".chart-group").append("line").classed("focus-separator",!0).attr("y1",-10).attr("x1",p(S[0].parentCount)).attr("y2",x+_.top+_.bottom).attr("x2",p(S[0].parentCount)).style("stroke","#e7e8e9").style("stroke-width",1),pt.select(".chart-group").append("line").classed("pct-separator",!0).attr("y1",-10).attr("x1",g).attr("y2",x).attr("x2",g).style("stroke","#000").style("stroke-width",1),function(ze){ze.attr("x",0).attr("y",function(Oe,De){return l(Oe.name)-Ut*Oe.width/2}).attr("height",function(Oe){return Ut*Oe.width}).attr("fill",function(Oe){return F(Oe.name)}).attr("width",0).transition().duration(800).ease(Ct).attr("width",function(Oe){var De=Oe.value;return p(De)})}(Re=pt.select(".chart-group").selectAll(".row rect.pct").data(S))):Nn(Re=pt.select(".chart-group").selectAll("rect").data(S)),Re.exit().transition().style("opacity",0).remove()}(),function(){var Re=_.left;pt.select(".x-axis-group.axis").attr("transform","translate(0, "+x+")").call(W),pt.select(".y-axis-group.axis").call(lt),xe||(pt.selectAll(".y-axis-group.axis .tick").call(hn),Re=_.left-it-30),pt.selectAll(".y-axis-group.axis .tick text").classed("child",function(ze){return S.find(function(Oe){return Oe.name===ze}).parent}).classed("print-mode",xe).on("mouseover",pn).on("mouseout",Mn).call(qe,Re).selectAll("tspan").attr("font-size",ye),pt.selectAll(".y-axis-group.axis .tick text").classed("hidden",function(ze){return S.find(function(Oe){return Oe.name===ze}).splitterText}),xe||pt.selectAll(".y-axis-group.axis .tick").classed("expandable",function(ze){return function(Oe,De){return Oe.find(function(Ze){return Ze.name===De}).hasChildren}(S,ze)}).call(yn)}(),function(){var Re=pt.selectAll(".row-wrapper"),ze=Number(Re.size())-1,Oe=pt.select(".row_"+ze).select(".bg-hover");if(Oe._groups[0]&&Oe._groups[0][0]){var De=Number(Oe.attr("y"))+Number(Oe.attr("height"))+40;pt.select("line.pct-separator").attr("y2",De),pt.select(".export-wrapper").attr("height",De),pt.attr("height",De)}}()})}function Ot(ge){return+ge.width}function Bt(ge,Ie,Ge){return function(ve){return Ie(ge[ve])*Ge}}var Ut=void 0,zt=void 0;function ce(ge){return[].concat(et(new Set(ge.filter(function(Ie){return Ie.parent&&Ie.isParent===!1}).map(function(Ie){return Ie.parent}))))}function _e(ge){return S.find(function(Ie){return(Ie.name===ge.name||Ie.name===ge)&&Ie.isParent})}function ye(ge){return _e(ge)?I+"px":Y+"px"}function qe(ge,Ie){if(Wt){var Ge=vt>1?.8:1.2;L.wrapTextWithEllipses(ge,Ie,0,vt,Ge)}}function hn(ge){ge.each(function(){var Ie=(ge=d.select(this)).node().getBBox().height/2,Ge=ge.append("svg").attr("class",function(ve){var Re;return(Re=ve,S.find(function(ze){return ze.name===Re})).splitterText?"hidden":"visibility visibility-"+Kn(ve)}).attr("x",30-_.left).attr("y",-Ie).attr("width","300").attr("height","300").attr("viewBox","0 0 600 600").attr("fill","none").attr("opacity",0);Ge.append("rect").attr("x",-10).attr("y",-10).attr("height","50").attr("width","50").attr("fill","#d6e8fa").on("mouseover",pn).on("mouseout",Mn),Ge.append("path").attr("d","M 10,10 L 30,30 M 30,10 L 10,30").attr("stroke","#0072ce").attr("stroke-width","2")})}function yn(ge){ge.each(function(){d.select(this).selectAll("polygon").remove(),(ge=d.select(this)).append("polygon").attr("transform",function(Ie){return S.find(function(Ge){return Ge.parent===Ie})?"translate("+(it-5)+", 2.5) rotate(180)":"translate("+(it-15)+", -2.5)"}).attr("points",function(Ie){return"0,0 10,0 5,5"}).style("fill",function(Ie){return"#0072ce"}).style("fill-opacity",function(Ie){return S.find(function(Ge){return Ge.name===Ie&&Ge.hasChildren})?1:0})})}function Nn(ge){var Ie=ge.enter().append("g").attr("class",function(De,Ze){return"row_"+Ze+" row-wrapper"}),Ge=Ie.filter(function(De){return De.splitterText});Ie.append("rect").attr("class","bg").on("click",function(De){fr(this,De,g,x)}).attr("x",0).attr("y",function(De,Ze){return l(De.name)-Ut*De.width/2}).attr("height",function(De){return Ut*De.width}).attr("width",g).attr("fill",function(De){return De.splitterText?"#fff":Tt}),Ie.append("rect").attr("class","bg-hover").attr("x",-_.left).attr("y",function(De,Ze){return l(De.name)-Ut*De.width/2}).attr("width",u).attr("height",function(De){return Ut*De.width}).on("mouseover",pn).on("mouseout",Mn).attr("fill-opacity",0).attr("fill",function(De){return De.splitterText?"#fff":"#d6e8fa"}),Ie.append("rect").attr("class","focus-bar").attr("x",0).attr("y",function(De,Ze){return l(De.name)-Ut*De.width/2}).attr("height",function(De){return Ut*De.width}).attr("width",function(De){var Ze=De.parentCount;return Ze?p(Ze):0}).attr("fill","#e7e8e9").attr("fill-opacity",function(De){return De.parent?.5:1}),Ie.append("rect").attr("class","pct").on("mouseover",function(De,Ze,Sn){(function(Me,en,xn,Te,bn){if(!en.splitterText){be.call("customMouseOver",Me,en,d.mouse(Me),[Te,bn]),pn(en),nn=d.select(Me),nn.attr("fill",function(fn){var wn=fn.name;return wn?H.color(F(wn)).darker():""});var nn}})(this,De,0,g,x)}).on("mousemove",function(De){(function(Ze,Sn,Me,en){Sn.splitterText||be.call("customMouseMove",Ze,Sn,d.mouse(Ze),[Me,en])})(this,De,g,x)}).on("mouseout",function(De,Ze,Sn){(function(Me,en,xn,Te,bn){en.splitterText||(be.call("customMouseOut",Me,en,d.mouse(Me),[Te,bn]),Mn(en),xn.forEach(function(nn){d.select(nn).attr("fill",function(fn){var wn=fn.name;return wn?F(wn):""})}))})(this,De,Sn,g,x)}).on("click",function(De){fr(this,De,g,x)}).attr("x",0).attr("y",function(De,Ze){return l(De.name)-Ut*De.width/2}).attr("height",function(De){return Ut*De.width}).attr("width",function(De){var Ze=De.value;return p(Ze)}).attr("fill",function(De){return F(De.name)}).attr("fill-opacity",function(De){return De.parent?.5:1});var ve=d.select(".chart-group .bg");if(nt&&ve.node()){var Re=ve.node().getBBox().x||ve.node().getBoundingClientRect().width;Ie.append("text").attr("class","percentage-label").classed("child",function(De){return!_e(De)}).attr("x",Jt).attr("y",Kt).text(function(De){return function(Ze,Sn){var Me=Ze.isNotFilter,en=Ze.pctOfSet,xn=Ze.parent,Te=Ze.value,bn=Ze.isParent;if(!Ze.splitterText){var nn="";if(Me)return"";en&&!xn&&u>600&&(nn=" | "+en+"%"),Number(Te)===1&&(Mt=Mt.replace(/s$/,""));var fn=B.format(Et)(Te)+" "+Mt+nn,wn=bn?I:Y,vn=L.getTextWidth(fn,wn,"sans-serif")+10,cr=p(Te);return vn>cr&&vn>Sn-cr?B.format(Et)(Te):fn}}(De,Re)}).attr("font-size",ye).attr("fill",function(De,Ze){var Sn=p(De.value),Me=Ie.selectAll("text")._groups[Ze][0].getComputedTextLength()+10;return Re>0&&Re-Sn0&&Re-Sn600){var Oe=Ie.append("g").attr("transform","translate("+(g+10)+", 0)").attr("class","change-label-group");Oe.append("text").attr("y",Kt).attr("font-size",ye).attr("font-weight","600").style("fill",function(De){return De.pctChange===0||isNaN(De.pctChange)?"#919395":De.pctChange>0?gt:Nt}).text(an),Oe.append("polygon").attr("transform",function(De){var Ze=Kt(De);return _e(De)?De.pctChange<0?"translate(65, "+(Ze+5)+") rotate(180) scale(1.5)":"translate(50, "+(Ze-15)+") scale(1.5)":De.pctChange<0?"translate(50, "+(Ze+5)+") rotate(180)":"translate(40, "+(Ze-10)+")"}).attr("points",function(De){return"2,8 2,13 8,13 8,8 10,8 5,0 0,8"}).style("fill",function(De){return De.pctChange>0?gt:Nt}).attr("class",function(De){return De.pctChange<0?"down":"up"}).attr("fill-opacity",function(De){var Ze=De.pctChange;return isNaN(Ze)||Ze===0?0:1})}}function pn(ge,Ie){if(!ge.splitterText){var Ge=Ie;typeof ge.name!="string"&&typeof ge!="string"||(Ge=ge.name?Kn(ge.name):Kn(ge)),d.select(o).select(".tick svg.visibility-"+Ge).attr("opacity",1),d.select(o).select("g.row_"+Ge+" .bg-hover").attr("fill-opacity",1)}}function Mn(ge,Ie){if(!ge.splitterText){var Ge=Ie;typeof ge.name!="string"&&typeof ge!="string"||(Ge=ge.name?Kn(ge.name):Kn(ge)),d.select(o).select(".tick svg.visibility-"+Ge).attr("opacity",0),d.select(o).select("g.row_"+Ge+" .bg-hover").attr("fill-opacity",0)}}function Kn(ge){return S.findIndex(function(Ie){return Ie.name===ge})}function fr(ge,Ie,Ge,ve){be.call("customClick",ge,Ie,d.mouse(ge),[Ge,ve])}return te.backgroundColor=function(ge){return arguments.length?(Tt=ge,this):Tt},te.upArrowColor=function(ge){return arguments.length?(gt=ge,this):gt},te.downArrowColor=function(ge){return arguments.length?(Nt=ge,this):Nt},te.colorSchema=function(ge){return arguments.length?(f=ge,this):f},te.enableLabels=function(ge){return arguments.length?(nt=ge,this):nt},te.enableYAxisRight=function(ge){return arguments.length?(dt=ge,this):dt},te.exportChart=function(ge,Ie){M.call(te,pt,ge,Ie)},te.height=function(ge){return arguments.length?(C=ge,this):C},te.isAnimated=function(ge){return arguments.length?(xt=ge,this):xt},te.labelsMargin=function(ge){return arguments.length?(mt=ge,this):mt},te.labelsNumberFormat=function(ge){return arguments.length?(Et=ge,this):Et},te.labelsSuffix=function(ge){return arguments.length?(Mt=ge,this):Mt},te.labelsSize=function(ge){return arguments.length?(I=ge,this):I},te.labelsSizeChild=function(ge){return arguments.length?(Y=ge,this):Y},te.pctChangeLabelSize=function(ge){return arguments.length?(rt=ge,this):rt},te.loadingState=function(ge){return arguments.length?(E=ge,this):E},te.margin=function(ge){return arguments.length?(_=j({},_,ge),this):_},te.nameLabel=function(ge){return arguments.length?(le=ge,this):le},te.numberFormat=function(ge){return arguments.length?(st=ge,this):st},te.on=function(){var ge=be.on.apply(be,arguments);return ge===be?te:ge},te.percentageAxisToMaxRatio=function(ge){return arguments.length?(Q=ge,this):Q},te.isPrintMode=function(ge){return arguments.length?(xe=ge,this):xe},te.outerPadding=function(ge){return arguments.length?(P=ge,this):P},te.padding=function(ge){return arguments.length?(ot=ge,this):ot},te.paddingBetweenGroups=function(ge){return arguments.length?(D=ge,this):D},te.pctChangeLabel=function(ge){return arguments.length?(de=ge,this):de},te.yAxisLineWrapLimit=function(ge){return arguments.length?(vt=ge,this):vt},te.labelsFocusTitle=function(ge){return arguments.length?(wt=ge,this):wt},te.labelsTotalCount=function(ge){return arguments.length?(jt=ge,this):jt},te.labelsTotalText=function(ge){return arguments.length?(Rt=ge,this):Rt},te.labelsInterval=function(ge){return arguments.length?(Zt=ge,this):Zt},te.valueLabel=function(ge){return arguments.length?(ne=ge,this):ne},te.width=function(ge){return arguments.length?(u=ge,this):u},te.xTicks=function(ge){return arguments.length?(k=ge,this):k},te.yAxisPaddingBetweenChart=function(ge){return arguments.length?(it=ge,this):it},te.yTicks=function(ge){return arguments.length?(T=ge,this):T},te.wrapLabels=function(ge){return arguments.length?(Wt=ge,this):Wt},te}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m){_t.exports=z},function(_t,m,y){"use strict";var R,j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},et=function(K,J){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return function(q,Z){var tt=[],H=!0,X=!1,B=void 0;try{for(var U,d=q[Symbol.iterator]();!(H=(U=d.next()).done)&&(tt.push(U.value),!Z||tt.length!==Z);H=!0);}catch(L){X=!0,B=L}finally{try{!H&&d.return&&d.return()}finally{if(X)throw B}}return tt}(K,J);throw new TypeError("Invalid attempt to destructure non-iterable instance")};(R=function(K){var J=y(11),q=y(9),Z=y(2),tt=(y(8),y(28)),H=y(35).axisTimeCombinations,X=y(24),B=X.formatIntegerValue,U=X.formatDecimalValue,d=X.isInteger,L=y(26).getTextWidth;return function(){var M=2,s=2,w=2,_=2,o="Tooltip title",u=!0,C=void 0,E={y:-55,x:0},S=void 0,v=void 0,g=void 0,x=void 0,p=48,l=0,f=37,b=void 0,F=void 0,T=J.easeQuadInOut,k=void 0,Q="date",st="value",nt="name",dt="topics",mt=H.DAY_MONTH,Et=null,Mt=null,I=[],Y=null,rt=null,ot=tt.timeFormat("%b %d, %Y"),D=tt.timeFormat("%b %d, %I %p"),P=void 0,W=void 0;function lt(gt){gt.each(function(wt){250-_-s,45-M-w,function(Rt){W||((W=Z.select(Rt).append("g").classed("britechart britechart-tooltip",!0).style("visibility","hidden")).append("g").classed("tooltip-container-group select-disable",!0).attr("transform","translate( "+_+", "+M+")").append("g").classed("tooltip-group",!0),S=W.selectAll(".tooltip-group").append("g").classed("tooltip-text",!0),C=S.append("rect").classed("tooltip-text-container",!0).attr("x",-54.5).attr("y",0).attr("width",250).attr("height",p).attr("rx",3).attr("ry",3).style("fill","#FFFFFF").style("stroke","#D2D6DF").style("stroke-width",1),x=S.append("text").classed("tooltip-title",!0).attr("x",-46.5).attr("dy",".35em").attr("y",16).style("fill","#6D717A"),v=S.append("line").classed("tooltip-divider",!0).attr("x1",-46.5).attr("x2",265).attr("y1",31).attr("y2",31).style("stroke","#D2D6DF"),g=S.append("g").classed("tooltip-body",!0).style("transform","translateY(8px)").style("fill","#282C35")),W.transition().attr("width",250).attr("height",45),lt.hide()}(this)})}function it(gt){var wt=gt[st];return gt.missingValue?"-":function(Rt){if(rt!==null)return rt(Rt);var jt=U;return Rt?(Y!==null?jt=q.format(Y):d(Rt)&&(jt=B),jt(Rt)):0}(wt).toString()}function vt(gt){var wt,Rt,jt=gt[nt],Zt=void 0,ne=void 0;wt=gt.topicName||jt,Rt=it(gt),ne=g.append("text").classed("tooltip-left-text",!0).attr("dy","1em").attr("x",l).attr("y",f).style("fill","#000000").text(wt).call(Ct,170,-25),Zt=g.append("text").classed("tooltip-right-text",!0).attr("dy","1em").attr("x",l).attr("y",f).style("fill","#000000").text(Rt),b=ne.node().getBBox().height?ne.node().getBBox().height:b,p+=b+5,F=Zt.node().getBBox().width?Zt.node().getBBox().width:F,Zt.attr("x",250-F-10-62.5),g.append("circle").classed("tooltip-circle",!0).attr("cx",-39.5).attr("cy",f+8).attr("r",5).style("fill",k[jt]).style("stroke-width",1),f+=b+7}function pt(gt,wt,Rt){var jt,Zt,ne=(jt=et([wt,Rt],2),Zt=jt[0],jt[1],[Zt-250<0?65:-205,E.y]),Wt=et(ne,2),le=Wt[0],de=Wt[1];C.attr("width",250).attr("height",p+10),S.transition().duration(100).ease(T).attr("transform","translate("+le+", "+de+")"),v.attr("x2",190)}function xt(gt){var wt=o,Rt=function(jt){var Zt=Et||mt,ne=null,Wt={month:"short",day:"numeric"};return Zt===H.DAY_MONTH||Zt===H.MONTH_YEAR?(ne=ot,Wt.year="numeric"):Zt===H.HOUR_DAY||Zt===H.MINUTE_HOUR?(ne=D,Wt.hour="numeric"):Zt===H.CUSTOM&&typeof Mt=="string"&&(ne=tt.timeFormat(Mt)),P&&typeof Intl!="undefined"&&(typeof Intl=="undefined"?"undefined":j(Intl))==="object"&&Intl.DateTimeFormat?Intl.DateTimeFormat(P,Wt).format(jt):ne(jt)}(new Date(gt[Q]));wt.length?u&&(wt=wt+" - "+Rt):wt=Rt,x.text(wt)}function Ct(gt,wt){var Rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;gt.each(function(){var jt,Zt,ne,Wt,le,de,xe;for(jt=(gt=Z.select(this)).text().split(/\s+/).reverse(),ne=[],Wt=0,le=gt.attr("y"),de=parseFloat(gt.attr("dy")),xe=gt.text(null).append("tspan").attr("x",Rt).attr("y",le).attr("dy",de+"em");Zt=jt.pop();)ne.push(Zt),xe.text(ne.join(" ")),L(ne.join(" "),16,"Karla, sans-serif")>wt&&(ne.pop(),xe.text(ne.join(" ")),Wt<2&&(ne=[Zt],xe=gt.append("tspan").attr("x",Rt).attr("y",le).attr("dy",1.2*++Wt+de+"em").text(Zt)))})}function Tt(gt){var wt=gt[dt];I.length?wt=function(Rt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I;return jt.map(function(Zt){return Rt.filter(function(ne){return ne.name===Zt})[0]})}(wt):wt.length&&wt[0].name&&(wt=function(Rt){return Rt.map(function(jt){return jt}).sort(function(jt,Zt){return jt.name>Zt.name?1:jt.name===Zt.name?0:-1})}(wt)),g.selectAll("text").remove(),g.selectAll("circle").remove(),xt(gt),p=48,f=37,l=0,wt.forEach(vt)}function Nt(gt,wt,Rt){Tt(gt),pt(0,wt,Rt)}return lt.axisTimeCombinations=H,lt.dateFormat=function(gt){return arguments.length?(Et=gt,this):Et||mt},lt.dateCustomFormat=function(gt){return arguments.length?(Mt=gt,this):Mt},lt.dateLabel=function(gt){return arguments.length?(Q=gt,this):Q},lt.hide=function(){return W.style("visibility","hidden"),this},lt.locale=function(gt){return arguments.length?(P=gt,this):P},lt.nameLabel=function(gt){return arguments.length?(nt=gt,this):nt},lt.numberFormat=function(gt){return arguments.length?(Y=gt,this):Y},lt.valueFormatter=function(gt){return arguments.length?(rt=gt,this):rt},lt.shouldShowDateInTitle=function(gt){return arguments.length?(u=gt,this):u},lt.show=function(){return W.style("visibility","visible"),this},lt.title=function(gt){return arguments.length?(o=gt,this):o},lt.tooltipOffset=function(gt){return arguments.length?(E=gt,this):E},lt.topicsOrder=function(gt){return arguments.length?(I=gt,this):I},lt.topicLabel=function(gt){return arguments.length?(dt=gt,this):dt},lt.update=function(gt,wt,Rt){var jt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return k=wt,Nt(gt,Rt,jt),this},lt.valueLabel=function(gt){return arguments.length?(st=gt,this):st},lt}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,j=function(et,K){if(Array.isArray(et))return et;if(Symbol.iterator in Object(et))return function(J,q){var Z=[],tt=!0,H=!1,X=void 0;try{for(var B,U=J[Symbol.iterator]();!(tt=(B=U.next()).done)&&(Z.push(B.value),!q||Z.length!==q);tt=!0);}catch(d){H=!0,X=d}finally{try{!tt&&U.return&&U.return()}finally{if(H)throw X}}return Z}(et,K);throw new TypeError("Invalid attempt to destructure non-iterable instance")};(R=function(et){var K=y(0),J=y(11),q=y(9),Z=y(2);return y(8),function(){var tt=12,H=12,X=12,B=12,U="",d="value",L="name",M=J.easeQuadInOut,s=void 0,w=void 0,_=0,o=20,u=".2f",C=function(b){return q.format(u)(b)},E=void 0,S=void 0,v=void 0;function g(b){b.each(function(){E=100-B-H,S=100-tt-X,function(F){v||(v=Z.select(F).append("g").classed("britechart britechart-mini-tooltip",!0)).append("g").classed("tooltip-container-group",!0).attr("transform","translate( "+B+", "+tt+")").append("g").classed("tooltip-group",!0),v.transition().attr("width",100).attr("height",100),g.hide()}(this),w=v.selectAll(".tooltip-group").append("g").classed("tooltip-text select-disable",!0),s=w.append("rect").classed("tooltip-background",!0).attr("width",100).attr("height",100).attr("rx",1).attr("ry",1).attr("y",-tt).attr("x",-B).style("fill","#43484e").style("stroke","#43484e").style("stroke-width",1).style("pointer-events","none").style("opacity",.9)})}function x(){for(var b=arguments.length,F=Array(b),T=0;T0}(nt,k)?k+o:k-E-o-H,function(mt,Et){return mt-tt-X-S-Et>0}(dt,Q)?Q+_:Q-S-_-X]}function l(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=b[d]||"",T=b[L]||"",k=21,Q=22*1.18,st="1em",nt=0,dt=void 0,mt=void 0,Et=void 0;w.selectAll("text").remove(),U&&(Et=w.append("text").classed("mini-tooltip-title",!0).attr("dy",st).attr("y",0).style("fill","#43484e").style("font-size",14).text(U),nt=k+nt),T&&(mt=w.append("text").classed("mini-tooltip-name",!0).attr("dy",st).attr("y",nt||0).style("fill","#ffffff").style("font-size",14).text(T),nt=k+nt),F&&(dt=w.append("text").classed("mini-tooltip-value",!0).attr("dy",st).attr("y",nt||0).style("fill","#ffffff").style("font-size",22).style("font-weight",200).text(C(F)),nt=Q+nt),E=x(mt,Et,dt),S=nt}function f(b,F,T){var k,Q,st,nt;l(b),k=p(F,T),Q=j(k,2),st=Q[0],nt=Q[1],v.transition().duration(100).ease(M).attr("height",S+tt+X).attr("width",E+B+H).attr("transform","translate("+st+","+nt+")"),s.attr("height",S+tt+X).attr("width",E+B+H)}return g.hide=function(){return v.style("visibility","hidden"),this},g.nameLabel=function(b){return arguments.length?(L=b,this):L},g.numberFormat=function(b){return arguments.length?(u=b,this):u},g.valueFormatter=function(b){return arguments.length?(C=b,this):C},g.show=function(){var b;return l(b),v.style("visibility","visible"),this},g.title=function(b){return arguments.length?(U=b,this):U},g.update=function(b,F,T){return f(b,F,T),this},g.valueLabel=function(b){return arguments.length?(d=b,this):d},g}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,j=Object.assign||function(et){for(var K=1;KXt[pe]?-1:Xt[he]===Xt[pe]?0:1}),Yt=At.indexOf("Other");if(Yt>=0){var ae=At.splice(Yt,1);At=At.concat(ae)}return At}(yt);var It=d.stack().keys(Rt).order(d.stackOrderNone).offset(d.stackOffsetNone);Ye=It(Kn),xe=It(Mn)}(),Sr=Oe?ze.maxY:(Bi=nt(Nn.map(function(Qe){return Qe.name})),Z.max(Mn,function(Qe){var yt=Bi.map(function(It){return Qe[It]});return Z.sum(yt)})),I=U.scaleTime().domain(Z.extent(pn,function(Qe){return Qe.date})).rangeRound([0,hn]),ot=U.scaleLinear().domain([0,Sr]).rangeRound([yn,0]).nice(),gt=Rt.reduce(function(Qe,yt,It){return s({},Qe,J({},yt,pt[It]))},{}),ee=nt(Nn.map(function(Qe){return Qe.name})),Se={},ee.forEach(function(Qe){var yt=Nn.find(function(It){return It.name===Qe});yt.hasOwnProperty("show")?Se[Qe]=yt.show:Se[Qe]=!0}),wt=Se,function(Qe){qe||((qe=L.select(Qe).append("svg").classed("britechart stacked-area",!0)).append("rect").classed("export-wrapper",!0).attr("width",mt).attr("height",Et).attr("fill","white"),function(){var yt=qe.append("g").classed("container-group",!0).attr("transform","translate("+dt.left+","+dt.top+")");yt.append("g").classed("x-axis-group",!0).append("g").classed("x axis",!0),yt.selectAll(".x-axis-group").append("g").classed("month-axis",!0),yt.append("g").classed("y-axis-group axis",!0),yt.append("g").classed("grid-lines-group",!0),yt.append("g").classed("y-axis-label",!0),yt.append("g").classed("chart-group",!0),ce&&yt.append("g").classed("legend-group",!0),yt.append("g").classed("metadata-group",!0)}()),qe.attr("width",mt).attr("height",Et)}(this),function(){var Qe=void 0,yt=void 0;if(Zt==="custom"&&typeof Wt=="string")Qe={tick:ne,format:M.timeFormat(Wt)},yt=null;else{var It=u(pn,mt,Zt,le);Qe=It.minor,yt=It.major,rt=tt.axisBottom(I).ticks(yt.tick).tickSize(0,0).tickFormat(yt.format)}Y=tt.axisBottom(I).ticks(Qe.tick).tickSize(10,0).tickPadding(5).tickFormat(Qe.format),D=tt.axisRight(ot).ticks(W).tickSize([0]).tickPadding(5).tickFormat(vn),function(Xt,At){qe.select(".grid-lines-group").selectAll("line").remove(),(fr==="horizontal"||fr==="full")&&qe.select(".grid-lines-group").selectAll("line.horizontal-grid-line").data(ot.ticks(At)).enter().append("line").attr("class","horizontal-grid-line").attr("x1",-Ie-30).attr("x2",hn).attr("y1",function(Yt){return ot(Yt)}).attr("y2",function(Yt){return ot(Yt)}),fr!=="vertical"&&fr!=="full"||qe.select(".grid-lines-group").selectAll("line.vertical-grid-line").data(I.ticks(Xt)).enter().append("line").attr("class","vertical-grid-line").attr("y1",0).attr("y2",yn).attr("x1",function(Yt){return I(Yt)}).attr("x2",function(Yt){return I(Yt)}),qe.select(".grid-lines-group").selectAll("line.extended-x-line").data([0]).enter().append("line").attr("class","extended-x-line").attr("x1",-Ie-30).attr("x2",hn).attr("y1",Et-dt.bottom-dt.top).attr("y2",Et-dt.bottom-dt.top)}(Qe.tick,W)}(),function(){qe.select(".x-axis-group .axis.x").attr("transform","translate( 0, "+yn+" )").call(Y),Zt!=="custom"&&qe.select(".x-axis-group .month-axis").attr("transform","translate(0, "+(yn+30)+")").call(rt),qe.select(".y-axis-group.axis").attr("transform","translate( "+-Ie+", 0)").call(D).call(cr),lt&&(it&&qe.selectAll(".y-axis-label-text").remove(),it=qe.select(".y-axis-label").append("text").classed("y-axis-label-text",!0).attr("x",-yn/2).attr("y",vt).attr("text-anchor","middle").attr("transform","rotate(270 0 0)").text(lt))}(),function(){if(be&&(qe.selectAll(".layer-container").remove(),qe.selectAll(".layer").remove(),qe.selectAll(".area-outline").remove()),Oe)return Qe=d.line().x(function(It){return I(It.date)}).y(function(){return ot(0)-1}),(yt=qe.select(".chart-group")).append("path").attr("class","empty-data-line").attr("d",Qe(Mn)).style("stroke","url(#empty-data-line-gradient)"),void yt.append("linearGradient").attr("id","empty-data-line-gradient").attr("gradientUnits","userSpaceOnUse").attr("x1",0).attr("x2",I(Nn[Nn.length-1].date)).attr("y1",0).attr("y2",0).selectAll("stop").data([{offset:"0%",color:xt[0]},{offset:"100%",color:xt[1]}]).enter().append("stop").attr("offset",function(It){return It.offset}).attr("stop-color",function(It){return It.color});var Qe,yt;tn=d.area().curve(S[de]).x(function(It){var Xt=It.data;return I(Xt.date)}).y0(function(It){return ot(It[0])}).y1(function(It){return ot(It[1])}),an=d.line().curve(tn.curve()).x(function(It){var Xt=It.data;return I(Xt.date)}).y(function(It){return ot(It[1])}),zt?((be=qe.select(".chart-group").selectAll(".layer").data(Ye,Te).enter().append("g").classed("layer-container",!0)).append("path").attr("class","layer").attr("d",tn).style("opacity",function(It){var Xt=It.key;return wt[Xt]?Nt:0}).style("fill",function(It){var Xt=It.key;return gt[Xt]}),be.append("path").attr("class","area-outline").attr("d",an).style("stroke",function(It){var Xt=It.key;return gt[Xt]}).style("opacity",function(It){var Xt=It.key;return wt[Xt]?Nt:0}),qe.select(".chart-group").selectAll(".layer").data(xe).transition().delay(function(It,Xt){return Jt[Xt]}).duration(1e3).ease(_e).attr("d",tn).style("opacity",function(It){var Xt=It.key;return wt[Xt]?Nt:0}).style("fill",function(It){var Xt=It.key;return gt[Xt]}),qe.select(".chart-group").selectAll(".area-outline").data(xe).transition().delay(function(It,Xt){return Jt[Xt]}).duration(1e3).ease(_e).attr("d",an).style("opacity",function(It){var Xt=It.key;return wt[Xt]?Nt:0})):((be=qe.select(".chart-group").selectAll(".layer").data(xe).enter().append("g").classed("layer-container",!0)).append("path").attr("class","layer").attr("d",tn).style("opacity",function(It){var Xt=It.key;return wt[Xt]?Nt:0}).style("fill",function(It){var Xt=It.key;return gt[Xt]}),be.append("path").attr("class","area-outline").attr("d",an).style("stroke",function(It){var Xt=It.key;return gt[Xt]}).style("opacity",function(It){var Xt=It.key;return wt[Xt]?Nt:0}),qe.select(".chart-group").selectAll(".layer").attr("d",tn).style("opacity",function(It){var Xt=It.key;return wt[Xt]?Nt:0}).style("fill",function(It){var Xt=It.key;return gt[Xt]}),qe.select(".chart-group").selectAll(".area-outline").attr("class","area-outline").attr("d",an).style("stroke",function(It){var Xt=It.key;return gt[Xt]}).style("opacity",function(It){var Xt=It.key;return wt[Xt]?Nt:0})),ye||qe.select(".chart-group").selectAll(".area-outline").style("display","none"),be.exit().transition().style("opacity",0).remove()}(),function(){if(ce){var Qe=Number.parseInt(hn)+Number.parseInt(dt.right);Ze=qe.selectAll(".legend-group").append("g").attr("transform","translate("+Qe+", 0)").classed("tooltip-text",!0),Me=Ze.append("text").classed("tooltip-title",!0).attr("x",-43).attr("dy",".35em").attr("y",16).style("fill","#282C35").style("font-size","12px"),Ze.append("line").classed("tooltip-divider",!0).attr("x1",-43).attr("x2",225).attr("y1",31).attr("y2",31).style("stroke","#D2D6DF"),Sn=Ze.append("g").classed("tooltip-body",!0).style("transform","translateY(8px)").style("fill","#282C35");for(var yt=[].concat(K(new Set(Nn.map(function(ke){return ke.name})))),It=[],Xt=function(ke){var Ke={},Ue=yt[ke];Ke.name=Ue,Ke.sum=Nn.filter(function(rn){return rn.name===yt[ke]}).reduce(function(rn,En){return rn+En.value},0),It.push(Ke)},At=0;Atge&&!Oe&&(function(){Kt&&qe.selectAll(".overlay").remove(),Kt=qe.select(".metadata-group").append("rect").attr("class","overlay").attr("y1",0).attr("y2",yn).attr("height",yn).attr("width",hn).attr("fill","rgba(0, 0, 0, 0)").style("display","none")}(),function(){te&&qe.selectAll(".vertical-marker-container").remove(),te=qe.select(".metadata-group").append("g").attr("class","vertical-marker-container").attr("transform","translate(9999, 0)"),Ot=te.selectAll("path").data([{x1:0,y1:0,x2:0,y2:0}]).enter().append("line").classed("vertical-marker",!0).attr("x1",0).attr("y1",yn).attr("x2",0).attr("y2",0)}(),qe.on("mouseover",function(Qe){(function(yt,It){Kt.style("display","block"),Ot.classed("bc-is-active",!0),nn.call("customMouseOver",yt,It,L.mouse(yt))})(this,Qe)}).on("mouseout",function(Qe){(function(yt,It){Kt.style("display","none"),Ot.classed("bc-is-active",!1),nn.call("customMouseOut",yt,It,L.mouse(yt))})(this,Qe)}).on("mousemove",function(Qe){(function(yt){Bt||Dr();var It=L.mouse(yt),Xt=et(It,2),At=Xt[0],Yt=Xt[1],ae=er(At-dt.left),he=void 0;ae&&(ar(he=I(new Date(ae.key))),Rr(ae),nn.call("customMouseMove",yt,ae,gt,he,Yt))})(this)})),Ut&&function(){Bt||Dr();var Qe=er(hn);Qe&&(ar(I(new Date(Qe.key))),Rr(Qe))}()})}function wn(){qe.on("touchmove",function(Dn){(function(Nr,hi){nn.call("customTouchMove",Nr,hi,L.touch(Nr))})(this,Dn)})}function vn(Dn){return(p(Dn)?g:x)(Dn)}function cr(Dn){Dn.selectAll(".tick text").attr("transform","translate(-20, -8)")}function Jn(Dn){return new Date(Dn).toLocaleDateString()}function dr(Dn){var Nr,hi,si=void 0,Kr=void 0;Nr=Dn.name,hi=Dn.sum.toLocaleString(),Kr=Sn.append("text").classed("tooltip-left-text",!0).attr("dy","1em").attr("x",-15).attr("y",en).style("fill","#000000").style("font-size","12px").text(Nr).call(gr,200,12,-25),si=Sn.append("text").classed("tooltip-right-text",!0).attr("dy","1em").attr("x",-15).attr("y",en).style("fill","#000000").style("font-size","12px").text(hi),xn=Kr.node().getBBox().height?Kr.node().getBBox().height:xn,xn+5,De=si.node().getBBox().width?si.node().getBBox().width:De,si.attr("x",300-De-75),Sn.append("circle").classed("tooltip-circle",!0).attr("cx",-35).attr("cy",en+8).attr("r",5).style("fill",gt[Dn.name]).style("stroke-width",1),en+=xn+7}function gr(Dn,Nr,hi){var si=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;Dn.each(function(){var Kr,Sr,Bi,ee,Se,Xe,Qe;for(Kr=(Dn=L.select(this)).text().split(/\s+/).reverse(),Bi=[],ee=0,Se=Dn.attr("y"),Xe=parseFloat(Dn.attr("dy")),Qe=Dn.text(null).append("tspan").attr("x",si).attr("y",Se).attr("dy",Xe+"em");Sr=Kr.pop();)Bi.push(Sr),Qe.text(Bi.join(" ")),w.getTextWidth(Bi.join(" "),hi,"Karla, sans-serif")>Nr&&(Bi.pop(),Qe.text(Bi.join(" ")),ee<4&&(Bi=[Sr],Qe=Dn.append("tspan").attr("x",si).attr("y",Se).attr("dy",1.2*++ee+Xe+"em").text(Sr)))})}function er(Dn){var Nr=pn.filter(function(hi){var si=hi.date;return Math.abs(I(si)-Dn)<=Bt});if(Nr.length)return Nr[0]}function Dr(){var Dn=pn.map(function(Nr){return Nr.date});Bt=(I(Dn[1])-I(Dn[0]))/2}function Rr(Dn){var Nr=Dn.values,hi=0;te.selectAll(".circle-container").remove(),Nr=Nr.filter(function(Kr){return!!Kr});var si=Rt.reduce(function(Kr,Sr){return[].concat(K(Kr),[Nr.find(function(Bi){return Bi.name===Sr})])},[]);si.forEach(function(Kr,Sr){var Bi=te.append("g").classed("circle-container",!0).append("circle").classed("data-point-highlighter",!0).attr("cx",12).attr("cy",0).attr("r",5).style("stroke-width",1.2).style("stroke",gt[Kr.name]).style("opacity",function(ee){var Se=ee.key;return wt[Se]?Nt:0}).style("cursor","pointer").on("click",function(){(function(ee){Ct||(Ct=f(qe.select(".metadata-group")),Tt=b(Ct));var Se=L.select(ee);Se.style("stroke-width",5).style("stroke-opacity",.6).attr("filter","url(#"+Tt+")"),F(Se,_e,7)})(this),function(ee,Se){nn.call("customDataEntryClick",ee,Se,L.mouse(ee))}(this,Kr)}).on("mouseout",function(){var ee;ee=this,L.select(ee).attr("filter","none")});hi+=si[Sr][ve],Bi.attr("transform","translate( -12, "+ot(hi)+" )")})}function ar(Dn){te.attr("transform","translate("+Dn+",0)")}return fn.areaCurve=function(Dn){return arguments.length?(de=Dn,this):de},fn.areaOpacity=function(Dn){return arguments.length?(Nt=Dn,this):Nt},fn.aspectRatio=function(Dn){return arguments.length?(P=Dn,this):P},fn.axisTimeCombinations=E,fn.colorSchema=function(Dn){return arguments.length?(pt=Dn,this):pt},fn.dateLabel=function(Dn){return arguments.length?(Ge=Dn,this):Ge},fn.emptyDataConfig=function(Dn){return arguments.length?(ze=Dn,this):ze},fn.grid=function(Dn){return arguments.length?(fr=Dn,this):fr},fn.hasOutline=function(Dn){return arguments.length?(ye=Dn,this):ye},fn.height=function(Dn){return arguments.length?(P&&(mt=Math.ceil(Dn/P)),Et=Dn,this):Et},fn.initializeVerticalMarker=function(Dn){return arguments.length?(Ut=Dn,this):Ut},fn.isAnimated=function(Dn){return arguments.length?(zt=Dn,this):zt},fn.isPrintMode=function(Dn){return arguments.length?(ce=Dn,this):ce},fn.keyLabel=function(Dn){return arguments.length?(Re=Dn,this):Re},fn.margin=function(Dn){return arguments.length?(dt=j({},dt,Dn),this):dt},fn.tooltipThreshold=function(Dn){return arguments.length?(ge=Dn,this):ge},fn.topicsOrder=function(Dn){return arguments.length?(jt=Dn,this):jt},fn.loadingState=function(Dn){return arguments.length?(Mt=Dn,this):Mt},fn.locale=function(Dn){return arguments.length?(le=Dn,this):le},fn.exportChart=function(Dn,Nr){_.call(fn,qe,Dn,Nr)},fn.on=function(){var Dn=nn.on.apply(nn,arguments);return Dn===nn?fn:Dn},fn.valueLabel=function(Dn){return arguments.length?(ve=Dn,this):ve},fn.width=function(Dn){return arguments.length?(P&&(Et=Math.ceil(Dn*P)),mt=Dn,this):mt},fn.xAxisCustomFormat=function(Dn){return arguments.length?(Wt=Dn,this):Wt},fn.xAxisFormat=function(Dn){return arguments.length?(Zt=Dn,this):Zt},fn.xTicks=function(Dn){return arguments.length?(ne=Dn,this):ne},fn.yAxisLabel=function(Dn){return arguments.length?(lt=Dn,this):lt},fn.yAxisLabelOffset=function(Dn){return arguments.length?(vt=Dn,this):vt},fn.yTicks=function(Dn){return arguments.length?(W=Dn,this):W},fn}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,j=Object.assign||function(et){for(var K=1;K0&&arguments[0]!==void 0&&arguments[0],Ot=te?1:0;lt.attr("opacity",Ot),it.attr("opacity",Ot)}return tn.aspectRatio=function(te){return arguments.length?(S=te,this):S},tn.circleOpacity=function(te){return arguments.length?(xt=te,this):xt},tn.colorSchema=function(te){return arguments.length?(gt=te,this):gt},tn.exportChart=function(te,Ot){d.call(tn,Wt,te,Ot)},tn.grid=function(te){return arguments.length?(l=te,this):l},tn.hasCrossHairs=function(te){return arguments.length?(Rt=te,this):Rt},tn.hasHollowCircles=function(te){return arguments.length?(ne=te,this):ne},tn.hasTrendline=function(te){return arguments.length?(jt=te,this):jt},tn.height=function(te){return arguments.length?(S&&(C=Math.ceil(te/S)),E=te,this):E},tn.highlightTextLegendOffset=function(te){return arguments.length?(vt=te,this):vt},tn.isAnimated=function(te){return arguments.length?(wt=te,this):wt},tn.margin=function(te){return arguments.length?(u=j({},u,te),this):u},tn.maxCircleArea=function(te){return arguments.length?(Nt=te,this):Nt},tn.on=function(){var te=xe.on.apply(xe,arguments);return te===xe?tn:te},tn.width=function(te){return arguments.length?(S&&(E=Math.ceil(te*S)),C=te,this):C},tn.xAxisLabel=function(te){return arguments.length?(I=te,this):I},tn.xAxisLabelOffset=function(te){return arguments.length?(rt=te,this):rt},tn.xAxisFormat=function(te){return arguments.length?(F=te,this):F},tn.xTicks=function(te){return arguments.length?(x=te,this):x},tn.yAxisFormat=function(te){return arguments.length?(Q=te,this):Q},tn.yAxisLabel=function(te){return arguments.length?(mt=te,this):mt},tn.yAxisLabelOffset=function(te){return arguments.length?(Mt=te,this):Mt},tn.yTicks=function(te){return arguments.length?(p=te,this):p},tn}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,j=Object.assign||function(K){for(var J=1;JD&&mt.on("mouseover",function(Kt){(function(te,Ot){ne.call("customMouseOver",te,Ot,d.mouse(te))})(this,Kt)}).on("mouseout",function(Kt){(function(te,Ot){mt.select(".metadata-group").attr("transform","translate(9999, 0)"),ne.call("customMouseOut",te,Ot,d.mouse(te))})(this,Kt)}).on("mousemove",function(Kt){var te,Ot,Bt,Ut,zt,ce,_e,ye,qe,hn;Ot=de(te=this),Bt=et(Ot,2),Ut=Bt[0],zt=Bt[1],ce=dt?be(zt):xe(Ut),_e=void 0,ye=void 0,ce&&(dt?(_e=Ut-_.left,ye=g(ce.key)+g.bandwidth()/2):(_e=E(ce.key)+S(ce[Nt]),ye=zt-_.bottom),qe=_e,hn=ye,mt.select(".metadata-group").attr("transform","translate("+qe+","+hn+")"),ne.call("customMouseMove",te,ce,Q,_e,ye))}).on("click",function(Kt){var te,Ot,Bt,Ut,zt,ce;Ot=de(te=this),Bt=et(Ot,2),Ut=Bt[0],zt=Bt[1],ce=dt?be(zt):xe(Ut),ne.call("customClick",te,ce,d.mouse(te))}),mt.selectAll(".bar").on("mouseover",function(Kt){(function(te,Ot){d.select(te).attr("fill",function(){return Z.color(Q[Ot.group]).darker()})})(this,Kt)}).on("mouseout",function(Kt){(function(te,Ot){d.select(te).attr("fill",function(){return Q[Ot.group]})})(this,Kt)})}()})}function le(an){an.selectAll(".tick text").attr("transform","translate("+f.x+", "+f.y+")")}function de(an){return d.mouse(an)}function xe(an){var Jt=an-_.left,Kt=S.bandwidth(),te=[];return st.forEach(function(Ot){var Bt=Ot.values.find(function(Ut){return Math.abs(Jt>=E(Ut[Ct])+S(Ut[Nt]))&&Math.abs(Jt-S(Ut[Nt])-E(Ut[Ct])<=Kt)});Bt&&(Bt.values=Ot.values,Bt.key=Bt.name,te.push(Bt))}),te.length?te[0]:void 0}function be(an){var Jt=an-_.bottom,Kt=g.bandwidth(),te=[];return st.map(function(Ot){var Bt=Ot.values.find(function(Ut){return Math.abs(Jt>=g(Ut[Ct]))&&Math.abs(Jt-g(Ut[Ct])<=2*Kt)});Bt&&(Bt.values=Ot.values,Bt.key=Bt.name,te.push(Bt))}),te.length?te[0]:void 0}function Ye(an){var Jt=d.select(this),Kt=B.interpolateRound(0,E(Rt(an))),te=B.interpolateNumber(0,1);return function(Ot){Jt.attr("width",Kt(Ot)).style("opacity",te(Ot))}}function tn(an){var Jt=d.select(this),Kt=B.interpolateRound(0,Mt-g(Rt(an))),te=B.interpolateRound(Mt,g(Rt(an))),Ot=B.interpolateNumber(0,1);return function(Bt){Jt.attr("y",te(Bt)).attr("height",Kt(Bt)).style("opacity",Ot(Bt))}}return Wt.aspectRatio=function(an){return arguments.length?(l=an,this):l},Wt.colorSchema=function(an){return arguments.length?(T=an,this):T},Wt.exportChart=function(an,Jt){M.call(Wt,mt,an,Jt)},Wt.groupLabel=function(an){return arguments.length?(Nt=an,this):Nt},Wt.grid=function(an){return arguments.length?(xt=an,this):xt},Wt.height=function(an){return arguments.length?(l&&(o=Math.ceil(an/l)),u=an,this):u},Wt.isHorizontal=function(an){return arguments.length?(dt=an,this):dt},Wt.isAnimated=function(an){return arguments.length?(Zt=an,this):Zt},Wt.loadingState=function(an){return arguments.length?(C=an,this):C},Wt.margin=function(an){return arguments.length?(_=j({},_,an),this):_},Wt.nameLabel=function(an){return arguments.length?(Ct=an,this):Ct},Wt.yTicks=function(an){return arguments.length?(b=an,this):b},Wt.on=function(){var an=ne.on.apply(ne,arguments);return an===ne?Wt:an},Wt.tooltipThreshold=function(an){return arguments.length?(D=an,this):D},Wt.valueLabel=function(an){return arguments.length?(Tt=an,this):Tt},Wt.valueLabelFormat=function(an){return arguments.length?(gt=an,this):gt},Wt.width=function(an){return arguments.length?(l&&(u=Math.ceil(an*l)),o=an,this):o},Wt.xTicks=function(an){return arguments.length?(F=an,this):F},Wt.yAxisLabel=function(an){return arguments.length?(lt=an,this):lt},Wt.yAxisLabelOffset=function(an){return arguments.length?(vt=an,this):vt},Wt.yTickTextOffset=function(an){return arguments.length?(f=an,this):f},Wt}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,j=Object.assign||function(J){for(var q=1;qot?vn-cr-10:vn}).attr("y",function(wn){return b(Ye(wn))+16}).text(function(wn){return ye(xe(wn))+nn(be(wn))+"%"}),xn.enter().append("rect").classed("striped",!0).attr("x",1).attr("y",function(wn){return b(Ye(wn))}).attr("height",b.bandwidth()).attr("fill","url(#diagonalHatch)"));Sn.enter().append("rect").classed("bg-hover",!0).on("click",function(wn){Nn(this,wn)}).attr("x",-E.left).attr("y",function(wn){return b(Ye(wn))}).attr("height",b.bandwidth()*W.length+4*W.length).attr("width",ot+E.left).attr("fill","#d6e8fa").attr("fill-opacity",0).on("mouseover",pn).on("mouseout",Mn),an?(bn.style("opacity",.24).transition().delay(function(wn,vn){return wt[vn]}).duration(1e3).ease(Mt).tween("attr.width",Kn),Y&&Te.style("opacity",.24).transition().delay(function(wn,vn){return wt[vn]}).duration(1e3).ease(Mt).tween("attr.width",fr),fn.style("opacity",.24).transition().delay(function(wn,vn){return wt[vn]}).duration(1e3).ease(Mt).tween("attr.width",Kn)):(bn.attr("width",function(wn){return p(Y?tn(wn):be(wn))}),Y&&Te.attr("width",function(wn){return p(de(wn))}),fn.attr("width",function(wn){return p(Y?tn(wn):be(wn))}))}(ze),ze.exit().transition().style("opacity",0).remove()}(),rt.select(".x-axis-group .axis.x").attr("transform","translate( 0, "+D+" )").call(l),rt.select(".y-axis-group.axis").attr("transform","translate( "+-xt+", 0)").call(F),rt.selectAll(".y-axis-group.axis .tick").call(ge),rt.selectAll(".y-axis-group.axis .tick text").on("mouseover",pn).on("mouseout",Mn).call(ce,E.left-50).selectAll("tspan"),Tt&&(Nt&&rt.selectAll(".y-axis-label-text").remove(),Nt=rt.select(".y-axis-label").append("text").classed("y-axis-label-text",!0).attr("x",-D/2).attr("y",gt).attr("text-anchor","middle").attr("transform","rotate(270 0 0)").text(Tt)),function(){if(Jt){var ze=Number.parseInt(ot)+Number.parseInt(E.right);Kt=rt.selectAll(".legend-group").append("g").attr("transform","translate("+ze+", -30)").classed("tooltip-text",!0),te=Kt.append("g").classed("tooltip-body",!0).style("transform","translateY(8px)").style("fill","#282C35"),[].concat(K(new Set(P.map(function(Oe){return Oe.group})))).reverse().forEach(_e)}}(),function(){v>pt&&rt.on("mouseover",function(ze){(function(Oe,De){Ut.call("customMouseOver",Oe,De,M.mouse(Oe)),pn(De)})(this,ze)}).on("mouseout",function(ze){(function(Oe,De){rt.select(".metadata-group").attr("transform","translate(9999, 0)"),Ut.call("customMouseOut",Oe,De,M.mouse(Oe))})(this,ze)}).on("mousemove",function(ze){var Oe,De,Ze,Sn,Me,en,xn,Te,bn;De=hn(Oe=this),Ze=et(De,2),Sn=Ze[0],Me=yn(Ze[1]),en=void 0,xn=void 0,Me&&(en=Sn-E.left,xn=f(Me.key)+f.bandwidth()/2,Te=en,bn=xn,rt.select(".metadata-group").attr("transform","translate("+Te+","+bn+")"),Ut.call("customMouseMove",Oe,Me,mt,en,xn))}).on("click",function(ze){Nn(this,ze)}),rt.selectAll(".row").on("mouseover",function(ze){(function(Oe,De){M.select(Oe).attr("fill",function(){return tt.color(mt[De.group]).darker()})})(this,ze)}).on("mouseout",function(ze){(function(Oe,De){M.select(Oe).attr("fill",function(){return mt[De.group]})})(this,ze)})}()})}function ce(Ge,ve){w.wrapTextWithEllipses(Ge,ve,-10,2,.8)}function _e(Ge){var ve,Re=Ge,ze=void 0;ve=Ge,ze=te.append("text").classed("tooltip-left-text",!0).attr("dy","1em").attr("dx",0).attr("y",Ot).style("fill","#000000").style("font-size","12px").text(ve).call(qe,200,12,-25),Bt=ze.node().getBBox().height?ze.node().getBBox().height:Bt,Bt+5,te.append("circle").classed("tooltip-circle",!0).attr("cx",-39.5).attr("cy",Ot+10).attr("r",5).style("fill",mt[Re]).style("stroke-width",1),Ot+=Bt+7}function ye(Ge){return Ge?Ge+" | ":""}function qe(Ge,ve,Re){var ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;Ge.each(function(){var Oe,De,Ze,Sn,Me,en,xn;for(Oe=(Ge=M.select(this)).text().split(/\s+/).reverse(),Ze=[],Sn=0,Me=Ge.attr("y"),en=parseFloat(Ge.attr("dy")),xn=Ge.text(null).append("tspan").attr("x",ze).attr("y",Me).attr("dy",en+"em");De=Oe.pop();)Ze.push(De),xn.text(Ze.join(" ")),w.getTextWidth(Ze.join(" "),Re,"Karla, sans-serif")>ve&&(Ze.pop(),xn.text(Ze.join(" ")),Sn<4&&(Ze=[De],xn=Ge.append("tspan").attr("x",ze).attr("y",Me).attr("dy",1.2*++Sn+en+"em").text(De)))})}function hn(Ge){return M.mouse(Ge)}function yn(Ge){var ve=Ge-E.bottom,Re=f.bandwidth(),ze=[];return Et.map(function(Oe){var De=Oe.values.find(function(Ze){return Math.abs(ve>=f(Ze[jt]))&&Math.abs(ve-f(Ze[jt])<=2*Re)});De&&(De.values=Oe.values,De.key=De.name,ze.push(De))}),ze.length?ze[0]:void 0}function Nn(Ge,ve){var Re=hn(Ge),ze=et(Re,2),Oe=(ze[0],yn(ze[1]));Ut.call("customClick",Ge,Oe,M.mouse(Ge))}function pn(Ge,ve){var Re=null;this&&(Re=M.select(this.parentNode).attr("class").replace("layer layer-","")),typeof Ge=="string"&&(Re=Ie(Ge)),parseInt(Re)>-1&&(M.select(S).select(".tick svg.visibility-"+Re).attr("opacity",1),M.select(S).select("g .layer-"+Re+" .bg-hover").attr("fill-opacity",.3))}function Mn(Ge,ve){var Re=null;this&&(Re=M.select(this.parentNode).attr("class").replace("layer layer-","")),typeof Ge=="string"&&(Re=Ie(Ge)),parseInt(Re)>-1&&(M.select(S).select(".tick svg.visibility-"+Re).attr("opacity",0),M.select(S).select("g .layer-"+Re+" .bg-hover").attr("fill-opacity",0))}function Kn(Ge){var ve=M.select(this),Re=d.interpolateNumber(0,1),ze=Y?d.interpolateRound(0,p(tn(Ge))):d.interpolateRound(0,p(be(Ge)));return function(Oe){ve.attr("width",ze(Oe)).style("opacity",Re(Oe))}}function fr(Ge){var ve=M.select(this),Re=d.interpolateRound(0,p(de(Ge))),ze=d.interpolateNumber(0,1);return function(Oe){ve.attr("width",Re(Oe)).style("opacity",ze(Oe))}}function ge(Ge){Ge.each(function(){var ve=(Ge=M.select(this)).node().getBBox().height/2,Re=Ge.append("svg").attr("class",function(ze){return"visibility visibility-"+Ie(ze)}).attr("x",-(E.left-5)).attr("y",-ve).attr("width","300").attr("height","300").attr("viewBox","0 0 600 600").attr("fill","none").attr("opacity",0);Re.append("rect").attr("x",-10).attr("y",-10).attr("height","50").attr("width","50").attr("fill","#d6e8fa").on("mouseover",pn).on("mouseout",Mn).attr("opacity",0),Re.append("path").attr("d","M 10,10 L 30,30 M 30,10 L 10,30").attr("stroke","#0072ce").attr("stroke-width","2").on("mouseover",pn).on("mouseout",Mn)})}function Ie(Ge){return lt.indexOf(Ge)}return zt.aspectRatio=function(Ge){return arguments.length?(T=Ge,this):T},zt.colorSchema=function(Ge){return arguments.length?(dt=Ge,this):dt},zt.exportChart=function(Ge,ve){_.call(zt,rt,Ge,ve)},zt.groupLabel=function(Ge){return arguments.length?(ne=Ge,this):ne},zt.grid=function(Ge){return arguments.length?(Rt=Ge,this):Rt},zt.height=function(Ge){return arguments.length?(T&&(v=Math.ceil(Ge/T)),g=Ge,this):g},zt.isHorizontal=function(Ge){return arguments.length?(I=Ge,this):I},zt.isPrintMode=function(Ge){return arguments.length?(Jt=Ge,this):Jt},zt.isStacked=function(Ge){return arguments.length?(Y=Ge,this):Y},zt.isAnimated=function(Ge){return arguments.length?(an=Ge,this):an},zt.loadingState=function(Ge){return arguments.length?(x=Ge,this):x},zt.margin=function(Ge){return arguments.length?(E=j({},E,Ge),this):E},zt.nameLabel=function(Ge){return arguments.length?(jt=Ge,this):jt},zt.yTicks=function(Ge){return arguments.length?(Q=Ge,this):Q},zt.on=function(){var Ge=Ut.on.apply(Ut,arguments);return Ge===Ut?zt:Ge},zt.percentageAxisToMaxRatio=function(Ge){return arguments.length?(nt=Ge,this):nt},zt.tooltipThreshold=function(Ge){return arguments.length?(pt=Ge,this):pt},zt.valueLabel=function(Ge){return arguments.length?(Zt=Ge,this):Zt},zt.valueLabelFormat=function(Ge){return arguments.length?(Wt=Ge,this):Wt},zt.width=function(Ge){return arguments.length?(T&&(g=Math.ceil(Ge*T)),v=Ge,this):v},zt.xTicks=function(Ge){return arguments.length?(st=Ge,this):st},zt.yAxisLabel=function(Ge){return arguments.length?(Tt=Ge,this):Tt},zt.yAxisLabelOffset=function(Ge){return arguments.length?(gt=Ge,this):gt},zt.yTickTextOffset=function(Ge){return arguments.length?(k=Ge,this):k},zt}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,j=Object.assign||function(K){for(var J=1;JW&&Et.on("mouseover",function(_e){(function(ye,qe){le.call("customMouseOver",ye,qe,L.mouse(ye))})(this,_e)}).on("mouseout",function(_e){(function(ye,qe){Et.select(".metadata-group").attr("transform","translate(9999, 0)"),le.call("customMouseOut",ye,qe,L.mouse(ye))})(this,_e)}).on("mousemove",function(_e){var ye,qe,hn,yn,Nn,pn,Mn,Kn,fr,ge;qe=Ye(ye=this),hn=et(qe,2),yn=hn[0],Nn=hn[1],pn=mt?an(Nn):tn(yn),Mn=void 0,Kn=void 0,pn&&(mt?(Mn=yn-o.left,Kn=g(pn.key)+g.bandwidth()/2):(Mn=S(pn.key)+o.left,Kn=Nn-o.bottom),fr=Mn,ge=Kn,Et.select(".metadata-group").attr("transform","translate("+fr+","+ge+")"),le.call("customMouseMove",ye,pn,st,Mn,Kn))}).on("click",function(_e){var ye,qe,hn,yn,Nn,pn;qe=Ye(ye=this),hn=et(qe,2),yn=hn[0],Nn=hn[1],pn=mt?an(Nn):tn(yn),le.call("customClick",ye,pn,L.mouse(ye))}),Et.selectAll(".bar").on("mouseover",Jt).on("mouseout",Kt)}()})}function xe(Bt){Bt.selectAll(".tick text").attr("transform","translate(-20, -8)")}function be(Bt){return Bt.map(function(Ut){for(var zt=0;zt=_e&&Ut=_e&&Ut=pt[1]&&(pt[0]=_[rt].floor(Ct[0]),pt[1]=_[rt].offset(pt[0])),U.select(this).transition().call(U.event.target.move,pt.map(b))}ot.call("customBrushEnd",this,pt)}}function vt(pt,xt){var Ct=null;pt!==null&&(Ct=[b(new Date(pt)),b(new Date(xt))]),dt.move(mt,Ct)}return W.axisTimeCombinations=w,W.dateRange=function(pt){return arguments.length?(p=pt,Array.isArray(p)&&vt.apply(void 0,et(p)),this):p},W.gradient=function(pt){return arguments.length?(I=pt,this):I},W.height=function(pt){return arguments.length?(S=pt,this):S},W.loadingState=function(pt){return arguments.length?(v=pt,this):v},W.locale=function(pt){return arguments.length?(nt=pt,this):nt},W.margin=function(pt){return arguments.length?(C=j({},C,pt),this):C},W.on=function(){var pt=ot.on.apply(ot,arguments);return pt===ot?W:pt},W.width=function(pt){return arguments.length?(E=pt,this):E},W.xAxisCustomFormat=function(pt){return arguments.length?(st=pt,this):st},W.xAxisFormat=function(pt){return arguments.length?(k=pt,this):k},W.xTicks=function(pt){return arguments.length?(Q=pt,this):Q},W.roundingTimeInterval=function(pt){return arguments.length?(rt=pt,this):rt},W}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,j=Object.assign||function(et){for(var K=1;K0)){if(D/=xt,xt<0){if(D0){if(D>pt)return;D>vt&&(vt=D)}if(D=rt-lt,xt||!(D<0)){if(D/=xt,xt<0){if(D>pt)return;D>vt&&(vt=D)}else if(xt>0){if(D0)){if(D/=Ct,Ct<0){if(D0){if(D>pt)return;D>vt&&(vt=D)}if(D=ot-it,Ct||!(D<0)){if(D/=Ct,Ct<0){if(D>pt)return;D>vt&&(vt=D)}else if(Ct>0){if(D0||pt<1)||(vt>0&&(Mt[0]=[lt+vt*xt,it+vt*Ct]),pt<1&&(Mt[1]=[lt+pt*xt,it+pt*Ct]),!0)}}}}}function L(Mt,I,Y,rt,ot){var D=Mt[1];if(D)return!0;var P,W,lt=Mt[0],it=Mt.left,vt=Mt.right,pt=it[0],xt=it[1],Ct=vt[0],Tt=vt[1],Nt=(pt+Ct)/2,gt=(xt+Tt)/2;if(Tt===xt){if(Nt=rt)return;if(pt>Ct){if(lt){if(lt[1]>=ot)return}else lt=[Nt,Y];D=[Nt,ot]}else{if(lt){if(lt[1]1)if(pt>Ct){if(lt){if(lt[1]>=ot)return}else lt=[(Y-W)/P,Y];D=[(ot-W)/P,ot]}else{if(lt){if(lt[1]=rt)return}else lt=[I,P*I+W];D=[rt,P*rt+W]}else{if(lt){if(lt[0]=-nt)){var Ct=lt*lt+it*it,Tt=vt*vt+pt*pt,Nt=(pt*Ct-it*Tt)/xt,gt=(lt*Tt-vt*Ct)/xt,wt=o.pop()||new u;wt.arc=Mt,wt.site=ot,wt.x=Nt+P,wt.y=(wt.cy=gt+W)+Math.sqrt(Nt*Nt+gt*gt),Mt.circle=wt;for(var Rt=null,jt=k._;jt;)if(wt.yst)W=W.L;else{if(!((ot=D-b(W,P))>st)){rt>-st?(I=W.P,Y=W):ot>-st?(I=W,Y=W.N):I=Y=W;break}if(!W.R){I=W;break}W=W.R}(function(ne){T[ne.index]={site:ne,halfedges:[]}})(Mt);var lt=g(Mt);if(F.insert(I,lt),I||Y){if(I===Y)return E(I),Y=g(I.site),F.insert(lt,Y),lt.edge=Y.edge=X(I.site,lt.site),C(I),void C(Y);if(Y){E(I),E(Y);var it=I.site,vt=it[0],pt=it[1],xt=Mt[0]-vt,Ct=Mt[1]-pt,Tt=Y.site,Nt=Tt[0]-vt,gt=Tt[1]-pt,wt=2*(xt*gt-Ct*Nt),Rt=xt*xt+Ct*Ct,jt=Nt*Nt+gt*gt,Zt=[(gt*Rt-Ct*jt)/wt+vt,(xt*jt-Nt*Rt)/wt+pt];U(Y.edge,it,Tt,Zt),lt.edge=X(it,Mt,null,Zt),Y.edge=X(Mt,Tt,null,Zt),C(I),C(Y)}else lt.edge=X(I.site,lt.site)}}function f(Mt,I){var Y=Mt.site,rt=Y[0],ot=Y[1],D=ot-I;if(!D)return rt;var P=Mt.P;if(!P)return-1/0;var W=(Y=P.site)[0],lt=Y[1],it=lt-I;if(!it)return W;var vt=W-rt,pt=1/D-1/it,xt=vt/it;return pt?(-xt+Math.sqrt(xt*xt-2*pt*(vt*vt/(-2*it)-lt+it/2+ot-D/2)))/pt+rt:(rt+W)/2}function b(Mt,I){var Y=Mt.N;if(Y)return f(Y,I);var rt=Mt.site;return rt[1]===I?rt[0]:1/0}var F,T,k,Q,st=1e-6,nt=1e-12;function dt(Mt,I){return I[1]-Mt[1]||I[0]-Mt[0]}function mt(Mt,I){var Y,rt,ot,D=Mt.sort(dt).pop();for(Q=[],T=new Array(Mt.length),F=new H,k=new H;;)if(ot=_,D&&(!ot||D[1]st||Math.abs(Tt[0][1]-Tt[1][1])>st)||delete Q[Nt]})(P,W,lt,it),function(vt,pt,xt,Ct){var Tt,Nt,gt,wt,Rt,jt,Zt,ne,Wt,le,de,xe,be=T.length,Ye=!0;for(Tt=0;Ttst||Math.abs(xe-Wt)>st)&&(Rt.splice(wt,0,Q.push(B(gt,le,Math.abs(de-vt)st?[vt,Math.abs(ne-vt)st?[Math.abs(Wt-Ct)st?[xt,Math.abs(ne-xt)st?[Math.abs(Wt-pt)=W)return null;var lt=Mt-ot.site[0],it=I-ot.site[1],vt=lt*lt+it*it;do ot=D.cells[rt=P],P=null,ot.halfedges.forEach(function(pt){var xt=D.edges[pt],Ct=xt.left;if(Ct!==ot.site&&Ct||(Ct=xt.right)){var Tt=Mt-Ct[0],Nt=I-Ct[1],gt=Tt*Tt+Nt*Nt;gtMath.abs(De[1]-Mn[1])?Ye=!0:be=!0),Mn=De,xe=!0,L(),ve()}function ve(){var De;switch(qe=Mn[0]-pn[0],hn=Mn[1]-pn[1],Jt){case s:case M:Kt&&(qe=Math.max(zt-wt,Math.min(_e-ne,qe)),Rt=wt+qe,Wt=ne+qe),te&&(hn=Math.max(ce-jt,Math.min(ye-le,hn)),Zt=jt+hn,de=le+hn);break;case w:Kt<0?(qe=Math.max(zt-wt,Math.min(_e-wt,qe)),Rt=wt+qe,Wt=ne):Kt>0&&(qe=Math.max(zt-ne,Math.min(_e-ne,qe)),Rt=wt,Wt=ne+qe),te<0?(hn=Math.max(ce-jt,Math.min(ye-jt,hn)),Zt=jt+hn,de=le):te>0&&(hn=Math.max(ce-le,Math.min(ye-le,hn)),Zt=jt,de=le+hn);break;case _:Kt&&(Rt=Math.max(zt,Math.min(_e,wt-qe*Kt)),Wt=Math.max(zt,Math.min(_e,ne+qe*Kt))),te&&(Zt=Math.max(ce,Math.min(ye,jt-hn*te)),de=Math.max(ce,Math.min(ye,le+hn*te)))}Wt0&&(wt=Rt-qe),te<0?le=de-hn:te>0&&(jt=Zt-hn),Jt=s,ge.attr("cursor",g.selection),ve());break;default:return}L()}function Oe(){switch(et.c.keyCode){case 16:yn&&(be=Ye=yn=!1,ve());break;case 18:Jt===_&&(Kt<0?ne=Wt:Kt>0&&(wt=Rt),te<0?le=de:te>0&&(jt=Zt),Jt=w,ve());break;case 32:Jt===s&&(et.c.altKey?(Kt&&(ne=Wt-qe*Kt,wt=Rt+qe*Kt),te&&(le=de-hn*te,jt=Zt+hn*te),Jt=_):(Kt<0?ne=Wt:Kt>0&&(wt=Rt),te<0?le=de:te>0&&(jt=Zt),Jt=w),ge.attr("cursor",g[an]),ve());break;default:return}L()}}function Tt(){pt(this,arguments).moved()}function Nt(){pt(this,arguments).ended()}function gt(){var wt=this.__brush||{selection:null};return wt.extent=u(rt.apply(this,arguments)),wt.dim=I,wt}return it.move=function(wt,Rt){wt.selection?wt.on("start.brush",function(){pt(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){pt(this,arguments).end()}).tween("brush",function(){var jt=this,Zt=jt.__brush,ne=pt(jt,arguments),Wt=Zt.selection,le=I.input(typeof Rt=="function"?Rt.apply(this,arguments):Rt,Zt.extent),de=Object(Z.a)(Wt,le);function xe(be){Zt.selection=be===1&&le===null?null:de(be),vt.call(jt),ne.brush()}return Wt!==null&&le!==null?xe:xe(1)}):wt.each(function(){var jt=this,Zt=arguments,ne=jt.__brush,Wt=I.input(typeof Rt=="function"?Rt.apply(jt,Zt):Rt,ne.extent),le=pt(jt,Zt).beforestart();Object(X.interrupt)(jt),ne.selection=Wt===null?null:Wt,vt.call(jt),le.start().brush().end()})},it.clear=function(wt){it.move(wt,null)},xt.prototype={beforestart:function(){return++this.active==1&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return--this.active==0&&(delete this.state.emitter,this.emit("end")),this},emit:function(wt){Object(et.a)(new U(it,wt,I.output(this.state.selection)),W.apply,W,[wt,this.that,this.args])}},it.extent=function(wt){return arguments.length?(rt=typeof wt=="function"?wt:B(u(wt)),it):rt},it.filter=function(wt){return arguments.length?(ot=typeof wt=="function"?wt:B(!!wt),it):ot},it.touchable=function(wt){return arguments.length?(D=typeof wt=="function"?wt:B(!!wt),it):D},it.handleSize=function(wt){return arguments.length?(lt=+wt,it):lt},it.keyModifiers=function(wt){return arguments.length?(P=!!wt,it):P},it.on=function(){var wt=W.on.apply(W,arguments);return wt===W?it:wt},it}y.d(m,"brush",function(){return Et}),y.d(m,"brushX",function(){return dt}),y.d(m,"brushY",function(){return mt}),y.d(m,"brushSelection",function(){return nt})}])})},5382:We=>{(function(ue,ht){We.exports=ht()})(window,function(){return function(ue){var ht={};function z(_t){if(ht[_t])return ht[_t].exports;var m=ht[_t]={i:_t,l:!1,exports:{}};return ue[_t].call(m.exports,m,m.exports,z),m.l=!0,m.exports}return z.m=ue,z.c=ht,z.d=function(_t,m,y){z.o(_t,m)||Object.defineProperty(_t,m,{enumerable:!0,get:y})},z.r=function(_t){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(_t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_t,"__esModule",{value:!0})},z.t=function(_t,m){if(1&m&&(_t=z(_t)),8&m||4&m&&typeof _t=="object"&&_t&&_t.__esModule)return _t;var y=Object.create(null);if(z.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:_t}),2&m&&typeof _t!="string")for(var R in _t)z.d(y,R,function(j){return _t[j]}.bind(null,R));return y},z.n=function(_t){var m=_t&&_t.__esModule?function(){return _t.default}:function(){return _t};return z.d(m,"a",m),m},z.o=function(_t,m){return Object.prototype.hasOwnProperty.call(_t,m)},z.p="",z(z.s=107)}([function(ue,ht,z){"use strict";z.d(ht,"a",function(){return y});var _t=new Date,m=new Date;function y(R,j,et,K){function J(q){return R(q=arguments.length===0?new Date:new Date(+q)),q}return J.floor=function(q){return R(q=new Date(+q)),q},J.ceil=function(q){return R(q=new Date(q-1)),j(q,1),R(q),q},J.round=function(q){var Z=J(q),tt=J.ceil(q);return q-Z0))return X;do X.push(H=new Date(+q)),j(q,tt),R(q);while(H=Z)for(;R(Z),!q(Z);)Z.setTime(Z-1)},function(Z,tt){if(Z>=Z)if(tt<0)for(;++tt<=0;)for(;j(Z,-1),!q(Z););else for(;--tt>=0;)for(;j(Z,1),!q(Z););})},et&&(J.count=function(q,Z){return _t.setTime(+q),m.setTime(+Z),R(_t),R(m),Math.floor(et(_t,m))},J.every=function(q){return q=Math.floor(q),isFinite(q)&&q>0?q>1?J.filter(K?function(Z){return K(Z)%q==0}:function(Z){return J.count(0,Z)%q==0}):J:null}),J}},function(ue,ht,z){"use strict";z.d(ht,"d",function(){return _t}),z.d(ht,"c",function(){return m}),z.d(ht,"b",function(){return y}),z.d(ht,"a",function(){return R}),z.d(ht,"e",function(){return j});var _t=1e3,m=6e4,y=36e5,R=864e5,j=6048e5},function(ue,ht,z){"use strict";z.r(ht);var _t=function(I,Y){return IY?1:I>=Y?0:NaN},m=function(I){var Y;return I.length===1&&(Y=I,I=function(rt,ot){return _t(Y(rt),ot)}),{left:function(rt,ot,D,P){for(D==null&&(D=0),P==null&&(P=rt.length);D>>1;I(rt[W],ot)<0?D=W+1:P=W}return D},right:function(rt,ot,D,P){for(D==null&&(D=0),P==null&&(P=rt.length);D>>1;I(rt[W],ot)>0?P=W:D=W+1}return D}}},y=m(_t),R=y.right,j=y.left,et=R,K=function(I,Y){Y==null&&(Y=J);for(var rt=0,ot=I.length-1,D=I[0],P=new Array(ot<0?0:ot);rtI?1:Y>=I?0:NaN},tt=function(I){return I===null?NaN:+I},H=function(I,Y){var rt,ot,D=I.length,P=0,W=-1,lt=0,it=0;if(Y==null)for(;++W1)return it/(P-1)},X=function(I,Y){var rt=H(I,Y);return rt&&Math.sqrt(rt)},B=function(I,Y){var rt,ot,D,P=I.length,W=-1;if(Y==null){for(;++W=rt)for(ot=D=rt;++Wrt&&(ot=rt),D=rt)for(ot=D=rt;++Wrt&&(ot=rt),D0)return[I];if((ot=Y0)for(I=Math.ceil(I/W),Y=Math.floor(Y/W),P=new Array(D=Math.ceil(Y-I+1));++lt=0?(P>=_?10:P>=o?5:P>=u?2:1)*Math.pow(10,D):-Math.pow(10,-D)/(P>=_?10:P>=o?5:P>=u?2:1)}function S(I,Y,rt){var ot=Math.abs(Y-I)/Math.max(0,rt),D=Math.pow(10,Math.floor(Math.log(ot)/Math.LN10)),P=ot/D;return P>=_?D*=10:P>=o?D*=5:P>=u&&(D*=2),Yxt;)Ct.pop(),--Tt;var Nt,gt=new Array(Tt+1);for(P=0;P<=Tt;++P)(Nt=gt[P]=[]).x0=P>0?Ct[P-1]:pt,Nt.x1=P=1)return+rt(I[ot-1],ot-1,I);var ot,D=(ot-1)*Y,P=Math.floor(D),W=+rt(I[P],P,I);return W+(+rt(I[P+1],P+1,I)-W)*(D-P)}},p=function(I,Y,rt){return I=L.call(I,tt).sort(_t),Math.ceil((rt-Y)/(2*(x(I,.75)-x(I,.25))*Math.pow(I.length,-1/3)))},l=function(I,Y,rt){return Math.ceil((rt-Y)/(3.5*X(I)*Math.pow(I.length,-1/3)))},f=function(I,Y){var rt,ot,D=I.length,P=-1;if(Y==null){for(;++P=rt)for(ot=rt;++Pot&&(ot=rt)}else for(;++P=rt)for(ot=rt;++Pot&&(ot=rt);return ot},b=function(I,Y){var rt,ot=I.length,D=ot,P=-1,W=0;if(Y==null)for(;++P=0;)for(Y=(ot=I[D]).length;--Y>=0;)rt[--W]=ot[Y];return rt},k=function(I,Y){var rt,ot,D=I.length,P=-1;if(Y==null){for(;++P=rt)for(ot=rt;++Prt&&(ot=rt)}else for(;++P=rt)for(ot=rt;++Prt&&(ot=rt);return ot},Q=function(I,Y){for(var rt=Y.length,ot=new Array(rt);rt--;)ot[rt]=I[Y[rt]];return ot},st=function(I,Y){if(rt=I.length){var rt,ot,D=0,P=0,W=I[P];for(Y==null&&(Y=_t);++D>8&15|b>>4&240,b>>4&15|240&b,(15&b)<<4|15&b,1):F===8?new u(b>>24&255,b>>16&255,b>>8&255,(255&b)/255):F===4?new u(b>>12&15|b>>8&240,b>>8&15|b>>4&240,b>>4&15|240&b,((15&b)<<4|15&b)/255):null):(b=q.exec(f))?new u(b[1],b[2],b[3],1):(b=Z.exec(f))?new u(255*b[1]/100,255*b[2]/100,255*b[3]/100,1):(b=tt.exec(f))?w(b[1],b[2],b[3],b[4]):(b=H.exec(f))?w(255*b[1]/100,255*b[2]/100,255*b[3]/100,b[4]):(b=X.exec(f))?v(b[1],b[2]/100,b[3]/100,1):(b=B.exec(f))?v(b[1],b[2]/100,b[3]/100,b[4]):U.hasOwnProperty(f)?s(U[f]):f==="transparent"?new u(NaN,NaN,NaN,0):null}function s(f){return new u(f>>16&255,f>>8&255,255&f,1)}function w(f,b,F,T){return T<=0&&(f=b=F=NaN),new u(f,b,F,T)}function _(f){return f instanceof m||(f=M(f)),f?new u((f=f.rgb()).r,f.g,f.b,f.opacity):new u}function o(f,b,F,T){return arguments.length===1?_(f):new u(f,b,F,T==null?1:T)}function u(f,b,F,T){this.r=+f,this.g=+b,this.b=+F,this.opacity=+T}function C(){return"#"+S(this.r)+S(this.g)+S(this.b)}function E(){var f=this.opacity;return((f=isNaN(f)?1:Math.max(0,Math.min(1,f)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(f===1?")":", "+f+")")}function S(f){return((f=Math.max(0,Math.min(255,Math.round(f)||0)))<16?"0":"")+f.toString(16)}function v(f,b,F,T){return T<=0?f=b=F=NaN:F<=0||F>=1?f=b=NaN:b<=0&&(f=NaN),new p(f,b,F,T)}function g(f){if(f instanceof p)return new p(f.h,f.s,f.l,f.opacity);if(f instanceof m||(f=M(f)),!f)return new p;if(f instanceof p)return f;var b=(f=f.rgb()).r/255,F=f.g/255,T=f.b/255,k=Math.min(b,F,T),Q=Math.max(b,F,T),st=NaN,nt=Q-k,dt=(Q+k)/2;return nt?(st=b===Q?(F-T)/nt+6*(F0&&dt<1?0:st,new p(st,nt,dt,f.opacity)}function x(f,b,F,T){return arguments.length===1?g(f):new p(f,b,F,T==null?1:T)}function p(f,b,F,T){this.h=+f,this.s=+b,this.l=+F,this.opacity=+T}function l(f,b,F){return 255*(f<60?b+(F-b)*f/60:f<180?F:f<240?b+(F-b)*(240-f)/60:b)}Object(_t.a)(m,M,{copy:function(f){return Object.assign(new this.constructor,this,f)},displayable:function(){return this.rgb().displayable()},hex:d,formatHex:d,formatHsl:function(){return g(this).formatHsl()},formatRgb:L,toString:L}),Object(_t.a)(u,o,Object(_t.b)(m,{brighter:function(f){return f=f==null?R:Math.pow(R,f),new u(this.r*f,this.g*f,this.b*f,this.opacity)},darker:function(f){return f=f==null?y:Math.pow(y,f),new u(this.r*f,this.g*f,this.b*f,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:C,formatHex:C,formatRgb:E,toString:E})),Object(_t.a)(p,x,Object(_t.b)(m,{brighter:function(f){return f=f==null?R:Math.pow(R,f),new p(this.h,this.s,this.l*f,this.opacity)},darker:function(f){return f=f==null?y:Math.pow(y,f),new p(this.h,this.s,this.l*f,this.opacity)},rgb:function(){var f=this.h%360+360*(this.h<0),b=isNaN(f)||isNaN(this.s)?0:this.s,F=this.l,T=F+(F<.5?F:1-F)*b,k=2*F-T;return new u(l(f>=240?f-240:f+120,k,T),l(f,k,T),l(f<120?f+240:f-120,k,T),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var f=this.opacity;return((f=isNaN(f)?1:Math.max(0,Math.min(1,f)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(f===1?")":", "+f+")")}}))},function(ue,ht,z){"use strict";ht.a=function(_t,m){return _t=+_t,m=+m,function(y){return _t*(1-y)+m*y}}},function(ue,ht,z){"use strict";z.r(ht);var _t=z(12),m=z(32),y=function(o){return Object(m.a)(Object(_t.a)(o).call(document.documentElement))},R=0;function j(){return new et}function et(){this._="@"+(++R).toString(36)}et.prototype=j.prototype={constructor:et,get:function(o){for(var u=this._;!(u in o);)if(!(o=o.parentNode))return;return o[u]},set:function(o,u){return o[this._]=u},remove:function(o){return this._ in o&&delete o[this._]},toString:function(){return this._}};var K=z(34),J=z(60),q=z(20),Z=z(14),tt=z(13),H=z(10),X=function(o){return typeof o=="string"?new H.a([document.querySelectorAll(o)],[document.documentElement]):new H.a([o==null?[]:o],H.c)},B=z(19),U=z(33),d=z(35),L=z(61),M=z(22),s=function(o,u){u==null&&(u=Object(M.a)().touches);for(var C=0,E=u?u.length:0,S=new Array(E);C180||J<-180?J-360*Math.round(J/360):J):Object(_t.a)(isNaN(et)?K:et)}function R(et){return(et=+et)==1?j:function(K,J){return J-K?function(q,Z,tt){return q=Math.pow(q,tt),Z=Math.pow(Z,tt)-q,tt=1/tt,function(H){return Math.pow(q+H*Z,tt)}}(K,J,et):Object(_t.a)(isNaN(K)?J:K)}}function j(et,K){var J=K-et;return J?m(et,J):Object(_t.a)(isNaN(et)?K:et)}},function(ue,ht,z){"use strict";var _t=z(18);ht.a=function(m){return(m=Object(_t.a)(Math.abs(m)))?m[1]:NaN}},function(ue,ht,z){"use strict";var _t=z(19),m=z(33),y=z(34),R=function(P){return new Array(P.length)};function j(P,W){this.ownerDocument=P.ownerDocument,this.namespaceURI=P.namespaceURI,this._next=null,this._parent=P,this.__data__=W}j.prototype={constructor:j,appendChild:function(P){return this._parent.insertBefore(P,this._next)},insertBefore:function(P,W){return this._parent.insertBefore(P,W)},querySelector:function(P){return this._parent.querySelector(P)},querySelectorAll:function(P){return this._parent.querySelectorAll(P)}};function et(P,W,lt,it,vt,pt){for(var xt,Ct=0,Tt=W.length,Nt=pt.length;CtW?1:P>=W?0:NaN}var q=z(20);function Z(P){return function(){this.removeAttribute(P)}}function tt(P){return function(){this.removeAttributeNS(P.space,P.local)}}function H(P,W){return function(){this.setAttribute(P,W)}}function X(P,W){return function(){this.setAttributeNS(P.space,P.local,W)}}function B(P,W){return function(){var lt=W.apply(this,arguments);lt==null?this.removeAttribute(P):this.setAttribute(P,lt)}}function U(P,W){return function(){var lt=W.apply(this,arguments);lt==null?this.removeAttributeNS(P.space,P.local):this.setAttributeNS(P.space,P.local,lt)}}var d=z(35);function L(P){return function(){delete this[P]}}function M(P,W){return function(){this[P]=W}}function s(P,W){return function(){var lt=W.apply(this,arguments);lt==null?delete this[P]:this[P]=lt}}function w(P){return P.trim().split(/^|\s+/)}function _(P){return P.classList||new o(P)}function o(P){this._node=P,this._names=w(P.getAttribute("class")||"")}function u(P,W){for(var lt=_(P),it=-1,vt=W.length;++it=0&&(this._names.splice(W,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(P){return this._names.indexOf(P)>=0}};function g(){this.textContent=""}function x(P){return function(){this.textContent=P}}function p(P){return function(){var W=P.apply(this,arguments);this.textContent=W==null?"":W}}function l(){this.innerHTML=""}function f(P){return function(){this.innerHTML=P}}function b(P){return function(){var W=P.apply(this,arguments);this.innerHTML=W==null?"":W}}function F(){this.nextSibling&&this.parentNode.appendChild(this)}function T(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var k=z(12);function Q(){return null}function st(){var P=this.parentNode;P&&P.removeChild(this)}function nt(){var P=this.cloneNode(!1),W=this.parentNode;return W?W.insertBefore(P,this.nextSibling):P}function dt(){var P=this.cloneNode(!0),W=this.parentNode;return W?W.insertBefore(P,this.nextSibling):P}var mt=z(17),Et=z(21);function Mt(P,W,lt){var it=Object(Et.a)(P),vt=it.CustomEvent;typeof vt=="function"?vt=new vt(W,lt):(vt=it.document.createEvent("Event"),lt?(vt.initEvent(W,lt.bubbles,lt.cancelable),vt.detail=lt.detail):vt.initEvent(W,!1,!1)),P.dispatchEvent(vt)}function I(P,W){return function(){return Mt(this,P,W)}}function Y(P,W){return function(){return Mt(this,P,W.apply(this,arguments))}}z.d(ht,"c",function(){return rt}),z.d(ht,"a",function(){return ot});var rt=[null];function ot(P,W){this._groups=P,this._parents=W}function D(){return new ot([[document.documentElement]],rt)}ot.prototype=D.prototype={constructor:ot,select:function(P){typeof P!="function"&&(P=Object(_t.a)(P));for(var W=this._groups,lt=W.length,it=new Array(lt),vt=0;vt=Ye&&(Ye=be+1);!(xe=le[Ye])&&++Ye=0;)(it=vt[pt])&&(xt&&4^it.compareDocumentPosition(xt)&&xt.parentNode.insertBefore(it,xt),xt=it);return this},sort:function(P){function W(wt,Rt){return wt&&Rt?P(wt.__data__,Rt.__data__):!wt-!Rt}P||(P=J);for(var lt=this._groups,it=lt.length,vt=new Array(it),pt=0;pt1?this.each((W==null?L:typeof W=="function"?s:M)(P,W)):this.node()[P]},classed:function(P,W){var lt=w(P+"");if(arguments.length<2){for(var it=_(this.node()),vt=-1,pt=lt.length;++vt0?Object(_t.a)(function(j){j.setFullYear(Math.floor(j.getFullYear()/R)*R),j.setMonth(0,1),j.setHours(0,0,0,0)},function(j,et){j.setFullYear(j.getFullYear()+et*R)}):null},ht.a=m;var y=m.range},function(ue,ht,z){"use strict";z.d(ht,"b",function(){return y});var _t=z(0),m=Object(_t.a)(function(R){R.setUTCMonth(0,1),R.setUTCHours(0,0,0,0)},function(R,j){R.setUTCFullYear(R.getUTCFullYear()+j)},function(R,j){return j.getUTCFullYear()-R.getUTCFullYear()},function(R){return R.getUTCFullYear()});m.every=function(R){return isFinite(R=Math.floor(R))&&R>0?Object(_t.a)(function(j){j.setUTCFullYear(Math.floor(j.getUTCFullYear()/R)*R),j.setUTCMonth(0,1),j.setUTCHours(0,0,0,0)},function(j,et){j.setUTCFullYear(j.getUTCFullYear()+et*R)}):null},ht.a=m;var y=m.range},function(ue,ht,z){"use strict";z.d(ht,"c",function(){return m}),z.d(ht,"a",function(){return J});var _t={},m=null;typeof document!="undefined"&&("onmouseenter"in document.documentElement||(_t={mouseenter:"mouseover",mouseleave:"mouseout"}));function y(q,Z,tt){return q=R(q,Z,tt),function(H){var X=H.relatedTarget;X&&(X===this||8&X.compareDocumentPosition(this))||q.call(this,H)}}function R(q,Z,tt){return function(H){var X=m;m=H;try{q.call(this,this.__data__,Z,tt)}finally{m=X}}}function j(q){return q.trim().split(/^|\s+/).map(function(Z){var tt="",H=Z.indexOf(".");return H>=0&&(tt=Z.slice(H+1),Z=Z.slice(0,H)),{type:Z,name:tt}})}function et(q){return function(){var Z=this.__on;if(Z){for(var tt,H=0,X=-1,B=Z.length;H1?R[0]+R.slice(2):R,+_t.slice(y+1)]}},function(ue,ht,z){"use strict";function _t(){}ht.a=function(m){return m==null?_t:function(){return this.querySelector(m)}}},function(ue,ht,z){"use strict";var _t=z(14);ht.a=function(m){var y=m+="",R=y.indexOf(":");return R>=0&&(y=m.slice(0,R))!=="xmlns"&&(m=m.slice(R+1)),_t.a.hasOwnProperty(y)?{space:_t.a[y],local:m}:m}},function(ue,ht,z){"use strict";ht.a=function(_t){return _t.ownerDocument&&_t.ownerDocument.defaultView||_t.document&&_t||_t.defaultView}},function(ue,ht,z){"use strict";var _t=z(17);ht.a=function(){for(var m,y=_t.c;m=y.sourceEvent;)y=m;return y}},function(ue,ht,z){"use strict";function _t(m){return ArrayBuffer.isView(m)&&!(m instanceof DataView)}z.d(ht,"b",function(){return _t}),ht.a=function(m,y){y||(y=[]);var R,j=m?Math.min(y.length,m.length):0,et=y.slice();return function(K){for(R=0;R=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function m(R){if(!(j=_t.exec(R)))throw new Error("invalid format: "+R);var j;return new y({fill:j[1],align:j[2],sign:j[3],symbol:j[4],zero:j[5],width:j[6],comma:j[7],precision:j[8]&&j[8].slice(1),trim:j[9],type:j[10]})}function y(R){this.fill=R.fill===void 0?" ":R.fill+"",this.align=R.align===void 0?">":R.align+"",this.sign=R.sign===void 0?"-":R.sign+"",this.symbol=R.symbol===void 0?"":R.symbol+"",this.zero=!!R.zero,this.width=R.width===void 0?void 0:+R.width,this.comma=!!R.comma,this.precision=R.precision===void 0?void 0:+R.precision,this.trim=!!R.trim,this.type=R.type===void 0?"":R.type+""}m.prototype=y.prototype,y.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(ue,ht,z){"use strict";function _t(m,y,R,j,et){var K=m*m,J=K*m;return((1-3*m+3*K-J)*y+(4-6*K+3*J)*R+(1+3*m+3*K-3*J)*j+J*et)/6}z.d(ht,"a",function(){return _t}),ht.b=function(m){var y=m.length-1;return function(R){var j=R<=0?R=0:R>=1?(R=1,y-1):Math.floor(R*y),et=m[j],K=m[j+1],J=j>0?m[j-1]:2*et-K,q=j0?R>1?Object(_t.a)(function(j){j.setTime(Math.floor(j/R)*R)},function(j,et){j.setTime(+j+et*R)},function(j,et){return(et-j)/R}):m:null},ht.a=m;var y=m.range},function(ue,ht,z){"use strict";var _t=z(10);ht.a=function(m){return typeof m=="string"?new _t.a([[document.querySelector(m)]],[document.documentElement]):new _t.a([[m]],_t.c)}},function(ue,ht,z){"use strict";function _t(){return[]}ht.a=function(m){return m==null?_t:function(){return this.querySelectorAll(m)}}},function(ue,ht,z){"use strict";ht.a=function(_t){return function(){return this.matches(_t)}}},function(ue,ht,z){"use strict";z.d(ht,"b",function(){return j});var _t=z(21);function m(et){return function(){this.style.removeProperty(et)}}function y(et,K,J){return function(){this.style.setProperty(et,K,J)}}function R(et,K,J){return function(){var q=K.apply(this,arguments);q==null?this.style.removeProperty(et):this.style.setProperty(et,q,J)}}function j(et,K){return et.style.getPropertyValue(K)||Object(_t.a)(et).getComputedStyle(et,null).getPropertyValue(K)}ht.a=function(et,K,J){return arguments.length>1?this.each((K==null?m:typeof K=="function"?R:y)(et,K,J==null?"":J)):j(this.node(),et)}},function(ue,ht,z){"use strict";var _t=z(5),m=z(37),y=z(58),R=z(57),j=z(6),et=z(59),K=z(55),J=z(24),q=z(23);ht.a=function(Z,tt){var H,X=typeof tt;return tt==null||X==="boolean"?Object(J.a)(tt):(X==="number"?j.a:X==="string"?(H=Object(_t.e)(tt))?(tt=H,m.a):K.a:tt instanceof _t.e?m.a:tt instanceof Date?R.a:Object(q.b)(tt)?q.a:Array.isArray(tt)?y.b:typeof tt.valueOf!="function"&&typeof tt.toString!="function"||isNaN(tt)?et.a:j.a)(Z,tt)}},function(ue,ht,z){"use strict";z.d(ht,"b",function(){return et}),z.d(ht,"c",function(){return K});var _t=z(5),m=z(26),y=z(53),R=z(8);function j(J){return function(q){var Z,tt,H=q.length,X=new Array(H),B=new Array(H),U=new Array(H);for(Z=0;ZB+1?X.slice(0,B+1)+"."+X.slice(B+1):X+new Array(B-X.length+2).join("0")},et={"%":function(Z,tt){return(100*Z).toFixed(tt)},b:function(Z){return Math.round(Z).toString(2)},c:function(Z){return Z+""},d:function(Z){return Math.round(Z).toString(10)},e:function(Z,tt){return Z.toExponential(tt)},f:function(Z,tt){return Z.toFixed(tt)},g:function(Z,tt){return Z.toPrecision(tt)},o:function(Z){return Math.round(Z).toString(8)},p:function(Z,tt){return j(100*Z,tt)},r:j,s:function(Z,tt){var H=Object(R.a)(Z,tt);if(!H)return Z+"";var X=H[0],B=H[1],U=B-(_t=3*Math.max(-8,Math.min(8,Math.floor(B/3))))+1,d=X.length;return U===d?X:U>d?X+new Array(U-d+1).join("0"):U>0?X.slice(0,U)+"."+X.slice(U):"0."+new Array(1-U).join("0")+Object(R.a)(Z,Math.max(0,tt+U-1))[0]},X:function(Z){return Math.round(Z).toString(16).toUpperCase()},x:function(Z){return Math.round(Z).toString(16)}},K=function(Z){return Z},J=Array.prototype.map,q=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];ht.a=function(Z){var tt,H,X=Z.grouping===void 0||Z.thousands===void 0?K:(tt=J.call(Z.grouping,Number),H=Z.thousands+"",function(o,u){for(var C=o.length,E=[],S=0,v=tt[0],g=0;C>0&&v>0&&(g+v+1>u&&(v=Math.max(1,u-g)),E.push(o.substring(C-=v,C+v)),!((g+=v+1)>u));)v=tt[S=(S+1)%tt.length];return E.reverse().join(H)}),B=Z.currency===void 0?"":Z.currency[0]+"",U=Z.currency===void 0?"":Z.currency[1]+"",d=Z.decimal===void 0?".":Z.decimal+"",L=Z.numerals===void 0?K:function(o){return function(u){return u.replace(/[0-9]/g,function(C){return o[+C]})}}(J.call(Z.numerals,String)),M=Z.percent===void 0?"%":Z.percent+"",s=Z.minus===void 0?"-":Z.minus+"",w=Z.nan===void 0?"NaN":Z.nan+"";function _(o){var u=(o=Object(y.b)(o)).fill,C=o.align,E=o.sign,S=o.symbol,v=o.zero,g=o.width,x=o.comma,p=o.precision,l=o.trim,f=o.type;f==="n"?(x=!0,f="g"):et[f]||(p===void 0&&(p=12),l=!0,f="g"),(v||u==="0"&&C==="=")&&(v=!0,u="0",C="=");var b=S==="$"?B:S==="#"&&/[boxX]/.test(f)?"0"+f.toLowerCase():"",F=S==="$"?U:/[%p]/.test(f)?M:"",T=et[f],k=/[defgprs%]/.test(f);function Q(st){var nt,dt,mt,Et=b,Mt=F;if(f==="c")Mt=T(st)+Mt,st="";else{var I=(st=+st)<0;if(st=isNaN(st)?w:T(Math.abs(st),p),l&&(st=function(ot){t:for(var D,P=ot.length,W=1,lt=-1;W0&&(lt=0)}return lt>0?ot.slice(0,lt)+ot.slice(D+1):ot}(st)),I&&+st==0&&(I=!1),Et=(I?E==="("?E:s:E==="-"||E==="("?"":E)+Et,Mt=(f==="s"?q[8+_t/3]:"")+Mt+(I&&E==="("?")":""),k){for(nt=-1,dt=st.length;++nt(mt=st.charCodeAt(nt))||mt>57){Mt=(mt===46?d+st.slice(nt+1):st.slice(nt))+Mt,st=st.slice(0,nt);break}}}x&&!v&&(st=X(st,1/0));var Y=Et.length+st.length+Mt.length,rt=Y>1)+Et+st+Mt+rt.slice(Y);break;default:st=rt+Et+st+Mt}return L(st)}return p=p===void 0?6:/[gprs]/.test(f)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),Q.toString=function(){return o+""},Q}return{format:_,formatPrefix:function(o,u){var C=_(((o=Object(y.b)(o)).type="f",o)),E=3*Math.max(-8,Math.min(8,Math.floor(Object(m.a)(u)/3))),S=Math.pow(10,-E),v=q[8+E/3];return function(g){return C(S*g)+v}}}}},,,function(ue,ht,z){"use strict";z.d(ht,"b",function(){return m}),z.d(ht,"c",function(){return y}),z.d(ht,"a",function(){return j});var _t,m,y,R=z(40);function j(et){return _t=Object(R.a)(et),m=_t.format,y=_t.formatPrefix,_t}j({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})},function(ue,ht,z){"use strict";z.r(ht);var _t=z(43);z.d(ht,"formatDefaultLocale",function(){return _t.a}),z.d(ht,"format",function(){return _t.b}),z.d(ht,"formatPrefix",function(){return _t.c});var m=z(40);z.d(ht,"formatLocale",function(){return m.a});var y=z(25);z.d(ht,"formatSpecifier",function(){return y.b}),z.d(ht,"FormatSpecifier",function(){return y.a});var R=z(63);z.d(ht,"precisionFixed",function(){return R.a});var j=z(64);z.d(ht,"precisionPrefix",function(){return j.a});var et=z(65);z.d(ht,"precisionRound",function(){return et.a})},function(ue,ht,z){"use strict";z.d(ht,"b",function(){return m}),z.d(ht,"c",function(){return y}),z.d(ht,"d",function(){return R}),z.d(ht,"e",function(){return j}),z.d(ht,"a",function(){return K});var _t,m,y,R,j,et=z(54);function K(J){return _t=Object(et.a)(J),m=_t.format,y=_t.parse,R=_t.utcFormat,j=_t.utcParse,_t}K({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})},function(ue,ht,z){"use strict";z.r(ht);function _t(){}function m(d,L){var M=new _t;if(d instanceof _t)d.each(function(u,C){M.set(C,u)});else if(Array.isArray(d)){var s,w=-1,_=d.length;if(L==null)for(;++w<_;)M.set(w,d[w]);else for(;++w<_;)M.set(L(s=d[w],w,d),s)}else if(d)for(var o in d)M.set(o,d[o]);return M}_t.prototype=m.prototype={constructor:_t,has:function(d){return"$"+d in this},get:function(d){return this["$"+d]},set:function(d,L){return this["$"+d]=L,this},remove:function(d){var L="$"+d;return L in this&&delete this[L]},clear:function(){for(var d in this)d[0]==="$"&&delete this[d]},keys:function(){var d=[];for(var L in this)L[0]==="$"&&d.push(L.slice(1));return d},values:function(){var d=[];for(var L in this)L[0]==="$"&&d.push(this[L]);return d},entries:function(){var d=[];for(var L in this)L[0]==="$"&&d.push({key:L.slice(1),value:this[L]});return d},size:function(){var d=0;for(var L in this)L[0]==="$"&&++d;return d},empty:function(){for(var d in this)if(d[0]==="$")return!1;return!0},each:function(d){for(var L in this)L[0]==="$"&&d(this[L],L.slice(1),this)}};var y=m,R=function(){var d,L,M,s=[],w=[];function _(o,u,C,E){if(u>=s.length)return d!=null&&o.sort(d),L!=null?L(o):o;for(var S,v,g,x=-1,p=o.length,l=s[u++],f=y(),b=C();++xs.length)return C;var S,v=w[E-1];return L!=null&&E>=s.length?S=C.entries():(S=[],C.each(function(g,x){S.push({key:x,values:u(g,E)})})),v!=null?S.sort(function(g,x){return v(g.key,x.key)}):S}(_(o,0,K,J),0)},key:function(o){return s.push(o),M},sortKeys:function(o){return w[s.length-1]=o,M},sortValues:function(o){return d=o,M},rollup:function(o){return L=o,M}}};function j(){return{}}function et(d,L,M){d[L]=M}function K(){return y()}function J(d,L,M){d.set(L,M)}function q(){}var Z=y.prototype;function tt(d,L){var M=new q;if(d instanceof q)d.each(function(_){M.add(_)});else if(d){var s=-1,w=d.length;if(L==null)for(;++s=12)]},q:function(Me){return 1+~~(Me.getMonth()/3)},Q:Kt,s:te,S:ot,u:D,U:P,V:W,w:lt,W:it,x:null,X:null,y:vt,Y:pt,Z:xt,"%":Jt},ze={a:function(Me){return ye[Me.getUTCDay()]},A:function(Me){return _e[Me.getUTCDay()]},b:function(Me){return hn[Me.getUTCMonth()]},B:function(Me){return qe[Me.getUTCMonth()]},c:null,d:Ct,e:Ct,f:Rt,H:Tt,I:Nt,j:gt,L:wt,m:jt,M:Zt,p:function(Me){return ce[+(Me.getUTCHours()>=12)]},q:function(Me){return 1+~~(Me.getUTCMonth()/3)},Q:Kt,s:te,S:ne,u:Wt,U:le,V:de,w:xe,W:be,x:null,X:null,y:Ye,Y:tn,Z:an,"%":Jt},Oe={a:function(Me,en,xn){var Te=Kn.exec(en.slice(xn));return Te?(Me.w=fr[Te[0].toLowerCase()],xn+Te[0].length):-1},A:function(Me,en,xn){var Te=pn.exec(en.slice(xn));return Te?(Me.w=Mn[Te[0].toLowerCase()],xn+Te[0].length):-1},b:function(Me,en,xn){var Te=Ge.exec(en.slice(xn));return Te?(Me.m=ve[Te[0].toLowerCase()],xn+Te[0].length):-1},B:function(Me,en,xn){var Te=ge.exec(en.slice(xn));return Te?(Me.m=Ie[Te[0].toLowerCase()],xn+Te[0].length):-1},c:function(Me,en,xn){return Sn(Me,Bt,en,xn)},d:x,e:x,f:T,H:l,I:l,j:p,L:F,m:g,M:f,p:function(Me,en,xn){var Te=yn.exec(en.slice(xn));return Te?(Me.p=Nn[Te[0].toLowerCase()],xn+Te[0].length):-1},q:v,Q,s:st,S:b,u:w,U:_,V:o,w:s,W:u,x:function(Me,en,xn){return Sn(Me,Ut,en,xn)},X:function(Me,en,xn){return Sn(Me,zt,en,xn)},y:E,Y:C,Z:S,"%":k};function De(Me,en){return function(xn){var Te,bn,nn,fn=[],wn=-1,vn=0,cr=Me.length;for(xn instanceof Date||(xn=new Date(+xn));++wn53)return null;"w"in nn||(nn.w=1),"Z"in nn?(bn=(Te=J(q(nn.y,0,1))).getUTCDay(),Te=bn>4||bn===0?_t.c.ceil(Te):Object(_t.c)(Te),Te=m.a.offset(Te,7*(nn.V-1)),nn.y=Te.getUTCFullYear(),nn.m=Te.getUTCMonth(),nn.d=Te.getUTCDate()+(nn.w+6)%7):(bn=(Te=K(q(nn.y,0,1))).getDay(),Te=bn>4||bn===0?y.c.ceil(Te):Object(y.c)(Te),Te=R.b.offset(Te,7*(nn.V-1)),nn.y=Te.getFullYear(),nn.m=Te.getMonth(),nn.d=Te.getDate()+(nn.w+6)%7)}else("W"in nn||"U"in nn)&&("w"in nn||(nn.w="u"in nn?nn.u%7:"W"in nn?1:0),bn="Z"in nn?J(q(nn.y,0,1)).getUTCDay():K(q(nn.y,0,1)).getDay(),nn.m=0,nn.d="W"in nn?(nn.w+6)%7+7*nn.W-(bn+5)%7:nn.w+7*nn.U-(bn+6)%7);return"Z"in nn?(nn.H+=nn.Z/100|0,nn.M+=nn.Z%100,J(nn)):K(nn)}}function Sn(Me,en,xn,Te){for(var bn,nn,fn=0,wn=en.length,vn=xn.length;fn=vn)return-1;if((bn=en.charCodeAt(fn++))===37){if(bn=en.charAt(fn++),!(nn=Oe[bn in tt?en.charAt(fn++):bn])||(Te=nn(Me,xn,Te))<0)return-1}else if(bn!=xn.charCodeAt(Te++))return-1}return Te}return Re.x=De(Ut,Re),Re.X=De(zt,Re),Re.c=De(Bt,Re),ze.x=De(Ut,ze),ze.X=De(zt,ze),ze.c=De(Bt,ze),{format:function(Me){var en=De(Me+="",Re);return en.toString=function(){return Me},en},parse:function(Me){var en=Ze(Me+="",!1);return en.toString=function(){return Me},en},utcFormat:function(Me){var en=De(Me+="",ze);return en.toString=function(){return Me},en},utcParse:function(Me){var en=Ze(Me+="",!0);return en.toString=function(){return Me},en}}}var tt={"-":"",_:" ",0:"0"},H=/^\s*\d+/,X=/^%/,B=/[\\^$*+?|[\]().{}]/g;function U(Ot,Bt,Ut){var zt=Ot<0?"-":"",ce=(zt?-Ot:Ot)+"",_e=ce.length;return zt+(_e68?1900:2e3),Ut+zt[0].length):-1}function S(Ot,Bt,Ut){var zt=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Bt.slice(Ut,Ut+6));return zt?(Ot.Z=zt[1]?0:-(zt[2]+(zt[3]||"00")),Ut+zt[0].length):-1}function v(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+1));return zt?(Ot.q=3*zt[0]-3,Ut+zt[0].length):-1}function g(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+2));return zt?(Ot.m=zt[0]-1,Ut+zt[0].length):-1}function x(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+2));return zt?(Ot.d=+zt[0],Ut+zt[0].length):-1}function p(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+3));return zt?(Ot.m=0,Ot.d=+zt[0],Ut+zt[0].length):-1}function l(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+2));return zt?(Ot.H=+zt[0],Ut+zt[0].length):-1}function f(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+2));return zt?(Ot.M=+zt[0],Ut+zt[0].length):-1}function b(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+2));return zt?(Ot.S=+zt[0],Ut+zt[0].length):-1}function F(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+3));return zt?(Ot.L=+zt[0],Ut+zt[0].length):-1}function T(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+6));return zt?(Ot.L=Math.floor(zt[0]/1e3),Ut+zt[0].length):-1}function k(Ot,Bt,Ut){var zt=X.exec(Bt.slice(Ut,Ut+1));return zt?Ut+zt[0].length:-1}function Q(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut));return zt?(Ot.Q=+zt[0],Ut+zt[0].length):-1}function st(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut));return zt?(Ot.s=+zt[0],Ut+zt[0].length):-1}function nt(Ot,Bt){return U(Ot.getDate(),Bt,2)}function dt(Ot,Bt){return U(Ot.getHours(),Bt,2)}function mt(Ot,Bt){return U(Ot.getHours()%12||12,Bt,2)}function Et(Ot,Bt){return U(1+R.b.count(Object(j.a)(Ot),Ot),Bt,3)}function Mt(Ot,Bt){return U(Ot.getMilliseconds(),Bt,3)}function I(Ot,Bt){return Mt(Ot,Bt)+"000"}function Y(Ot,Bt){return U(Ot.getMonth()+1,Bt,2)}function rt(Ot,Bt){return U(Ot.getMinutes(),Bt,2)}function ot(Ot,Bt){return U(Ot.getSeconds(),Bt,2)}function D(Ot){var Bt=Ot.getDay();return Bt===0?7:Bt}function P(Ot,Bt){return U(y.g.count(Object(j.a)(Ot)-1,Ot),Bt,2)}function W(Ot,Bt){var Ut=Ot.getDay();return Ot=Ut>=4||Ut===0?Object(y.i)(Ot):y.i.ceil(Ot),U(y.i.count(Object(j.a)(Ot),Ot)+(Object(j.a)(Ot).getDay()===4),Bt,2)}function lt(Ot){return Ot.getDay()}function it(Ot,Bt){return U(y.c.count(Object(j.a)(Ot)-1,Ot),Bt,2)}function vt(Ot,Bt){return U(Ot.getFullYear()%100,Bt,2)}function pt(Ot,Bt){return U(Ot.getFullYear()%1e4,Bt,4)}function xt(Ot){var Bt=Ot.getTimezoneOffset();return(Bt>0?"-":(Bt*=-1,"+"))+U(Bt/60|0,"0",2)+U(Bt%60,"0",2)}function Ct(Ot,Bt){return U(Ot.getUTCDate(),Bt,2)}function Tt(Ot,Bt){return U(Ot.getUTCHours(),Bt,2)}function Nt(Ot,Bt){return U(Ot.getUTCHours()%12||12,Bt,2)}function gt(Ot,Bt){return U(1+m.a.count(Object(et.a)(Ot),Ot),Bt,3)}function wt(Ot,Bt){return U(Ot.getUTCMilliseconds(),Bt,3)}function Rt(Ot,Bt){return wt(Ot,Bt)+"000"}function jt(Ot,Bt){return U(Ot.getUTCMonth()+1,Bt,2)}function Zt(Ot,Bt){return U(Ot.getUTCMinutes(),Bt,2)}function ne(Ot,Bt){return U(Ot.getUTCSeconds(),Bt,2)}function Wt(Ot){var Bt=Ot.getUTCDay();return Bt===0?7:Bt}function le(Ot,Bt){return U(_t.g.count(Object(et.a)(Ot)-1,Ot),Bt,2)}function de(Ot,Bt){var Ut=Ot.getUTCDay();return Ot=Ut>=4||Ut===0?Object(_t.i)(Ot):_t.i.ceil(Ot),U(_t.i.count(Object(et.a)(Ot),Ot)+(Object(et.a)(Ot).getUTCDay()===4),Bt,2)}function xe(Ot){return Ot.getUTCDay()}function be(Ot,Bt){return U(_t.c.count(Object(et.a)(Ot)-1,Ot),Bt,2)}function Ye(Ot,Bt){return U(Ot.getUTCFullYear()%100,Bt,2)}function tn(Ot,Bt){return U(Ot.getUTCFullYear()%1e4,Bt,4)}function an(){return"+0000"}function Jt(){return"%"}function Kt(Ot){return+Ot}function te(Ot){return Math.floor(+Ot/1e3)}},function(ue,ht,z){"use strict";var _t=z(6),m=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,y=new RegExp(m.source,"g");ht.a=function(R,j){var et,K,J,q=m.lastIndex=y.lastIndex=0,Z=-1,tt=[],H=[];for(R+="",j+="";(et=m.exec(R))&&(K=y.exec(j));)(J=K.index)>q&&(J=j.slice(q,J),tt[Z]?tt[Z]+=J:tt[++Z]=J),(et=et[0])===(K=K[0])?tt[Z]?tt[Z]+=K:tt[++Z]=K:(tt[++Z]=null,H.push({i:Z,x:Object(_t.a)(et,K)})),q=y.lastIndex;return q=0&&(Z=q.slice(tt+1),q=q.slice(0,tt)),q&&!J.hasOwnProperty(q))throw new Error("unknown type: "+q);return{type:q,name:Z}})}function j(K,J){for(var q,Z=0,tt=K.length;Z0)for(var q,Z,tt=new Array(q),H=0;H=0))throw w(M,new Error(pt.tagName+"@"+Ct));for(var Nt=xt.length-1;Tt"&&">")||pt=="&"&&"&"||pt=='"'&&"""||"&#"+pt.charCodeAt()+";"}function l(pt,xt){if(xt(pt))return!0;if(pt=pt.firstChild)do if(l(pt,xt))return!0;while(pt=pt.nextSibling)}function f(){}function b(pt,xt,Ct,Tt){pt&&pt._inc++,Ct.namespaceURI=="http://www.w3.org/2000/xmlns/"&&delete xt._nsMap[Ct.prefix?Ct.localName:""]}function F(pt,xt,Ct){if(pt&&pt._inc){pt._inc++;var Tt=xt.childNodes;if(Ct)Tt[Tt.length++]=Ct;else{for(var Nt=xt.firstChild,gt=0;Nt;)Tt[gt++]=Nt,Nt=Nt.nextSibling;Tt.length=gt}}}function T(pt,xt){var Ct=xt.previousSibling,Tt=xt.nextSibling;return Ct?Ct.nextSibling=Tt:pt.firstChild=Tt,Tt?Tt.previousSibling=Ct:pt.lastChild=Ct,F(pt.ownerDocument,pt),xt}function k(pt,xt,Ct){var Tt=xt.parentNode;if(Tt&&Tt.removeChild(xt),xt.nodeType===X){var Nt=xt.firstChild;if(Nt==null)return xt;var gt=xt.lastChild}else Nt=gt=xt;var wt=Ct?Ct.previousSibling:pt.lastChild;Nt.previousSibling=wt,gt.nextSibling=Ct,wt?wt.nextSibling=Nt:pt.firstChild=Nt,Ct==null?pt.lastChild=gt:Ct.previousSibling=gt;do Nt.parentNode=pt;while(Nt!==gt&&(Nt=Nt.nextSibling));return F(pt.ownerDocument||pt,pt),xt.nodeType==X&&(xt.firstChild=xt.lastChild=null),xt}function Q(){this._nsMap={}}function st(){}function nt(){}function dt(){}function mt(){}function Et(){}function Mt(){}function I(){}function Y(){}function rt(){}function ot(){}function D(){}function P(){}function W(pt,xt){var Ct=[],Tt=this.nodeType==9?this.documentElement:this,Nt=Tt.prefix,gt=Tt.namespaceURI;if(gt&&Nt==null&&(Nt=Tt.lookupPrefix(gt))==null)var wt=[{namespace:gt,prefix:null}];return it(this,Ct,pt,xt,wt),Ct.join("")}function lt(pt,xt,Ct){var Tt=pt.prefix||"",Nt=pt.namespaceURI;if(!Tt&&!Nt||Tt==="xml"&&Nt==="http://www.w3.org/XML/1998/namespace"||Nt=="http://www.w3.org/2000/xmlns/")return!1;for(var gt=Ct.length;gt--;){var wt=Ct[gt];if(wt.prefix==Tt)return wt.namespace!=Nt}return!0}function it(pt,xt,Ct,Tt,Nt){if(Tt){if(!(pt=Tt(pt)))return;if(typeof pt=="string")return void xt.push(pt)}switch(pt.nodeType){case y:Nt||(Nt=[]),Nt.length;var gt=pt.attributes,wt=gt.length,Rt=pt.firstChild,jt=pt.tagName;Ct=pt.namespaceURI==="http://www.w3.org/1999/xhtml"||Ct,xt.push("<",jt);for(var Zt=0;Zt"),Ct&&/^script$/i.test(jt))for(;Rt;)Rt.data?xt.push(Rt.data):it(Rt,xt,Ct,Tt,Nt),Rt=Rt.nextSibling;else for(;Rt;)it(Rt,xt,Ct,Tt,Nt),Rt=Rt.nextSibling;xt.push("")}else xt.push("/>");return;case tt:case X:for(Rt=pt.firstChild;Rt;)it(Rt,xt,Ct,Tt,Nt),Rt=Rt.nextSibling;return;case R:return xt.push(" ",pt.name,'="',pt.value.replace(/[<&"]/g,p),'"');case j:return xt.push(pt.data.replace(/[<&]/g,p));case et:return xt.push("");case Z:return xt.push("");case H:var xe=pt.publicId,be=pt.systemId;if(xt.push("');else if(be&&be!=".")xt.push(' SYSTEM "',be,'">');else{var Ye=pt.internalSubset;Ye&&xt.push(" [",Ye,"]"),xt.push(">")}return;case q:return xt.push("");case K:return xt.push("&",pt.nodeName,";");default:xt.push("??",pt.nodeName)}}function vt(pt,xt,Ct){pt[xt]=Ct}w.prototype=Error.prototype,z(U,w),_.prototype={length:0,item:function(pt){return this[pt]||null},toString:function(pt,xt){for(var Ct=[],Tt=0;Tt0},lookupPrefix:function(pt){for(var xt=this;xt;){var Ct=xt._nsMap;if(Ct){for(var Tt in Ct)if(Ct[Tt]==pt)return Tt}xt=xt.nodeType==R?xt.ownerDocument:xt.parentNode}return null},lookupNamespaceURI:function(pt){for(var xt=this;xt;){var Ct=xt._nsMap;if(Ct&&pt in Ct)return Ct[pt];xt=xt.nodeType==R?xt.ownerDocument:xt.parentNode}return null},isDefaultNamespace:function(pt){return this.lookupPrefix(pt)==null}},z(m,x),z(m,x.prototype),f.prototype={nodeName:"#document",nodeType:tt,doctype:null,documentElement:null,_inc:1,insertBefore:function(pt,xt){if(pt.nodeType==X){for(var Ct=pt.firstChild;Ct;){var Tt=Ct.nextSibling;this.insertBefore(Ct,xt),Ct=Tt}return pt}return this.documentElement==null&&pt.nodeType==y&&(this.documentElement=pt),k(this,pt,xt),pt.ownerDocument=this,pt},removeChild:function(pt){return this.documentElement==pt&&(this.documentElement=null),T(this,pt)},importNode:function(pt,xt){return function Ct(Tt,Nt,gt){var wt;switch(Nt.nodeType){case y:(wt=Nt.cloneNode(!1)).ownerDocument=Tt;case X:break;case R:gt=!0}if(wt||(wt=Nt.cloneNode(!1)),wt.ownerDocument=Tt,wt.parentNode=null,gt)for(var Rt=Nt.firstChild;Rt;)wt.appendChild(Ct(Tt,Rt,gt)),Rt=Rt.nextSibling;return wt}(this,pt,xt)},getElementById:function(pt){var xt=null;return l(this.documentElement,function(Ct){if(Ct.nodeType==y&&Ct.getAttribute("id")==pt)return xt=Ct,!0}),xt},createElement:function(pt){var xt=new Q;return xt.ownerDocument=this,xt.nodeName=pt,xt.tagName=pt,xt.childNodes=new _,(xt.attributes=new C)._ownerElement=xt,xt},createDocumentFragment:function(){var pt=new ot;return pt.ownerDocument=this,pt.childNodes=new _,pt},createTextNode:function(pt){var xt=new dt;return xt.ownerDocument=this,xt.appendData(pt),xt},createComment:function(pt){var xt=new mt;return xt.ownerDocument=this,xt.appendData(pt),xt},createCDATASection:function(pt){var xt=new Et;return xt.ownerDocument=this,xt.appendData(pt),xt},createProcessingInstruction:function(pt,xt){var Ct=new D;return Ct.ownerDocument=this,Ct.tagName=Ct.target=pt,Ct.nodeValue=Ct.data=xt,Ct},createAttribute:function(pt){var xt=new st;return xt.ownerDocument=this,xt.name=pt,xt.nodeName=pt,xt.localName=pt,xt.specified=!0,xt},createEntityReference:function(pt){var xt=new rt;return xt.ownerDocument=this,xt.nodeName=pt,xt},createElementNS:function(pt,xt){var Ct=new Q,Tt=xt.split(":"),Nt=Ct.attributes=new C;return Ct.childNodes=new _,Ct.ownerDocument=this,Ct.nodeName=xt,Ct.tagName=xt,Ct.namespaceURI=pt,Tt.length==2?(Ct.prefix=Tt[0],Ct.localName=Tt[1]):Ct.localName=xt,Nt._ownerElement=Ct,Ct},createAttributeNS:function(pt,xt){var Ct=new st,Tt=xt.split(":");return Ct.ownerDocument=this,Ct.nodeName=xt,Ct.name=xt,Ct.namespaceURI=pt,Ct.specified=!0,Tt.length==2?(Ct.prefix=Tt[0],Ct.localName=Tt[1]):Ct.localName=xt,Ct}},_t(f,x),Q.prototype={nodeType:y,hasAttribute:function(pt){return this.getAttributeNode(pt)!=null},getAttribute:function(pt){var xt=this.getAttributeNode(pt);return xt&&xt.value||""},getAttributeNode:function(pt){return this.attributes.getNamedItem(pt)},setAttribute:function(pt,xt){var Ct=this.ownerDocument.createAttribute(pt);Ct.value=Ct.nodeValue=""+xt,this.setAttributeNode(Ct)},removeAttribute:function(pt){var xt=this.getAttributeNode(pt);xt&&this.removeAttributeNode(xt)},appendChild:function(pt){return pt.nodeType===X?this.insertBefore(pt,null):function(xt,Ct){var Tt=Ct.parentNode;if(Tt){var Nt=xt.lastChild;Tt.removeChild(Ct),Nt=xt.lastChild}return Nt=xt.lastChild,Ct.parentNode=xt,Ct.previousSibling=Nt,Ct.nextSibling=null,Nt?Nt.nextSibling=Ct:xt.firstChild=Ct,xt.lastChild=Ct,F(xt.ownerDocument,xt,Ct),Ct}(this,pt)},setAttributeNode:function(pt){return this.attributes.setNamedItem(pt)},setAttributeNodeNS:function(pt){return this.attributes.setNamedItemNS(pt)},removeAttributeNode:function(pt){return this.attributes.removeNamedItem(pt.nodeName)},removeAttributeNS:function(pt,xt){var Ct=this.getAttributeNodeNS(pt,xt);Ct&&this.removeAttributeNode(Ct)},hasAttributeNS:function(pt,xt){return this.getAttributeNodeNS(pt,xt)!=null},getAttributeNS:function(pt,xt){var Ct=this.getAttributeNodeNS(pt,xt);return Ct&&Ct.value||""},setAttributeNS:function(pt,xt,Ct){var Tt=this.ownerDocument.createAttributeNS(pt,xt);Tt.value=Tt.nodeValue=""+Ct,this.setAttributeNode(Tt)},getAttributeNodeNS:function(pt,xt){return this.attributes.getNamedItemNS(pt,xt)},getElementsByTagName:function(pt){return new o(this,function(xt){var Ct=[];return l(xt,function(Tt){Tt===xt||Tt.nodeType!=y||pt!=="*"&&Tt.tagName!=pt||Ct.push(Tt)}),Ct})},getElementsByTagNameNS:function(pt,xt){return new o(this,function(Ct){var Tt=[];return l(Ct,function(Nt){Nt===Ct||Nt.nodeType!==y||pt!=="*"&&Nt.namespaceURI!==pt||xt!=="*"&&Nt.localName!=xt||Tt.push(Nt)}),Tt})}},f.prototype.getElementsByTagName=Q.prototype.getElementsByTagName,f.prototype.getElementsByTagNameNS=Q.prototype.getElementsByTagNameNS,_t(Q,x),st.prototype.nodeType=R,_t(st,x),nt.prototype={data:"",substringData:function(pt,xt){return this.data.substring(pt,pt+xt)},appendData:function(pt){pt=this.data+pt,this.nodeValue=this.data=pt,this.length=pt.length},insertData:function(pt,xt){this.replaceData(pt,0,xt)},appendChild:function(pt){throw new Error(d[L])},deleteData:function(pt,xt){this.replaceData(pt,xt,"")},replaceData:function(pt,xt,Ct){Ct=this.data.substring(0,pt)+Ct+this.data.substring(pt+xt),this.nodeValue=this.data=Ct,this.length=Ct.length}},_t(nt,x),dt.prototype={nodeName:"#text",nodeType:j,splitText:function(pt){var xt=this.data,Ct=xt.substring(pt);xt=xt.substring(0,pt),this.data=this.nodeValue=xt,this.length=xt.length;var Tt=this.ownerDocument.createTextNode(Ct);return this.parentNode&&this.parentNode.insertBefore(Tt,this.nextSibling),Tt}},_t(dt,nt),mt.prototype={nodeName:"#comment",nodeType:Z},_t(mt,nt),Et.prototype={nodeName:"#cdata-section",nodeType:et},_t(Et,nt),Mt.prototype.nodeType=H,_t(Mt,x),I.prototype.nodeType=B,_t(I,x),Y.prototype.nodeType=J,_t(Y,x),rt.prototype.nodeType=K,_t(rt,x),ot.prototype.nodeName="#document-fragment",ot.prototype.nodeType=X,_t(ot,x),D.prototype.nodeType=q,_t(D,x),P.prototype.serializeToString=function(pt,xt,Ct){return W.call(pt,xt,Ct)},x.prototype.toString=W;try{Object.defineProperty&&(Object.defineProperty(o.prototype,"length",{get:function(){return u(this),this.$$length}}),Object.defineProperty(x.prototype,"textContent",{get:function(){return function pt(xt){switch(xt.nodeType){case y:case X:var Ct=[];for(xt=xt.firstChild;xt;)xt.nodeType!==7&&xt.nodeType!==8&&Ct.push(pt(xt)),xt=xt.nextSibling;return Ct.join("");default:return xt.nodeValue}}(this)},set:function(pt){switch(this.nodeType){case y:case X:for(;this.firstChild;)this.removeChild(this.firstChild);(pt||String(pt))&&this.appendChild(this.ownerDocument.createTextNode(pt));break;default:this.data=pt,this.value=pt,this.nodeValue=pt}}}),vt=function(pt,xt,Ct){pt["$$"+xt]=Ct})}catch(pt){}ht.DOMImplementation=g,ht.XMLSerializer=P},,function(ue,ht,z){"use strict";z.r(ht);var _t=Math.PI,m=2*_t,y=m-1e-6;function R(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function j(){return new R}R.prototype=j.prototype={constructor:R,moveTo:function(yt,It){this._+="M"+(this._x0=this._x1=+yt)+","+(this._y0=this._y1=+It)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(yt,It){this._+="L"+(this._x1=+yt)+","+(this._y1=+It)},quadraticCurveTo:function(yt,It,Xt,At){this._+="Q"+ +yt+","+ +It+","+(this._x1=+Xt)+","+(this._y1=+At)},bezierCurveTo:function(yt,It,Xt,At,Yt,ae){this._+="C"+ +yt+","+ +It+","+ +Xt+","+ +At+","+(this._x1=+Yt)+","+(this._y1=+ae)},arcTo:function(yt,It,Xt,At,Yt){yt=+yt,It=+It,Xt=+Xt,At=+At,Yt=+Yt;var ae=this._x1,he=this._y1,pe=Xt-yt,ke=At-It,Ke=ae-yt,Ue=he-It,rn=Ke*Ke+Ue*Ue;if(Yt<0)throw new Error("negative radius: "+Yt);if(this._x1===null)this._+="M"+(this._x1=yt)+","+(this._y1=It);else if(rn>1e-6)if(Math.abs(Ue*pe-ke*Ke)>1e-6&&Yt){var En=Xt-ae,Ln=At-he,Un=pe*pe+ke*ke,pr=En*En+Ln*Ln,ir=Math.sqrt(Un),$n=Math.sqrt(rn),sr=Yt*Math.tan((_t-Math.acos((Un+rn-pr)/(2*ir*$n)))/2),Cr=sr/$n,wr=sr/ir;Math.abs(Cr-1)>1e-6&&(this._+="L"+(yt+Cr*Ke)+","+(It+Cr*Ue)),this._+="A"+Yt+","+Yt+",0,0,"+ +(Ue*En>Ke*Ln)+","+(this._x1=yt+wr*pe)+","+(this._y1=It+wr*ke)}else this._+="L"+(this._x1=yt)+","+(this._y1=It)},arc:function(yt,It,Xt,At,Yt,ae){yt=+yt,It=+It,ae=!!ae;var he=(Xt=+Xt)*Math.cos(At),pe=Xt*Math.sin(At),ke=yt+he,Ke=It+pe,Ue=1^ae,rn=ae?At-Yt:Yt-At;if(Xt<0)throw new Error("negative radius: "+Xt);this._x1===null?this._+="M"+ke+","+Ke:(Math.abs(this._x1-ke)>1e-6||Math.abs(this._y1-Ke)>1e-6)&&(this._+="L"+ke+","+Ke),Xt&&(rn<0&&(rn=rn%m+m),rn>y?this._+="A"+Xt+","+Xt+",0,1,"+Ue+","+(yt-he)+","+(It-pe)+"A"+Xt+","+Xt+",0,1,"+Ue+","+(this._x1=ke)+","+(this._y1=Ke):rn>1e-6&&(this._+="A"+Xt+","+Xt+",0,"+ +(rn>=_t)+","+Ue+","+(this._x1=yt+Xt*Math.cos(Yt))+","+(this._y1=It+Xt*Math.sin(Yt))))},rect:function(yt,It,Xt,At){this._+="M"+(this._x0=this._x1=+yt)+","+(this._y0=this._y1=+It)+"h"+ +Xt+"v"+ +At+"h"+-Xt+"Z"},toString:function(){return this._}};var et=j,K=function(yt){return function(){return yt}},J=Math.abs,q=Math.atan2,Z=Math.cos,tt=Math.max,H=Math.min,X=Math.sin,B=Math.sqrt,U=Math.PI,d=U/2,L=2*U;function M(yt){return yt>1?0:yt<-1?U:Math.acos(yt)}function s(yt){return yt>=1?d:yt<=-1?-d:Math.asin(yt)}function w(yt){return yt.innerRadius}function _(yt){return yt.outerRadius}function o(yt){return yt.startAngle}function u(yt){return yt.endAngle}function C(yt){return yt&&yt.padAngle}function E(yt,It,Xt,At,Yt,ae,he,pe){var ke=Xt-yt,Ke=At-It,Ue=he-Yt,rn=pe-ae,En=rn*ke-Ue*Ke;if(!(En*En<1e-12))return[yt+(En=(Ue*(It-ae)-rn*(yt-Yt))/En)*ke,It+En*Ke]}function S(yt,It,Xt,At,Yt,ae,he){var pe=yt-Xt,ke=It-At,Ke=(he?ae:-ae)/B(pe*pe+ke*ke),Ue=Ke*ke,rn=-Ke*pe,En=yt+Ue,Ln=It+rn,Un=Xt+Ue,pr=At+rn,ir=(En+Un)/2,$n=(Ln+pr)/2,sr=Un-En,Cr=pr-Ln,wr=sr*sr+Cr*Cr,Ir=Yt-ae,$r=En*pr-Un*Ln,ui=(Cr<0?-1:1)*B(tt(0,Ir*Ir*wr-$r*$r)),Ni=($r*Cr-sr*ui)/wr,Ai=(-$r*sr-Cr*ui)/wr,yi=($r*Cr+sr*ui)/wr,Pi=(-$r*sr+Cr*ui)/wr,Di=Ni-ir,Oi=Ai-$n,Wi=yi-ir,to=Pi-$n;return Di*Di+Oi*Oi>Wi*Wi+to*to&&(Ni=yi,Ai=Pi),{cx:Ni,cy:Ai,x01:-Ue,y01:-rn,x11:Ni*(Yt/Ir-1),y11:Ai*(Yt/Ir-1)}}var v=function(){var yt=w,It=_,Xt=K(0),At=null,Yt=o,ae=u,he=C,pe=null;function ke(){var Ke,Ue,rn=+yt.apply(this,arguments),En=+It.apply(this,arguments),Ln=Yt.apply(this,arguments)-d,Un=ae.apply(this,arguments)-d,pr=J(Un-Ln),ir=Un>Ln;if(pe||(pe=Ke=et()),En1e-12)if(pr>L-1e-12)pe.moveTo(En*Z(Ln),En*X(Ln)),pe.arc(0,0,En,Ln,Un,!ir),rn>1e-12&&(pe.moveTo(rn*Z(Un),rn*X(Un)),pe.arc(0,0,rn,Un,Ln,ir));else{var $n,sr,Cr=Ln,wr=Un,Ir=Ln,$r=Un,ui=pr,Ni=pr,Ai=he.apply(this,arguments)/2,yi=Ai>1e-12&&(At?+At.apply(this,arguments):B(rn*rn+En*En)),Pi=H(J(En-rn)/2,+Xt.apply(this,arguments)),Di=Pi,Oi=Pi;if(yi>1e-12){var Wi=s(yi/rn*X(Ai)),to=s(yi/En*X(Ai));(ui-=2*Wi)>1e-12?(Ir+=Wi*=ir?1:-1,$r-=Wi):(ui=0,Ir=$r=(Ln+Un)/2),(Ni-=2*to)>1e-12?(Cr+=to*=ir?1:-1,wr-=to):(Ni=0,Cr=wr=(Ln+Un)/2)}var Xi=En*Z(Cr),To=En*X(Cr),Ro=rn*Z($r),po=rn*X($r);if(Pi>1e-12){var no,_o=En*Z(wr),Zo=En*X(wr),oo=rn*Z(Ir),Mi=rn*X(Ir);if(pr1e-12?Oi>1e-12?($n=S(oo,Mi,Xi,To,En,Oi,ir),sr=S(_o,Zo,Ro,po,En,Oi,ir),pe.moveTo($n.cx+$n.x01,$n.cy+$n.y01),Oi1e-12&&ui>1e-12?Di>1e-12?($n=S(Ro,po,_o,Zo,rn,-Di,ir),sr=S(Xi,To,oo,Mi,rn,-Di,ir),pe.lineTo($n.cx+$n.x01,$n.cy+$n.y01),Di=En;--Ln)pe.point(sr[Ln],Cr[Ln]);pe.lineEnd(),pe.areaEnd()}$n&&(sr[rn]=+yt(Un,rn,Ue),Cr[rn]=+Xt(Un,rn,Ue),pe.point(It?+It(Un,rn,Ue):sr[rn],At?+At(Un,rn,Ue):Cr[rn]))}if(pr)return pe=null,pr+""||null}function Ke(){return f().defined(Yt).curve(he).context(ae)}return ke.x=function(Ue){return arguments.length?(yt=typeof Ue=="function"?Ue:K(+Ue),It=null,ke):yt},ke.x0=function(Ue){return arguments.length?(yt=typeof Ue=="function"?Ue:K(+Ue),ke):yt},ke.x1=function(Ue){return arguments.length?(It=Ue==null?null:typeof Ue=="function"?Ue:K(+Ue),ke):It},ke.y=function(Ue){return arguments.length?(Xt=typeof Ue=="function"?Ue:K(+Ue),At=null,ke):Xt},ke.y0=function(Ue){return arguments.length?(Xt=typeof Ue=="function"?Ue:K(+Ue),ke):Xt},ke.y1=function(Ue){return arguments.length?(At=Ue==null?null:typeof Ue=="function"?Ue:K(+Ue),ke):At},ke.lineX0=ke.lineY0=function(){return Ke().x(yt).y(Xt)},ke.lineY1=function(){return Ke().x(yt).y(At)},ke.lineX1=function(){return Ke().x(It).y(Xt)},ke.defined=function(Ue){return arguments.length?(Yt=typeof Ue=="function"?Ue:K(!!Ue),ke):Yt},ke.curve=function(Ue){return arguments.length?(he=Ue,ae!=null&&(pe=he(ae)),ke):he},ke.context=function(Ue){return arguments.length?(Ue==null?ae=pe=null:pe=he(ae=Ue),ke):ae},ke},F=function(yt,It){return Ityt?1:It>=yt?0:NaN},T=function(yt){return yt},k=function(){var yt=T,It=F,Xt=null,At=K(0),Yt=K(L),ae=K(0);function he(pe){var ke,Ke,Ue,rn,En,Ln=pe.length,Un=0,pr=new Array(Ln),ir=new Array(Ln),$n=+At.apply(this,arguments),sr=Math.min(L,Math.max(-L,Yt.apply(this,arguments)-$n)),Cr=Math.min(Math.abs(sr)/Ln,ae.apply(this,arguments)),wr=Cr*(sr<0?-1:1);for(ke=0;ke0&&(Un+=En);for(It!=null?pr.sort(function(Ir,$r){return It(ir[Ir],ir[$r])}):Xt!=null&&pr.sort(function(Ir,$r){return Xt(pe[Ir],pe[$r])}),ke=0,Ue=Un?(sr-Ln*wr)/Un:0;ke0?En*Ue:0)+wr,ir[Ke]={data:pe[Ke],index:ke,value:En,startAngle:$n,endAngle:rn,padAngle:Cr};return ir}return he.value=function(pe){return arguments.length?(yt=typeof pe=="function"?pe:K(+pe),he):yt},he.sortValues=function(pe){return arguments.length?(It=pe,Xt=null,he):It},he.sort=function(pe){return arguments.length?(Xt=pe,It=null,he):Xt},he.startAngle=function(pe){return arguments.length?(At=typeof pe=="function"?pe:K(+pe),he):At},he.endAngle=function(pe){return arguments.length?(Yt=typeof pe=="function"?pe:K(+pe),he):Yt},he.padAngle=function(pe){return arguments.length?(ae=typeof pe=="function"?pe:K(+pe),he):ae},he},Q=nt(x);function st(yt){this._curve=yt}function nt(yt){function It(Xt){return new st(yt(Xt))}return It._curve=yt,It}function dt(yt){var It=yt.curve;return yt.angle=yt.x,delete yt.x,yt.radius=yt.y,delete yt.y,yt.curve=function(Xt){return arguments.length?It(nt(Xt)):It()._curve},yt}st.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(yt,It){this._curve.point(It*Math.sin(yt),It*-Math.cos(yt))}};var mt=function(){return dt(f().curve(Q))},Et=function(){var yt=b().curve(Q),It=yt.curve,Xt=yt.lineX0,At=yt.lineX1,Yt=yt.lineY0,ae=yt.lineY1;return yt.angle=yt.x,delete yt.x,yt.startAngle=yt.x0,delete yt.x0,yt.endAngle=yt.x1,delete yt.x1,yt.radius=yt.y,delete yt.y,yt.innerRadius=yt.y0,delete yt.y0,yt.outerRadius=yt.y1,delete yt.y1,yt.lineStartAngle=function(){return dt(Xt())},delete yt.lineX0,yt.lineEndAngle=function(){return dt(At())},delete yt.lineX1,yt.lineInnerRadius=function(){return dt(Yt())},delete yt.lineY0,yt.lineOuterRadius=function(){return dt(ae())},delete yt.lineY1,yt.curve=function(he){return arguments.length?It(nt(he)):It()._curve},yt},Mt=function(yt,It){return[(It=+It)*Math.cos(yt-=Math.PI/2),It*Math.sin(yt)]},I=Array.prototype.slice;function Y(yt){return yt.source}function rt(yt){return yt.target}function ot(yt){var It=Y,Xt=rt,At=p,Yt=l,ae=null;function he(){var pe,ke=I.call(arguments),Ke=It.apply(this,ke),Ue=Xt.apply(this,ke);if(ae||(ae=pe=et()),yt(ae,+At.apply(this,(ke[0]=Ke,ke)),+Yt.apply(this,ke),+At.apply(this,(ke[0]=Ue,ke)),+Yt.apply(this,ke)),pe)return ae=null,pe+""||null}return he.source=function(pe){return arguments.length?(It=pe,he):It},he.target=function(pe){return arguments.length?(Xt=pe,he):Xt},he.x=function(pe){return arguments.length?(At=typeof pe=="function"?pe:K(+pe),he):At},he.y=function(pe){return arguments.length?(Yt=typeof pe=="function"?pe:K(+pe),he):Yt},he.context=function(pe){return arguments.length?(ae=pe==null?null:pe,he):ae},he}function D(yt,It,Xt,At,Yt){yt.moveTo(It,Xt),yt.bezierCurveTo(It=(It+At)/2,Xt,It,Yt,At,Yt)}function P(yt,It,Xt,At,Yt){yt.moveTo(It,Xt),yt.bezierCurveTo(It,Xt=(Xt+Yt)/2,At,Xt,At,Yt)}function W(yt,It,Xt,At,Yt){var ae=Mt(It,Xt),he=Mt(It,Xt=(Xt+Yt)/2),pe=Mt(At,Xt),ke=Mt(At,Yt);yt.moveTo(ae[0],ae[1]),yt.bezierCurveTo(he[0],he[1],pe[0],pe[1],ke[0],ke[1])}function lt(){return ot(D)}function it(){return ot(P)}function vt(){var yt=ot(W);return yt.angle=yt.x,delete yt.x,yt.radius=yt.y,delete yt.y,yt}var pt={draw:function(yt,It){var Xt=Math.sqrt(It/U);yt.moveTo(Xt,0),yt.arc(0,0,Xt,0,L)}},xt={draw:function(yt,It){var Xt=Math.sqrt(It/5)/2;yt.moveTo(-3*Xt,-Xt),yt.lineTo(-Xt,-Xt),yt.lineTo(-Xt,-3*Xt),yt.lineTo(Xt,-3*Xt),yt.lineTo(Xt,-Xt),yt.lineTo(3*Xt,-Xt),yt.lineTo(3*Xt,Xt),yt.lineTo(Xt,Xt),yt.lineTo(Xt,3*Xt),yt.lineTo(-Xt,3*Xt),yt.lineTo(-Xt,Xt),yt.lineTo(-3*Xt,Xt),yt.closePath()}},Ct=Math.sqrt(1/3),Tt=2*Ct,Nt={draw:function(yt,It){var Xt=Math.sqrt(It/Tt),At=Xt*Ct;yt.moveTo(0,-Xt),yt.lineTo(At,0),yt.lineTo(0,Xt),yt.lineTo(-At,0),yt.closePath()}},gt=Math.sin(U/10)/Math.sin(7*U/10),wt=Math.sin(L/10)*gt,Rt=-Math.cos(L/10)*gt,jt={draw:function(yt,It){var Xt=Math.sqrt(.8908130915292852*It),At=wt*Xt,Yt=Rt*Xt;yt.moveTo(0,-Xt),yt.lineTo(At,Yt);for(var ae=1;ae<5;++ae){var he=L*ae/5,pe=Math.cos(he),ke=Math.sin(he);yt.lineTo(ke*Xt,-pe*Xt),yt.lineTo(pe*At-ke*Yt,ke*At+pe*Yt)}yt.closePath()}},Zt={draw:function(yt,It){var Xt=Math.sqrt(It),At=-Xt/2;yt.rect(At,At,Xt,Xt)}},ne=Math.sqrt(3),Wt={draw:function(yt,It){var Xt=-Math.sqrt(It/(3*ne));yt.moveTo(0,2*Xt),yt.lineTo(-ne*Xt,-Xt),yt.lineTo(ne*Xt,-Xt),yt.closePath()}},le=Math.sqrt(3)/2,de=1/Math.sqrt(12),xe=3*(de/2+1),be={draw:function(yt,It){var Xt=Math.sqrt(It/xe),At=Xt/2,Yt=Xt*de,ae=At,he=Xt*de+Xt,pe=-ae,ke=he;yt.moveTo(At,Yt),yt.lineTo(ae,he),yt.lineTo(pe,ke),yt.lineTo(-.5*At-le*Yt,le*At+-.5*Yt),yt.lineTo(-.5*ae-le*he,le*ae+-.5*he),yt.lineTo(-.5*pe-le*ke,le*pe+-.5*ke),yt.lineTo(-.5*At+le*Yt,-.5*Yt-le*At),yt.lineTo(-.5*ae+le*he,-.5*he-le*ae),yt.lineTo(-.5*pe+le*ke,-.5*ke-le*pe),yt.closePath()}},Ye=[pt,xt,Nt,Zt,jt,Wt,be],tn=function(){var yt=K(pt),It=K(64),Xt=null;function At(){var Yt;if(Xt||(Xt=Yt=et()),yt.apply(this,arguments).draw(Xt,+It.apply(this,arguments)),Yt)return Xt=null,Yt+""||null}return At.type=function(Yt){return arguments.length?(yt=typeof Yt=="function"?Yt:K(Yt),At):yt},At.size=function(Yt){return arguments.length?(It=typeof Yt=="function"?Yt:K(+Yt),At):It},At.context=function(Yt){return arguments.length?(Xt=Yt==null?null:Yt,At):Xt},At},an=function(){};function Jt(yt,It,Xt){yt._context.bezierCurveTo((2*yt._x0+yt._x1)/3,(2*yt._y0+yt._y1)/3,(yt._x0+2*yt._x1)/3,(yt._y0+2*yt._y1)/3,(yt._x0+4*yt._x1+It)/6,(yt._y0+4*yt._y1+Xt)/6)}function Kt(yt){this._context=yt}Kt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Jt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1,this._line?this._context.lineTo(yt,It):this._context.moveTo(yt,It);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Jt(this,yt,It)}this._x0=this._x1,this._x1=yt,this._y0=this._y1,this._y1=It}};var te=function(yt){return new Kt(yt)};function Ot(yt){this._context=yt}Ot.prototype={areaStart:an,areaEnd:an,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1,this._x2=yt,this._y2=It;break;case 1:this._point=2,this._x3=yt,this._y3=It;break;case 2:this._point=3,this._x4=yt,this._y4=It,this._context.moveTo((this._x0+4*this._x1+yt)/6,(this._y0+4*this._y1+It)/6);break;default:Jt(this,yt,It)}this._x0=this._x1,this._x1=yt,this._y0=this._y1,this._y1=It}};var Bt=function(yt){return new Ot(yt)};function Ut(yt){this._context=yt}Ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var Xt=(this._x0+4*this._x1+yt)/6,At=(this._y0+4*this._y1+It)/6;this._line?this._context.lineTo(Xt,At):this._context.moveTo(Xt,At);break;case 3:this._point=4;default:Jt(this,yt,It)}this._x0=this._x1,this._x1=yt,this._y0=this._y1,this._y1=It}};var zt=function(yt){return new Ut(yt)};function ce(yt,It){this._basis=new Kt(yt),this._beta=It}ce.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var yt=this._x,It=this._y,Xt=yt.length-1;if(Xt>0)for(var At,Yt=yt[0],ae=It[0],he=yt[Xt]-Yt,pe=It[Xt]-ae,ke=-1;++ke<=Xt;)At=ke/Xt,this._basis.point(this._beta*yt[ke]+(1-this._beta)*(Yt+At*he),this._beta*It[ke]+(1-this._beta)*(ae+At*pe));this._x=this._y=null,this._basis.lineEnd()},point:function(yt,It){this._x.push(+yt),this._y.push(+It)}};var _e=function yt(It){function Xt(At){return It===1?new Kt(At):new ce(At,It)}return Xt.beta=function(At){return yt(+At)},Xt}(.85);function ye(yt,It,Xt){yt._context.bezierCurveTo(yt._x1+yt._k*(yt._x2-yt._x0),yt._y1+yt._k*(yt._y2-yt._y0),yt._x2+yt._k*(yt._x1-It),yt._y2+yt._k*(yt._y1-Xt),yt._x2,yt._y2)}function qe(yt,It){this._context=yt,this._k=(1-It)/6}qe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ye(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1,this._line?this._context.lineTo(yt,It):this._context.moveTo(yt,It);break;case 1:this._point=2,this._x1=yt,this._y1=It;break;case 2:this._point=3;default:ye(this,yt,It)}this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var hn=function yt(It){function Xt(At){return new qe(At,It)}return Xt.tension=function(At){return yt(+At)},Xt}(0);function yn(yt,It){this._context=yt,this._k=(1-It)/6}yn.prototype={areaStart:an,areaEnd:an,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1,this._x3=yt,this._y3=It;break;case 1:this._point=2,this._context.moveTo(this._x4=yt,this._y4=It);break;case 2:this._point=3,this._x5=yt,this._y5=It;break;default:ye(this,yt,It)}this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var Nn=function yt(It){function Xt(At){return new yn(At,It)}return Xt.tension=function(At){return yt(+At)},Xt}(0);function pn(yt,It){this._context=yt,this._k=(1-It)/6}pn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ye(this,yt,It)}this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var Mn=function yt(It){function Xt(At){return new pn(At,It)}return Xt.tension=function(At){return yt(+At)},Xt}(0);function Kn(yt,It,Xt){var At=yt._x1,Yt=yt._y1,ae=yt._x2,he=yt._y2;if(yt._l01_a>1e-12){var pe=2*yt._l01_2a+3*yt._l01_a*yt._l12_a+yt._l12_2a,ke=3*yt._l01_a*(yt._l01_a+yt._l12_a);At=(At*pe-yt._x0*yt._l12_2a+yt._x2*yt._l01_2a)/ke,Yt=(Yt*pe-yt._y0*yt._l12_2a+yt._y2*yt._l01_2a)/ke}if(yt._l23_a>1e-12){var Ke=2*yt._l23_2a+3*yt._l23_a*yt._l12_a+yt._l12_2a,Ue=3*yt._l23_a*(yt._l23_a+yt._l12_a);ae=(ae*Ke+yt._x1*yt._l23_2a-It*yt._l12_2a)/Ue,he=(he*Ke+yt._y1*yt._l23_2a-Xt*yt._l12_2a)/Ue}yt._context.bezierCurveTo(At,Yt,ae,he,yt._x2,yt._y2)}function fr(yt,It){this._context=yt,this._alpha=It}fr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){if(yt=+yt,It=+It,this._point){var Xt=this._x2-yt,At=this._y2-It;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Xt*Xt+At*At,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(yt,It):this._context.moveTo(yt,It);break;case 1:this._point=2;break;case 2:this._point=3;default:Kn(this,yt,It)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var ge=function yt(It){function Xt(At){return It?new fr(At,It):new qe(At,0)}return Xt.alpha=function(At){return yt(+At)},Xt}(.5);function Ie(yt,It){this._context=yt,this._alpha=It}Ie.prototype={areaStart:an,areaEnd:an,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(yt,It){if(yt=+yt,It=+It,this._point){var Xt=this._x2-yt,At=this._y2-It;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Xt*Xt+At*At,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=yt,this._y3=It;break;case 1:this._point=2,this._context.moveTo(this._x4=yt,this._y4=It);break;case 2:this._point=3,this._x5=yt,this._y5=It;break;default:Kn(this,yt,It)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var Ge=function yt(It){function Xt(At){return It?new Ie(At,It):new yn(At,0)}return Xt.alpha=function(At){return yt(+At)},Xt}(.5);function ve(yt,It){this._context=yt,this._alpha=It}ve.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){if(yt=+yt,It=+It,this._point){var Xt=this._x2-yt,At=this._y2-It;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Xt*Xt+At*At,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Kn(this,yt,It)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var Re=function yt(It){function Xt(At){return It?new ve(At,It):new pn(At,0)}return Xt.alpha=function(At){return yt(+At)},Xt}(.5);function ze(yt){this._context=yt}ze.prototype={areaStart:an,areaEnd:an,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(yt,It){yt=+yt,It=+It,this._point?this._context.lineTo(yt,It):(this._point=1,this._context.moveTo(yt,It))}};var Oe=function(yt){return new ze(yt)};function De(yt){return yt<0?-1:1}function Ze(yt,It,Xt){var At=yt._x1-yt._x0,Yt=It-yt._x1,ae=(yt._y1-yt._y0)/(At||Yt<0&&-0),he=(Xt-yt._y1)/(Yt||At<0&&-0),pe=(ae*Yt+he*At)/(At+Yt);return(De(ae)+De(he))*Math.min(Math.abs(ae),Math.abs(he),.5*Math.abs(pe))||0}function Sn(yt,It){var Xt=yt._x1-yt._x0;return Xt?(3*(yt._y1-yt._y0)/Xt-It)/2:It}function Me(yt,It,Xt){var At=yt._x0,Yt=yt._y0,ae=yt._x1,he=yt._y1,pe=(ae-At)/3;yt._context.bezierCurveTo(At+pe,Yt+pe*It,ae-pe,he-pe*Xt,ae,he)}function en(yt){this._context=yt}function xn(yt){this._context=new Te(yt)}function Te(yt){this._context=yt}function bn(yt){return new en(yt)}function nn(yt){return new xn(yt)}function fn(yt){this._context=yt}function wn(yt){var It,Xt,At=yt.length-1,Yt=new Array(At),ae=new Array(At),he=new Array(At);for(Yt[0]=0,ae[0]=2,he[0]=yt[0]+2*yt[1],It=1;It=0;--It)Yt[It]=(he[It]-Yt[It+1])/ae[It];for(ae[At-1]=(yt[At]+Yt[At-1])/2,It=0;It=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1,this._line?this._context.lineTo(yt,It):this._context.moveTo(yt,It);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,It),this._context.lineTo(yt,It);else{var Xt=this._x*(1-this._t)+yt*this._t;this._context.lineTo(Xt,this._y),this._context.lineTo(Xt,It)}}this._x=yt,this._y=It}};var Jn=function(yt){return new cr(yt,.5)};function dr(yt){return new cr(yt,0)}function gr(yt){return new cr(yt,1)}var er=function(yt,It){if((Yt=yt.length)>1)for(var Xt,At,Yt,ae=1,he=yt[It[0]],pe=he.length;ae=0;)Xt[It]=It;return Xt};function Rr(yt,It){return yt[It]}var ar=function(){var yt=K([]),It=Dr,Xt=er,At=Rr;function Yt(ae){var he,pe,ke=yt.apply(this,arguments),Ke=ae.length,Ue=ke.length,rn=new Array(Ue);for(he=0;he0){for(var Xt,At,Yt,ae=0,he=yt[0].length;ae0)for(var Xt,At,Yt,ae,he,pe,ke=0,Ke=yt[It[0]].length;ke0?(At[0]=ae,At[1]=ae+=Yt):Yt<0?(At[1]=he,At[0]=he+=Yt):(At[0]=0,At[1]=Yt)},hi=function(yt,It){if((Xt=yt.length)>0){for(var Xt,At=0,Yt=yt[It[0]],ae=Yt.length;At0&&(At=(Xt=yt[It[0]]).length)>0){for(var Xt,At,Yt,ae=0,he=1;heae&&(ae=It,At=Xt);return At}var Bi=function(yt){var It=yt.map(ee);return Dr(yt).sort(function(Xt,At){return It[Xt]-It[At]})};function ee(yt){for(var It,Xt=0,At=-1,Yt=yt.length;++At=0&&Kt._call.call(null,Jt),Kt=Kt._next;--j})()}finally{j=0,function(){for(var Jt,Kt,te=_t,Ot=1/0;te;)te._call?(Ot>te._time&&(Ot=te._time),Jt=te,te=te._next):(Kt=te._next,te._next=null,te=Jt?Jt._next=Kt:_t=Kt);m=Jt,s(Ot)}(),q=0}}function M(){var Jt=tt.now(),Kt=Jt-J;Kt>1e3&&(Z-=Kt,J=Jt)}function s(Jt){j||(et&&(et=clearTimeout(et)),Jt-q>24?(Jt<1/0&&(et=setTimeout(L,Jt-tt.now()-Z)),K&&(K=clearInterval(K))):(K||(J=tt.now(),K=setInterval(M,1e3)),j=1,H(L)))}U.prototype=d.prototype={constructor:U,restart:function(Jt,Kt,te){if(typeof Jt!="function")throw new TypeError("callback is not a function");te=(te==null?X():+te)+(Kt==null?0:+Kt),this._next||m===this||(m?m._next=this:_t=this,m=this),this._call=Jt,this._time=te,s()},stop:function(){this._call&&(this._call=null,this._time=1/0,s())}};var w=function(Jt,Kt,te){var Ot=new U;return Kt=Kt==null?0:+Kt,Ot.restart(function(Bt){Ot.stop(),Jt(Bt+Kt)},Kt,te),Ot},_=Object(R.a)("start","end","cancel","interrupt"),o=[],u=function(Jt,Kt,te,Ot,Bt,Ut){var zt=Jt.__transition;if(zt){if(te in zt)return}else Jt.__transition={};(function(ce,_e,ye){var qe,hn=ce.__transition;function yn(Mn){var Kn,fr,ge,Ie;if(ye.state!==1)return pn();for(Kn in hn)if((Ie=hn[Kn]).name===ye.name){if(Ie.state===3)return w(yn);Ie.state===4?(Ie.state=6,Ie.timer.stop(),Ie.on.call("interrupt",ce,ce.__data__,Ie.index,Ie.group),delete hn[Kn]):+Kn<_e&&(Ie.state=6,Ie.timer.stop(),Ie.on.call("cancel",ce,ce.__data__,Ie.index,Ie.group),delete hn[Kn])}if(w(function(){ye.state===3&&(ye.state=4,ye.timer.restart(Nn,ye.delay,ye.time),Nn(Mn))}),ye.state=2,ye.on.call("start",ce,ce.__data__,ye.index,ye.group),ye.state===2){for(ye.state=3,qe=new Array(ge=ye.tween.length),Kn=0,fr=-1;Kn0)throw new Error("too late; already scheduled");return te}function E(Jt,Kt){var te=S(Jt,Kt);if(te.state>3)throw new Error("too late; already running");return te}function S(Jt,Kt){var te=Jt.__transition;if(!te||!(te=te[Kt]))throw new Error("transition not found");return te}var v=function(Jt,Kt){var te,Ot,Bt,Ut=Jt.__transition,zt=!0;if(Ut){for(Bt in Kt=Kt==null?null:Kt+"",Ut)(te=Ut[Bt]).name===Kt?(Ot=te.state>2&&te.state<5,te.state=6,te.timer.stop(),te.on.call(Ot?"interrupt":"cancel",Jt,Jt.__data__,te.index,te.group),delete Ut[Bt]):zt=!1;zt&&delete Jt.__transition}},g=z(76),x=z(20);function p(Jt,Kt){var te,Ot;return function(){var Bt=E(this,Jt),Ut=Bt.tween;if(Ut!==te){for(var zt=0,ce=(Ot=te=Ut).length;zt=0&&(ce=ce.slice(0,_e)),!ce||ce==="start"})}(Kt)?C:E;return function(){var zt=Ut(this,Jt),ce=zt.on;ce!==Ot&&(Bt=(Ot=ce).copy()).on(Kt,te),zt.on=Bt}}var xt=z(19),Ct=z(33),Tt=y.b.prototype.constructor,Nt=z(35);function gt(Jt){return function(){this.style.removeProperty(Jt)}}function wt(Jt,Kt,te){return function(Ot){this.style.setProperty(Jt,Kt.call(this,Ot),te)}}function Rt(Jt,Kt,te){var Ot,Bt;function Ut(){var zt=Kt.apply(this,arguments);return zt!==Bt&&(Ot=(Bt=zt)&&wt(Jt,zt,te)),Ot}return Ut._value=Kt,Ut}function jt(Jt){return function(Kt){this.textContent=Jt.call(this,Kt)}}function Zt(Jt){var Kt,te;function Ot(){var Bt=Jt.apply(this,arguments);return Bt!==te&&(Kt=(te=Bt)&&jt(Bt)),Kt}return Ot._value=Jt,Ot}var ne=0;function Wt(Jt,Kt,te,Ot){this._groups=Jt,this._parents=Kt,this._name=te,this._id=Ot}function le(Jt){return Object(y.b)().transition(Jt)}function de(){return++ne}var xe=y.b.prototype;Wt.prototype=le.prototype={constructor:Wt,select:function(Jt){var Kt=this._name,te=this._id;typeof Jt!="function"&&(Jt=Object(xt.a)(Jt));for(var Ot=this._groups,Bt=Ot.length,Ut=new Array(Bt),zt=0;zt1&&te.name===Kt)return new Wt([[Jt]],tn,Kt,+Ot)}return null};z.d(ht,"transition",function(){return le}),z.d(ht,"active",function(){return an}),z.d(ht,"interrupt",function(){return v})},,function(ue,ht,z){"use strict";var _t,m,y,R,j=z(6),et=180/Math.PI,K={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},J=function(H,X,B,U,d,L){var M,s,w;return(M=Math.sqrt(H*H+X*X))&&(H/=M,X/=M),(w=H*B+X*U)&&(B-=H*w,U-=X*w),(s=Math.sqrt(B*B+U*U))&&(B/=s,U/=s,w/=s),H*U180?o+=360:o-_>180&&(_+=360),C.push({i:u.push(d(u)+"rotate(",null,U)-2,x:Object(j.a)(_,o)})):o&&u.push(d(u)+"rotate("+o+U)}(L.rotate,M.rotate,s,w),function(_,o,u,C){_!==o?C.push({i:u.push(d(u)+"skewX(",null,U)-2,x:Object(j.a)(_,o)}):o&&u.push(d(u)+"skewX("+o+U)}(L.skewX,M.skewX,s,w),function(_,o,u,C,E,S){if(_!==u||o!==C){var v=E.push(d(E)+"scale(",null,",",null,")");S.push({i:v-4,x:Object(j.a)(_,u)},{i:v-2,x:Object(j.a)(o,C)})}else u===1&&C===1||E.push(d(E)+"scale("+u+","+C+")")}(L.scaleX,L.scaleY,M.scaleX,M.scaleY,s,w),L=M=null,function(_){for(var o,u=-1,C=w.length;++uve&&(Ie=Ge,Ge=ve,ve=Ie),function(Re){return Math.max(Ge,Math.min(ve,Re))}}function _(ge,Ie,Ge){var ve=ge[0],Re=ge[1],ze=Ie[0],Oe=Ie[1];return Re2?o:_,Re=ze=null,en}function en(xn){return isNaN(xn=+xn)?Ge:(Re||(Re=ve(Oe.map(ge),De,Ze)))(ge(Sn(xn)))}return en.invert=function(xn){return Sn(Ie((ze||(ze=ve(De,Oe.map(ge),B.a)))(xn)))},en.domain=function(xn){return arguments.length?(Oe=et.call(xn,d),Sn===M||(Sn=w(Oe)),Me()):Oe.slice()},en.range=function(xn){return arguments.length?(De=K.call(xn),Me()):De.slice()},en.rangeRound=function(xn){return De=K.call(xn),Ze=U.a,Me()},en.clamp=function(xn){return arguments.length?(Sn=xn?w(Oe):M,en):Sn!==M},en.interpolate=function(xn){return arguments.length?(Ze=xn,Me()):Ze},en.unknown=function(xn){return arguments.length?(Ge=xn,en):Ge},function(xn,Te){return ge=xn,Ie=Te,Me()}}function E(ge,Ie){return C()(ge,Ie)}var S=z(25),v=z(64),g=z(43),x=z(65),p=z(63),l=function(ge,Ie,Ge,ve){var Re,ze=Object(_t.tickStep)(ge,Ie,Ge);switch((ve=Object(S.b)(ve==null?",f":ve)).type){case"s":var Oe=Math.max(Math.abs(ge),Math.abs(Ie));return ve.precision!=null||isNaN(Re=Object(v.a)(ze,Oe))||(ve.precision=Re),Object(g.c)(ve,Oe);case"":case"e":case"g":case"p":case"r":ve.precision!=null||isNaN(Re=Object(x.a)(ze,Math.max(Math.abs(ge),Math.abs(Ie))))||(ve.precision=Re-(ve.type==="e"));break;case"f":case"%":ve.precision!=null||isNaN(Re=Object(p.a)(ze))||(ve.precision=Re-2*(ve.type==="%"))}return Object(g.b)(ve)};function f(ge){var Ie=ge.domain;return ge.ticks=function(Ge){var ve=Ie();return Object(_t.ticks)(ve[0],ve[ve.length-1],Ge==null?10:Ge)},ge.tickFormat=function(Ge,ve){var Re=Ie();return l(Re[0],Re[Re.length-1],Ge==null?10:Ge,ve)},ge.nice=function(Ge){Ge==null&&(Ge=10);var ve,Re=Ie(),ze=0,Oe=Re.length-1,De=Re[ze],Ze=Re[Oe];return Ze0?(De=Math.floor(De/ve)*ve,Ze=Math.ceil(Ze/ve)*ve,ve=Object(_t.tickIncrement)(De,Ze,Ge)):ve<0&&(De=Math.ceil(De*ve)/ve,Ze=Math.floor(Ze*ve)/ve,ve=Object(_t.tickIncrement)(De,Ze,Ge)),ve>0?(Re[ze]=Math.floor(De/ve)*ve,Re[Oe]=Math.ceil(Ze/ve)*ve,Ie(Re)):ve<0&&(Re[ze]=Math.ceil(De*ve)/ve,Re[Oe]=Math.floor(Ze*ve)/ve,Ie(Re)),ge},ge}function b(){var ge=E(M,M);return ge.copy=function(){return u(ge,b())},m.apply(ge,arguments),f(ge)}function F(ge){var Ie;function Ge(ve){return isNaN(ve=+ve)?Ie:ve}return Ge.invert=Ge,Ge.domain=Ge.range=function(ve){return arguments.length?(ge=et.call(ve,d),Ge):ge.slice()},Ge.unknown=function(ve){return arguments.length?(Ie=ve,Ge):Ie},Ge.copy=function(){return F(ge).unknown(Ie)},ge=arguments.length?et.call(ge,d):[0,1],f(Ge)}var T=function(ge,Ie){var Ge,ve=0,Re=(ge=ge.slice()).length-1,ze=ge[ve],Oe=ge[Re];return Oe0){for(;nnen)break;vn.push(bn)}}else for(;nn=1;--Te)if(!((bn=xn*Te)en)break;vn.push(bn)}}else vn=Object(_t.ticks)(nn,fn,Math.min(fn-nn,wn)).map(Ge);return Ze?vn.reverse():vn},ve.tickFormat=function(De,Ze){if(Ze==null&&(Ze=ze===10?".0e":","),typeof Ze!="function"&&(Ze=Object(g.b)(Ze)),De===1/0)return Ze;De==null&&(De=10);var Sn=Math.max(1,ze*De/ve.ticks().length);return function(Me){var en=Me/Ge(Math.round(Ie(Me)));return en*ze0?ve[De-1]:Ie[0],De=ve?[Re[ve-1],Ge]:[Re[Sn-1],Re[Sn]]},Oe.unknown=function(Ze){return arguments.length&&(ge=Ze),Oe},Oe.thresholds=function(){return Re.slice()},Oe.copy=function(){return xt().domain([Ie,Ge]).range(ze).unknown(ge)},m.apply(f(Oe),arguments)}function Ct(){var ge,Ie=[.5],Ge=[0,1],ve=1;function Re(ze){return ze<=ze?Ge[Object(_t.bisect)(Ie,ze,0,ve)]:ge}return Re.domain=function(ze){return arguments.length?(Ie=K.call(ze),ve=Math.min(Ie.length,Ge.length-1),Re):Ie.slice()},Re.range=function(ze){return arguments.length?(Ge=K.call(ze),ve=Math.min(Ie.length,Ge.length-1),Re):Ge.slice()},Re.invertExtent=function(ze){var Oe=Ge.indexOf(ze);return[Ie[Oe-1],Ie[Oe]]},Re.unknown=function(ze){return arguments.length?(ge=ze,Re):ge},Re.copy=function(){return Ct().domain(Ie).range(Ge).unknown(ge)},m.apply(Re,arguments)}var Tt=z(15),Nt=z(47),gt=z(3),wt=z(27),Rt=z(48),jt=z(49),Zt=z(30),ne=z(31),Wt=z(45);function le(ge){return new Date(ge)}function de(ge){return ge instanceof Date?+ge:+new Date(+ge)}function xe(ge,Ie,Ge,ve,Re,ze,Oe,De,Ze){var Sn=E(M,M),Me=Sn.invert,en=Sn.domain,xn=Ze(".%L"),Te=Ze(":%S"),bn=Ze("%I:%M"),nn=Ze("%I %p"),fn=Ze("%a %d"),wn=Ze("%b %d"),vn=Ze("%B"),cr=Ze("%Y"),Jn=[[Oe,1,1e3],[Oe,5,5e3],[Oe,15,15e3],[Oe,30,3e4],[ze,1,6e4],[ze,5,3e5],[ze,15,9e5],[ze,30,18e5],[Re,1,36e5],[Re,3,108e5],[Re,6,216e5],[Re,12,432e5],[ve,1,864e5],[ve,2,1728e5],[Ge,1,6048e5],[Ie,1,2592e6],[Ie,3,7776e6],[ge,1,31536e6]];function dr(er){return(Oe(er)svg{background:"+this.chartBackground+";padding: 20px;}"}};function J(X,B){if(X){X.attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg");var U=j.initializeSerializer()(X.node());return U=function(d){return navigator.userAgent.search("FireFox")>-1?d.replace(/url.*"\)/,'url("linearGradient[id*="-gradient-"]");'):d}(U),U=function(d){return d.replace(">",">"+K.styleBackgroundString)}(U=H.call(this,U,B,parseInt(X.attr("width"),10)))}}function q(X){var B=new Image;return B.src=""+K.imageSourceBase+et(encodeURIComponent(X).replace(/%([0-9A-F]{2})/g,function(U,d){return String.fromCharCode("0x"+d)})),B}function Z(X,B){return B.getContext("2d").drawImage(X,0,0),B}function tt(X,B,U){U.preventDefault(),function(d){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:K.defaultFilename,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"image/png",s=d.toDataURL(M),w=document.createElement("a");w.href=s,w.download=L,document.body.appendChild(w),w.click(),document.body.removeChild(w)}(Z(this,X),B)}function H(X,B,U){if(!B||!U)return X;var d=R.grey;return X=X.replace(/ '+B+" ]*>/,""),(w=new ActiveXObject("Microsoft.XMLDOM")).async="false",w.loadXML(s),w)},d.Property=function(s,w){this.name=s,this.value=w},d.Property.prototype.getValue=function(){return this.value},d.Property.prototype.hasValue=function(){return this.value!=null&&this.value!=""},d.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var s=parseFloat(this.value);return(this.value+"").match(/%$/)&&(s/=100),s},d.Property.prototype.valueOrDefault=function(s){return this.hasValue()?this.value:s},d.Property.prototype.numValueOrDefault=function(s){return this.hasValue()?this.numValue():s},d.Property.prototype.addOpacity=function(s){var w=this.value;if(s.value!=null&&s.value!=""&&typeof this.value=="string"){var _=new _t(this.value);_.ok&&(w="rgba("+_.r+", "+_.g+", "+_.b+", "+s.numValue()+")")}return new d.Property(this.name,w)},d.Property.prototype.getDefinition=function(){var s=this.value.match(/#([^\)'"]+)/);return s&&(s=s[1]),s||(s=this.value),d.Definitions[s]},d.Property.prototype.isUrlDefinition=function(){return this.value.indexOf("url(")==0},d.Property.prototype.getFillStyleDefinition=function(s,w){var _=this.getDefinition();if(_!=null&&_.createGradient)return _.createGradient(d.ctx,s,w);if(_!=null&&_.createPattern){if(_.getHrefAttribute().hasValue()){var o=_.attribute("patternTransform");_=_.getHrefAttribute().getDefinition(),o.hasValue()&&(_.attribute("patternTransform",!0).value=o.value)}return _.createPattern(d.ctx,s)}return null},d.Property.prototype.getDPI=function(s){return 96},d.Property.prototype.getEM=function(s){var w=12,_=new d.Property("fontSize",d.Font.Parse(d.ctx.font).fontSize);return _.hasValue()&&(w=_.toPixels(s)),w},d.Property.prototype.getUnits=function(){return(this.value+"").replace(/[0-9\.\-]/g,"")},d.Property.prototype.toPixels=function(s,w){if(!this.hasValue())return 0;var _=this.value+"";if(_.match(/em$/))return this.numValue()*this.getEM(s);if(_.match(/ex$/))return this.numValue()*this.getEM(s)/2;if(_.match(/px$/))return this.numValue();if(_.match(/pt$/))return this.numValue()*this.getDPI(s)*(1/72);if(_.match(/pc$/))return 15*this.numValue();if(_.match(/cm$/))return this.numValue()*this.getDPI(s)/2.54;if(_.match(/mm$/))return this.numValue()*this.getDPI(s)/25.4;if(_.match(/in$/))return this.numValue()*this.getDPI(s);if(_.match(/%$/))return this.numValue()*d.ViewPort.ComputeSize(s);var o=this.numValue();return w&&o<1?o*d.ViewPort.ComputeSize(s):o},d.Property.prototype.toMilliseconds=function(){if(!this.hasValue())return 0;var s=this.value+"";return s.match(/s$/)?1e3*this.numValue():(s.match(/ms$/),this.numValue())},d.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var s=this.value+"";return s.match(/deg$/)?this.numValue()*(Math.PI/180):s.match(/grad$/)?this.numValue()*(Math.PI/200):s.match(/rad$/)?this.numValue():this.numValue()*(Math.PI/180)};var M={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};return d.Property.prototype.toTextBaseline=function(){return this.hasValue()?M[this.value]:null},d.Font=new function(){this.Styles="normal|italic|oblique|inherit",this.Variants="normal|small-caps|inherit",this.Weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",this.CreateFont=function(w,_,o,u,C,E){var S=E!=null?this.Parse(E):this.CreateFont("","","","","",d.ctx.font);return{fontFamily:C||S.fontFamily,fontSize:u||S.fontSize,fontStyle:w||S.fontStyle,fontWeight:o||S.fontWeight,fontVariant:_||S.fontVariant,toString:function(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var s=this;this.Parse=function(w){for(var _={},o=d.trim(d.compressSpaces(w||"")).split(" "),u={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1},C="",E=0;Ethis.x2&&(this.x2=u)),C!=null&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=C,this.y2=C),Cthis.y2&&(this.y2=C))},this.addX=function(u){this.addPoint(u,null)},this.addY=function(u){this.addPoint(null,u)},this.addBoundingBox=function(u){this.addPoint(u.x1,u.y1),this.addPoint(u.x2,u.y2)},this.addQuadraticCurve=function(u,C,E,S,v,g){var x=u+.6666666666666666*(E-u),p=C+2/3*(S-C),l=x+1/3*(v-u),f=p+1/3*(g-C);this.addBezierCurve(u,C,x,l,p,f,v,g)},this.addBezierCurve=function(u,C,E,S,v,g,x,p){var l=[u,C],f=[E,S],b=[v,g],F=[x,p];this.addPoint(l[0],l[1]),this.addPoint(F[0],F[1]);for(var T=0;T<=1;T++){var k=function(I){return Math.pow(1-I,3)*l[T]+3*Math.pow(1-I,2)*I*f[T]+3*(1-I)*Math.pow(I,2)*b[T]+Math.pow(I,3)*F[T]},Q=6*l[T]-12*f[T]+6*b[T],st=-3*l[T]+9*f[T]-9*b[T]+3*F[T],nt=3*f[T]-3*l[T];if(st!=0){var dt=Math.pow(Q,2)-4*nt*st;if(!(dt<0)){var mt=(-Q+Math.sqrt(dt))/(2*st);0=0;g--)this.transforms[g].unapply(v)},this.applyToPoint=function(v){for(var g=0;gf&&(this.styles[l]=x[l],this.stylesSpecificity[l]=p)}}},s!=null&&s.nodeType==1){for(var w=0;w0&&w.push([this.points[this.points.length-1],w[w.length-1][1]]),w}},d.Element.polyline.prototype=new d.Element.PathElementBase,d.Element.polygon=function(s){this.base=d.Element.polyline,this.base(s),this.basePath=this.path,this.path=function(w){var _=this.basePath(w);return w!=null&&(w.lineTo(this.points[0].x,this.points[0].y),w.closePath()),_}},d.Element.polygon.prototype=new d.Element.polyline,d.Element.path=function(s){this.base=d.Element.PathElementBase,this.base(s);var w=this.attribute("d").value;w=w.replace(/,/gm," ");for(var _=0;_<2;_++)w=w.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2");for(w=(w=w.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2")).replace(/([0-9])([+\-])/gm,"$1 $2"),_=0;_<2;_++)w=w.replace(/(\.[0-9]*)(\.)/gm,"$1 $2");w=w.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 "),w=d.compressSpaces(w),w=d.trim(w),this.PathParser=new function(o){this.tokens=o.split(" "),this.reset=function(){this.i=-1,this.command="",this.previousCommand="",this.start=new d.Point(0,0),this.control=new d.Point(0,0),this.current=new d.Point(0,0),this.points=[],this.angles=[]},this.isEnd=function(){return this.i>=this.tokens.length-1},this.isCommandOrEnd=function(){return!!this.isEnd()||this.tokens[this.i+1].match(/^[A-Za-z]$/)!=null},this.isRelativeCommand=function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0}return!1},this.getToken=function(){return this.i++,this.tokens[this.i]},this.getScalar=function(){return parseFloat(this.getToken())},this.nextCommand=function(){this.previousCommand=this.command,this.command=this.getToken()},this.getPoint=function(){var u=new d.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(u)},this.getAsControlPoint=function(){var u=this.getPoint();return this.control=u,u},this.getAsCurrentPoint=function(){var u=this.getPoint();return this.current=u,u},this.getReflectedControlPoint=function(){return this.previousCommand.toLowerCase()!="c"&&this.previousCommand.toLowerCase()!="s"&&this.previousCommand.toLowerCase()!="q"&&this.previousCommand.toLowerCase()!="t"?this.current:new d.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y)},this.makeAbsolute=function(u){return this.isRelativeCommand()&&(u.x+=this.current.x,u.y+=this.current.y),u},this.addMarker=function(u,C,E){E!=null&&this.angles.length>0&&this.angles[this.angles.length-1]==null&&(this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(E)),this.addMarkerAngle(u,C==null?null:C.angleTo(u))},this.addMarkerAngle=function(u,C){this.points.push(u),this.angles.push(C)},this.getMarkerPoints=function(){return this.points},this.getMarkerAngles=function(){for(var u=0;u1&&(f*=Math.sqrt(st),b*=Math.sqrt(st));var nt=(T==k?-1:1)*Math.sqrt((Math.pow(f,2)*Math.pow(b,2)-Math.pow(f,2)*Math.pow(Q.y,2)-Math.pow(b,2)*Math.pow(Q.x,2))/(Math.pow(f,2)*Math.pow(Q.y,2)+Math.pow(b,2)*Math.pow(Q.x,2)));isNaN(nt)&&(nt=0);var dt=new d.Point(nt*f*Q.y/b,nt*-b*Q.x/f),mt=new d.Point((g.x+l.x)/2+Math.cos(F)*dt.x-Math.sin(F)*dt.y,(g.y+l.y)/2+Math.sin(F)*dt.x+Math.cos(F)*dt.y),Et=function(pt){return Math.sqrt(Math.pow(pt[0],2)+Math.pow(pt[1],2))},Mt=function(pt,xt){return(pt[0]*xt[0]+pt[1]*xt[1])/(Et(pt)*Et(xt))},I=function(pt,xt){return(pt[0]*xt[1]=1&&(D=0);var P=1-k?1:-1,W=Y+P*(D/2),lt=new d.Point(mt.x+f*Math.cos(W),mt.y+b*Math.sin(W));if(u.addMarkerAngle(lt,W-P*Math.PI/2),u.addMarkerAngle(l,W-P*Math.PI),C.addPoint(l.x,l.y),o!=null){Mt=f>b?f:b;var it=f>b?1:f/b,vt=f>b?b/f:1;o.translate(mt.x,mt.y),o.rotate(F),o.scale(it,vt),o.arc(0,0,Mt,Y,Y+D,1-k),o.scale(1/it,1/vt),o.rotate(-F),o.translate(-mt.x,-mt.y)}}break;case"Z":case"z":o!=null&&o.closePath(),u.current=u.start}return C},this.getMarkers=function(){for(var o=this.PathParser.getMarkerPoints(),u=this.PathParser.getMarkerAngles(),C=[],E=0;E1&&(this.offset=1);var w=this.style("stop-color",!0);w.value==""&&(w.value="#000"),this.style("stop-opacity").hasValue()&&(w=w.addOpacity(this.style("stop-opacity"))),this.color=w.value},d.Element.stop.prototype=new d.Element.ElementBase,d.Element.AnimateBase=function(s){this.base=d.Element.ElementBase,this.base(s),d.Animations.push(this),this.duration=0,this.begin=this.attribute("begin").toMilliseconds(),this.maxDuration=this.begin+this.attribute("dur").toMilliseconds(),this.getProperty=function(){var w=this.attribute("attributeType").value,_=this.attribute("attributeName").value;return w=="CSS"?this.parent.style(_,!0):this.parent.attribute(_,!0)},this.initialValue=null,this.initialUnits="",this.removed=!1,this.calcValue=function(){return""},this.update=function(w){if(this.initialValue==null&&(this.initialValue=this.getProperty().value,this.initialUnits=this.getProperty().getUnits()),this.duration>this.maxDuration){if(this.attribute("repeatCount").value=="indefinite"||this.attribute("repeatDur").value=="indefinite")this.duration=0;else if(this.attribute("fill").valueOrDefault("remove")!="freeze"||this.frozen){if(this.attribute("fill").valueOrDefault("remove")=="remove"&&!this.removed)return this.removed=!0,this.getProperty().value=this.parent.animationFrozen?this.parent.animationFrozenValue:this.initialValue,!0}else this.frozen=!0,this.parent.animationFrozen=!0,this.parent.animationFrozenValue=this.getProperty().value;return!1}this.duration=this.duration+w;var _=!1;if(this.begino&&S.attribute("x").hasValue())break;C+=S.measureTextRecursive(w)}return-1*(u=="end"?C:C/2)}return 0},this.renderChild=function(w,_,o,u){var C=o.children[u];for(C.attribute("x").hasValue()?(C.x=C.attribute("x").toPixels("x")+_.getAnchorDelta(w,o,u),C.attribute("dx").hasValue()&&(C.x+=C.attribute("dx").toPixels("x"))):(C.attribute("dx").hasValue()&&(_.x+=C.attribute("dx").toPixels("x")),C.x=_.x),_.x=C.x+C.measureText(w),C.attribute("y").hasValue()?(C.y=C.attribute("y").toPixels("y"),C.attribute("dy").hasValue()&&(C.y+=C.attribute("dy").toPixels("y"))):(C.attribute("dy").hasValue()&&(_.y+=C.attribute("dy").toPixels("y")),C.y=_.y),_.y=C.y,C.render(w),u=0;u0&&_[o-1]!=" "&&o<_.length-2&&_[o+1]!=" "&&(E="medial"),o>0&&_[o-1]!=" "&&(o==_.length-1||_[o+1]==" ")&&(E="initial"),w.glyphs[u]!==void 0&&(C=w.glyphs[u][E])==null&&w.glyphs[u].type=="glyph"&&(C=w.glyphs[u])}else C=w.glyphs[u];return C==null&&(C=w.missingGlyph),C},this.renderChildren=function(w){var _=this.parent.style("font-family").getDefinition();if(_==null)w.fillStyle!=""&&w.fillText(d.compressSpaces(this.getText()),this.x,this.y),w.strokeStyle!=""&&w.strokeText(d.compressSpaces(this.getText()),this.x,this.y);else{var o=this.parent.style("font-size").numValueOrDefault(d.Font.Parse(d.ctx.font).fontSize),u=this.parent.style("font-style").valueOrDefault(d.Font.Parse(d.ctx.font).fontStyle),C=this.getText();_.isRTL&&(C=C.split("").reverse().join(""));for(var E=d.ToNumberArray(this.parent.attribute("dx").value),S=0;S0?"":this.text}},d.Element.tspan.prototype=new d.Element.TextElementBase,d.Element.tref=function(s){this.base=d.Element.TextElementBase,this.base(s),this.getText=function(){var w=this.getHrefAttribute().getDefinition();if(w!=null)return w.children[0].getText()}},d.Element.tref.prototype=new d.Element.TextElementBase,d.Element.a=function(s){this.base=d.Element.TextElementBase,this.base(s),this.hasText=s.childNodes.length>0;for(var w=0;w0){var u=new d.Element.g;u.children=this.children,u.parent=this,u.render(_)}},this.onclick=function(){window.open(this.getHrefAttribute().value)},this.onmousemove=function(){d.ctx.canvas.style.cursor="pointer"}},d.Element.a.prototype=new d.Element.TextElementBase,d.Element.image=function(s){this.base=d.Element.RenderedElementBase,this.base(s);var w=this.getHrefAttribute().value;if(w!=""){var _=w.match(/\.svg$/);if(d.Images.push(this),this.loaded=!1,_)this.img=d.ajax(w),this.loaded=!0;else{this.img=document.createElement("img"),d.opts.useCORS==1&&(this.img.crossOrigin="Anonymous");var o=this;this.img.onload=function(){o.loaded=!0},this.img.onerror=function(){d.log('ERROR: image "'+w+'" not found'),o.loaded=!0},this.img.src=w}this.renderChildren=function(u){var C=this.attribute("x").toPixels("x"),E=this.attribute("y").toPixels("y"),S=this.attribute("width").toPixels("x"),v=this.attribute("height").toPixels("y");S!=0&&v!=0&&(u.save(),_?u.drawSvg(this.img,C,E,S,v):(u.translate(C,E),d.AspectRatio(u,this.attribute("preserveAspectRatio").value,S,this.img.width,v,this.img.height,0,0),u.drawImage(this.img,0,0)),u.restore())},this.getBoundingBox=function(){var u=this.attribute("x").toPixels("x"),C=this.attribute("y").toPixels("y"),E=this.attribute("width").toPixels("x"),S=this.attribute("height").toPixels("y");return new d.BoundingBox(u,C,u+E,C+S)}}},d.Element.image.prototype=new d.Element.RenderedElementBase,d.Element.g=function(s){this.base=d.Element.RenderedElementBase,this.base(s),this.getBoundingBox=function(){for(var w=new d.BoundingBox,_=0;_0)for(var k=F[T].indexOf("url"),Q=F[T].indexOf(")",k),st=F[T].substr(k+5,Q-k-6),nt=d.parseXml(d.ajax(st)).getElementsByTagName("font"),dt=0;dt~\.\[:]+)/g,0),K(/(\.[^\s\+>~\.\[:]+)/g,1),K(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,2),K(/(:[\w-]+\([^\)]*\))/gi,1),K(/(:[^\s\+>~\.\[:]+)/g,1),j=(j=j.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," "),K(/([^\s\+>~\.\[:]+)/g,2),et.join("")}ue.exports=y},function(ue,ht){ue.exports=function(z){this.ok=!1,this.alpha=1,z.charAt(0)=="#"&&(z=z.substr(1,6)),z=(z=z.replace(/ /g,"")).toLowerCase();var _t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};z=_t[z]||z;for(var m=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(J){return[parseInt(J[1]),parseInt(J[2]),parseInt(J[3]),parseFloat(J[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(J){return[parseInt(J[1]),parseInt(J[2]),parseInt(J[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(J){return[parseInt(J[1],16),parseInt(J[2],16),parseInt(J[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(J){return[parseInt(J[1]+J[1],16),parseInt(J[2]+J[2],16),parseInt(J[3]+J[3],16)]}}],y=0;y3&&(this.alpha=K[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var J=this.r.toString(16),q=this.g.toString(16),Z=this.b.toString(16);return J.length==1&&(J="0"+J),q.length==1&&(q="0"+q),Z.length==1&&(Z="0"+Z),"#"+J+q+Z},this.getHelpXML=function(){for(var J=new Array,q=0;q "+U.toRGB()+" -> "+U.toHex());B.appendChild(d),B.appendChild(L),X.appendChild(B)}catch(M){}return X}}},function(ue,ht){var z=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],_t=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function m(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}ue.exports=function(y,R,j,et){if(!(isNaN(et)||et<1)){var K,J,q,Z,tt,H,X,B,U,d,L,M,s,w,_,o,u,C,E,S,v,g,x,p,l=(et|=0)+et+1,f=R-1,b=j-1,F=et+1,T=F*(F+1)/2,k=new m,Q=k;for(q=1;q>Et,x!=0?(x=255/x,y[H]=(B*mt>>Et)*x,y[H+1]=(U*mt>>Et)*x,y[H+2]=(d*mt>>Et)*x):y[H]=y[H+1]=y[H+2]=0,B-=M,U-=s,d-=w,L-=_,M-=nt.r,s-=nt.g,w-=nt.b,_-=nt.a,Z=X+((Z=K+et+1)>Et,x>0?(x=255/x,y[Z]=(B*mt>>Et)*x,y[Z+1]=(U*mt>>Et)*x,y[Z+2]=(d*mt>>Et)*x):y[Z]=y[Z+1]=y[Z+2]=0,B-=M,U-=s,d-=w,L-=_,M-=nt.r,s-=nt.g,w-=nt.b,_-=nt.a,Z=K+((Z=J+F)=Z+tt||Z?new java.lang.String(q,Z,tt)+"":q}function et(q,Z){q.currentElement?q.currentElement.appendChild(Z):q.doc.appendChild(Z)}_t.prototype.parseFromString=function(q,Z){var tt=this.options,H=new K,X=tt.domBuilder||new m,B=tt.errorHandler,U=tt.locator,d=tt.xmlns||{},L={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return U&&X.setDocumentLocator(U),H.errorHandler=function(M,s,w){if(!M){if(s instanceof m)return s;M=s}var _={},o=M instanceof Function;function u(C){var E=M[C];!E&&o&&(E=M.length==2?function(S){M(C,S)}:M),_[C]=E&&function(S){E("[xmldom "+C+"] "+S+R(w))}||function(){}}return w=w||{},u("warning"),u("error"),u("fatalError"),_}(B,X,U),H.domBuilder=tt.domBuilder||X,/\/x?html?$/.test(Z)&&(L.nbsp="\xA0",L.copy="\xA9",d[""]="http://www.w3.org/1999/xhtml"),d.xml=d.xml||"http://www.w3.org/XML/1998/namespace",q?H.parse(q,d,L):H.errorHandler.error("invalid doc source"),X.doc},m.prototype={startDocument:function(){this.doc=new J().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(q,Z,tt,H){var X=this.doc,B=X.createElementNS(q,tt||Z),U=H.length;et(this,B),this.currentElement=B,this.locator&&y(this.locator,B);for(var d=0;d":switch(o){case 0:d.setTagName(B.slice(U,_));case 5:case 6:case 7:break;case 4:case 1:(C=B.slice(U,_)).slice(-1)==="/"&&(d.closed=!0,C=C.slice(0,-1));case 2:o===2&&(C=w),o==4?(s.warning('attribute "'+C+'" missed quot(")!!'),d.add(w,C.replace(/&#?\w+;/g,M),U)):(L[""]==="http://www.w3.org/1999/xhtml"&&C.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+C+'" missed value!! "'+C+'" instead!!'),d.add(C,C,U));break;case 3:throw new Error("attribute value missed!!")}return _;case"\x80":u=" ";default:if(u<=" ")switch(o){case 0:d.setTagName(B.slice(U,_)),o=6;break;case 1:w=B.slice(U,_),o=2;break;case 4:var C=B.slice(U,_).replace(/&#?\w+;/g,M);s.warning('attribute "'+C+'" missed quot(")!!'),d.add(w,C,U);case 5:o=6}else switch(o){case 2:d.tagName,L[""]==="http://www.w3.org/1999/xhtml"&&w.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+w+'" missed value!! "'+w+'" instead2!!'),d.add(w,w,U),U=_,o=1;break;case 5:s.warning('attribute space is required"'+w+'"!!');case 6:o=1,U=_;break;case 3:o=4,U=_;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}_++}}function et(B,U,d){for(var L=B.tagName,M=null,s=B.length;s--;){var w=B[s],_=w.qName,o=w.value;if((S=_.indexOf(":"))>0)var u=w.prefix=_.slice(0,S),C=_.slice(S+1),E=u==="xmlns"&&C;else C=_,u=null,E=_==="xmlns"&&"";w.localName=C,E!==!1&&(M==null&&(M={},q(d,d={})),d[E]=M[E]=o,w.uri="http://www.w3.org/2000/xmlns/",U.startPrefixMapping(E,o))}for(s=B.length;s--;)(u=(w=B[s]).prefix)&&(u==="xml"&&(w.uri="http://www.w3.org/XML/1998/namespace"),u!=="xmlns"&&(w.uri=d[u||""]));var S;(S=L.indexOf(":"))>0?(u=B.prefix=L.slice(0,S),C=B.localName=L.slice(S+1)):(u=null,C=B.localName=L);var v=B.uri=d[u||""];if(U.startElement(v,C,L,B),!B.closed)return B.currentNSMap=d,B.localNSMap=M,!0;if(U.endElement(v,C,L),M)for(u in M)U.endPrefixMapping(u)}function K(B,U,d,L,M){if(/^(?:script|textarea)$/i.test(d)){var s=B.indexOf("",U),w=B.substring(U+1,s);if(/[&<]/.test(w))return/^script$/i.test(d)?(M.characters(w,0,w.length),s):(w=w.replace(/&#?\w+;/g,L),M.characters(w,0,w.length),s)}return U+1}function J(B,U,d,L){var M=L[d];return M==null&&((M=B.lastIndexOf(""))",U+4))>U?(d.comment(B,U+4,M-U-4),M+3):(L.error("Unclosed comment"),-1):-1;default:if(B.substr(U+3,6)=="CDATA["){var M=B.indexOf("]]>",U+9);return d.startCDATA(),d.characters(B,U+9,M-U-9),d.endCDATA(),M+3}var s=function(E,S){var v,g=[],x=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(x.lastIndex=S,x.exec(E);v=x.exec(E);)if(g.push(v),v[1])return g}(B,U),w=s.length;if(w>1&&/!doctype/i.test(s[0][0])){var _=s[1][0],o=w>3&&/^public$/i.test(s[2][0])&&s[3][0],u=w>4&&s[4][0],C=s[w-1];return d.startDTD(_,o&&o.replace(/^(['"])(.*?)\1$/,"$2"),u&&u.replace(/^(['"])(.*?)\1$/,"$2")),d.endDTD(),C.index+C[0].length}}return-1}function tt(B,U,d){var L=B.indexOf("?>",U);if(L){var M=B.substring(U,L).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return M?(M[0].length,d.processingInstruction(M[1],M[2]),L+2):-1}return-1}function H(B){}function X(B,U){return B.__proto__=U,B}y.prototype={parse:function(B,U,d){var L=this.domBuilder;L.startDocument(),q(U,U={}),function(M,s,w,_,o){function u(D){var P=D.slice(1,-1);return P in w?w[P]:P.charAt(0)==="#"?function(W){if(W>65535){var lt=55296+((W-=65536)>>10),it=56320+(1023&W);return String.fromCharCode(lt,it)}return String.fromCharCode(W)}(parseInt(P.substr(1).replace("x","0x"))):(o.error("entity not found:"+D),D)}function C(D){if(D>f){var P=M.substring(f,D).replace(/&#?\w+;/g,u);x&&E(f),_.characters(P,0,D-f),f=D}}function E(D,P){for(;D>=v&&(P=g.exec(M));)S=P.index,v=S+P[0].length,x.lineNumber++;x.columnNumber=D-S+1}for(var S=0,v=0,g=/.*(?:\r\n?|\n)|.*$/g,x=_.locator,p=[{currentNSMap:s}],l={},f=0;;){try{var b=M.indexOf("<",f);if(b<0){if(!M.substr(f).match(/^\s*$/)){var F=_.doc,T=F.createTextNode(M.substr(f));F.appendChild(T),_.currentElement=T}return}switch(b>f&&C(b),M.charAt(b+1)){case"/":var k=M.indexOf(">",b+3),Q=M.substring(b+2,k),st=p.pop();k<0?(Q=M.substring(b+2).replace(/[\s<].*/,""),o.error("end tag name: "+Q+" is not complete:"+st.tagName),k=b+1+Q.length):Q.match(/\sf?f=k:C(Math.max(b,f)+1)}}(B,U,d,L,this.errorHandler),L.endDocument()}},H.prototype={setTagName:function(B){if(!m.test(B))throw new Error("invalid tagName:"+B);this.tagName=B},add:function(B,U,d){if(!m.test(B))throw new Error("invalid attribute:"+B);this[this.length++]={qName:B,value:U,offset:d}},length:0,getLocalName:function(B){return this[B].localName},getLocator:function(B){return this[B].locator},getQName:function(B){return this[B].qName},getURI:function(B){return this[B].uri},getValue:function(B){return this[B].value}},X({},X.prototype)instanceof X||(X=function(B,U){function d(){}for(U in d.prototype=U,d=new d,B)d[U]=B[U];return d}),ht.XMLReader=y},function(ue,ht,z){"use strict";var _t,m,y;ue.exports=(_t={BASE:!0,HEAD:!0,HTML:!0,META:!0,NOFRAME:!0,NOSCRIPT:!0,PARAM:!0,SCRIPT:!0,STYLE:!0,TITLE:!0},m=["A","ABBR","ADDRESS","AREA","ARTICLE","ASIDE","AUDIO","B","BASE","BDI","BDO","BLOCKQUOTE","BODY","BR","BUTTON","CANVAS","CAPTION","CENTER","CITE","CODE","COL","COLGROUP","COMMAND","DATALIST","DD","DEL","DETAILS","DFN","DIV","DL","DT","EM","EMBED","FIELDSET","FIGCAPTION","FIGURE","FONT","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEAD","HEADER","HGROUP","HR","HTML","I","IFRAME","IMG","INPUT","INS","KBD","LABEL","LEGEND","LI","LINK","MAP","MARK","MATH","MENU","META","METER","NAV","NOBR","NOSCRIPT","OBJECT","OL","OPTION","OPTGROUP","OUTPUT","P","PARAM","PRE","PROGRESS","Q","RP","RT","RUBY","S","SAMP","SCRIPT","SECTION","SELECT","SMALL","SOURCE","SPAN","STRONG","STYLE","SUB","SUMMARY","SUP","SVG","TABLE","TBODY","TD","TEXTAREA","TFOOT","TH","THEAD","TIME","TITLE","TR","TRACK","U","UL","VAR","VIDEO","WBR"],y=function(R){var j={},et=document.body.appendChild(document.createElement(R)),K=window.getComputedStyle(et);return[].forEach.call(K,function(J){j[J]=K[J]}),document.body.removeChild(et),j},{initializeSerializer:function(){var R={};return[].forEach.call(m,function(j){_t[j]||(R[j]=y(j))}),function(j){var et,K=[],J=void 0,q=void 0,Z=void 0;if(j&&j.nodeType===Node.ELEMENT_NODE)return K=[],J=j.querySelectorAll("*"),[].forEach.call(J,function(tt,H){var X;_t[tt.tagName]||(q=window.getComputedStyle(tt),X=(X=tt.tagName).toUpperCase(),R[X]||(R[X]=y(X)),Z=R[X],K[H]=tt.style.cssText,[].forEach.call(q,function(B){q[B]!==Z[B]&&(tt.style[B]=q[B])}))}),et=new XMLSerializer().serializeToString(j),J=[].map.call(J,function(tt,H){return tt.style.cssText=K[H],tt}),et}}})},function(ue,ht,z){(function(_t,m){var y;/*! http://mths.be/base64 v0.1.0 by @mathias | MIT license */(function(R){var j=ht,et=(_t&&_t.exports,typeof m=="object"&&m);et.global!==et&&et.window;var K=function(H){this.message=H};(K.prototype=new Error).name="InvalidCharacterError";var J=function(H){throw new K(H)},q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Z=/[\t\n\f\r ]/g,tt={encode:function(H){H=String(H),/[^\0-\xFF]/.test(H)&&J("The string to be encoded contains characters outside of the Latin1 range.");for(var X,B,U,d,L=H.length%3,M="",s=-1,w=H.length-L;++s>18&63)+q.charAt(d>>12&63)+q.charAt(d>>6&63)+q.charAt(63&d);return L==2?(X=H.charCodeAt(s)<<8,B=H.charCodeAt(++s),M+=q.charAt((d=X+B)>>10)+q.charAt(d>>4&63)+q.charAt(d<<2&63)+"="):L==1&&(d=H.charCodeAt(s),M+=q.charAt(d>>2)+q.charAt(d<<4&63)+"=="),M},decode:function(H){var X=(H=String(H).replace(Z,"")).length;X%4==0&&(X=(H=H.replace(/==?$/,"")).length),(X%4==1||/[^+a-zA-Z0-9/]/.test(H))&&J("Invalid character: the string to be decoded is not correctly encoded.");for(var B,U,d=0,L="",M=-1;++M>(-2*d&6)));return L},version:"0.1.0"};(y=function(){return tt}.call(ht,z,ht,_t))===void 0||(_t.exports=y)})()}).call(this,z(86)(ue),z(87))},function(ue,ht){ue.exports=function(z){return z.webpackPolyfill||(z.deprecate=function(){},z.paths=[],z.children||(z.children=[]),Object.defineProperty(z,"loaded",{enumerable:!0,get:function(){return z.l}}),Object.defineProperty(z,"id",{enumerable:!0,get:function(){return z.i}}),z.webpackPolyfill=1),z}},function(ue,ht){var z;z=function(){return this}();try{z=z||new Function("return this")()}catch(_t){typeof window=="object"&&(z=window)}ue.exports=z},function(ue,ht,z){"use strict";ht.a=function(_t,m){return _t=+_t,m=+m,function(y){return Math.round(_t*(1-y)+m*y)}}},function(ue,ht,z){"use strict";var _t;(_t=function(){return{bar:` + `}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";y.r(m);var R=Array.prototype.slice,B=function(d){return d};function et(d){return"translate("+(d+.5)+",0)"}function K(d){return"translate(0,"+(d+.5)+")"}function J(d){return function(L){return+d(L)}}function q(d){var L=Math.max(0,d.bandwidth()-1)/2;return d.round()&&(L=Math.round(L)),function(M){return+d(M)+L}}function Z(){return!this.__axis}function tt(d,L){var M=[],s=null,_=null,w=6,o=6,u=3,C=d===1||d===4?-1:1,E=d===4||d===2?"x":"y",S=d===1||d===3?et:K;function v(g){var x=s==null?L.ticks?L.ticks.apply(L,M):L.domain():s,p=_==null?L.tickFormat?L.tickFormat.apply(L,M):B:_,l=Math.max(w,0)+u,f=L.range(),b=+f[0]+.5,z=+f[f.length-1]+.5,T=(L.bandwidth?q:J)(L.copy()),k=g.selection?g.selection():g,Q=k.selectAll(".domain").data([null]),st=k.selectAll(".tick").data(x,L).order(),nt=st.exit(),dt=st.enter().append("g").attr("class","tick"),mt=st.select("line"),Et=st.select("text");Q=Q.merge(Q.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),st=st.merge(dt),mt=mt.merge(dt.append("line").attr("stroke","currentColor").attr(E+"2",C*w)),Et=Et.merge(dt.append("text").attr("fill","currentColor").attr(E,C*l).attr("dy",d===1?"0em":d===3?"0.71em":"0.32em")),g!==k&&(Q=Q.transition(g),st=st.transition(g),mt=mt.transition(g),Et=Et.transition(g),nt=nt.transition(g).attr("opacity",1e-6).attr("transform",function(Mt){return isFinite(Mt=T(Mt))?S(Mt):this.getAttribute("transform")}),dt.attr("opacity",1e-6).attr("transform",function(Mt){var I=this.parentNode.__axis;return S(I&&isFinite(I=I(Mt))?I:T(Mt))})),nt.remove(),Q.attr("d",d===4||d==2?o?"M"+C*o+","+b+"H0.5V"+z+"H"+C*o:"M0.5,"+b+"V"+z:o?"M"+b+","+C*o+"V0.5H"+z+"V"+C*o:"M"+b+",0.5H"+z),st.attr("opacity",1).attr("transform",function(Mt){return S(T(Mt))}),mt.attr(E+"2",C*w),Et.attr(E,C*l).text(p),k.filter(Z).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",d===2?"start":d===4?"end":"middle"),k.each(function(){this.__axis=T})}return v.scale=function(g){return arguments.length?(L=g,v):L},v.ticks=function(){return M=R.call(arguments),v},v.tickArguments=function(g){return arguments.length?(M=g==null?[]:R.call(g),v):M.slice()},v.tickValues=function(g){return arguments.length?(s=g==null?null:R.call(g),v):s&&s.slice()},v.tickFormat=function(g){return arguments.length?(_=g,v):_},v.tickSize=function(g){return arguments.length?(w=o=+g,v):w},v.tickSizeInner=function(g){return arguments.length?(w=+g,v):w},v.tickSizeOuter=function(g){return arguments.length?(o=+g,v):o},v.tickPadding=function(g){return arguments.length?(u=+g,v):u},v}function H(d){return tt(1,d)}function X(d){return tt(2,d)}function F(d){return tt(3,d)}function U(d){return tt(4,d)}y.d(m,"axisTop",function(){return H}),y.d(m,"axisRight",function(){return X}),y.d(m,"axisBottom",function(){return F}),y.d(m,"axisLeft",function(){return U})},function(_t,m,y){"use strict";y.r(m);var R=y(41),B=y(61),et=y(42),K=y(58),J=y(60),q=function(Q){var st=Q.length;return function(nt){return Q[Math.max(0,Math.min(st-1,Math.floor(nt*st)))]}},Z=y(4),tt=function(Q,st){var nt=Object(Z.c)(+Q,+st);return function(dt){var mt=nt(dt);return mt-360*Math.floor(mt/360)}},H=y(14),X=y(31),F=y(62),U=y(83),d=y(59),L=y(77),M=Math.SQRT2;function s(Q){return((Q=Math.exp(Q))+1/Q)/2}var _=function(Q,st){var nt,dt,mt=Q[0],Et=Q[1],Mt=Q[2],I=st[0],Y=st[1],rt=st[2],ot=I-mt,D=Y-Et,P=ot*ot+D*D;if(P<1e-12)dt=Math.log(rt/Mt)/M,nt=function(xt){return[mt+xt*ot,Et+xt*D,Mt*Math.exp(M*xt*dt)]};else{var W=Math.sqrt(P),lt=(rt*rt-Mt*Mt+4*P)/(2*Mt*2*W),it=(rt*rt-Mt*Mt-4*P)/(2*rt*2*W),vt=Math.log(Math.sqrt(lt*lt+1)-lt),pt=Math.log(Math.sqrt(it*it+1)-it);dt=(pt-vt)/M,nt=function(xt){var Ct,Tt=xt*dt,Nt=s(vt),gt=Mt/(2*W)*(Nt*(Ct=M*Tt+vt,((Ct=Math.exp(2*Ct))-1)/(Ct+1))-function(wt){return((wt=Math.exp(wt))-1/wt)/2}(vt));return[mt+gt*ot,Et+gt*D,Mt*Nt/s(M*Tt+vt)]}}return nt.duration=1e3*dt,nt},w=y(36),o=y(7);function u(Q){return function(st,nt){var dt=Q((st=Object(o.f)(st)).h,(nt=Object(o.f)(nt)).h),mt=Object(Z.a)(st.s,nt.s),Et=Object(Z.a)(st.l,nt.l),Mt=Object(Z.a)(st.opacity,nt.opacity);return function(I){return st.h=dt(I),st.s=mt(I),st.l=Et(I),st.opacity=Mt(I),st+""}}}var C=u(Z.c),E=u(Z.a),S=y(50);function v(Q,st){var nt=Object(Z.a)((Q=Object(S.a)(Q)).l,(st=Object(S.a)(st)).l),dt=Object(Z.a)(Q.a,st.a),mt=Object(Z.a)(Q.b,st.b),Et=Object(Z.a)(Q.opacity,st.opacity);return function(Mt){return Q.l=nt(Mt),Q.a=dt(Mt),Q.b=mt(Mt),Q.opacity=Et(Mt),Q+""}}function g(Q){return function(st,nt){var dt=Q((st=Object(S.c)(st)).h,(nt=Object(S.c)(nt)).h),mt=Object(Z.a)(st.c,nt.c),Et=Object(Z.a)(st.l,nt.l),Mt=Object(Z.a)(st.opacity,nt.opacity);return function(I){return st.h=dt(I),st.c=mt(I),st.l=Et(I),st.opacity=Mt(I),st+""}}}var x=g(Z.c),p=g(Z.a),l=y(78);function f(Q){return function st(nt){function dt(mt,Et){var Mt=Q((mt=Object(l.a)(mt)).h,(Et=Object(l.a)(Et)).h),I=Object(Z.a)(mt.s,Et.s),Y=Object(Z.a)(mt.l,Et.l),rt=Object(Z.a)(mt.opacity,Et.opacity);return function(ot){return mt.h=Mt(ot),mt.s=I(ot),mt.l=Y(Math.pow(ot,nt)),mt.opacity=rt(ot),mt+""}}return nt=+nt,dt.gamma=st,dt}(1)}var b=f(Z.c),z=f(Z.a);function T(Q,st){for(var nt=0,dt=st.length-1,mt=st[0],Et=new Array(dt<0?0:dt);ntvt?1:it>=vt?0:NaN}var H=y(44);function X(it){return function(){this.removeAttribute(it)}}function F(it){return function(){this.removeAttributeNS(it.space,it.local)}}function U(it,vt){return function(){this.setAttribute(it,vt)}}function d(it,vt){return function(){this.setAttributeNS(it.space,it.local,vt)}}function L(it,vt){return function(){var pt=vt.apply(this,arguments);pt==null?this.removeAttribute(it):this.setAttribute(it,pt)}}function M(it,vt){return function(){var pt=vt.apply(this,arguments);pt==null?this.removeAttributeNS(it.space,it.local):this.setAttributeNS(it.space,it.local,pt)}}var s=y(67);function _(it){return function(){delete this[it]}}function w(it,vt){return function(){this[it]=vt}}function o(it,vt){return function(){var pt=vt.apply(this,arguments);pt==null?delete this[it]:this[it]=pt}}function u(it){return it.trim().split(/^|\s+/)}function C(it){return it.classList||new E(it)}function E(it){this._node=it,this._names=u(it.getAttribute("class")||"")}function S(it,vt){for(var pt=C(it),xt=-1,Ct=vt.length;++xt=0&&(this._names.splice(vt,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(it){return this._names.indexOf(it)>=0}};function l(){this.textContent=""}function f(it){return function(){this.textContent=it}}function b(it){return function(){var vt=it.apply(this,arguments);this.textContent=vt==null?"":vt}}function z(){this.innerHTML=""}function T(it){return function(){this.innerHTML=it}}function k(it){return function(){var vt=it.apply(this,arguments);this.innerHTML=vt==null?"":vt}}function Q(){this.nextSibling&&this.parentNode.appendChild(this)}function st(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var nt=y(29);function dt(){return null}function mt(){var it=this.parentNode;it&&it.removeChild(this)}function Et(){var it=this.cloneNode(!1),vt=this.parentNode;return vt?vt.insertBefore(it,this.nextSibling):it}function Mt(){var it=this.cloneNode(!0),vt=this.parentNode;return vt?vt.insertBefore(it,this.nextSibling):it}var I=y(37),Y=y(45);function rt(it,vt,pt){var xt=Object(Y.a)(it),Ct=xt.CustomEvent;typeof Ct=="function"?Ct=new Ct(vt,pt):(Ct=xt.document.createEvent("Event"),pt?(Ct.initEvent(vt,pt.bubbles,pt.cancelable),Ct.detail=pt.detail):Ct.initEvent(vt,!1,!1)),it.dispatchEvent(Ct)}function ot(it,vt){return function(){return rt(this,it,vt)}}function D(it,vt){return function(){return rt(this,it,vt.apply(this,arguments))}}y.d(m,"c",function(){return P}),y.d(m,"a",function(){return W});var P=[null];function W(it,vt){this._groups=it,this._parents=vt}function lt(){return new W([[document.documentElement]],P)}W.prototype=lt.prototype={constructor:W,select:function(it){typeof it!="function"&&(it=Object(R.a)(it));for(var vt=this._groups,pt=vt.length,xt=new Array(pt),Ct=0;Ct=Jt&&(Jt=on+1);!(tn=be[Jt])&&++Jt=0;)(xt=Ct[Tt])&&(Nt&&4^xt.compareDocumentPosition(Nt)&&Nt.parentNode.insertBefore(xt,Nt),Nt=xt);return this},sort:function(it){function vt(Zt,ne){return Zt&&ne?it(Zt.__data__,ne.__data__):!Zt-!ne}it||(it=tt);for(var pt=this._groups,xt=pt.length,Ct=new Array(xt),Tt=0;Tt1?this.each((vt==null?_:typeof vt=="function"?o:w)(it,vt)):this.node()[it]},classed:function(it,vt){var pt=u(it+"");if(arguments.length<2){for(var xt=C(this.node()),Ct=-1,Tt=pt.length;++Ct=o.length)return s!=null&&E.sort(s),_!=null?_(E):E;for(var x,p,l,f=-1,b=E.length,z=o[S++],T=et(),k=v();++fo.length)return v;var x,p=u[g-1];return _!=null&&g>=o.length?x=v.entries():(x=[],v.each(function(l,f){x.push({key:f,values:S(l,g)})})),p!=null?x.sort(function(l,f){return p(l.key,f.key)}):x}(C(E,0,Z,tt),0)},key:function(E){return o.push(E),w},sortKeys:function(E){return u[o.length-1]=E,w},sortValues:function(E){return s=E,w},rollup:function(E){return _=E,w}}};function J(){return{}}function q(s,_,w){s[_]=w}function Z(){return et()}function tt(s,_,w){s.set(_,w)}function H(){}var X=et.prototype;function F(s,_){var w=new H;if(s instanceof H)s.each(function(C){w.add(C)});else if(s){var o=-1,u=s.length;if(_==null)for(;++o1&&arguments[1]!==void 0?arguments[1]:12,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Arial",d=document.createElement("canvas"),L=d.getContext("2d");return L.font=F+"px "+U,L.measureText(X).width},wrapText:function(X,F,U,d){var L=et.select(d),M=L.text().split(/\s+/).reverse(),s=void 0,_=[],w=0,o=K*q,u=L.attr("y"),C=parseFloat(L.attr("dy")),E=F*Z,S=L.text(null).append("tspan").attr("x",X).attr("y",u-5).attr("dy",C+"em").classed(tt,!0).style("font-size",F+"px");for(S.text(M.pop()),S=L.append("tspan").classed(H,!0).attr("x",X).attr("y",u+J).attr("dy",++w*o+C+"em").style("font-size",E+"px");s=M.pop();)_.push(s),S.text(_.join(" ")),S.node()&&S.node().getComputedTextLength()>U-50&&(_.pop(),S.text(_.join(" ")),_=[s],S=L.append("tspan").classed(H,!0).attr("x",X).attr("y",u+J).attr("dy",++w*o+C+"em").text(s).style("font-size",E+"px"))},wrapTextWithEllipses:function(X,F){var U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1.2;X.each(function(){var M,s,_,w,o,u,C;for(M=(X=et.select(this)).text().split(/\s+/).reverse(),_=[],w=0,o=X.attr("y"),u=parseFloat(X.attr("dy")),C=X.text(null).append("tspan").attr("x",U).attr("y",o).attr("dy",u+"em");s=M.pop();)if(_.push(s),C.text(_.join(" ")),C.node()&&C.node().getComputedTextLength()>F){if(_.pop(),C.text(_.join(" ")),!(w1e-6)if(Math.abs(Ln*He-rn*En)>1e-6&&de){var pr=ae-ke,ir=he-Ke,Xn=He*He+rn*rn,lr=pr*pr+ir*ir,Cr=Math.sqrt(Xn),wr=Math.sqrt(zn),Ir=de*Math.tan((R-Math.acos((Xn+zn-lr)/(2*Cr*wr)))/2),$r=Ir/wr,ci=Ir/Cr;Math.abs($r-1)>1e-6&&(this._+="L"+(At+$r*En)+","+(Yt+$r*Ln)),this._+="A"+de+","+de+",0,0,"+ +(Ln*pr>En*ir)+","+(this._x1=At+ci*He)+","+(this._y1=Yt+ci*rn)}else this._+="L"+(this._x1=At)+","+(this._y1=Yt)},arc:function(At,Yt,ae,he,de,ke){At=+At,Yt=+Yt,ke=!!ke;var Ke=(ae=+ae)*Math.cos(he),He=ae*Math.sin(he),rn=At+Ke,En=Yt+He,Ln=1^ke,zn=ke?he-de:de-he;if(ae<0)throw new Error("negative radius: "+ae);this._x1===null?this._+="M"+rn+","+En:(Math.abs(this._x1-rn)>1e-6||Math.abs(this._y1-En)>1e-6)&&(this._+="L"+rn+","+En),ae&&(zn<0&&(zn=zn%B+B),zn>et?this._+="A"+ae+","+ae+",0,1,"+Ln+","+(At-Ke)+","+(Yt-He)+"A"+ae+","+ae+",0,1,"+Ln+","+(this._x1=rn)+","+(this._y1=En):zn>1e-6&&(this._+="A"+ae+","+ae+",0,"+ +(zn>=R)+","+Ln+","+(this._x1=At+ae*Math.cos(de))+","+(this._y1=Yt+ae*Math.sin(de))))},rect:function(At,Yt,ae,he){this._+="M"+(this._x0=this._x1=+At)+","+(this._y0=this._y1=+Yt)+"h"+ +ae+"v"+ +he+"h"+-ae+"Z"},toString:function(){return this._}};var q=J,Z=function(At){return function(){return At}},tt=Math.abs,H=Math.atan2,X=Math.cos,F=Math.max,U=Math.min,d=Math.sin,L=Math.sqrt,M=Math.PI,s=M/2,_=2*M;function w(At){return At>1?0:At<-1?M:Math.acos(At)}function o(At){return At>=1?s:At<=-1?-s:Math.asin(At)}function u(At){return At.innerRadius}function C(At){return At.outerRadius}function E(At){return At.startAngle}function S(At){return At.endAngle}function v(At){return At&&At.padAngle}function g(At,Yt,ae,he,de,ke,Ke,He){var rn=ae-At,En=he-Yt,Ln=Ke-de,zn=He-ke,pr=zn*rn-Ln*En;if(!(pr*pr<1e-12))return[At+(pr=(Ln*(Yt-ke)-zn*(At-de))/pr)*rn,Yt+pr*En]}function x(At,Yt,ae,he,de,ke,Ke){var He=At-ae,rn=Yt-he,En=(Ke?ke:-ke)/L(He*He+rn*rn),Ln=En*rn,zn=-En*He,pr=At+Ln,ir=Yt+zn,Xn=ae+Ln,lr=he+zn,Cr=(pr+Xn)/2,wr=(ir+lr)/2,Ir=Xn-pr,$r=lr-ir,ci=Ir*Ir+$r*$r,Ri=de-ke,Pi=pr*lr-Xn*ir,yi=($r<0?-1:1)*L(F(0,Ri*Ri*ci-Pi*Pi)),Oi=(Pi*$r-Ir*yi)/ci,Li=(-Pi*Ir-$r*yi)/ci,Ni=(Pi*$r+Ir*yi)/ci,Vi=(-Pi*Ir+$r*yi)/ci,eo=Oi-Cr,Xi=Li-wr,Eo=Ni-Cr,Ro=Vi-wr;return eo*eo+Xi*Xi>Eo*Eo+Ro*Ro&&(Oi=Ni,Li=Vi),{cx:Oi,cy:Li,x01:-Ln,y01:-zn,x11:Oi*(de/Ri-1),y11:Li*(de/Ri-1)}}var p=function(){var At=u,Yt=C,ae=Z(0),he=null,de=E,ke=S,Ke=v,He=null;function rn(){var En,Ln,zn=+At.apply(this,arguments),pr=+Yt.apply(this,arguments),ir=de.apply(this,arguments)-s,Xn=ke.apply(this,arguments)-s,lr=tt(Xn-ir),Cr=Xn>ir;if(He||(He=En=q()),pr1e-12)if(lr>_-1e-12)He.moveTo(pr*X(ir),pr*d(ir)),He.arc(0,0,pr,ir,Xn,!Cr),zn>1e-12&&(He.moveTo(zn*X(Xn),zn*d(Xn)),He.arc(0,0,zn,Xn,ir,Cr));else{var wr,Ir,$r=ir,ci=Xn,Ri=ir,Pi=Xn,yi=lr,Oi=lr,Li=Ke.apply(this,arguments)/2,Ni=Li>1e-12&&(he?+he.apply(this,arguments):L(zn*zn+pr*pr)),Vi=U(tt(pr-zn)/2,+ae.apply(this,arguments)),eo=Vi,Xi=Vi;if(Ni>1e-12){var Eo=o(Ni/zn*d(Li)),Ro=o(Ni/pr*d(Li));(yi-=2*Eo)>1e-12?(Ri+=Eo*=Cr?1:-1,Pi-=Eo):(yi=0,Ri=Pi=(ir+Xn)/2),(Oi-=2*Ro)>1e-12?($r+=Ro*=Cr?1:-1,ci-=Ro):(Oi=0,$r=ci=(ir+Xn)/2)}var fo=pr*X($r),ro=pr*d($r),wo=zn*X(Pi),Go=zn*d(Pi);if(Vi>1e-12){var ao,Mi=pr*X(ci),ea=pr*d(ci),na=zn*X(Ri),Co=zn*d(Ri);if(lr1e-12?Xi>1e-12?(wr=x(na,Co,fo,ro,pr,Xi,Cr),Ir=x(Mi,ea,wo,Go,pr,Xi,Cr),He.moveTo(wr.cx+wr.x01,wr.cy+wr.y01),Xi1e-12&&yi>1e-12?eo>1e-12?(wr=x(wo,Go,Mi,ea,zn,-eo,Cr),Ir=x(fo,ro,na,Co,zn,-eo,Cr),He.lineTo(wr.cx+wr.x01,wr.cy+wr.y01),eo=pr;--ir)He.point(Ir[ir],$r[ir]);He.lineEnd(),He.areaEnd()}wr&&(Ir[zn]=+At(Xn,zn,Ln),$r[zn]=+ae(Xn,zn,Ln),He.point(Yt?+Yt(Xn,zn,Ln):Ir[zn],he?+he(Xn,zn,Ln):$r[zn]))}if(lr)return He=null,lr+""||null}function En(){return T().defined(de).curve(Ke).context(ke)}return rn.x=function(Ln){return arguments.length?(At=typeof Ln=="function"?Ln:Z(+Ln),Yt=null,rn):At},rn.x0=function(Ln){return arguments.length?(At=typeof Ln=="function"?Ln:Z(+Ln),rn):At},rn.x1=function(Ln){return arguments.length?(Yt=Ln==null?null:typeof Ln=="function"?Ln:Z(+Ln),rn):Yt},rn.y=function(Ln){return arguments.length?(ae=typeof Ln=="function"?Ln:Z(+Ln),he=null,rn):ae},rn.y0=function(Ln){return arguments.length?(ae=typeof Ln=="function"?Ln:Z(+Ln),rn):ae},rn.y1=function(Ln){return arguments.length?(he=Ln==null?null:typeof Ln=="function"?Ln:Z(+Ln),rn):he},rn.lineX0=rn.lineY0=function(){return En().x(At).y(ae)},rn.lineY1=function(){return En().x(At).y(he)},rn.lineX1=function(){return En().x(Yt).y(ae)},rn.defined=function(Ln){return arguments.length?(de=typeof Ln=="function"?Ln:Z(!!Ln),rn):de},rn.curve=function(Ln){return arguments.length?(Ke=Ln,ke!=null&&(He=Ke(ke)),rn):Ke},rn.context=function(Ln){return arguments.length?(Ln==null?ke=He=null:He=Ke(ke=Ln),rn):ke},rn},Q=function(At,Yt){return YtAt?1:Yt>=At?0:NaN},st=function(At){return At},nt=function(){var At=st,Yt=Q,ae=null,he=Z(0),de=Z(_),ke=Z(0);function Ke(He){var rn,En,Ln,zn,pr,ir=He.length,Xn=0,lr=new Array(ir),Cr=new Array(ir),wr=+he.apply(this,arguments),Ir=Math.min(_,Math.max(-_,de.apply(this,arguments)-wr)),$r=Math.min(Math.abs(Ir)/ir,ke.apply(this,arguments)),ci=$r*(Ir<0?-1:1);for(rn=0;rn0&&(Xn+=pr);for(Yt!=null?lr.sort(function(Ri,Pi){return Yt(Cr[Ri],Cr[Pi])}):ae!=null&&lr.sort(function(Ri,Pi){return ae(He[Ri],He[Pi])}),rn=0,Ln=Xn?(Ir-ir*ci)/Xn:0;rn0?pr*Ln:0)+ci,Cr[En]={data:He[En],index:rn,value:pr,startAngle:wr,endAngle:zn,padAngle:$r};return Cr}return Ke.value=function(He){return arguments.length?(At=typeof He=="function"?He:Z(+He),Ke):At},Ke.sortValues=function(He){return arguments.length?(Yt=He,ae=null,Ke):Yt},Ke.sort=function(He){return arguments.length?(ae=He,Yt=null,Ke):ae},Ke.startAngle=function(He){return arguments.length?(he=typeof He=="function"?He:Z(+He),Ke):he},Ke.endAngle=function(He){return arguments.length?(de=typeof He=="function"?He:Z(+He),Ke):de},Ke.padAngle=function(He){return arguments.length?(ke=typeof He=="function"?He:Z(+He),Ke):ke},Ke},dt=Et(f);function mt(At){this._curve=At}function Et(At){function Yt(ae){return new mt(At(ae))}return Yt._curve=At,Yt}function Mt(At){var Yt=At.curve;return At.angle=At.x,delete At.x,At.radius=At.y,delete At.y,At.curve=function(ae){return arguments.length?Yt(Et(ae)):Yt()._curve},At}mt.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(At,Yt){this._curve.point(Yt*Math.sin(At),Yt*-Math.cos(At))}};var I=function(){return Mt(T().curve(dt))},Y=function(){var At=k().curve(dt),Yt=At.curve,ae=At.lineX0,he=At.lineX1,de=At.lineY0,ke=At.lineY1;return At.angle=At.x,delete At.x,At.startAngle=At.x0,delete At.x0,At.endAngle=At.x1,delete At.x1,At.radius=At.y,delete At.y,At.innerRadius=At.y0,delete At.y0,At.outerRadius=At.y1,delete At.y1,At.lineStartAngle=function(){return Mt(ae())},delete At.lineX0,At.lineEndAngle=function(){return Mt(he())},delete At.lineX1,At.lineInnerRadius=function(){return Mt(de())},delete At.lineY0,At.lineOuterRadius=function(){return Mt(ke())},delete At.lineY1,At.curve=function(Ke){return arguments.length?Yt(Et(Ke)):Yt()._curve},At},rt=function(At,Yt){return[(Yt=+Yt)*Math.cos(At-=Math.PI/2),Yt*Math.sin(At)]},ot=Array.prototype.slice;function D(At){return At.source}function P(At){return At.target}function W(At){var Yt=D,ae=P,he=b,de=z,ke=null;function Ke(){var He,rn=ot.call(arguments),En=Yt.apply(this,rn),Ln=ae.apply(this,rn);if(ke||(ke=He=q()),At(ke,+he.apply(this,(rn[0]=En,rn)),+de.apply(this,rn),+he.apply(this,(rn[0]=Ln,rn)),+de.apply(this,rn)),He)return ke=null,He+""||null}return Ke.source=function(He){return arguments.length?(Yt=He,Ke):Yt},Ke.target=function(He){return arguments.length?(ae=He,Ke):ae},Ke.x=function(He){return arguments.length?(he=typeof He=="function"?He:Z(+He),Ke):he},Ke.y=function(He){return arguments.length?(de=typeof He=="function"?He:Z(+He),Ke):de},Ke.context=function(He){return arguments.length?(ke=He==null?null:He,Ke):ke},Ke}function lt(At,Yt,ae,he,de){At.moveTo(Yt,ae),At.bezierCurveTo(Yt=(Yt+he)/2,ae,Yt,de,he,de)}function it(At,Yt,ae,he,de){At.moveTo(Yt,ae),At.bezierCurveTo(Yt,ae=(ae+de)/2,he,ae,he,de)}function vt(At,Yt,ae,he,de){var ke=rt(Yt,ae),Ke=rt(Yt,ae=(ae+de)/2),He=rt(he,ae),rn=rt(he,de);At.moveTo(ke[0],ke[1]),At.bezierCurveTo(Ke[0],Ke[1],He[0],He[1],rn[0],rn[1])}function pt(){return W(lt)}function xt(){return W(it)}function Ct(){var At=W(vt);return At.angle=At.x,delete At.x,At.radius=At.y,delete At.y,At}var Tt={draw:function(At,Yt){var ae=Math.sqrt(Yt/M);At.moveTo(ae,0),At.arc(0,0,ae,0,_)}},Nt={draw:function(At,Yt){var ae=Math.sqrt(Yt/5)/2;At.moveTo(-3*ae,-ae),At.lineTo(-ae,-ae),At.lineTo(-ae,-3*ae),At.lineTo(ae,-3*ae),At.lineTo(ae,-ae),At.lineTo(3*ae,-ae),At.lineTo(3*ae,ae),At.lineTo(ae,ae),At.lineTo(ae,3*ae),At.lineTo(-ae,3*ae),At.lineTo(-ae,ae),At.lineTo(-3*ae,ae),At.closePath()}},gt=Math.sqrt(1/3),wt=2*gt,Rt={draw:function(At,Yt){var ae=Math.sqrt(Yt/wt),he=ae*gt;At.moveTo(0,-ae),At.lineTo(he,0),At.lineTo(0,ae),At.lineTo(-he,0),At.closePath()}},jt=Math.sin(M/10)/Math.sin(7*M/10),Zt=Math.sin(_/10)*jt,ne=-Math.cos(_/10)*jt,Wt={draw:function(At,Yt){var ae=Math.sqrt(.8908130915292852*Yt),he=Zt*ae,de=ne*ae;At.moveTo(0,-ae),At.lineTo(he,de);for(var ke=1;ke<5;++ke){var Ke=_*ke/5,He=Math.cos(Ke),rn=Math.sin(Ke);At.lineTo(rn*ae,-He*ae),At.lineTo(He*he-rn*de,rn*he+He*de)}At.closePath()}},le={draw:function(At,Yt){var ae=Math.sqrt(Yt),he=-ae/2;At.rect(he,he,ae,ae)}},fe=Math.sqrt(3),xe={draw:function(At,Yt){var ae=-Math.sqrt(Yt/(3*fe));At.moveTo(0,2*ae),At.lineTo(-fe*ae,-ae),At.lineTo(fe*ae,-ae),At.closePath()}},be=Math.sqrt(3)/2,Ye=1/Math.sqrt(12),tn=3*(Ye/2+1),on={draw:function(At,Yt){var ae=Math.sqrt(Yt/tn),he=ae/2,de=ae*Ye,ke=he,Ke=ae*Ye+ae,He=-ke,rn=Ke;At.moveTo(he,de),At.lineTo(ke,Ke),At.lineTo(He,rn),At.lineTo(-.5*he-be*de,be*he+-.5*de),At.lineTo(-.5*ke-be*Ke,be*ke+-.5*Ke),At.lineTo(-.5*He-be*rn,be*He+-.5*rn),At.lineTo(-.5*he+be*de,-.5*de-be*he),At.lineTo(-.5*ke+be*Ke,-.5*Ke-be*ke),At.lineTo(-.5*He+be*rn,-.5*rn-be*He),At.closePath()}},Jt=[Tt,Nt,Rt,le,Wt,xe,on],Kt=function(){var At=Z(Tt),Yt=Z(64),ae=null;function he(){var de;if(ae||(ae=de=q()),At.apply(this,arguments).draw(ae,+Yt.apply(this,arguments)),de)return ae=null,de+""||null}return he.type=function(de){return arguments.length?(At=typeof de=="function"?de:Z(de),he):At},he.size=function(de){return arguments.length?(Yt=typeof de=="function"?de:Z(+de),he):Yt},he.context=function(de){return arguments.length?(ae=de==null?null:de,he):ae},he},te=function(){};function Ot(At,Yt,ae){At._context.bezierCurveTo((2*At._x0+At._x1)/3,(2*At._y0+At._y1)/3,(At._x0+2*At._x1)/3,(At._y0+2*At._y1)/3,(At._x0+4*At._x1+Yt)/6,(At._y0+4*At._y1+ae)/6)}function Bt(At){this._context=At}Bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ot(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(At,Yt){switch(At=+At,Yt=+Yt,this._point){case 0:this._point=1,this._line?this._context.lineTo(At,Yt):this._context.moveTo(At,Yt);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ot(this,At,Yt)}this._x0=this._x1,this._x1=At,this._y0=this._y1,this._y1=Yt}};var Ut=function(At){return new Bt(At)};function zt(At){this._context=At}zt.prototype={areaStart:te,areaEnd:te,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(At,Yt){switch(At=+At,Yt=+Yt,this._point){case 0:this._point=1,this._x2=At,this._y2=Yt;break;case 1:this._point=2,this._x3=At,this._y3=Yt;break;case 2:this._point=3,this._x4=At,this._y4=Yt,this._context.moveTo((this._x0+4*this._x1+At)/6,(this._y0+4*this._y1+Yt)/6);break;default:Ot(this,At,Yt)}this._x0=this._x1,this._x1=At,this._y0=this._y1,this._y1=Yt}};var ce=function(At){return new zt(At)};function we(At){this._context=At}we.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(At,Yt){switch(At=+At,Yt=+Yt,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var ae=(this._x0+4*this._x1+At)/6,he=(this._y0+4*this._y1+Yt)/6;this._line?this._context.lineTo(ae,he):this._context.moveTo(ae,he);break;case 3:this._point=4;default:Ot(this,At,Yt)}this._x0=this._x1,this._x1=At,this._y0=this._y1,this._y1=Yt}};var ye=function(At){return new we(At)};function qe(At,Yt){this._basis=new Bt(At),this._beta=Yt}qe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var At=this._x,Yt=this._y,ae=At.length-1;if(ae>0)for(var he,de=At[0],ke=Yt[0],Ke=At[ae]-de,He=Yt[ae]-ke,rn=-1;++rn<=ae;)he=rn/ae,this._basis.point(this._beta*At[rn]+(1-this._beta)*(de+he*Ke),this._beta*Yt[rn]+(1-this._beta)*(ke+he*He));this._x=this._y=null,this._basis.lineEnd()},point:function(At,Yt){this._x.push(+At),this._y.push(+Yt)}};var hn=function At(Yt){function ae(he){return Yt===1?new Bt(he):new qe(he,Yt)}return ae.beta=function(he){return At(+he)},ae}(.85);function yn(At,Yt,ae){At._context.bezierCurveTo(At._x1+At._k*(At._x2-At._x0),At._y1+At._k*(At._y2-At._y0),At._x2+At._k*(At._x1-Yt),At._y2+At._k*(At._y1-ae),At._x2,At._y2)}function Nn(At,Yt){this._context=At,this._k=(1-Yt)/6}Nn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:yn(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(At,Yt){switch(At=+At,Yt=+Yt,this._point){case 0:this._point=1,this._line?this._context.lineTo(At,Yt):this._context.moveTo(At,Yt);break;case 1:this._point=2,this._x1=At,this._y1=Yt;break;case 2:this._point=3;default:yn(this,At,Yt)}this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=Yt}};var mn=function At(Yt){function ae(he){return new Nn(he,Yt)}return ae.tension=function(he){return At(+he)},ae}(0);function Mn(At,Yt){this._context=At,this._k=(1-Yt)/6}Mn.prototype={areaStart:te,areaEnd:te,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(At,Yt){switch(At=+At,Yt=+Yt,this._point){case 0:this._point=1,this._x3=At,this._y3=Yt;break;case 1:this._point=2,this._context.moveTo(this._x4=At,this._y4=Yt);break;case 2:this._point=3,this._x5=At,this._y5=Yt;break;default:yn(this,At,Yt)}this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=Yt}};var Kn=function At(Yt){function ae(he){return new Mn(he,Yt)}return ae.tension=function(he){return At(+he)},ae}(0);function fr(At,Yt){this._context=At,this._k=(1-Yt)/6}fr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(At,Yt){switch(At=+At,Yt=+Yt,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:yn(this,At,Yt)}this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=Yt}};var ge=function At(Yt){function ae(he){return new fr(he,Yt)}return ae.tension=function(he){return At(+he)},ae}(0);function Ie(At,Yt,ae){var he=At._x1,de=At._y1,ke=At._x2,Ke=At._y2;if(At._l01_a>1e-12){var He=2*At._l01_2a+3*At._l01_a*At._l12_a+At._l12_2a,rn=3*At._l01_a*(At._l01_a+At._l12_a);he=(he*He-At._x0*At._l12_2a+At._x2*At._l01_2a)/rn,de=(de*He-At._y0*At._l12_2a+At._y2*At._l01_2a)/rn}if(At._l23_a>1e-12){var En=2*At._l23_2a+3*At._l23_a*At._l12_a+At._l12_2a,Ln=3*At._l23_a*(At._l23_a+At._l12_a);ke=(ke*En+At._x1*At._l23_2a-Yt*At._l12_2a)/Ln,Ke=(Ke*En+At._y1*At._l23_2a-ae*At._l12_2a)/Ln}At._context.bezierCurveTo(he,de,ke,Ke,At._x2,At._y2)}function Ge(At,Yt){this._context=At,this._alpha=Yt}Ge.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(At,Yt){if(At=+At,Yt=+Yt,this._point){var ae=this._x2-At,he=this._y2-Yt;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(ae*ae+he*he,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(At,Yt):this._context.moveTo(At,Yt);break;case 1:this._point=2;break;case 2:this._point=3;default:Ie(this,At,Yt)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=Yt}};var ve=function At(Yt){function ae(he){return Yt?new Ge(he,Yt):new Nn(he,0)}return ae.alpha=function(he){return At(+he)},ae}(.5);function Le(At,Yt){this._context=At,this._alpha=Yt}Le.prototype={areaStart:te,areaEnd:te,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(At,Yt){if(At=+At,Yt=+Yt,this._point){var ae=this._x2-At,he=this._y2-Yt;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(ae*ae+he*he,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=At,this._y3=Yt;break;case 1:this._point=2,this._context.moveTo(this._x4=At,this._y4=Yt);break;case 2:this._point=3,this._x5=At,this._y5=Yt;break;default:Ie(this,At,Yt)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=Yt}};var Ue=function At(Yt){function ae(he){return Yt?new Le(he,Yt):new Mn(he,0)}return ae.alpha=function(he){return At(+he)},ae}(.5);function Oe(At,Yt){this._context=At,this._alpha=Yt}Oe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(At,Yt){if(At=+At,Yt=+Yt,this._point){var ae=this._x2-At,he=this._y2-Yt;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(ae*ae+he*he,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ie(this,At,Yt)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=Yt}};var De=function At(Yt){function ae(he){return Yt?new Oe(he,Yt):new fr(he,0)}return ae.alpha=function(he){return At(+he)},ae}(.5);function Ze(At){this._context=At}Ze.prototype={areaStart:te,areaEnd:te,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(At,Yt){At=+At,Yt=+Yt,this._point?this._context.lineTo(At,Yt):(this._point=1,this._context.moveTo(At,Yt))}};var Sn=function(At){return new Ze(At)};function Me(At){return At<0?-1:1}function en(At,Yt,ae){var he=At._x1-At._x0,de=Yt-At._x1,ke=(At._y1-At._y0)/(he||de<0&&-0),Ke=(ae-At._y1)/(de||he<0&&-0),He=(ke*de+Ke*he)/(he+de);return(Me(ke)+Me(Ke))*Math.min(Math.abs(ke),Math.abs(Ke),.5*Math.abs(He))||0}function xn(At,Yt){var ae=At._x1-At._x0;return ae?(3*(At._y1-At._y0)/ae-Yt)/2:Yt}function Te(At,Yt,ae){var he=At._x0,de=At._y0,ke=At._x1,Ke=At._y1,He=(ke-he)/3;At._context.bezierCurveTo(he+He,de+He*Yt,ke-He,Ke-He*ae,ke,Ke)}function bn(At){this._context=At}function nn(At){this._context=new fn(At)}function fn(At){this._context=At}function wn(At){return new bn(At)}function vn(At){return new nn(At)}function cr(At){this._context=At}function Jn(At){var Yt,ae,he=At.length-1,de=new Array(he),ke=new Array(he),Ke=new Array(he);for(de[0]=0,ke[0]=2,Ke[0]=At[0]+2*At[1],Yt=1;Yt=0;--Yt)de[Yt]=(Ke[Yt]-de[Yt+1])/ke[Yt];for(ke[he-1]=(At[he]+de[he-1])/2,Yt=0;Yt=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(At,Yt){switch(At=+At,Yt=+Yt,this._point){case 0:this._point=1,this._line?this._context.lineTo(At,Yt):this._context.moveTo(At,Yt);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,Yt),this._context.lineTo(At,Yt);else{var ae=this._x*(1-this._t)+At*this._t;this._context.lineTo(ae,this._y),this._context.lineTo(ae,Yt)}}this._x=At,this._y=Yt}};var nr=function(At){return new gr(At,.5)};function Nr(At){return new gr(At,0)}function Lr(At){return new gr(At,1)}var sr=function(At,Yt){if((de=At.length)>1)for(var ae,he,de,ke=1,Ke=At[Yt[0]],He=Ke.length;ke=0;)ae[Yt]=Yt;return ae};function Or(At,Yt){return At[Yt]}var fi=function(){var At=Z([]),Yt=Rn,ae=sr,he=Or;function de(ke){var Ke,He,rn=At.apply(this,arguments),En=ke.length,Ln=rn.length,zn=new Array(Ln);for(Ke=0;Ke0){for(var ae,he,de,ke=0,Ke=At[0].length;ke0)for(var ae,he,de,ke,Ke,He,rn=0,En=At[Yt[0]].length;rn0?(he[0]=ke,he[1]=ke+=de):de<0?(he[1]=Ke,he[0]=Ke+=de):(he[0]=0,he[1]=de)},_r=function(At,Yt){if((ae=At.length)>0){for(var ae,he=0,de=At[Yt[0]],ke=de.length;he0&&(he=(ae=At[Yt[0]]).length)>0){for(var ae,he,de,ke=0,Ke=1;Keke&&(ke=Yt,he=ae);return he}var Xe=function(At){var Yt=At.map(Qe);return Rn(At).sort(function(ae,he){return Yt[ae]-Yt[he]})};function Qe(At){for(var Yt,ae=0,he=-1,de=At.length;++he0?Object(R.a)(function(J){J.setFullYear(Math.floor(J.getFullYear()/K)*K),J.setMonth(0,1),J.setHours(0,0,0,0)},function(J,q){J.setFullYear(J.getFullYear()+q*K)}):null},m.a=B;var et=B.range},function(_t,m,y){"use strict";y.d(m,"b",function(){return et});var R=y(1),B=Object(R.a)(function(K){K.setUTCMonth(0,1),K.setUTCHours(0,0,0,0)},function(K,J){K.setUTCFullYear(K.getUTCFullYear()+J)},function(K,J){return J.getUTCFullYear()-K.getUTCFullYear()},function(K){return K.getUTCFullYear()});B.every=function(K){return isFinite(K=Math.floor(K))&&K>0?Object(R.a)(function(J){J.setUTCFullYear(Math.floor(J.getUTCFullYear()/K)*K),J.setUTCMonth(0,1),J.setUTCHours(0,0,0,0)},function(J,q){J.setUTCFullYear(J.getUTCFullYear()+q*K)}):null},m.a=B;var et=B.range},function(_t,m,y){"use strict";var R;(R=function(){var B=y(27),et=y(39);return{axisTimeCombinations:{MINUTE_HOUR:"minute-hour",HOUR_DAY:"hour-daymonth",DAY_MONTH:"day-month",MONTH_YEAR:"month-year",CUSTOM:"custom"},curveMap:{linear:B.curveLinear,basis:B.curveBasis,cardinal:B.curveCardinal,catmullRom:B.curveCatmullRom,monotoneX:B.curveMonotoneX,monotoneY:B.curveMonotoneY,natural:B.curveNatural,step:B.curveStep,stepAfter:B.curveStepAfter,stepBefore:B.curveStepBefore},emptyDonutData:[{quantity:1,percentage:100}],timeBenchmarks:{ONE_AND_A_HALF_YEARS:47304e6,ONE_YEAR:31536000365,ONE_DAY:86400001},lineGradientId:"lineGradientId",timeIntervals:{timeMillisecond:et.timeMillisecond,utcMillisecond:et.utcMillisecond,timeSecond:et.timeSecond,utcSecond:et.utcSecond,timeMinute:et.timeMinute,utcMinute:et.utcMinute,timeHour:et.timeHour,utcHour:et.utcHour,timeDay:et.timeDay,utcDay:et.utcDay,timeWeek:et.timeWeek,utcWeek:et.utcWeek,timeSunday:et.timeSunday,utcSunday:et.utcSunday,timeMonday:et.timeMonday,utcMonday:et.utcMonday,timeTuesday:et.timeTuesday,utcTuesday:et.utcTuesday,timeWednesday:et.timeWednesday,utcWednesday:et.utcWednesday,timeThursday:et.timeThursday,utcThursday:et.utcThursday,timeFriday:et.timeFriday,utcFriday:et.utcFriday,timeSaturday:et.timeSaturday,utcSaturday:et.utcSaturday,timeMonth:et.timeMonth,utcMonth:et.utcMonth,timeYear:et.timeYear,utcYear:et.utcYear},FORMAT_LOCALE_URL:"https://cdn.jsdelivr.net/npm/d3-format/locale"}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";y.d(m,"b",function(){return q}),y.d(m,"c",function(){return Z});var R=y(7),B=y(42),et=y(58),K=y(4);function J(tt){return function(H){var X,F,U=H.length,d=new Array(U),L=new Array(U),M=new Array(U);for(X=0;X=0&&(F=X.slice(U+1),X=X.slice(0,U)),{type:X,name:F}})}function q(H){return function(){var X=this.__on;if(X){for(var F,U=0,d=-1,L=X.length;U1?K[0]+K.slice(2):K,+R.slice(et+1)]}},function(_t,m,y){"use strict";y.r(m);var R=y(1);y.d(m,"timeInterval",function(){return R.a});var B=y(52);y.d(m,"timeMillisecond",function(){return B.a}),y.d(m,"timeMilliseconds",function(){return B.b}),y.d(m,"utcMillisecond",function(){return B.a}),y.d(m,"utcMilliseconds",function(){return B.b});var et=y(51);y.d(m,"timeSecond",function(){return et.a}),y.d(m,"timeSeconds",function(){return et.b}),y.d(m,"utcSecond",function(){return et.a}),y.d(m,"utcSeconds",function(){return et.b});var K=y(71);y.d(m,"timeMinute",function(){return K.a}),y.d(m,"timeMinutes",function(){return K.b});var J=y(70);y.d(m,"timeHour",function(){return J.a}),y.d(m,"timeHours",function(){return J.b});var q=y(53);y.d(m,"timeDay",function(){return q.b}),y.d(m,"timeDays",function(){return q.a});var Z=y(5);y.d(m,"timeWeek",function(){return Z.g}),y.d(m,"timeWeeks",function(){return Z.h}),y.d(m,"timeSunday",function(){return Z.g}),y.d(m,"timeSundays",function(){return Z.h}),y.d(m,"timeMonday",function(){return Z.c}),y.d(m,"timeMondays",function(){return Z.d}),y.d(m,"timeTuesday",function(){return Z.k}),y.d(m,"timeTuesdays",function(){return Z.l}),y.d(m,"timeWednesday",function(){return Z.m}),y.d(m,"timeWednesdays",function(){return Z.n}),y.d(m,"timeThursday",function(){return Z.i}),y.d(m,"timeThursdays",function(){return Z.j}),y.d(m,"timeFriday",function(){return Z.a}),y.d(m,"timeFridays",function(){return Z.b}),y.d(m,"timeSaturday",function(){return Z.e}),y.d(m,"timeSaturdays",function(){return Z.f});var tt=y(69);y.d(m,"timeMonth",function(){return tt.a}),y.d(m,"timeMonths",function(){return tt.b});var H=y(33);y.d(m,"timeYear",function(){return H.a}),y.d(m,"timeYears",function(){return H.b});var X=y(74);y.d(m,"utcMinute",function(){return X.a}),y.d(m,"utcMinutes",function(){return X.b});var F=y(73);y.d(m,"utcHour",function(){return F.a}),y.d(m,"utcHours",function(){return F.b});var U=y(54);y.d(m,"utcDay",function(){return U.a}),y.d(m,"utcDays",function(){return U.b});var d=y(6);y.d(m,"utcWeek",function(){return d.g}),y.d(m,"utcWeeks",function(){return d.h}),y.d(m,"utcSunday",function(){return d.g}),y.d(m,"utcSundays",function(){return d.h}),y.d(m,"utcMonday",function(){return d.c}),y.d(m,"utcMondays",function(){return d.d}),y.d(m,"utcTuesday",function(){return d.k}),y.d(m,"utcTuesdays",function(){return d.l}),y.d(m,"utcWednesday",function(){return d.m}),y.d(m,"utcWednesdays",function(){return d.n}),y.d(m,"utcThursday",function(){return d.i}),y.d(m,"utcThursdays",function(){return d.j}),y.d(m,"utcFriday",function(){return d.a}),y.d(m,"utcFridays",function(){return d.b}),y.d(m,"utcSaturday",function(){return d.e}),y.d(m,"utcSaturdays",function(){return d.f});var L=y(72);y.d(m,"utcMonth",function(){return L.a}),y.d(m,"utcMonths",function(){return L.b});var M=y(34);y.d(m,"utcYear",function(){return M.a}),y.d(m,"utcYears",function(){return M.b})},function(_t,m,y){"use strict";y.d(m,"b",function(){return B}),y.d(m,"a",function(){return et});var R=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function B(K){if(!(J=R.exec(K)))throw new Error("invalid format: "+K);var J;return new et({fill:J[1],align:J[2],sign:J[3],symbol:J[4],zero:J[5],width:J[6],comma:J[7],precision:J[8]&&J[8].slice(1),trim:J[9],type:J[10]})}function et(K){this.fill=K.fill===void 0?" ":K.fill+"",this.align=K.align===void 0?">":K.align+"",this.sign=K.sign===void 0?"-":K.sign+"",this.symbol=K.symbol===void 0?"":K.symbol+"",this.zero=!!K.zero,this.width=K.width===void 0?void 0:+K.width,this.comma=!!K.comma,this.precision=K.precision===void 0?void 0:+K.precision,this.trim=!!K.trim,this.type=K.type===void 0?"":K.type+""}B.prototype=et.prototype,et.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(_t,m,y){"use strict";var R=y(7),B=y(36),et=y(61),K=y(60),J=y(14),q=y(62),Z=y(59),tt=y(48),H=y(31);m.a=function(X,F){var U,d=typeof F;return F==null||d==="boolean"?Object(tt.a)(F):(d==="number"?J.a:d==="string"?(U=Object(R.e)(F))?(F=U,B.a):Z.a:F instanceof R.e?B.a:F instanceof Date?K.a:Object(H.b)(F)?H.a:Array.isArray(F)?et.b:typeof F.valueOf!="function"&&typeof F.toString!="function"||isNaN(F)?q.a:J.a)(X,F)}},function(_t,m,y){"use strict";function R(B,et,K,J,q){var Z=B*B,tt=Z*B;return((1-3*B+3*Z-tt)*et+(4-6*Z+3*tt)*K+(1+3*B+3*Z-3*tt)*J+tt*q)/6}y.d(m,"a",function(){return R}),m.b=function(B){var et=B.length-1;return function(K){var J=K<=0?K=0:K>=1?(K=1,et-1):Math.floor(K*et),q=B[J],Z=B[J+1],tt=J>0?B[J-1]:2*q-Z,H=J=0&&(et=B.slice(0,K))!=="xmlns"&&(B=B.slice(K+1)),R.a.hasOwnProperty(et)?{space:R.a[et],local:B}:B}},function(_t,m,y){"use strict";m.a=function(R){return R.ownerDocument&&R.ownerDocument.defaultView||R.document&&R||R.defaultView}},function(_t,m,y){"use strict";var R=y(37);m.a=function(){for(var B,et=R.c;B=et.sourceEvent;)et=B;return et}},function(_t,m,y){"use strict";y.d(m,"a",function(){return R}),y.d(m,"b",function(){return B});var R=Math.PI/180,B=180/Math.PI},function(_t,m,y){"use strict";m.a=function(R){return function(){return R}}},function(_t,m,y){"use strict";function R(K){return K*K*K}function B(K){return--K*K*K+1}function et(K){return((K*=2)<=1?K*K*K:(K-=2)*K*K+2)/2}y.d(m,"a",function(){return R}),y.d(m,"c",function(){return B}),y.d(m,"b",function(){return et})},function(_t,m,y){"use strict";y.d(m,"b",function(){return Z}),y.d(m,"a",function(){return tt}),y.d(m,"d",function(){return M}),y.d(m,"c",function(){return s});var R=y(15),B=y(7),et=y(47),K=6/29,J=3*K*K;function q(o){if(o instanceof H)return new H(o.l,o.a,o.b,o.opacity);if(o instanceof _)return w(o);o instanceof B.b||(o=Object(B.h)(o));var u,C,E=d(o.r),S=d(o.g),v=d(o.b),g=X((.2225045*E+.7168786*S+.0606169*v)/1);return E===S&&S===v?u=C=g:(u=X((.4360747*E+.3850649*S+.1430804*v)/.96422),C=X((.0139322*E+.0971045*S+.7141733*v)/.82521)),new H(116*g-16,500*(u-g),200*(g-C),o.opacity)}function Z(o,u){return new H(o,0,0,u==null?1:u)}function tt(o,u,C,E){return arguments.length===1?q(o):new H(o,u,C,E==null?1:E)}function H(o,u,C,E){this.l=+o,this.a=+u,this.b=+C,this.opacity=+E}function X(o){return o>.008856451679035631?Math.pow(o,.3333333333333333):o/J+.13793103448275862}function F(o){return o>K?o*o*o:J*(o-.13793103448275862)}function U(o){return 255*(o<=.0031308?12.92*o:1.055*Math.pow(o,.4166666666666667)-.055)}function d(o){return(o/=255)<=.04045?o/12.92:Math.pow((o+.055)/1.055,2.4)}function L(o){if(o instanceof _)return new _(o.h,o.c,o.l,o.opacity);if(o instanceof H||(o=q(o)),o.a===0&&o.b===0)return new _(NaN,00?K>1?Object(R.a)(function(J){J.setTime(Math.floor(J/K)*K)},function(J,q){J.setTime(+J+q*K)},function(J,q){return(q-J)/K}):B:null},m.a=B;var et=B.range},function(_t,m,y){"use strict";y.d(m,"a",function(){return K});var R=y(1),B=y(3),et=Object(R.a)(function(J){J.setHours(0,0,0,0)},function(J,q){J.setDate(J.getDate()+q)},function(J,q){return(q-J-(q.getTimezoneOffset()-J.getTimezoneOffset())*B.c)/B.a},function(J){return J.getDate()-1});m.b=et;var K=et.range},function(_t,m,y){"use strict";y.d(m,"b",function(){return K});var R=y(1),B=y(3),et=Object(R.a)(function(J){J.setUTCHours(0,0,0,0)},function(J,q){J.setUTCDate(J.getUTCDate()+q)},function(J,q){return(q-J)/B.a},function(J){return J.getUTCDate()-1});m.a=et;var K=et.range},,function(_t,m,y){"use strict";y.d(m,"b",function(){return B}),y.d(m,"c",function(){return et}),y.d(m,"a",function(){return J});var R,B,et,K=y(68);function J(q){return R=Object(K.a)(q),B=R.format,et=R.formatPrefix,R}J({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})},function(_t,m){var y=/^(?:0|[1-9]\d*)$/;function R(C,E,S){switch(S.length){case 0:return C.call(E);case 1:return C.call(E,S[0]);case 2:return C.call(E,S[0],S[1]);case 3:return C.call(E,S[0],S[1],S[2])}return C.apply(E,S)}var B,et,K=Object.prototype,J=K.hasOwnProperty,q=K.toString,Z=K.propertyIsEnumerable,tt=(B=Object.keys,et=Object,function(C){return B(et(C))}),H=Math.max,X=!Z.call({valueOf:1},"valueOf");function F(C,E){var S=s(C)||function(p){return function(l){return function(f){return!!f&&typeof f=="object"}(l)&&_(l)}(p)&&J.call(p,"callee")&&(!Z.call(p,"callee")||q.call(p)=="[object Arguments]")}(C)?function(p,l){for(var f=-1,b=Array(p);++f-1&&C%1==0&&C-1&&E%1==0&&E<=9007199254740991}(C.length)&&!function(E){var S=w(E)?q.call(E):"";return S=="[object Function]"||S=="[object GeneratorFunction]"}(C)}function w(C){var E=typeof C;return!!C&&(E=="object"||E=="function")}var o,u=(o=function(C,E){if(X||L(E)||_(E))(function(v,g,x,p){x||(x={});for(var l=-1,f=g.length;++l1?E[v-1]:void 0,x=v>2?E[2]:void 0;for(g=o.length>3&&typeof g=="function"?(v--,g):void 0,x&&function(l,f,b){if(!w(b))return!1;var z=typeof f;return!!(z=="number"?_(b)&&d(f,b.length):z=="string"&&f in b)&&M(b[f],l)}(E[0],E[1],x)&&(g=v<3?void 0:g,v=1),C=Object(C);++SH&&(tt=J.slice(H,tt),F[X]?F[X]+=tt:F[++X]=tt),(q=q[0])===(Z=Z[0])?F[X]?F[X]+=Z:F[++X]=Z:(F[++X]=null,U.push({i:X,x:Object(R.a)(q,Z)})),H=et.lastIndex;return H=12)]},q:function(Te){return 1+~~(Te.getMonth()/3)},Q:Bt,s:Ut,S:W,u:lt,U:it,V:vt,w:pt,W:xt,x:null,X:null,y:Ct,Y:Tt,Z:Nt,"%":Ot},Ze={a:function(Te){return yn[Te.getUTCDay()]},A:function(Te){return hn[Te.getUTCDay()]},b:function(Te){return mn[Te.getUTCMonth()]},B:function(Te){return Nn[Te.getUTCMonth()]},c:null,d:gt,e:gt,f:ne,H:wt,I:Rt,j:jt,L:Zt,m:Wt,M:le,p:function(Te){return qe[+(Te.getUTCHours()>=12)]},q:function(Te){return 1+~~(Te.getUTCMonth()/3)},Q:Bt,s:Ut,S:fe,u:xe,U:be,V:Ye,w:tn,W:on,x:null,X:null,y:Jt,Y:Kt,Z:te,"%":Ot},Sn={a:function(Te,bn,nn){var fn=Ie.exec(bn.slice(nn));return fn?(Te.w=Ge[fn[0].toLowerCase()],nn+fn[0].length):-1},A:function(Te,bn,nn){var fn=fr.exec(bn.slice(nn));return fn?(Te.w=ge[fn[0].toLowerCase()],nn+fn[0].length):-1},b:function(Te,bn,nn){var fn=Ue.exec(bn.slice(nn));return fn?(Te.m=Oe[fn[0].toLowerCase()],nn+fn[0].length):-1},B:function(Te,bn,nn){var fn=ve.exec(bn.slice(nn));return fn?(Te.m=Le[fn[0].toLowerCase()],nn+fn[0].length):-1},c:function(Te,bn,nn){return xn(Te,ce,bn,nn)},d:f,e:f,f:st,H:z,I:z,j:b,L:Q,m:l,M:T,p:function(Te,bn,nn){var fn=Mn.exec(bn.slice(nn));return fn?(Te.p=Kn[fn[0].toLowerCase()],nn+fn[0].length):-1},q:p,Q:dt,s:mt,S:k,u,U:C,V:E,w:o,W:S,x:function(Te,bn,nn){return xn(Te,we,bn,nn)},X:function(Te,bn,nn){return xn(Te,ye,bn,nn)},y:g,Y:v,Z:x,"%":nt};function Me(Te,bn){return function(nn){var fn,wn,vn,cr=[],Jn=-1,dr=0,gr=Te.length;for(nn instanceof Date||(nn=new Date(+nn));++Jn53)return null;"w"in vn||(vn.w=1),"Z"in vn?(wn=(fn=tt(H(vn.y,0,1))).getUTCDay(),fn=wn>4||wn===0?R.c.ceil(fn):Object(R.c)(fn),fn=B.a.offset(fn,7*(vn.V-1)),vn.y=fn.getUTCFullYear(),vn.m=fn.getUTCMonth(),vn.d=fn.getUTCDate()+(vn.w+6)%7):(wn=(fn=Z(H(vn.y,0,1))).getDay(),fn=wn>4||wn===0?et.c.ceil(fn):Object(et.c)(fn),fn=K.b.offset(fn,7*(vn.V-1)),vn.y=fn.getFullYear(),vn.m=fn.getMonth(),vn.d=fn.getDate()+(vn.w+6)%7)}else("W"in vn||"U"in vn)&&("w"in vn||(vn.w="u"in vn?vn.u%7:"W"in vn?1:0),wn="Z"in vn?tt(H(vn.y,0,1)).getUTCDay():Z(H(vn.y,0,1)).getDay(),vn.m=0,vn.d="W"in vn?(vn.w+6)%7+7*vn.W-(wn+5)%7:vn.w+7*vn.U-(wn+6)%7);return"Z"in vn?(vn.H+=vn.Z/100|0,vn.M+=vn.Z%100,tt(vn)):Z(vn)}}function xn(Te,bn,nn,fn){for(var wn,vn,cr=0,Jn=bn.length,dr=nn.length;cr=dr)return-1;if((wn=bn.charCodeAt(cr++))===37){if(wn=bn.charAt(cr++),!(vn=Sn[wn in F?bn.charAt(cr++):wn])||(fn=vn(Te,nn,fn))<0)return-1}else if(wn!=nn.charCodeAt(fn++))return-1}return fn}return De.x=Me(we,De),De.X=Me(ye,De),De.c=Me(ce,De),Ze.x=Me(we,Ze),Ze.X=Me(ye,Ze),Ze.c=Me(ce,Ze),{format:function(Te){var bn=Me(Te+="",De);return bn.toString=function(){return Te},bn},parse:function(Te){var bn=en(Te+="",!1);return bn.toString=function(){return Te},bn},utcFormat:function(Te){var bn=Me(Te+="",Ze);return bn.toString=function(){return Te},bn},utcParse:function(Te){var bn=en(Te+="",!0);return bn.toString=function(){return Te},bn}}}var F={"-":"",_:" ",0:"0"},U=/^\s*\d+/,d=/^%/,L=/[\\^$*+?|[\]().{}]/g;function M(zt,ce,we){var ye=zt<0?"-":"",qe=(ye?-zt:zt)+"",hn=qe.length;return ye+(hn68?1900:2e3),we+ye[0].length):-1}function x(zt,ce,we){var ye=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ce.slice(we,we+6));return ye?(zt.Z=ye[1]?0:-(ye[2]+(ye[3]||"00")),we+ye[0].length):-1}function p(zt,ce,we){var ye=U.exec(ce.slice(we,we+1));return ye?(zt.q=3*ye[0]-3,we+ye[0].length):-1}function l(zt,ce,we){var ye=U.exec(ce.slice(we,we+2));return ye?(zt.m=ye[0]-1,we+ye[0].length):-1}function f(zt,ce,we){var ye=U.exec(ce.slice(we,we+2));return ye?(zt.d=+ye[0],we+ye[0].length):-1}function b(zt,ce,we){var ye=U.exec(ce.slice(we,we+3));return ye?(zt.m=0,zt.d=+ye[0],we+ye[0].length):-1}function z(zt,ce,we){var ye=U.exec(ce.slice(we,we+2));return ye?(zt.H=+ye[0],we+ye[0].length):-1}function T(zt,ce,we){var ye=U.exec(ce.slice(we,we+2));return ye?(zt.M=+ye[0],we+ye[0].length):-1}function k(zt,ce,we){var ye=U.exec(ce.slice(we,we+2));return ye?(zt.S=+ye[0],we+ye[0].length):-1}function Q(zt,ce,we){var ye=U.exec(ce.slice(we,we+3));return ye?(zt.L=+ye[0],we+ye[0].length):-1}function st(zt,ce,we){var ye=U.exec(ce.slice(we,we+6));return ye?(zt.L=Math.floor(ye[0]/1e3),we+ye[0].length):-1}function nt(zt,ce,we){var ye=d.exec(ce.slice(we,we+1));return ye?we+ye[0].length:-1}function dt(zt,ce,we){var ye=U.exec(ce.slice(we));return ye?(zt.Q=+ye[0],we+ye[0].length):-1}function mt(zt,ce,we){var ye=U.exec(ce.slice(we));return ye?(zt.s=+ye[0],we+ye[0].length):-1}function Et(zt,ce){return M(zt.getDate(),ce,2)}function Mt(zt,ce){return M(zt.getHours(),ce,2)}function I(zt,ce){return M(zt.getHours()%12||12,ce,2)}function Y(zt,ce){return M(1+K.b.count(Object(J.a)(zt),zt),ce,3)}function rt(zt,ce){return M(zt.getMilliseconds(),ce,3)}function ot(zt,ce){return rt(zt,ce)+"000"}function D(zt,ce){return M(zt.getMonth()+1,ce,2)}function P(zt,ce){return M(zt.getMinutes(),ce,2)}function W(zt,ce){return M(zt.getSeconds(),ce,2)}function lt(zt){var ce=zt.getDay();return ce===0?7:ce}function it(zt,ce){return M(et.g.count(Object(J.a)(zt)-1,zt),ce,2)}function vt(zt,ce){var we=zt.getDay();return zt=we>=4||we===0?Object(et.i)(zt):et.i.ceil(zt),M(et.i.count(Object(J.a)(zt),zt)+(Object(J.a)(zt).getDay()===4),ce,2)}function pt(zt){return zt.getDay()}function xt(zt,ce){return M(et.c.count(Object(J.a)(zt)-1,zt),ce,2)}function Ct(zt,ce){return M(zt.getFullYear()%100,ce,2)}function Tt(zt,ce){return M(zt.getFullYear()%1e4,ce,4)}function Nt(zt){var ce=zt.getTimezoneOffset();return(ce>0?"-":(ce*=-1,"+"))+M(ce/60|0,"0",2)+M(ce%60,"0",2)}function gt(zt,ce){return M(zt.getUTCDate(),ce,2)}function wt(zt,ce){return M(zt.getUTCHours(),ce,2)}function Rt(zt,ce){return M(zt.getUTCHours()%12||12,ce,2)}function jt(zt,ce){return M(1+B.a.count(Object(q.a)(zt),zt),ce,3)}function Zt(zt,ce){return M(zt.getUTCMilliseconds(),ce,3)}function ne(zt,ce){return Zt(zt,ce)+"000"}function Wt(zt,ce){return M(zt.getUTCMonth()+1,ce,2)}function le(zt,ce){return M(zt.getUTCMinutes(),ce,2)}function fe(zt,ce){return M(zt.getUTCSeconds(),ce,2)}function xe(zt){var ce=zt.getUTCDay();return ce===0?7:ce}function be(zt,ce){return M(R.g.count(Object(q.a)(zt)-1,zt),ce,2)}function Ye(zt,ce){var we=zt.getUTCDay();return zt=we>=4||we===0?Object(R.i)(zt):R.i.ceil(zt),M(R.i.count(Object(q.a)(zt),zt)+(Object(q.a)(zt).getUTCDay()===4),ce,2)}function tn(zt){return zt.getUTCDay()}function on(zt,ce){return M(R.c.count(Object(q.a)(zt)-1,zt),ce,2)}function Jt(zt,ce){return M(zt.getUTCFullYear()%100,ce,2)}function Kt(zt,ce){return M(zt.getUTCFullYear()%1e4,ce,4)}function te(){return"+0000"}function Ot(){return"%"}function Bt(zt){return+zt}function Ut(zt){return Math.floor(+zt/1e3)}},function(_t,m,y){"use strict";var R=y(23);m.a=function(B){return typeof B=="string"?new R.a([[document.querySelector(B)]],[document.documentElement]):new R.a([[B]],R.c)}},function(_t,m,y){"use strict";function R(){return[]}m.a=function(B){return B==null?R:function(){return this.querySelectorAll(B)}}},function(_t,m,y){"use strict";m.a=function(R){return function(){return this.matches(R)}}},function(_t,m,y){"use strict";y.d(m,"b",function(){return J});var R=y(45);function B(q){return function(){this.style.removeProperty(q)}}function et(q,Z,tt){return function(){this.style.setProperty(q,Z,tt)}}function K(q,Z,tt){return function(){var H=Z.apply(this,arguments);H==null?this.style.removeProperty(q):this.style.setProperty(q,H,tt)}}function J(q,Z){return q.style.getPropertyValue(Z)||Object(R.a)(q).getComputedStyle(q,null).getPropertyValue(Z)}m.a=function(q,Z,tt){return arguments.length>1?this.each((Z==null?B:typeof Z=="function"?K:et)(q,Z,tt==null?"":tt)):J(this.node(),q)}},function(_t,m,y){"use strict";var R,B=y(22),et=y(40),K=y(38),J=function(X,F){var U=Object(K.a)(X,F);if(!U)return X+"";var d=U[0],L=U[1];return L<0?"0."+new Array(-L).join("0")+d:d.length>L+1?d.slice(0,L+1)+"."+d.slice(L+1):d+new Array(L-d.length+2).join("0")},q={"%":function(X,F){return(100*X).toFixed(F)},b:function(X){return Math.round(X).toString(2)},c:function(X){return X+""},d:function(X){return Math.round(X).toString(10)},e:function(X,F){return X.toExponential(F)},f:function(X,F){return X.toFixed(F)},g:function(X,F){return X.toPrecision(F)},o:function(X){return Math.round(X).toString(8)},p:function(X,F){return J(100*X,F)},r:J,s:function(X,F){var U=Object(K.a)(X,F);if(!U)return X+"";var d=U[0],L=U[1],M=L-(R=3*Math.max(-8,Math.min(8,Math.floor(L/3))))+1,s=d.length;return M===s?d:M>s?d+new Array(M-s+1).join("0"):M>0?d.slice(0,M)+"."+d.slice(M):"0."+new Array(1-M).join("0")+Object(K.a)(X,Math.max(0,F+M-1))[0]},X:function(X){return Math.round(X).toString(16).toUpperCase()},x:function(X){return Math.round(X).toString(16)}},Z=function(X){return X},tt=Array.prototype.map,H=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];m.a=function(X){var F,U,d=X.grouping===void 0||X.thousands===void 0?Z:(F=tt.call(X.grouping,Number),U=X.thousands+"",function(E,S){for(var v=E.length,g=[],x=0,p=F[0],l=0;v>0&&p>0&&(l+p+1>S&&(p=Math.max(1,S-l)),g.push(E.substring(v-=p,v+p)),!((l+=p+1)>S));)p=F[x=(x+1)%F.length];return g.reverse().join(U)}),L=X.currency===void 0?"":X.currency[0]+"",M=X.currency===void 0?"":X.currency[1]+"",s=X.decimal===void 0?".":X.decimal+"",_=X.numerals===void 0?Z:function(E){return function(S){return S.replace(/[0-9]/g,function(v){return E[+v]})}}(tt.call(X.numerals,String)),w=X.percent===void 0?"%":X.percent+"",o=X.minus===void 0?"-":X.minus+"",u=X.nan===void 0?"NaN":X.nan+"";function C(E){var S=(E=Object(et.b)(E)).fill,v=E.align,g=E.sign,x=E.symbol,p=E.zero,l=E.width,f=E.comma,b=E.precision,z=E.trim,T=E.type;T==="n"?(f=!0,T="g"):q[T]||(b===void 0&&(b=12),z=!0,T="g"),(p||S==="0"&&v==="=")&&(p=!0,S="0",v="=");var k=x==="$"?L:x==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",Q=x==="$"?M:/[%p]/.test(T)?w:"",st=q[T],nt=/[defgprs%]/.test(T);function dt(mt){var Et,Mt,I,Y=k,rt=Q;if(T==="c")rt=st(mt)+rt,mt="";else{var ot=(mt=+mt)<0;if(mt=isNaN(mt)?u:st(Math.abs(mt),b),z&&(mt=function(W){t:for(var lt,it=W.length,vt=1,pt=-1;vt0&&(pt=0)}return pt>0?W.slice(0,pt)+W.slice(lt+1):W}(mt)),ot&&+mt==0&&(ot=!1),Y=(ot?g==="("?g:o:g==="-"||g==="("?"":g)+Y,rt=(T==="s"?H[8+R/3]:"")+rt+(ot&&g==="("?")":""),nt){for(Et=-1,Mt=mt.length;++Et(I=mt.charCodeAt(Et))||I>57){rt=(I===46?s+mt.slice(Et+1):mt.slice(Et))+rt,mt=mt.slice(0,Et);break}}}f&&!p&&(mt=d(mt,1/0));var D=Y.length+mt.length+rt.length,P=D>1)+Y+mt+rt+P.slice(D);break;default:mt=P+Y+mt+rt}return _(mt)}return b=b===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),dt.toString=function(){return E+""},dt}return{format:C,formatPrefix:function(E,S){var v=C(((E=Object(et.b)(E)).type="f",E)),g=3*Math.max(-8,Math.min(8,Math.floor(Object(B.a)(S)/3))),x=Math.pow(10,-g),p=H[8+g/3];return function(l){return v(x*l)+p}}}}},function(_t,m,y){"use strict";y.d(m,"b",function(){return et});var R=y(1),B=Object(R.a)(function(K){K.setDate(1),K.setHours(0,0,0,0)},function(K,J){K.setMonth(K.getMonth()+J)},function(K,J){return J.getMonth()-K.getMonth()+12*(J.getFullYear()-K.getFullYear())},function(K){return K.getMonth()});m.a=B;var et=B.range},function(_t,m,y){"use strict";y.d(m,"b",function(){return K});var R=y(1),B=y(3),et=Object(R.a)(function(J){J.setTime(J-J.getMilliseconds()-J.getSeconds()*B.d-J.getMinutes()*B.c)},function(J,q){J.setTime(+J+q*B.b)},function(J,q){return(q-J)/B.b},function(J){return J.getHours()});m.a=et;var K=et.range},function(_t,m,y){"use strict";y.d(m,"b",function(){return K});var R=y(1),B=y(3),et=Object(R.a)(function(J){J.setTime(J-J.getMilliseconds()-J.getSeconds()*B.d)},function(J,q){J.setTime(+J+q*B.c)},function(J,q){return(q-J)/B.c},function(J){return J.getMinutes()});m.a=et;var K=et.range},function(_t,m,y){"use strict";y.d(m,"b",function(){return et});var R=y(1),B=Object(R.a)(function(K){K.setUTCDate(1),K.setUTCHours(0,0,0,0)},function(K,J){K.setUTCMonth(K.getUTCMonth()+J)},function(K,J){return J.getUTCMonth()-K.getUTCMonth()+12*(J.getUTCFullYear()-K.getUTCFullYear())},function(K){return K.getUTCMonth()});m.a=B;var et=B.range},function(_t,m,y){"use strict";y.d(m,"b",function(){return K});var R=y(1),B=y(3),et=Object(R.a)(function(J){J.setUTCMinutes(0,0,0)},function(J,q){J.setTime(+J+q*B.b)},function(J,q){return(q-J)/B.b},function(J){return J.getUTCHours()});m.a=et;var K=et.range},function(_t,m,y){"use strict";y.d(m,"b",function(){return K});var R=y(1),B=y(3),et=Object(R.a)(function(J){J.setUTCSeconds(0,0)},function(J,q){J.setTime(+J+q*B.c)},function(J,q){return(q-J)/B.c},function(J){return J.getUTCMinutes()});m.a=et;var K=et.range},function(_t,m,y){"use strict";var R,B=function(J,q){if(Array.isArray(J))return J;if(Symbol.iterator in Object(J))return function(Z,tt){var H=[],X=!0,F=!1,U=void 0;try{for(var d,L=Z[Symbol.iterator]();!(X=(d=L.next()).done)&&(H.push(d.value),!tt||H.length!==tt);X=!0);}catch(M){F=!0,U=M}finally{try{!X&&L.return&&L.return()}finally{if(F)throw U}}return H}(J,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J};function K(J,q,Z){return q in J?Object.defineProperty(J,q,{value:Z,enumerable:!0,configurable:!0,writable:!0}):J[q]=Z,J}(R=function(J){var q,Z=y(39),tt=y(28),H=y(35),X=H.axisTimeCombinations,F=H.timeBenchmarks,U=y(87),d=U.convertMillisecondsToDays,L=U.getLocaleDateFormatter,M={minute:tt.timeFormat("%M m"),hour:tt.timeFormat("%H %p"),day:tt.timeFormat("%e"),daymonth:tt.timeFormat("%d %b"),month:tt.timeFormat("%b"),year:tt.timeFormat("%Y")},s=(K(q={},X.MINUTE_HOUR,Z.timeHour.every(1)),K(q,X.HOUR_DAY,Z.timeDay.every(1)),K(q,X.DAY_MONTH,Z.timeMonth.every(1)),K(q,X.MONTH_YEAR,Z.timeYear.every(1)),q),_=function(o){var u=F.ONE_YEAR;return o2&&arguments[2]!==void 0?arguments[2]:null,E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,S=new Date(o[0].date),v=new Date(o[o.length-1].date),g=v-S;E&&(typeof Intl=="undefined"||(typeof Intl=="undefined"?"undefined":et(Intl))==="object"&&!Intl.DateTimeFormat)&&(E=null),C||(C=_(g));var x=C.split("-"),p=B(x,2),l=p[0],f=p[1],b=s[C],z=w(u,d(g));return{minor:{format:E?L(E,l):M[l],tick:z},major:{format:E?L(E,f):M[f],tick:b}}}}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R;(R=function(B){y(2);var et="highlight-filter";return{bounceCircleHighlight:function(K,J,q){var Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2*q,tt=100,H=50;K.transition().ease(J).duration(tt).attr("r",Z).transition().ease(J).delay(H).duration(tt).attr("r",q)},createFilterContainer:function(K){return K.append("defs").append("filter").attr("id",et)},createGausianBlur:function(K){return K.append("feGaussianBlur").attr("stdDeviation",1).attr("result","coloredBlur"),et},createWhiteGlow:function(K){K.attr("x","-5000%").attr("y","-5000%").attr("width","10000%").attr("height","10000%"),K.append("feFlood").attr("result","flood").attr("flood-color","#ffffff").attr("flood-opacity","1"),K.append("feComposite").attr("result","mask").attr("in2","SourceGraphic").attr("operator","in").attr("in","flood"),K.append("feMorphology").attr("result","dilated").attr("operator","dilate").attr("radius","2").attr("in","mask"),K.append("feGaussianBlur").attr("result","blurred").attr("stdDeviation","5").attr("in","dilated");var J=K.append("feMerge");return J.append("feMergeNode").attr("in","blurred"),J.append("feMergeNode").attr("in","SourceGraphic"),et},createGlow:function(K){K.attr("x","-30%").attr("y","-30%").attr("width","160%").attr("height","160%"),K.append("feGaussianBlur").attr("stdDeviation","0.9 0.9").attr("result","glow");var J=K.append("feMerge");return J.append("feMergeNode").attr("in","glow"),J.append("feMergeNode").attr("in","glow"),J.append("feMergeNode").attr("in","glow"),et},createGlowWithMatrix:function(K){K.attr("x","-500%").attr("y","-500%").attr("width","1800%").attr("height","1800%"),K.append("feColorMatrix").attr("type","matrix").attr("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"),K.append("feGaussianBlur").attr("stdDeviation","1").attr("result","coloredBlur").attr("in","SourceGraphic");var J=K.append("feMerge");return J.append("feMergeNode").attr("in","coloredBlur"),J.append("feMergeNode").attr("in","SourceGraphic"),et}}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,B,et,K,J=y(14),q=180/Math.PI,Z={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},tt=function(U,d,L,M,s,_){var w,o,u;return(w=Math.sqrt(U*U+d*d))&&(U/=w,d/=w),(u=U*L+d*M)&&(L-=U*u,M-=d*u),(o=Math.sqrt(L*L+M*M))&&(L/=o,M/=o,u/=o),U*M180?E+=360:E-C>180&&(C+=360),v.push({i:S.push(s(S)+"rotate(",null,M)-2,x:Object(J.a)(C,E)})):E&&S.push(s(S)+"rotate("+E+M)}(_.rotate,w.rotate,o,u),function(C,E,S,v){C!==E?v.push({i:S.push(s(S)+"skewX(",null,M)-2,x:Object(J.a)(C,E)}):E&&S.push(s(S)+"skewX("+E+M)}(_.skewX,w.skewX,o,u),function(C,E,S,v,g,x){if(C!==S||E!==v){var p=g.push(s(g)+"scale(",null,",",null,")");x.push({i:p-4,x:Object(J.a)(C,S)},{i:p-2,x:Object(J.a)(E,v)})}else S===1&&v===1||g.push(s(g)+"scale("+S+","+v+")")}(_.scaleX,_.scaleY,w.scaleX,w.scaleY,o,u),_=w=null,function(C){for(var E,S=-1,v=u.length;++S=0&&(X=H.slice(F+1),H=H.slice(0,F)),H&&!tt.hasOwnProperty(H))throw new Error("unknown type: "+H);return{type:H,name:X}})}function J(Z,tt){for(var H,X=0,F=Z.length;X0)for(var H,X,F=new Array(H),U=0;U=0))throw u(w,new Error(Tt.tagName+"@"+gt));for(var Rt=Nt.length-1;wt"&&">")||Tt=="&"&&"&"||Tt=='"'&&"""||"&#"+Tt.charCodeAt()+";"}function z(Tt,Nt){if(Nt(Tt))return!0;if(Tt=Tt.firstChild)do if(z(Tt,Nt))return!0;while(Tt=Tt.nextSibling)}function T(){}function k(Tt,Nt,gt,wt){Tt&&Tt._inc++,gt.namespaceURI=="http://www.w3.org/2000/xmlns/"&&delete Nt._nsMap[gt.prefix?gt.localName:""]}function Q(Tt,Nt,gt){if(Tt&&Tt._inc){Tt._inc++;var wt=Nt.childNodes;if(gt)wt[wt.length++]=gt;else{for(var Rt=Nt.firstChild,jt=0;Rt;)wt[jt++]=Rt,Rt=Rt.nextSibling;wt.length=jt}}}function st(Tt,Nt){var gt=Nt.previousSibling,wt=Nt.nextSibling;return gt?gt.nextSibling=wt:Tt.firstChild=wt,wt?wt.previousSibling=gt:Tt.lastChild=gt,Q(Tt.ownerDocument,Tt),Nt}function nt(Tt,Nt,gt){var wt=Nt.parentNode;if(wt&&wt.removeChild(Nt),Nt.nodeType===d){var Rt=Nt.firstChild;if(Rt==null)return Nt;var jt=Nt.lastChild}else Rt=jt=Nt;var Zt=gt?gt.previousSibling:Tt.lastChild;Rt.previousSibling=Zt,jt.nextSibling=gt,Zt?Zt.nextSibling=Rt:Tt.firstChild=Rt,gt==null?Tt.lastChild=jt:gt.previousSibling=jt;do Rt.parentNode=Tt;while(Rt!==jt&&(Rt=Rt.nextSibling));return Q(Tt.ownerDocument||Tt,Tt),Nt.nodeType==d&&(Nt.firstChild=Nt.lastChild=null),Nt}function dt(){this._nsMap={}}function mt(){}function Et(){}function Mt(){}function I(){}function Y(){}function rt(){}function ot(){}function D(){}function P(){}function W(){}function lt(){}function it(){}function vt(Tt,Nt){var gt=[],wt=this.nodeType==9?this.documentElement:this,Rt=wt.prefix,jt=wt.namespaceURI;if(jt&&Rt==null&&(Rt=wt.lookupPrefix(jt))==null)var Zt=[{namespace:jt,prefix:null}];return xt(this,gt,Tt,Nt,Zt),gt.join("")}function pt(Tt,Nt,gt){var wt=Tt.prefix||"",Rt=Tt.namespaceURI;if(!wt&&!Rt||wt==="xml"&&Rt==="http://www.w3.org/XML/1998/namespace"||Rt=="http://www.w3.org/2000/xmlns/")return!1;for(var jt=gt.length;jt--;){var Zt=gt[jt];if(Zt.prefix==wt)return Zt.namespace!=Rt}return!0}function xt(Tt,Nt,gt,wt,Rt){if(wt){if(!(Tt=wt(Tt)))return;if(typeof Tt=="string")return void Nt.push(Tt)}switch(Tt.nodeType){case et:Rt||(Rt=[]),Rt.length;var jt=Tt.attributes,Zt=jt.length,ne=Tt.firstChild,Wt=Tt.tagName;gt=Tt.namespaceURI==="http://www.w3.org/1999/xhtml"||gt,Nt.push("<",Wt);for(var le=0;le"),gt&&/^script$/i.test(Wt))for(;ne;)ne.data?Nt.push(ne.data):xt(ne,Nt,gt,wt,Rt),ne=ne.nextSibling;else for(;ne;)xt(ne,Nt,gt,wt,Rt),ne=ne.nextSibling;Nt.push("")}else Nt.push("/>");return;case F:case d:for(ne=Tt.firstChild;ne;)xt(ne,Nt,gt,wt,Rt),ne=ne.nextSibling;return;case K:return Nt.push(" ",Tt.name,'="',Tt.value.replace(/[<&"]/g,b),'"');case J:return Nt.push(Tt.data.replace(/[<&]/g,b));case q:return Nt.push("");case X:return Nt.push("");case U:var tn=Tt.publicId,on=Tt.systemId;if(Nt.push("');else if(on&&on!=".")Nt.push(' SYSTEM "',on,'">');else{var Jt=Tt.internalSubset;Jt&&Nt.push(" [",Jt,"]"),Nt.push(">")}return;case H:return Nt.push("");case Z:return Nt.push("&",Tt.nodeName,";");default:Nt.push("??",Tt.nodeName)}}function Ct(Tt,Nt,gt){Tt[Nt]=gt}u.prototype=Error.prototype,y(M,u),C.prototype={length:0,item:function(Tt){return this[Tt]||null},toString:function(Tt,Nt){for(var gt=[],wt=0;wt0},lookupPrefix:function(Tt){for(var Nt=this;Nt;){var gt=Nt._nsMap;if(gt){for(var wt in gt)if(gt[wt]==Tt)return wt}Nt=Nt.nodeType==K?Nt.ownerDocument:Nt.parentNode}return null},lookupNamespaceURI:function(Tt){for(var Nt=this;Nt;){var gt=Nt._nsMap;if(gt&&Tt in gt)return gt[Tt];Nt=Nt.nodeType==K?Nt.ownerDocument:Nt.parentNode}return null},isDefaultNamespace:function(Tt){return this.lookupPrefix(Tt)==null}},y(B,f),y(B,f.prototype),T.prototype={nodeName:"#document",nodeType:F,doctype:null,documentElement:null,_inc:1,insertBefore:function(Tt,Nt){if(Tt.nodeType==d){for(var gt=Tt.firstChild;gt;){var wt=gt.nextSibling;this.insertBefore(gt,Nt),gt=wt}return Tt}return this.documentElement==null&&Tt.nodeType==et&&(this.documentElement=Tt),nt(this,Tt,Nt),Tt.ownerDocument=this,Tt},removeChild:function(Tt){return this.documentElement==Tt&&(this.documentElement=null),st(this,Tt)},importNode:function(Tt,Nt){return function gt(wt,Rt,jt){var Zt;switch(Rt.nodeType){case et:(Zt=Rt.cloneNode(!1)).ownerDocument=wt;case d:break;case K:jt=!0}if(Zt||(Zt=Rt.cloneNode(!1)),Zt.ownerDocument=wt,Zt.parentNode=null,jt)for(var ne=Rt.firstChild;ne;)Zt.appendChild(gt(wt,ne,jt)),ne=ne.nextSibling;return Zt}(this,Tt,Nt)},getElementById:function(Tt){var Nt=null;return z(this.documentElement,function(gt){if(gt.nodeType==et&>.getAttribute("id")==Tt)return Nt=gt,!0}),Nt},createElement:function(Tt){var Nt=new dt;return Nt.ownerDocument=this,Nt.nodeName=Tt,Nt.tagName=Tt,Nt.childNodes=new C,(Nt.attributes=new v)._ownerElement=Nt,Nt},createDocumentFragment:function(){var Tt=new W;return Tt.ownerDocument=this,Tt.childNodes=new C,Tt},createTextNode:function(Tt){var Nt=new Mt;return Nt.ownerDocument=this,Nt.appendData(Tt),Nt},createComment:function(Tt){var Nt=new I;return Nt.ownerDocument=this,Nt.appendData(Tt),Nt},createCDATASection:function(Tt){var Nt=new Y;return Nt.ownerDocument=this,Nt.appendData(Tt),Nt},createProcessingInstruction:function(Tt,Nt){var gt=new lt;return gt.ownerDocument=this,gt.tagName=gt.target=Tt,gt.nodeValue=gt.data=Nt,gt},createAttribute:function(Tt){var Nt=new mt;return Nt.ownerDocument=this,Nt.name=Tt,Nt.nodeName=Tt,Nt.localName=Tt,Nt.specified=!0,Nt},createEntityReference:function(Tt){var Nt=new P;return Nt.ownerDocument=this,Nt.nodeName=Tt,Nt},createElementNS:function(Tt,Nt){var gt=new dt,wt=Nt.split(":"),Rt=gt.attributes=new v;return gt.childNodes=new C,gt.ownerDocument=this,gt.nodeName=Nt,gt.tagName=Nt,gt.namespaceURI=Tt,wt.length==2?(gt.prefix=wt[0],gt.localName=wt[1]):gt.localName=Nt,Rt._ownerElement=gt,gt},createAttributeNS:function(Tt,Nt){var gt=new mt,wt=Nt.split(":");return gt.ownerDocument=this,gt.nodeName=Nt,gt.name=Nt,gt.namespaceURI=Tt,gt.specified=!0,wt.length==2?(gt.prefix=wt[0],gt.localName=wt[1]):gt.localName=Nt,gt}},R(T,f),dt.prototype={nodeType:et,hasAttribute:function(Tt){return this.getAttributeNode(Tt)!=null},getAttribute:function(Tt){var Nt=this.getAttributeNode(Tt);return Nt&&Nt.value||""},getAttributeNode:function(Tt){return this.attributes.getNamedItem(Tt)},setAttribute:function(Tt,Nt){var gt=this.ownerDocument.createAttribute(Tt);gt.value=gt.nodeValue=""+Nt,this.setAttributeNode(gt)},removeAttribute:function(Tt){var Nt=this.getAttributeNode(Tt);Nt&&this.removeAttributeNode(Nt)},appendChild:function(Tt){return Tt.nodeType===d?this.insertBefore(Tt,null):function(Nt,gt){var wt=gt.parentNode;if(wt){var Rt=Nt.lastChild;wt.removeChild(gt),Rt=Nt.lastChild}return Rt=Nt.lastChild,gt.parentNode=Nt,gt.previousSibling=Rt,gt.nextSibling=null,Rt?Rt.nextSibling=gt:Nt.firstChild=gt,Nt.lastChild=gt,Q(Nt.ownerDocument,Nt,gt),gt}(this,Tt)},setAttributeNode:function(Tt){return this.attributes.setNamedItem(Tt)},setAttributeNodeNS:function(Tt){return this.attributes.setNamedItemNS(Tt)},removeAttributeNode:function(Tt){return this.attributes.removeNamedItem(Tt.nodeName)},removeAttributeNS:function(Tt,Nt){var gt=this.getAttributeNodeNS(Tt,Nt);gt&&this.removeAttributeNode(gt)},hasAttributeNS:function(Tt,Nt){return this.getAttributeNodeNS(Tt,Nt)!=null},getAttributeNS:function(Tt,Nt){var gt=this.getAttributeNodeNS(Tt,Nt);return gt&>.value||""},setAttributeNS:function(Tt,Nt,gt){var wt=this.ownerDocument.createAttributeNS(Tt,Nt);wt.value=wt.nodeValue=""+gt,this.setAttributeNode(wt)},getAttributeNodeNS:function(Tt,Nt){return this.attributes.getNamedItemNS(Tt,Nt)},getElementsByTagName:function(Tt){return new E(this,function(Nt){var gt=[];return z(Nt,function(wt){wt===Nt||wt.nodeType!=et||Tt!=="*"&&wt.tagName!=Tt||gt.push(wt)}),gt})},getElementsByTagNameNS:function(Tt,Nt){return new E(this,function(gt){var wt=[];return z(gt,function(Rt){Rt===gt||Rt.nodeType!==et||Tt!=="*"&&Rt.namespaceURI!==Tt||Nt!=="*"&&Rt.localName!=Nt||wt.push(Rt)}),wt})}},T.prototype.getElementsByTagName=dt.prototype.getElementsByTagName,T.prototype.getElementsByTagNameNS=dt.prototype.getElementsByTagNameNS,R(dt,f),mt.prototype.nodeType=K,R(mt,f),Et.prototype={data:"",substringData:function(Tt,Nt){return this.data.substring(Tt,Tt+Nt)},appendData:function(Tt){Tt=this.data+Tt,this.nodeValue=this.data=Tt,this.length=Tt.length},insertData:function(Tt,Nt){this.replaceData(Tt,0,Nt)},appendChild:function(Tt){throw new Error(s[_])},deleteData:function(Tt,Nt){this.replaceData(Tt,Nt,"")},replaceData:function(Tt,Nt,gt){gt=this.data.substring(0,Tt)+gt+this.data.substring(Tt+Nt),this.nodeValue=this.data=gt,this.length=gt.length}},R(Et,f),Mt.prototype={nodeName:"#text",nodeType:J,splitText:function(Tt){var Nt=this.data,gt=Nt.substring(Tt);Nt=Nt.substring(0,Tt),this.data=this.nodeValue=Nt,this.length=Nt.length;var wt=this.ownerDocument.createTextNode(gt);return this.parentNode&&this.parentNode.insertBefore(wt,this.nextSibling),wt}},R(Mt,Et),I.prototype={nodeName:"#comment",nodeType:X},R(I,Et),Y.prototype={nodeName:"#cdata-section",nodeType:q},R(Y,Et),rt.prototype.nodeType=U,R(rt,f),ot.prototype.nodeType=L,R(ot,f),D.prototype.nodeType=tt,R(D,f),P.prototype.nodeType=Z,R(P,f),W.prototype.nodeName="#document-fragment",W.prototype.nodeType=d,R(W,f),lt.prototype.nodeType=H,R(lt,f),it.prototype.serializeToString=function(Tt,Nt,gt){return vt.call(Tt,Nt,gt)},f.prototype.toString=vt;try{Object.defineProperty&&(Object.defineProperty(E.prototype,"length",{get:function(){return S(this),this.$$length}}),Object.defineProperty(f.prototype,"textContent",{get:function(){return function Tt(Nt){switch(Nt.nodeType){case et:case d:var gt=[];for(Nt=Nt.firstChild;Nt;)Nt.nodeType!==7&&Nt.nodeType!==8&>.push(Tt(Nt)),Nt=Nt.nextSibling;return gt.join("");default:return Nt.nodeValue}}(this)},set:function(Tt){switch(this.nodeType){case et:case d:for(;this.firstChild;)this.removeChild(this.firstChild);(Tt||String(Tt))&&this.appendChild(this.ownerDocument.createTextNode(Tt));break;default:this.data=Tt,this.value=Tt,this.nodeValue=Tt}}}),Ct=function(Tt,Nt,gt){Tt["$$"+Nt]=gt})}catch(Tt){}m.DOMImplementation=l,m.XMLSerializer=it},function(_t,m,y){"use strict";var R;(R=function(B){return y(9),{addDays:function(et,K){var J=new Date(et);return J.setDate(J.getDate()+K),String(J)},convertMillisecondsToDays:function(et){return Math.ceil(et/864e5)},diffDays:function(et,K){return Math.ceil(Math.abs((new Date(et).getTime()-new Date(K).getTime())/864e5))},getLocaleDateFormatter:function(et){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"day",J=localeTimeMap[K],q=new Intl.DateTimeFormat(et,J);return function(Z){return q.format(Z)}}}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.colors=m.bullet=m.brush=m.step=m.heatmap=m.stackedBar=m.groupedRow=m.groupedBar=m.scatterPlot=m.stackedArea=m.sparkline=m.row=m.miniTooltip=m.tooltip=m.loadingStates=m.line=m.legend=m.donut=m.bar=void 0;var R=u(y(90)),B=u(y(101)),et=u(y(102)),K=u(y(103)),J=u(y(18)),q=u(y(104)),Z=u(y(106)),tt=u(y(107)),H=u(y(108)),X=u(y(109)),F=u(y(110)),U=u(y(111)),d=u(y(112)),L=u(y(113)),M=u(y(114)),s=u(y(115)),_=u(y(116)),w=u(y(117)),o=u(y(10));function u(C){return C&&C.__esModule?C:{default:C}}m.bar=R.default,m.donut=B.default,m.legend=et.default,m.line=K.default,m.loadingStates=J.default,m.tooltip=Z.default,m.miniTooltip=tt.default,m.row=q.default,m.sparkline=H.default,m.stackedArea=X.default,m.scatterPlot=F.default,m.groupedBar=U.default,m.groupedRow=d.default,m.stackedBar=L.default,m.heatmap=M.default,m.step=s.default,m.brush=_.default,m.bullet=w.default,m.colors=o.default},,function(_t,m,y){"use strict";var R,B=Object.assign||function(et){for(var K=1;K]*>/,""),(u=new ActiveXObject("Microsoft.XMLDOM")).async="false",u.loadXML(o),u)},s.Property=function(o,u){this.name=o,this.value=u},s.Property.prototype.getValue=function(){return this.value},s.Property.prototype.hasValue=function(){return this.value!=null&&this.value!=""},s.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var o=parseFloat(this.value);return(this.value+"").match(/%$/)&&(o/=100),o},s.Property.prototype.valueOrDefault=function(o){return this.hasValue()?this.value:o},s.Property.prototype.numValueOrDefault=function(o){return this.hasValue()?this.numValue():o},s.Property.prototype.addOpacity=function(o){var u=this.value;if(o.value!=null&&o.value!=""&&typeof this.value=="string"){var C=new R(this.value);C.ok&&(u="rgba("+C.r+", "+C.g+", "+C.b+", "+o.numValue()+")")}return new s.Property(this.name,u)},s.Property.prototype.getDefinition=function(){var o=this.value.match(/#([^\)'"]+)/);return o&&(o=o[1]),o||(o=this.value),s.Definitions[o]},s.Property.prototype.isUrlDefinition=function(){return this.value.indexOf("url(")==0},s.Property.prototype.getFillStyleDefinition=function(o,u){var C=this.getDefinition();if(C!=null&&C.createGradient)return C.createGradient(s.ctx,o,u);if(C!=null&&C.createPattern){if(C.getHrefAttribute().hasValue()){var E=C.attribute("patternTransform");C=C.getHrefAttribute().getDefinition(),E.hasValue()&&(C.attribute("patternTransform",!0).value=E.value)}return C.createPattern(s.ctx,o)}return null},s.Property.prototype.getDPI=function(o){return 96},s.Property.prototype.getEM=function(o){var u=12,C=new s.Property("fontSize",s.Font.Parse(s.ctx.font).fontSize);return C.hasValue()&&(u=C.toPixels(o)),u},s.Property.prototype.getUnits=function(){return(this.value+"").replace(/[0-9\.\-]/g,"")},s.Property.prototype.toPixels=function(o,u){if(!this.hasValue())return 0;var C=this.value+"";if(C.match(/em$/))return this.numValue()*this.getEM(o);if(C.match(/ex$/))return this.numValue()*this.getEM(o)/2;if(C.match(/px$/))return this.numValue();if(C.match(/pt$/))return this.numValue()*this.getDPI(o)*(1/72);if(C.match(/pc$/))return 15*this.numValue();if(C.match(/cm$/))return this.numValue()*this.getDPI(o)/2.54;if(C.match(/mm$/))return this.numValue()*this.getDPI(o)/25.4;if(C.match(/in$/))return this.numValue()*this.getDPI(o);if(C.match(/%$/))return this.numValue()*s.ViewPort.ComputeSize(o);var E=this.numValue();return u&&E<1?E*s.ViewPort.ComputeSize(o):E},s.Property.prototype.toMilliseconds=function(){if(!this.hasValue())return 0;var o=this.value+"";return o.match(/s$/)?1e3*this.numValue():(o.match(/ms$/),this.numValue())},s.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var o=this.value+"";return o.match(/deg$/)?this.numValue()*(Math.PI/180):o.match(/grad$/)?this.numValue()*(Math.PI/200):o.match(/rad$/)?this.numValue():this.numValue()*(Math.PI/180)};var w={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};return s.Property.prototype.toTextBaseline=function(){return this.hasValue()?w[this.value]:null},s.Font=new function(){this.Styles="normal|italic|oblique|inherit",this.Variants="normal|small-caps|inherit",this.Weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",this.CreateFont=function(u,C,E,S,v,g){var x=g!=null?this.Parse(g):this.CreateFont("","","","","",s.ctx.font);return{fontFamily:v||x.fontFamily,fontSize:S||x.fontSize,fontStyle:u||x.fontStyle,fontWeight:E||x.fontWeight,fontVariant:C||x.fontVariant,toString:function(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var o=this;this.Parse=function(u){for(var C={},E=s.trim(s.compressSpaces(u||"")).split(" "),S={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1},v="",g=0;gthis.x2&&(this.x2=S)),v!=null&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=v,this.y2=v),vthis.y2&&(this.y2=v))},this.addX=function(S){this.addPoint(S,null)},this.addY=function(S){this.addPoint(null,S)},this.addBoundingBox=function(S){this.addPoint(S.x1,S.y1),this.addPoint(S.x2,S.y2)},this.addQuadraticCurve=function(S,v,g,x,p,l){var f=S+.6666666666666666*(g-S),b=v+2/3*(x-v),z=f+1/3*(p-S),T=b+1/3*(l-v);this.addBezierCurve(S,v,f,z,b,T,p,l)},this.addBezierCurve=function(S,v,g,x,p,l,f,b){var z=[S,v],T=[g,x],k=[p,l],Q=[f,b];this.addPoint(z[0],z[1]),this.addPoint(Q[0],Q[1]);for(var st=0;st<=1;st++){var nt=function(ot){return Math.pow(1-ot,3)*z[st]+3*Math.pow(1-ot,2)*ot*T[st]+3*(1-ot)*Math.pow(ot,2)*k[st]+Math.pow(ot,3)*Q[st]},dt=6*z[st]-12*T[st]+6*k[st],mt=-3*z[st]+9*T[st]-9*k[st]+3*Q[st],Et=3*T[st]-3*z[st];if(mt!=0){var Mt=Math.pow(dt,2)-4*Et*mt;if(!(Mt<0)){var I=(-dt+Math.sqrt(Mt))/(2*mt);0=0;l--)this.transforms[l].unapply(p)},this.applyToPoint=function(p){for(var l=0;lT&&(this.styles[z]=f[z],this.stylesSpecificity[z]=b)}}},o!=null&&o.nodeType==1){for(var u=0;u0&&u.push([this.points[this.points.length-1],u[u.length-1][1]]),u}},s.Element.polyline.prototype=new s.Element.PathElementBase,s.Element.polygon=function(o){this.base=s.Element.polyline,this.base(o),this.basePath=this.path,this.path=function(u){var C=this.basePath(u);return u!=null&&(u.lineTo(this.points[0].x,this.points[0].y),u.closePath()),C}},s.Element.polygon.prototype=new s.Element.polyline,s.Element.path=function(o){this.base=s.Element.PathElementBase,this.base(o);var u=this.attribute("d").value;u=u.replace(/,/gm," ");for(var C=0;C<2;C++)u=u.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2");for(u=(u=u.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2")).replace(/([0-9])([+\-])/gm,"$1 $2"),C=0;C<2;C++)u=u.replace(/(\.[0-9]*)(\.)/gm,"$1 $2");u=u.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 "),u=s.compressSpaces(u),u=s.trim(u),this.PathParser=new function(E){this.tokens=E.split(" "),this.reset=function(){this.i=-1,this.command="",this.previousCommand="",this.start=new s.Point(0,0),this.control=new s.Point(0,0),this.current=new s.Point(0,0),this.points=[],this.angles=[]},this.isEnd=function(){return this.i>=this.tokens.length-1},this.isCommandOrEnd=function(){return!!this.isEnd()||this.tokens[this.i+1].match(/^[A-Za-z]$/)!=null},this.isRelativeCommand=function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0}return!1},this.getToken=function(){return this.i++,this.tokens[this.i]},this.getScalar=function(){return parseFloat(this.getToken())},this.nextCommand=function(){this.previousCommand=this.command,this.command=this.getToken()},this.getPoint=function(){var S=new s.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(S)},this.getAsControlPoint=function(){var S=this.getPoint();return this.control=S,S},this.getAsCurrentPoint=function(){var S=this.getPoint();return this.current=S,S},this.getReflectedControlPoint=function(){return this.previousCommand.toLowerCase()!="c"&&this.previousCommand.toLowerCase()!="s"&&this.previousCommand.toLowerCase()!="q"&&this.previousCommand.toLowerCase()!="t"?this.current:new s.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y)},this.makeAbsolute=function(S){return this.isRelativeCommand()&&(S.x+=this.current.x,S.y+=this.current.y),S},this.addMarker=function(S,v,g){g!=null&&this.angles.length>0&&this.angles[this.angles.length-1]==null&&(this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(g)),this.addMarkerAngle(S,v==null?null:v.angleTo(S))},this.addMarkerAngle=function(S,v){this.points.push(S),this.angles.push(v)},this.getMarkerPoints=function(){return this.points},this.getMarkerAngles=function(){for(var S=0;S1&&(T*=Math.sqrt(mt),k*=Math.sqrt(mt));var Et=(st==nt?-1:1)*Math.sqrt((Math.pow(T,2)*Math.pow(k,2)-Math.pow(T,2)*Math.pow(dt.y,2)-Math.pow(k,2)*Math.pow(dt.x,2))/(Math.pow(T,2)*Math.pow(dt.y,2)+Math.pow(k,2)*Math.pow(dt.x,2)));isNaN(Et)&&(Et=0);var Mt=new s.Point(Et*T*dt.y/k,Et*-k*dt.x/T),I=new s.Point((l.x+z.x)/2+Math.cos(Q)*Mt.x-Math.sin(Q)*Mt.y,(l.y+z.y)/2+Math.sin(Q)*Mt.x+Math.cos(Q)*Mt.y),Y=function(Tt){return Math.sqrt(Math.pow(Tt[0],2)+Math.pow(Tt[1],2))},rt=function(Tt,Nt){return(Tt[0]*Nt[0]+Tt[1]*Nt[1])/(Y(Tt)*Y(Nt))},ot=function(Tt,Nt){return(Tt[0]*Nt[1]=1&&(lt=0);var it=1-nt?1:-1,vt=D+it*(lt/2),pt=new s.Point(I.x+T*Math.cos(vt),I.y+k*Math.sin(vt));if(S.addMarkerAngle(pt,vt-it*Math.PI/2),S.addMarkerAngle(z,vt-it*Math.PI),v.addPoint(z.x,z.y),E!=null){rt=T>k?T:k;var xt=T>k?1:T/k,Ct=T>k?k/T:1;E.translate(I.x,I.y),E.rotate(Q),E.scale(xt,Ct),E.arc(0,0,rt,D,D+lt,1-nt),E.scale(1/xt,1/Ct),E.rotate(-Q),E.translate(-I.x,-I.y)}}break;case"Z":case"z":E!=null&&E.closePath(),S.current=S.start}return v},this.getMarkers=function(){for(var E=this.PathParser.getMarkerPoints(),S=this.PathParser.getMarkerAngles(),v=[],g=0;g1&&(this.offset=1);var u=this.style("stop-color",!0);u.value==""&&(u.value="#000"),this.style("stop-opacity").hasValue()&&(u=u.addOpacity(this.style("stop-opacity"))),this.color=u.value},s.Element.stop.prototype=new s.Element.ElementBase,s.Element.AnimateBase=function(o){this.base=s.Element.ElementBase,this.base(o),s.Animations.push(this),this.duration=0,this.begin=this.attribute("begin").toMilliseconds(),this.maxDuration=this.begin+this.attribute("dur").toMilliseconds(),this.getProperty=function(){var u=this.attribute("attributeType").value,C=this.attribute("attributeName").value;return u=="CSS"?this.parent.style(C,!0):this.parent.attribute(C,!0)},this.initialValue=null,this.initialUnits="",this.removed=!1,this.calcValue=function(){return""},this.update=function(u){if(this.initialValue==null&&(this.initialValue=this.getProperty().value,this.initialUnits=this.getProperty().getUnits()),this.duration>this.maxDuration){if(this.attribute("repeatCount").value=="indefinite"||this.attribute("repeatDur").value=="indefinite")this.duration=0;else if(this.attribute("fill").valueOrDefault("remove")!="freeze"||this.frozen){if(this.attribute("fill").valueOrDefault("remove")=="remove"&&!this.removed)return this.removed=!0,this.getProperty().value=this.parent.animationFrozen?this.parent.animationFrozenValue:this.initialValue,!0}else this.frozen=!0,this.parent.animationFrozen=!0,this.parent.animationFrozenValue=this.getProperty().value;return!1}this.duration=this.duration+u;var C=!1;if(this.beginE&&x.attribute("x").hasValue())break;v+=x.measureTextRecursive(u)}return-1*(S=="end"?v:v/2)}return 0},this.renderChild=function(u,C,E,S){var v=E.children[S];for(v.attribute("x").hasValue()?(v.x=v.attribute("x").toPixels("x")+C.getAnchorDelta(u,E,S),v.attribute("dx").hasValue()&&(v.x+=v.attribute("dx").toPixels("x"))):(v.attribute("dx").hasValue()&&(C.x+=v.attribute("dx").toPixels("x")),v.x=C.x),C.x=v.x+v.measureText(u),v.attribute("y").hasValue()?(v.y=v.attribute("y").toPixels("y"),v.attribute("dy").hasValue()&&(v.y+=v.attribute("dy").toPixels("y"))):(v.attribute("dy").hasValue()&&(C.y+=v.attribute("dy").toPixels("y")),v.y=C.y),C.y=v.y,v.render(u),S=0;S0&&C[E-1]!=" "&&E0&&C[E-1]!=" "&&(E==C.length-1||C[E+1]==" ")&&(g="initial"),u.glyphs[S]!==void 0&&(v=u.glyphs[S][g])==null&&u.glyphs[S].type=="glyph"&&(v=u.glyphs[S])}else v=u.glyphs[S];return v==null&&(v=u.missingGlyph),v},this.renderChildren=function(u){var C=this.parent.style("font-family").getDefinition();if(C==null)u.fillStyle!=""&&u.fillText(s.compressSpaces(this.getText()),this.x,this.y),u.strokeStyle!=""&&u.strokeText(s.compressSpaces(this.getText()),this.x,this.y);else{var E=this.parent.style("font-size").numValueOrDefault(s.Font.Parse(s.ctx.font).fontSize),S=this.parent.style("font-style").valueOrDefault(s.Font.Parse(s.ctx.font).fontStyle),v=this.getText();C.isRTL&&(v=v.split("").reverse().join(""));for(var g=s.ToNumberArray(this.parent.attribute("dx").value),x=0;x0?"":this.text}},s.Element.tspan.prototype=new s.Element.TextElementBase,s.Element.tref=function(o){this.base=s.Element.TextElementBase,this.base(o),this.getText=function(){var u=this.getHrefAttribute().getDefinition();if(u!=null)return u.children[0].getText()}},s.Element.tref.prototype=new s.Element.TextElementBase,s.Element.a=function(o){this.base=s.Element.TextElementBase,this.base(o),this.hasText=o.childNodes.length>0;for(var u=0;u0){var S=new s.Element.g;S.children=this.children,S.parent=this,S.render(C)}},this.onclick=function(){window.open(this.getHrefAttribute().value)},this.onmousemove=function(){s.ctx.canvas.style.cursor="pointer"}},s.Element.a.prototype=new s.Element.TextElementBase,s.Element.image=function(o){this.base=s.Element.RenderedElementBase,this.base(o);var u=this.getHrefAttribute().value;if(u!=""){var C=u.match(/\.svg$/);if(s.Images.push(this),this.loaded=!1,C)this.img=s.ajax(u),this.loaded=!0;else{this.img=document.createElement("img"),s.opts.useCORS==1&&(this.img.crossOrigin="Anonymous");var E=this;this.img.onload=function(){E.loaded=!0},this.img.onerror=function(){s.log('ERROR: image "'+u+'" not found'),E.loaded=!0},this.img.src=u}this.renderChildren=function(S){var v=this.attribute("x").toPixels("x"),g=this.attribute("y").toPixels("y"),x=this.attribute("width").toPixels("x"),p=this.attribute("height").toPixels("y");x!=0&&p!=0&&(S.save(),C?S.drawSvg(this.img,v,g,x,p):(S.translate(v,g),s.AspectRatio(S,this.attribute("preserveAspectRatio").value,x,this.img.width,p,this.img.height,0,0),S.drawImage(this.img,0,0)),S.restore())},this.getBoundingBox=function(){var S=this.attribute("x").toPixels("x"),v=this.attribute("y").toPixels("y"),g=this.attribute("width").toPixels("x"),x=this.attribute("height").toPixels("y");return new s.BoundingBox(S,v,S+g,v+x)}}},s.Element.image.prototype=new s.Element.RenderedElementBase,s.Element.g=function(o){this.base=s.Element.RenderedElementBase,this.base(o),this.getBoundingBox=function(){for(var u=new s.BoundingBox,C=0;C0)for(var nt=Q[st].indexOf("url"),dt=Q[st].indexOf(")",nt),mt=Q[st].substr(nt+5,dt-nt-6),Et=s.parseXml(s.ajax(mt)).getElementsByTagName("font"),Mt=0;Mt~\.\[:]+)/g,0),Z(/(\.[^\s\+>~\.\[:]+)/g,1),Z(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,2),Z(/(:[\w-]+\([^\)]*\))/gi,1),Z(/(:[^\s\+>~\.\[:]+)/g,1),J=(J=J.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," "),Z(/([^\s\+>~\.\[:]+)/g,2),q.join("")}_t.exports=et},function(_t,m){_t.exports=function(y){this.ok=!1,this.alpha=1,y.charAt(0)=="#"&&(y=y.substr(1,6)),y=(y=y.replace(/ /g,"")).toLowerCase();var R={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};y=R[y]||y;for(var B=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(tt){return[parseInt(tt[1]),parseInt(tt[2]),parseInt(tt[3]),parseFloat(tt[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(tt){return[parseInt(tt[1]),parseInt(tt[2]),parseInt(tt[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(tt){return[parseInt(tt[1],16),parseInt(tt[2],16),parseInt(tt[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(tt){return[parseInt(tt[1]+tt[1],16),parseInt(tt[2]+tt[2],16),parseInt(tt[3]+tt[3],16)]}}],et=0;et3&&(this.alpha=Z[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var tt=this.r.toString(16),H=this.g.toString(16),X=this.b.toString(16);return tt.length==1&&(tt="0"+tt),H.length==1&&(H="0"+H),X.length==1&&(X="0"+X),"#"+tt+H+X},this.getHelpXML=function(){for(var tt=new Array,H=0;H "+M.toRGB()+" -> "+M.toHex());L.appendChild(s),L.appendChild(_),d.appendChild(L)}catch(w){}return d}}},function(_t,m){var y=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],R=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function B(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}_t.exports=function(et,K,J,q){if(!(isNaN(q)||q<1)){var Z,tt,H,X,F,U,d,L,M,s,_,w,o,u,C,E,S,v,g,x,p,l,f,b,z=(q|=0)+q+1,T=K-1,k=J-1,Q=q+1,st=Q*(Q+1)/2,nt=new B,dt=nt;for(H=1;H>Y,f!=0?(f=255/f,et[U]=(L*I>>Y)*f,et[U+1]=(M*I>>Y)*f,et[U+2]=(s*I>>Y)*f):et[U]=et[U+1]=et[U+2]=0,L-=w,M-=o,s-=u,_-=C,w-=Et.r,o-=Et.g,u-=Et.b,C-=Et.a,X=d+((X=Z+q+1)>Y,f>0?(f=255/f,et[X]=(L*I>>Y)*f,et[X+1]=(M*I>>Y)*f,et[X+2]=(s*I>>Y)*f):et[X]=et[X+1]=et[X+2]=0,L-=w,M-=o,s-=u,_-=C,w-=Et.r,o-=Et.g,u-=Et.b,C-=Et.a,X=Z+((X=tt+Q)=X+F||X?new java.lang.String(H,X,F)+"":H}function q(H,X){H.currentElement?H.currentElement.appendChild(X):H.doc.appendChild(X)}R.prototype.parseFromString=function(H,X){var F=this.options,U=new Z,d=F.domBuilder||new B,L=F.errorHandler,M=F.locator,s=F.xmlns||{},_={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return M&&d.setDocumentLocator(M),U.errorHandler=function(w,o,u){if(!w){if(o instanceof B)return o;w=o}var C={},E=w instanceof Function;function S(v){var g=w[v];!g&&E&&(g=w.length==2?function(x){w(v,x)}:w),C[v]=g&&function(x){g("[xmldom "+v+"] "+x+K(u))}||function(){}}return u=u||{},S("warning"),S("error"),S("fatalError"),C}(L,d,M),U.domBuilder=F.domBuilder||d,/\/x?html?$/.test(X)&&(_.nbsp="\xA0",_.copy="\xA9",s[""]="http://www.w3.org/1999/xhtml"),s.xml=s.xml||"http://www.w3.org/XML/1998/namespace",H?U.parse(H,s,_):U.errorHandler.error("invalid doc source"),d.doc},B.prototype={startDocument:function(){this.doc=new tt().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(H,X,F,U){var d=this.doc,L=d.createElementNS(H,F||X),M=U.length;q(this,L),this.currentElement=L,this.locator&&et(this.locator,L);for(var s=0;s":switch(E){case 0:s.setTagName(L.slice(M,C));case 5:case 6:case 7:break;case 4:case 1:(v=L.slice(M,C)).slice(-1)==="/"&&(s.closed=!0,v=v.slice(0,-1));case 2:E===2&&(v=u),E==4?(o.warning('attribute "'+v+'" missed quot(")!!'),s.add(u,v.replace(/&#?\w+;/g,w),M)):(_[""]==="http://www.w3.org/1999/xhtml"&&v.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+v+'" missed value!! "'+v+'" instead!!'),s.add(v,v,M));break;case 3:throw new Error("attribute value missed!!")}return C;case"\x80":S=" ";default:if(S<=" ")switch(E){case 0:s.setTagName(L.slice(M,C)),E=6;break;case 1:u=L.slice(M,C),E=2;break;case 4:var v=L.slice(M,C).replace(/&#?\w+;/g,w);o.warning('attribute "'+v+'" missed quot(")!!'),s.add(u,v,M);case 5:E=6}else switch(E){case 2:s.tagName,_[""]==="http://www.w3.org/1999/xhtml"&&u.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead2!!'),s.add(u,u,M),M=C,E=1;break;case 5:o.warning('attribute space is required"'+u+'"!!');case 6:E=1,M=C;break;case 3:E=4,M=C;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}C++}}function q(L,M,s){for(var _=L.tagName,w=null,o=L.length;o--;){var u=L[o],C=u.qName,E=u.value;if((x=C.indexOf(":"))>0)var S=u.prefix=C.slice(0,x),v=C.slice(x+1),g=S==="xmlns"&&v;else v=C,S=null,g=C==="xmlns"&&"";u.localName=v,g!==!1&&(w==null&&(w={},H(s,s={})),s[g]=w[g]=E,u.uri="http://www.w3.org/2000/xmlns/",M.startPrefixMapping(g,E))}for(o=L.length;o--;)(S=(u=L[o]).prefix)&&(S==="xml"&&(u.uri="http://www.w3.org/XML/1998/namespace"),S!=="xmlns"&&(u.uri=s[S||""]));var x;(x=_.indexOf(":"))>0?(S=L.prefix=_.slice(0,x),v=L.localName=_.slice(x+1)):(S=null,v=L.localName=_);var p=L.uri=s[S||""];if(M.startElement(p,v,_,L),!L.closed)return L.currentNSMap=s,L.localNSMap=w,!0;if(M.endElement(p,v,_),w)for(S in w)M.endPrefixMapping(S)}function Z(L,M,s,_,w){if(/^(?:script|textarea)$/i.test(s)){var o=L.indexOf("",M),u=L.substring(M+1,o);if(/[&<]/.test(u))return/^script$/i.test(s)?(w.characters(u,0,u.length),o):(u=u.replace(/&#?\w+;/g,_),w.characters(u,0,u.length),o)}return M+1}function tt(L,M,s,_){var w=_[s];return w==null&&((w=L.lastIndexOf(""))",M+4))>M?(s.comment(L,M+4,w-M-4),w+3):(_.error("Unclosed comment"),-1):-1;default:if(L.substr(M+3,6)=="CDATA["){var w=L.indexOf("]]>",M+9);return s.startCDATA(),s.characters(L,M+9,w-M-9),s.endCDATA(),w+3}var o=function(g,x){var p,l=[],f=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(f.lastIndex=x,f.exec(g);p=f.exec(g);)if(l.push(p),p[1])return l}(L,M),u=o.length;if(u>1&&/!doctype/i.test(o[0][0])){var C=o[1][0],E=u>3&&/^public$/i.test(o[2][0])&&o[3][0],S=u>4&&o[4][0],v=o[u-1];return s.startDTD(C,E&&E.replace(/^(['"])(.*?)\1$/,"$2"),S&&S.replace(/^(['"])(.*?)\1$/,"$2")),s.endDTD(),v.index+v[0].length}}return-1}function F(L,M,s){var _=L.indexOf("?>",M);if(_){var w=L.substring(M,_).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return w?(w[0].length,s.processingInstruction(w[1],w[2]),_+2):-1}return-1}function U(L){}function d(L,M){return L.__proto__=M,L}et.prototype={parse:function(L,M,s){var _=this.domBuilder;_.startDocument(),H(M,M={}),function(w,o,u,C,E){function S(lt){var it=lt.slice(1,-1);return it in u?u[it]:it.charAt(0)==="#"?function(vt){if(vt>65535){var pt=55296+((vt-=65536)>>10),xt=56320+(1023&vt);return String.fromCharCode(pt,xt)}return String.fromCharCode(vt)}(parseInt(it.substr(1).replace("x","0x"))):(E.error("entity not found:"+lt),lt)}function v(lt){if(lt>T){var it=w.substring(T,lt).replace(/&#?\w+;/g,S);f&&g(T),C.characters(it,0,lt-T),T=lt}}function g(lt,it){for(;lt>=p&&(it=l.exec(w));)x=it.index,p=x+it[0].length,f.lineNumber++;f.columnNumber=lt-x+1}for(var x=0,p=0,l=/.*(?:\r\n?|\n)|.*$/g,f=C.locator,b=[{currentNSMap:o}],z={},T=0;;){try{var k=w.indexOf("<",T);if(k<0){if(!w.substr(T).match(/^\s*$/)){var Q=C.doc,st=Q.createTextNode(w.substr(T));Q.appendChild(st),C.currentElement=st}return}switch(k>T&&v(k),w.charAt(k+1)){case"/":var nt=w.indexOf(">",k+3),dt=w.substring(k+2,nt),mt=b.pop();nt<0?(dt=w.substring(k+2).replace(/[\s<].*/,""),E.error("end tag name: "+dt+" is not complete:"+mt.tagName),nt=k+1+dt.length):dt.match(/\sT?T=nt:v(Math.max(k,T)+1)}}(L,M,s,_,this.errorHandler),_.endDocument()}},U.prototype={setTagName:function(L){if(!B.test(L))throw new Error("invalid tagName:"+L);this.tagName=L},add:function(L,M,s){if(!B.test(L))throw new Error("invalid attribute:"+L);this[this.length++]={qName:L,value:M,offset:s}},length:0,getLocalName:function(L){return this[L].localName},getLocator:function(L){return this[L].locator},getQName:function(L){return this[L].qName},getURI:function(L){return this[L].uri},getValue:function(L){return this[L].value}},d({},d.prototype)instanceof d||(d=function(L,M){function s(){}for(M in s.prototype=M,s=new s,L)s[M]=L[M];return s}),m.XMLReader=et},function(_t,m,y){"use strict";var R,B,et;_t.exports=(R={BASE:!0,HEAD:!0,HTML:!0,META:!0,NOFRAME:!0,NOSCRIPT:!0,PARAM:!0,SCRIPT:!0,STYLE:!0,TITLE:!0},B=["A","ABBR","ADDRESS","AREA","ARTICLE","ASIDE","AUDIO","B","BASE","BDI","BDO","BLOCKQUOTE","BODY","BR","BUTTON","CANVAS","CAPTION","CENTER","CITE","CODE","COL","COLGROUP","COMMAND","DATALIST","DD","DEL","DETAILS","DFN","DIV","DL","DT","EM","EMBED","FIELDSET","FIGCAPTION","FIGURE","FONT","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEAD","HEADER","HGROUP","HR","HTML","I","IFRAME","IMG","INPUT","INS","KBD","LABEL","LEGEND","LI","LINK","MAP","MARK","MATH","MENU","META","METER","NAV","NOBR","NOSCRIPT","OBJECT","OL","OPTION","OPTGROUP","OUTPUT","P","PARAM","PRE","PROGRESS","Q","RP","RT","RUBY","S","SAMP","SCRIPT","SECTION","SELECT","SMALL","SOURCE","SPAN","STRONG","STYLE","SUB","SUMMARY","SUP","SVG","TABLE","TBODY","TD","TEXTAREA","TFOOT","TH","THEAD","TIME","TITLE","TR","TRACK","U","UL","VAR","VIDEO","WBR"],et=function(K){var J={},q=document.body.appendChild(document.createElement(K)),Z=window.getComputedStyle(q);return[].forEach.call(Z,function(tt){J[tt]=Z[tt]}),document.body.removeChild(q),J},{initializeSerializer:function(){var K={};return[].forEach.call(B,function(J){R[J]||(K[J]=et(J))}),function(J){var q,Z=[],tt=void 0,H=void 0,X=void 0;if(J&&J.nodeType===Node.ELEMENT_NODE)return Z=[],tt=J.querySelectorAll("*"),[].forEach.call(tt,function(F,U){var d;R[F.tagName]||(H=window.getComputedStyle(F),d=(d=F.tagName).toUpperCase(),K[d]||(K[d]=et(d)),X=K[d],Z[U]=F.style.cssText,[].forEach.call(H,function(L){H[L]!==X[L]&&(F.style[L]=H[L])}))}),q=new XMLSerializer().serializeToString(J),tt=[].map.call(tt,function(F,U){return F.style.cssText=Z[U],F}),q}}})},function(_t,m,y){(function(R,B){var et;/*! http://mths.be/base64 v0.1.0 by @mathias | MIT license */(function(K){var J=m,q=(R&&R.exports,typeof B=="object"&&B);q.global!==q&&q.window;var Z=function(U){this.message=U};(Z.prototype=new Error).name="InvalidCharacterError";var tt=function(U){throw new Z(U)},H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",X=/[\t\n\f\r ]/g,F={encode:function(U){U=String(U),/[^\0-\xFF]/.test(U)&&tt("The string to be encoded contains characters outside of the Latin1 range.");for(var d,L,M,s,_=U.length%3,w="",o=-1,u=U.length-_;++o>18&63)+H.charAt(s>>12&63)+H.charAt(s>>6&63)+H.charAt(63&s);return _==2?(d=U.charCodeAt(o)<<8,L=U.charCodeAt(++o),w+=H.charAt((s=d+L)>>10)+H.charAt(s>>4&63)+H.charAt(s<<2&63)+"="):_==1&&(s=U.charCodeAt(o),w+=H.charAt(s>>2)+H.charAt(s<<4&63)+"=="),w},decode:function(U){var d=(U=String(U).replace(X,"")).length;d%4==0&&(d=(U=U.replace(/==?$/,"")).length),(d%4==1||/[^+a-zA-Z0-9/]/.test(U))&&tt("Invalid character: the string to be decoded is not correctly encoded.");for(var L,M,s=0,_="",w=-1;++w>(-2*s&6)));return _},version:"0.1.0"};(et=function(){return F}.call(m,y,m,R))===void 0||(R.exports=et)})()}).call(this,y(98)(_t),y(99))},function(_t,m){_t.exports=function(y){return y.webpackPolyfill||(y.deprecate=function(){},y.paths=[],y.children||(y.children=[]),Object.defineProperty(y,"loaded",{enumerable:!0,get:function(){return y.l}}),Object.defineProperty(y,"id",{enumerable:!0,get:function(){return y.i}}),y.webpackPolyfill=1),y}},function(_t,m){var y;y=function(){return this}();try{y=y||new Function("return this")()}catch(R){typeof window=="object"&&(y=window)}_t.exports=y},function(_t,m,y){"use strict";var R,B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et};(R=function(et){var K=y(9).formatDefaultLocale,J=["decimal","thousands","grouping","currency"];return{setDefaultLocale:function(q){if(function(Z){return(Z===void 0?"undefined":B(Z))=="object"&&J.every(function(tt){return Z.hasOwnProperty(tt)})}(q))return K(q);throw new Error("Please pass in a valid locale object definition")}}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,B=Object.assign||function(et){for(var K=1;K2&&arguments[2]!==void 0?arguments[2]:0;H.select(Wt).transition().delay(fe).attrTween("d",function(xe){var be=q.interpolate(xe.outerRadius,le);return function(Ye){return xe.outerRadius=be(Ye),f(xe)}})}function Zt(Wt){var le=void 0;return Wt.innerRadius=0,le=q.interpolate({startAngle:0,endAngle:0},Wt),function(fe){return f(le(fe))}}function ne(Wt,le){var fe=g/5;F.wrapText.call(null,0,fe,le,Wt.node())}return xt.centeredTextFunction=function(Wt){return arguments.length?(D=Wt,this):D},xt.colorSchema=function(Wt){return arguments.length?(ot=Wt,this):ot},xt.emptyDataConfig=function(Wt){return arguments.length?(Mt=Wt,this):Mt},xt.exportChart=function(Wt,le){X.call(xt,z,Wt,le)},xt.externalRadius=function(Wt){return arguments.length?(g=Wt,this):g},xt.hasHoverAnimation=function(Wt){return arguments.length?(dt=Wt,this):dt},xt.hasFixedHighlightedSlice=function(Wt){return arguments.length?(nt=Wt,this):nt},xt.hasLastHoverSliceHighlighted=function(Wt){return arguments.length?(mt=Wt,this):mt},xt.height=function(Wt){return arguments.length?(w=Wt,this):w},xt.highlightSliceById=function(Wt){return arguments.length?(Q=Wt,this):Q},xt.internalRadius=function(Wt){return arguments.length?(x=Wt,this):x},xt.isAnimated=function(Wt){return arguments.length?(T=Wt,this):T},xt.loadingState=function(Wt){return arguments.length?(o=Wt,this):o},xt.margin=function(Wt){return arguments.length?(s=B({},s,Wt),this):s},xt.numberFormat=function(Wt){return arguments.length?(Y=Wt,this):Y},xt.on=function(){var Wt=pt.on.apply(pt,arguments);return Wt===pt?xt:Wt},xt.orderingFunction=function(Wt){return arguments.length?(lt=Wt,this):lt},xt.percentageFormat=function(Wt){return arguments.length?(I=Wt,this):I},xt.radiusHoverOffset=function(Wt){return arguments.length?(C=Wt,this):C},xt.width=function(Wt){return arguments.length?(_=Wt,this):_},xt}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,B=Object.assign||function(et){for(var K=1;K0&&b.select("g.legend-container-group").attr("transform","translate("+ot+",0)")):function(){b.select(".legend-group").selectAll("g").remove(),(x=b.select(".legend-group").selectAll("g.legend-line").data(f)).enter().append("g").classed("legend-line",!0).append("g").classed("legend-entry",!0).attr("data-item",C).attr("transform",function(W,lt){return"translate("+(U+Q())+","+(lt+1)*(l/(f.length+1))+")"}).merge(x).append("circle").classed("legend-circle",!0).attr("cx",U/2).attr("cy",-5).attr("r",U/2).style("fill",v).style("stroke-width",1),b.select(".legend-group").selectAll("g.legend-line").selectAll("g.legend-entry").append("text").classed("legend-entry-name",!0).text(E).attr("x",Q()).style("font-size","12px").style("letter-spacing","0.5px"),w?b.select(".legend-group").selectAll("g.legend-line").selectAll("g.legend-entry").append("text").classed("legend-entry-value",!0).text(S).attr("x",p-40).style("font-size","12px").style("letter-spacing","0.8px").style("text-anchor","end").style("startOffset","100%"):function(){var W=b.select("g.legend-container-group").node().getBoundingClientRect().width,lt=X-W,it=lt/2-W/2;lt>0&&b.select("g.legend-container-group").attr("transform","translate("+it+",0)")}(),b.select(".legend-group").selectAll("g.legend-line").exit().transition().style("opacity",0).remove()}(),_&&(T(),k(_))})}function T(){b.select(".legend-group").selectAll("g.legend-entry").classed("is-faded",!1)}function k(st){var nt=b.select('[data-item="'+st+'"]');nt.nodes().length&&(b.select(".legend-group").selectAll("g.legend-entry").classed("is-faded",!0),nt.classed("is-faded",!1))}function Q(){return d*U}return z.clearHighlight=function(){T()},z.colorSchema=function(st){return arguments.length?(u=st,this):u},z.height=function(st){return arguments.length?(F=st,this):F},z.highlight=function(st){T(),k(st)},z.highlightEntryById=function(st){return arguments.length?(_=st,this):_},z.isHorizontal=function(st){return arguments.length?(s=st,this):s},z.margin=function(st){return arguments.length?(H=B({},H,st),this):H},z.marginRatio=function(st){return arguments.length?(d=st,this):d},z.markerSize=function(st){return arguments.length?(U=st,this):U},z.numberFormat=function(st){return arguments.length?(L=st,this):L},z.unit=function(st){return arguments.length?(M=st,this):M},z.width=function(st){return arguments.length?(X=st,this):X},z}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,B=function(J,q){if(Array.isArray(J))return J;if(Symbol.iterator in Object(J))return function(Z,tt){var H=[],X=!0,F=!1,U=void 0;try{for(var d,L=Z[Symbol.iterator]();!(X=(d=L.next()).done)&&(H.push(d.value),!tt||H.length!==tt);X=!0);}catch(M){F=!0,U=M}finally{try{!X&&L.return&&L.return()}finally{if(F)throw U}}return H}(J,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},et=Object.assign||function(J){for(var q=1;q=0||Object.prototype.hasOwnProperty.call(si,Ui)&&(_r[Ui]=si[Ui]);return _r}(sr,["dates"]),fi=Rn.map(function(si){return{date:new Date(si[Ye]),value:+si[tn]}});return Lr.push(et({dates:fi},Or)),Lr},[]),dataByDate:gr,dataRange:nr}}(bn);fe=nn.dataByTopic,xe=nn.dataByDate,be=nn.dataRange;var fn,wn,vn,cr=jt?300:0;Mt=k-T.left-T.right-cr,I=Q-T.top-T.bottom,function(){var Jn=q.min(fe,function(sr){var Rn=sr.dates;return q.min(Rn,ge)}),dr=q.max(fe,function(sr){var Rn=sr.dates;return q.max(Rn,ge)}),gr=q.max(fe,function(sr){var Rn=sr.dates;return q.max(Rn,Ie)}),nr=q.min(fe,function(sr){var Rn=sr.dates;return q.min(Rn,Ie)}),Nr=nr<0?nr:0;Y=U.scaleTime().domain([Jn,dr]).rangeRound([0,Mt]),rt=U.scaleLinear().domain([Nr,Math.abs(gr)]).rangeRound([I,0]).nice();var Lr=(ot=U.scaleOrdinal().range(it).domain(fe.map(Ge))).range();vt=ot.domain().reduce(function(sr,Rn,Or){return sr[Rn]=Lr[Or],sr},{})}(),function(Jn){mt||(mt=L.select(Jn).append("svg").classed("britechart line-chart",!0),function(){var dr=mt.append("g").classed("container-group",!0).attr("transform","translate("+T.left+","+T.top+")");dr.append("g").classed("x-axis-group",!0).append("g").classed("axis x",!0),dr.selectAll(".x-axis-group").append("g").classed("month-axis",!0),dr.append("g").classed("y-axis-group",!0).append("g").classed("axis y",!0),dr.append("g").classed("grid-lines-group",!0),dr.append("g").classed("chart-group",!0),jt&&dr.append("g").classed("legend-group",!0),dr.append("g").classed("metadata-group",!0)}()),mt.attr("width",k).attr("height",Q)}(this),function(){var Jn=void 0,dr=void 0;if(Ct==="custom"&&typeof Nt=="string")Jn={tick:Tt,format:M.timeFormat(Nt)},dr=null;else{var gr=u(xe,k,Ct,gt);Jn=gr.minor,dr=gr.major,P=Z.axisBottom(Y).ticks(dr.tick).tickSize(0,0).tickFormat(dr.format)}D=Z.axisBottom(Y).ticks(Jn.tick).tickSize(10,0).tickPadding(5).tickFormat(Jn.format),W=Z.axisLeft(rt).ticks(Ut).tickSize([0]).tickPadding(5).tickFormat(Oe),function(nr,Nr){mt.select(".grid-lines-group").selectAll("line").remove(),(qe==="horizontal"||qe==="full")&&mt.select(".grid-lines-group").selectAll("line.horizontal-grid-line").data(rt.ticks(Nr)).enter().append("line").attr("class","horizontal-grid-line").attr("x1",-lt-30).attr("x2",Mt).attr("y1",function(Lr){return rt(Lr)}).attr("y2",function(Lr){return rt(Lr)}),qe!=="vertical"&&qe!=="full"||mt.select(".grid-lines-group").selectAll("line.vertical-grid-line").data(Y.ticks(nr)).enter().append("line").attr("class","vertical-grid-line").attr("y1",0).attr("y2",I).attr("x1",function(Lr){return Y(Lr)}).attr("x2",function(Lr){return Y(Lr)}),mt.select(".grid-lines-group").selectAll("line.extended-x-line").data([0]).enter().append("line").attr("class","extended-x-line").attr("x1",-lt-30).attr("x2",Mt).attr("y1",Q-T.bottom-T.top).attr("y2",Q-T.bottom-T.top)}(Jn.tick,Ut)}(),function(){if(mt.select(".x-axis-group .axis.x").attr("transform","translate(0, "+I+")").call(D),Ct!=="custom"&&mt.select(".x-axis-group .month-axis").attr("transform","translate(0, "+(I+28)+")").call(P),Jt){Kt&&mt.selectAll(".x-axis-label").remove();var Jn=Mt/2,dr=I+28+36;Kt=mt.select(".x-axis-group").append("text").attr("x",Jn).attr("y",dr).attr("text-anchor","middle").attr("class","x-axis-label").text(Jt)}if(mt.select(".y-axis-group .axis.y").attr("transform","translate("+-lt+", 0)").call(W).call(Ue),te){Ot&&mt.selectAll(".y-axis-label").remove();var gr=-Bt-lt,nr=-I/2;Ot=mt.select(".y-axis-group").append("text").attr("x",nr).attr("y",gr).attr("text-anchor","middle").attr("transform","rotate(270)").attr("class","y-axis-label").text(te)}}(),function(){if(be){var Jn=d.area().curve(S[le]).x(function(dr){var gr=dr.date;return Y(gr)}).y0(function(dr){var gr=dr.min;return rt(gr)}).y1(function(dr){var gr=dr.max;return rt(gr)});mt.select(".chart-group").append("g").attr("class","area").append("path").data([be]).attr("class","area").attr("d",Jn)}}(),fn=void 0,wn=void 0,wn=d.line().curve(S[le]).x(function(Jn){var dr=Jn.date;return Y(dr)}).y(function(Jn){var dr=Jn.value;return rt(dr)}),fn=mt.select(".chart-group").selectAll(".line").data(fe,Ge),Et=fn.enter().append("g").attr("class","topic").append("path").attr("class","line").merge(fn).attr("id",function(Jn){return Jn.topic}).attr("d",function(Jn){var dr=Jn.dates;return wn(dr)}).style("stroke",function(Jn){return dr=Jn.topic,ot(dr);var dr}).style("opacity",function(Jn){return Jn.hasOwnProperty("show")?Jn.show?1:0:1}).style("stroke-dasharray",function(Jn){return!!Jn.hasOwnProperty("show")&&!!Jn.dashed&&[.5,4]}),fn.exit().remove(),function(){if(jt){var Jn=Number.parseInt(Mt)+Number.parseInt(T.right);Nn=mt.selectAll(".legend-group").append("g").attr("transform","translate("+Jn+", 0)").classed("tooltip-text",!0),Mn=Nn.append("text").classed("tooltip-title",!0).attr("x",-43).attr("dy",".35em").attr("y",16).style("fill","#282C35").style("font-size","12px"),Nn.append("line").classed("tooltip-divider",!0).attr("x1",-43).attr("x2",225).attr("y1",31).attr("y2",31).style("stroke","#D2D6DF"),mn=Nn.append("g").classed("tooltip-body",!0).style("transform","translateY(8px)").style("fill","#282C35");var dr=void 0;dr=fe[0].hasOwnProperty("show")?fe.filter(function(sr){return sr.show}):fe;for(var gr=0;grdt&&(zt||(zt=mt.select(".metadata-group").append("rect").attr("class","overlay").attr("y1",0).attr("y2",Q).attr("height",I).attr("width",Mt).attr("fill","rgba(0, 0, 0, 0)").style("display","none")),ce||(ce=mt.select(".metadata-group").append("g").attr("class","hover-marker vertical-marker-container").attr("transform","translate(9999, 0)"),we=ce.selectAll("path").data([{x1:0,y1:0,x2:0,y2:0}]).enter().append("line").classed("vertical-marker",!0).attr("x1",0).attr("y1",I).attr("x2",0).attr("y2",0)),mt.on("mouseover",function(Jn){(function(dr,gr){zt.style("display","block"),we.classed("bc-is-active",!0),ve.call("customMouseOver",dr,gr,L.mouse(dr))})(this,Jn)}).on("mouseout",function(Jn){(function(dr,gr){zt.style("display","none"),we.classed("bc-is-active",!1),ve.call("customMouseOut",dr,gr,L.mouse(dr))})(this,Jn)}).on("mousemove",function(Jn){var dr,gr,nr,Nr,Lr,sr,Rn,Or;dr=this,gr=L.mouse(dr),nr=B(gr,2),Nr=nr[0],Lr=nr[1],sr=-T.left,Rn=Sn(Nr+sr),Or=void 0,Rn&&(xn(Or=Y(new Date(Rn.date))),en(Rn),ve.call("customMouseMove",dr,Rn,vt,Or,Lr))})),wt&&function(){mt.select(".chart-group").selectAll(".data-points-container").remove();var Jn=Et.nodes().reduce(function(dr,gr){return dr[gr.id]=gr,dr},{});xe.reduce(function(dr,gr){var nr=gr.topics.map(function(Nr){return{topic:Nr,node:Jn[Nr.name]}});return dr=[].concat(K(dr),K(nr))},[])}(),mt.on("touchmove",function(Jn){(function(dr,gr){ve.call("customTouchMove",dr,gr,L.touch(dr))})(this,Jn)}),Zt&&(vn=Sn(Mt))&&(xn(Y(new Date(vn.date))),en(vn))})}function Ue(Te){Te.selectAll(".tick text").attr("transform","translate(0, -7)")}function Oe(Te){var bn=void 0;return bn=z(Te)?f:b,ye&&(bn=F.format(ye)),bn(Te)}function De(Te){return new Date(Te).toLocaleDateString()}function Ze(Te){var bn,nn,fn=void 0,wn=void 0;bn=Te.topicName,nn=Te.sum.toLocaleString(),wn=mn.append("text").classed("tooltip-left-text",!0).attr("dy","1em").attr("x",-15).attr("y",Kn).style("fill","#000000").style("font-size","12px").text(bn).call(Me,200,12,-25),fn=mn.append("text").classed("tooltip-right-text",!0).attr("dy","1em").attr("x",-15).attr("y",Kn).style("fill","#000000").style("font-size","12px").text(nn),fr=wn.node().getBBox().height?wn.node().getBBox().height:fr,fr+5,yn=fn.node().getBBox().width?fn.node().getBBox().width:yn,fn.attr("x",300-yn-75),mn.append("circle").classed("tooltip-circle",!0).attr("cx",-35).attr("cy",Kn+8).attr("r",5).style("fill",vt[Te.topic]).style("stroke-width",1),Kn+=fr+7}function Sn(Te){var bn,nn,fn,wn=Y.invert(Te),vn=(0,q.bisector(ge).left)(xe,wn,1),cr=xe[vn],Jn=xe[vn-1],dr=void 0;return Jn&&cr?(bn=wn,nn=cr,fn=Jn,dr=new Date(bn).getTime()-new Date(nn.date).getTime()>new Date(fn.date).getTime()-new Date(bn).getTime()?nn:fn):dr=cr,dr}function Me(Te,bn,nn){var fn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;Te.each(function(){var wn,vn,cr,Jn,dr,gr,nr;for(wn=(Te=L.select(this)).text().split(/\s+/).reverse(),cr=[],Jn=0,dr=Te.attr("y"),gr=parseFloat(Te.attr("dy")),nr=Te.text(null).append("tspan").attr("x",fn).attr("y",dr).attr("dy",gr+"em");vn=wn.pop();)cr.push(vn),nr.text(cr.join(" ")),s.getTextWidth(cr.join(" "),nn,"Karla, sans-serif")>bn&&(cr.pop(),nr.text(cr.join(" ")),Jn<4&&(cr=[vn],nr=Te.append("tspan").attr("x",fn).attr("y",dr).attr("dy",1.2*++Jn+gr+"em").text(vn)))})}function en(Te){ce.selectAll(".circle-container").remove();var bn=Et.nodes().reduce(function(wn,vn){return wn[vn.id]=vn,wn},{}),nn=fe.filter(function(wn){return!wn.show}).map(function(wn){return wn.topicName}),fn=Te.topics.map(function(wn){return{topic:wn,node:bn[wn.name]}}).filter(function(wn){return!!wn.topic}).sort(function(wn,vn){return vt[wn.topic.name]fi.x+Lr;){var Kr=(Rn+Or)/2;if(fi=nr.getPointAtLength(Kr),gr0?"+":"")+F.format(Et)(Ie)+"%"},Jt=function(ge){var Ie=ge.parentCount,Ge=ge.value;return Ie?p(Ie)+mt:p(Ge)+mt},Kt=function(ge){var Ie=ge.name;return l(Ie)+I*(3/8)};function te(ge){ge.each(function(Ie){var Ge=w.left+w.right;g=u>600?u-Ge-1.2*it-100:u-Ge,x=C-w.top-w.bottom;var ve=function(Le){var Ue=Le.reduce(function(De,Ze){return Ze.name=String(Ze[le]),Ze.pctOfSet=+Ze.pctOfSet,Ze.pctChange=+Ze[fe],Ze.value=+Ze[ne],Ze.width=+Ze.width,[].concat(et(De),[Ze])},[]),Oe=Ue.slice();return{data:Ue,dataZeroed:Oe}}(Ie);S=ve.data,v=ve.dataZeroed,function(){Ut=function(Oe,De){var Ze=Oe.length,Sn=J.sum(Oe,De),Me=ce(Oe),en=(x-(Ze-1)*ot*x/Ze-2*P*x/Ze)/Sn;if(Me.length===0)return en;var xn=U.scalePow().exponent(1/Me.length).domain([0,100]).range([0,10*Me.length])(Ze);return en-(xe?2*xn:xn)}(S,Ot),zt=function(Oe,De,Ze){var Sn=Bt(Oe,De,Ze),Me=Oe.length,en=function(xn,Te){var bn=[];return xn.forEach(function(nn){var fn=Te.map(function(wn,vn){return wn.name===nn||wn.parent===nn?vn:null}).filter(function(wn){return wn});bn.push(fn)}),bn}(ce(Oe),Oe);return function(xn,Te){var bn=ot*x/Me,nn=P*x/Me+J.sum(Oe.slice(0,Te),De)*Ze+Te*bn+Sn(Te)/2;return en.forEach(function(fn){fn[0]>1&&Te>=fn[0]&&(nn+=xe?20:D),Te>fn[fn.length-1]&&(nn+=xe?20:D)}),nn+w.top}}(S,Ot,Ut),Bt(S,Ot,Ut);var Le=Math.min(Q*q.max(S,tn));p=U.scaleLinear().domain([0,Le]).rangeRound([0,g]);var Ue=S.map(zt);l=U.scaleOrdinal().domain(S.map(Ye)).range(Ue),b=S.map(function(Oe){return Oe}).map(function(Oe,De){return{name:Oe.name,color:f[De%f.length]}}),z=function(Oe){return b.filter(function(De){return De.name===Oe})[0].color}}(),W=tt.axisBottom(p).ticks(k,st).tickSizeInner([-x]),lt=tt.axisLeft(l),function(Le){o=Le,pt||((pt=d.select(Le).append("svg").classed("britechart row-chart",!0)).append("rect").classed("export-wrapper",!0).attr("width",u).attr("height",C).attr("fill","white"),function(){var Ue=pt.append("g").classed("container-group",!0).attr("transform","translate("+(w.left+it)+", "+w.top+")");Ue.append("g").classed("chart-group",!0),Ue.append("g").classed("title-group",!0),Ue.append("g").classed("x-axis-group axis",!0),Ue.append("g").attr("transform","translate("+-1*it+", 0)").classed("y-axis-group axis",!0),Ue.append("g").classed("metadata-group",!0)}()),pt.attr("width",u).attr("height",C)}(this),function(){if(!(!S||!S[0])){var Le=S[0].parentCount?p(S[0].parentCount):1;Le=Le>0?Le:1;var Ue=S[0].parentCount;pt.select(".title-group").selectAll("g").remove(),pt.select(".title-group").selectAll("text").remove();var Oe=window.navigator.userAgent,De=Oe.indexOf("Edge")>-1||Oe.indexOf("MSIE")>-1;if(wt&&Ue){for(var Ze=wt+" "+Ue.toLocaleString(),Sn=L.getTextWidth(Ze,Y,"sans-serif"),Me=xe?100:40,en=w.left+Le-Me-0,xn=!1;Sn>en;)wt=wt.slice(0,-1),xn=!0,Ze=wt+"... "+Ue.toLocaleString(),Sn=L.getTextWidth(Ze,Y,"sans-serif");var Te=pt.select(".title-group").append("text").text(null).attr("y",10);wt=xn?wt+"...":wt;var bn=Te.append("tspan").text(wt).attr("font-size",Y);Te.append("tspan").text(Ue.toLocaleString()).classed("count",!0).attr("dx",5).attr("font-size",Y).attr("font-weight",600);var nn=bn.node().getBoundingClientRect().width+10;xe&&De&&(nn+=40);var fn=Le-nn-5;Te.attr("x",fn)}if(jt){var wn=jt.toLocaleString(),vn=Rt+" "+wn,cr=L.getTextWidth(vn,Y,"Karla, sans-serif"),Jn=xe&&De?10:0,dr=De?5:0,gr=pt.select(".title-group").append("text").text(null).attr("x",g-cr-Jn-10-dr-5).attr("y",10);gr.append("tspan").text(Rt).attr("font-size",Y),gr.append("tspan").text(wn).classed("count",!0).attr("dx",5).attr("font-size",Y).attr("font-weight",600);var nr=u>600?g-gr.node().getBoundingClientRect().width-10-Jn:g-gr.node().getBoundingClientRect().width-10;gr.attr("x",nr)}Zt&&u>600&&pt.select(".title-group").append("text").text("Change in past "+Zt).attr("font-size",Y).attr("x",g+5).attr("y",10)}}(),function(){var Le=void 0;xt?(Nn(Le=pt.select(".chart-group").selectAll(".row").data(v)),S&&S[0]&&S[0].parentCount&&pt.select(".chart-group").append("line").classed("focus-separator",!0).attr("y1",-10).attr("x1",p(S[0].parentCount)).attr("y2",x+w.top+w.bottom).attr("x2",p(S[0].parentCount)).style("stroke","#e7e8e9").style("stroke-width",1),pt.select(".chart-group").append("line").classed("pct-separator",!0).attr("y1",-10).attr("x1",g).attr("y2",x).attr("x2",g).style("stroke","#000").style("stroke-width",1),function(Ue){Ue.attr("x",0).attr("y",function(Oe,De){return l(Oe.name)-Ut*Oe.width/2}).attr("height",function(Oe){return Ut*Oe.width}).attr("fill",function(Oe){return z(Oe.name)}).attr("width",0).transition().duration(800).ease(Ct).attr("width",function(Oe){var De=Oe.value;return p(De)})}(Le=pt.select(".chart-group").selectAll(".row rect.pct").data(S))):Nn(Le=pt.select(".chart-group").selectAll("rect").data(S)),Le.exit().transition().style("opacity",0).remove()}(),function(){var Le=w.left;pt.select(".x-axis-group.axis").attr("transform","translate(0, "+x+")").call(W),pt.select(".y-axis-group.axis").call(lt),xe||(pt.selectAll(".y-axis-group.axis .tick").call(hn),Le=w.left-it-30),pt.selectAll(".y-axis-group.axis .tick text").classed("child",function(Ue){return S.find(function(Oe){return Oe.name===Ue}).parent}).classed("print-mode",xe).on("mouseover",mn).on("mouseout",Mn).call(qe,Le).selectAll("tspan").attr("font-size",ye),pt.selectAll(".y-axis-group.axis .tick text").classed("hidden",function(Ue){return S.find(function(Oe){return Oe.name===Ue}).splitterText}),xe||pt.selectAll(".y-axis-group.axis .tick").classed("expandable",function(Ue){return function(Oe,De){return Oe.find(function(Ze){return Ze.name===De}).hasChildren}(S,Ue)}).call(yn)}(),function(){var Le=pt.selectAll(".row-wrapper"),Ue=Number(Le.size())-1,Oe=pt.select(".row_"+Ue).select(".bg-hover");if(Oe._groups[0]&&Oe._groups[0][0]){var De=Number(Oe.attr("y"))+Number(Oe.attr("height"))+40;pt.select("line.pct-separator").attr("y2",De),pt.select(".export-wrapper").attr("height",De),pt.attr("height",De)}}()})}function Ot(ge){return+ge.width}function Bt(ge,Ie,Ge){return function(ve){return Ie(ge[ve])*Ge}}var Ut=void 0,zt=void 0;function ce(ge){return[].concat(et(new Set(ge.filter(function(Ie){return Ie.parent&&Ie.isParent===!1}).map(function(Ie){return Ie.parent}))))}function we(ge){return S.find(function(Ie){return(Ie.name===ge.name||Ie.name===ge)&&Ie.isParent})}function ye(ge){return we(ge)?I+"px":Y+"px"}function qe(ge,Ie){if(Wt){var Ge=vt>1?.8:1.2;L.wrapTextWithEllipses(ge,Ie,0,vt,Ge)}}function hn(ge){ge.each(function(){var Ie=(ge=d.select(this)).node().getBBox().height/2,Ge=ge.append("svg").attr("class",function(ve){var Le;return(Le=ve,S.find(function(Ue){return Ue.name===Le})).splitterText?"hidden":"visibility visibility-"+Kn(ve)}).attr("x",30-w.left).attr("y",-Ie).attr("width","300").attr("height","300").attr("viewBox","0 0 600 600").attr("fill","none").attr("opacity",0);Ge.append("rect").attr("x",-10).attr("y",-10).attr("height","50").attr("width","50").attr("fill","#d6e8fa").on("mouseover",mn).on("mouseout",Mn),Ge.append("path").attr("d","M 10,10 L 30,30 M 30,10 L 10,30").attr("stroke","#0072ce").attr("stroke-width","2")})}function yn(ge){ge.each(function(){d.select(this).selectAll("polygon").remove(),(ge=d.select(this)).append("polygon").attr("transform",function(Ie){return S.find(function(Ge){return Ge.parent===Ie})?"translate("+(it-5)+", 2.5) rotate(180)":"translate("+(it-15)+", -2.5)"}).attr("points",function(Ie){return"0,0 10,0 5,5"}).style("fill",function(Ie){return"#0072ce"}).style("fill-opacity",function(Ie){return S.find(function(Ge){return Ge.name===Ie&&Ge.hasChildren})?1:0})})}function Nn(ge){var Ie=ge.enter().append("g").attr("class",function(De,Ze){return"row_"+Ze+" row-wrapper"}),Ge=Ie.filter(function(De){return De.splitterText});Ie.append("rect").attr("class","bg").on("click",function(De){fr(this,De,g,x)}).attr("x",0).attr("y",function(De,Ze){return l(De.name)-Ut*De.width/2}).attr("height",function(De){return Ut*De.width}).attr("width",g).attr("fill",function(De){return De.splitterText?"#fff":Tt}),Ie.append("rect").attr("class","bg-hover").attr("x",-w.left).attr("y",function(De,Ze){return l(De.name)-Ut*De.width/2}).attr("width",u).attr("height",function(De){return Ut*De.width}).on("mouseover",mn).on("mouseout",Mn).attr("fill-opacity",0).attr("fill",function(De){return De.splitterText?"#fff":"#d6e8fa"}),Ie.append("rect").attr("class","focus-bar").attr("x",0).attr("y",function(De,Ze){return l(De.name)-Ut*De.width/2}).attr("height",function(De){return Ut*De.width}).attr("width",function(De){var Ze=De.parentCount;return Ze?p(Ze):0}).attr("fill","#e7e8e9").attr("fill-opacity",function(De){return De.parent?.5:1}),Ie.append("rect").attr("class","pct").on("mouseover",function(De,Ze,Sn){(function(Me,en,xn,Te,bn){if(!en.splitterText){be.call("customMouseOver",Me,en,d.mouse(Me),[Te,bn]),mn(en),nn=d.select(Me),nn.attr("fill",function(fn){var wn=fn.name;return wn?H.color(z(wn)).darker():""});var nn}})(this,De,0,g,x)}).on("mousemove",function(De){(function(Ze,Sn,Me,en){Sn.splitterText||be.call("customMouseMove",Ze,Sn,d.mouse(Ze),[Me,en])})(this,De,g,x)}).on("mouseout",function(De,Ze,Sn){(function(Me,en,xn,Te,bn){en.splitterText||(be.call("customMouseOut",Me,en,d.mouse(Me),[Te,bn]),Mn(en),xn.forEach(function(nn){d.select(nn).attr("fill",function(fn){var wn=fn.name;return wn?z(wn):""})}))})(this,De,Sn,g,x)}).on("click",function(De){fr(this,De,g,x)}).attr("x",0).attr("y",function(De,Ze){return l(De.name)-Ut*De.width/2}).attr("height",function(De){return Ut*De.width}).attr("width",function(De){var Ze=De.value;return p(Ze)}).attr("fill",function(De){return z(De.name)}).attr("fill-opacity",function(De){return De.parent?.5:1});var ve=d.select(".chart-group .bg");if(nt&&ve.node()){var Le=ve.node().getBBox().x||ve.node().getBoundingClientRect().width;Ie.append("text").attr("class","percentage-label").classed("child",function(De){return!we(De)}).attr("x",Jt).attr("y",Kt).text(function(De){return function(Ze,Sn){var Me=Ze.isNotFilter,en=Ze.pctOfSet,xn=Ze.parent,Te=Ze.value,bn=Ze.isParent;if(!Ze.splitterText){var nn="";if(Me)return"";en&&!xn&&u>600&&(nn=" | "+en+"%"),Number(Te)===1&&(Mt=Mt.replace(/s$/,""));var fn=F.format(Et)(Te)+" "+Mt+nn,wn=bn?I:Y,vn=L.getTextWidth(fn,wn,"sans-serif")+10,cr=p(Te);return vn>cr&&vn>Sn-cr?F.format(Et)(Te):fn}}(De,Le)}).attr("font-size",ye).attr("fill",function(De,Ze){var Sn=p(De.value),Me=Ie.selectAll("text")._groups[Ze][0].getComputedTextLength()+10;return Le>0&&Le-Sn0&&Le-Sn600){var Oe=Ie.append("g").attr("transform","translate("+(g+10)+", 0)").attr("class","change-label-group");Oe.append("text").attr("y",Kt).attr("font-size",ye).attr("font-weight","600").style("fill",function(De){return De.pctChange===0||isNaN(De.pctChange)?"#919395":De.pctChange>0?gt:Nt}).text(on),Oe.append("polygon").attr("transform",function(De){var Ze=Kt(De);return we(De)?De.pctChange<0?"translate(65, "+(Ze+5)+") rotate(180) scale(1.5)":"translate(50, "+(Ze-15)+") scale(1.5)":De.pctChange<0?"translate(50, "+(Ze+5)+") rotate(180)":"translate(40, "+(Ze-10)+")"}).attr("points",function(De){return"2,8 2,13 8,13 8,8 10,8 5,0 0,8"}).style("fill",function(De){return De.pctChange>0?gt:Nt}).attr("class",function(De){return De.pctChange<0?"down":"up"}).attr("fill-opacity",function(De){var Ze=De.pctChange;return isNaN(Ze)||Ze===0?0:1})}}function mn(ge,Ie){if(!ge.splitterText){var Ge=Ie;typeof ge.name!="string"&&typeof ge!="string"||(Ge=ge.name?Kn(ge.name):Kn(ge)),d.select(o).select(".tick svg.visibility-"+Ge).attr("opacity",1),d.select(o).select("g.row_"+Ge+" .bg-hover").attr("fill-opacity",1)}}function Mn(ge,Ie){if(!ge.splitterText){var Ge=Ie;typeof ge.name!="string"&&typeof ge!="string"||(Ge=ge.name?Kn(ge.name):Kn(ge)),d.select(o).select(".tick svg.visibility-"+Ge).attr("opacity",0),d.select(o).select("g.row_"+Ge+" .bg-hover").attr("fill-opacity",0)}}function Kn(ge){return S.findIndex(function(Ie){return Ie.name===ge})}function fr(ge,Ie,Ge,ve){be.call("customClick",ge,Ie,d.mouse(ge),[Ge,ve])}return te.backgroundColor=function(ge){return arguments.length?(Tt=ge,this):Tt},te.upArrowColor=function(ge){return arguments.length?(gt=ge,this):gt},te.downArrowColor=function(ge){return arguments.length?(Nt=ge,this):Nt},te.colorSchema=function(ge){return arguments.length?(f=ge,this):f},te.enableLabels=function(ge){return arguments.length?(nt=ge,this):nt},te.enableYAxisRight=function(ge){return arguments.length?(dt=ge,this):dt},te.exportChart=function(ge,Ie){M.call(te,pt,ge,Ie)},te.height=function(ge){return arguments.length?(C=ge,this):C},te.isAnimated=function(ge){return arguments.length?(xt=ge,this):xt},te.labelsMargin=function(ge){return arguments.length?(mt=ge,this):mt},te.labelsNumberFormat=function(ge){return arguments.length?(Et=ge,this):Et},te.labelsSuffix=function(ge){return arguments.length?(Mt=ge,this):Mt},te.labelsSize=function(ge){return arguments.length?(I=ge,this):I},te.labelsSizeChild=function(ge){return arguments.length?(Y=ge,this):Y},te.pctChangeLabelSize=function(ge){return arguments.length?(rt=ge,this):rt},te.loadingState=function(ge){return arguments.length?(E=ge,this):E},te.margin=function(ge){return arguments.length?(w=B({},w,ge),this):w},te.nameLabel=function(ge){return arguments.length?(le=ge,this):le},te.numberFormat=function(ge){return arguments.length?(st=ge,this):st},te.on=function(){var ge=be.on.apply(be,arguments);return ge===be?te:ge},te.percentageAxisToMaxRatio=function(ge){return arguments.length?(Q=ge,this):Q},te.isPrintMode=function(ge){return arguments.length?(xe=ge,this):xe},te.outerPadding=function(ge){return arguments.length?(P=ge,this):P},te.padding=function(ge){return arguments.length?(ot=ge,this):ot},te.paddingBetweenGroups=function(ge){return arguments.length?(D=ge,this):D},te.pctChangeLabel=function(ge){return arguments.length?(fe=ge,this):fe},te.yAxisLineWrapLimit=function(ge){return arguments.length?(vt=ge,this):vt},te.labelsFocusTitle=function(ge){return arguments.length?(wt=ge,this):wt},te.labelsTotalCount=function(ge){return arguments.length?(jt=ge,this):jt},te.labelsTotalText=function(ge){return arguments.length?(Rt=ge,this):Rt},te.labelsInterval=function(ge){return arguments.length?(Zt=ge,this):Zt},te.valueLabel=function(ge){return arguments.length?(ne=ge,this):ne},te.width=function(ge){return arguments.length?(u=ge,this):u},te.xTicks=function(ge){return arguments.length?(k=ge,this):k},te.yAxisPaddingBetweenChart=function(ge){return arguments.length?(it=ge,this):it},te.yTicks=function(ge){return arguments.length?(T=ge,this):T},te.wrapLabels=function(ge){return arguments.length?(Wt=ge,this):Wt},te}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m){_t.exports=j},function(_t,m,y){"use strict";var R,B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},et=function(K,J){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return function(q,Z){var tt=[],H=!0,X=!1,F=void 0;try{for(var U,d=q[Symbol.iterator]();!(H=(U=d.next()).done)&&(tt.push(U.value),!Z||tt.length!==Z);H=!0);}catch(L){X=!0,F=L}finally{try{!H&&d.return&&d.return()}finally{if(X)throw F}}return tt}(K,J);throw new TypeError("Invalid attempt to destructure non-iterable instance")};(R=function(K){var J=y(11),q=y(9),Z=y(2),tt=(y(8),y(28)),H=y(35).axisTimeCombinations,X=y(24),F=X.formatIntegerValue,U=X.formatDecimalValue,d=X.isInteger,L=y(26).getTextWidth;return function(){var M=2,s=2,_=2,w=2,o="Tooltip title",u=!0,C=void 0,E={y:-55,x:0},S=void 0,v=void 0,g=void 0,x=void 0,p=48,l=0,f=37,b=void 0,z=void 0,T=J.easeQuadInOut,k=void 0,Q="date",st="value",nt="name",dt="topics",mt=H.DAY_MONTH,Et=null,Mt=null,I=[],Y=null,rt=null,ot=tt.timeFormat("%b %d, %Y"),D=tt.timeFormat("%b %d, %I %p"),P=void 0,W=void 0;function lt(gt){gt.each(function(wt){250-w-s,45-M-_,function(Rt){W||((W=Z.select(Rt).append("g").classed("britechart britechart-tooltip",!0).style("visibility","hidden")).append("g").classed("tooltip-container-group select-disable",!0).attr("transform","translate( "+w+", "+M+")").append("g").classed("tooltip-group",!0),S=W.selectAll(".tooltip-group").append("g").classed("tooltip-text",!0),C=S.append("rect").classed("tooltip-text-container",!0).attr("x",-54.5).attr("y",0).attr("width",250).attr("height",p).attr("rx",3).attr("ry",3).style("fill","#FFFFFF").style("stroke","#D2D6DF").style("stroke-width",1),x=S.append("text").classed("tooltip-title",!0).attr("x",-46.5).attr("dy",".35em").attr("y",16).style("fill","#6D717A"),v=S.append("line").classed("tooltip-divider",!0).attr("x1",-46.5).attr("x2",265).attr("y1",31).attr("y2",31).style("stroke","#D2D6DF"),g=S.append("g").classed("tooltip-body",!0).style("transform","translateY(8px)").style("fill","#282C35")),W.transition().attr("width",250).attr("height",45),lt.hide()}(this)})}function it(gt){var wt=gt[st];return gt.missingValue?"-":function(Rt){if(rt!==null)return rt(Rt);var jt=U;return Rt?(Y!==null?jt=q.format(Y):d(Rt)&&(jt=F),jt(Rt)):0}(wt).toString()}function vt(gt){var wt,Rt,jt=gt[nt],Zt=void 0,ne=void 0;wt=gt.topicName||jt,Rt=it(gt),ne=g.append("text").classed("tooltip-left-text",!0).attr("dy","1em").attr("x",l).attr("y",f).style("fill","#000000").text(wt).call(Ct,170,-25),Zt=g.append("text").classed("tooltip-right-text",!0).attr("dy","1em").attr("x",l).attr("y",f).style("fill","#000000").text(Rt),b=ne.node().getBBox().height?ne.node().getBBox().height:b,p+=b+5,z=Zt.node().getBBox().width?Zt.node().getBBox().width:z,Zt.attr("x",250-z-10-62.5),g.append("circle").classed("tooltip-circle",!0).attr("cx",-39.5).attr("cy",f+8).attr("r",5).style("fill",k[jt]).style("stroke-width",1),f+=b+7}function pt(gt,wt,Rt){var jt,Zt,ne=(jt=et([wt,Rt],2),Zt=jt[0],jt[1],[Zt-250<0?65:-205,E.y]),Wt=et(ne,2),le=Wt[0],fe=Wt[1];C.attr("width",250).attr("height",p+10),S.transition().duration(100).ease(T).attr("transform","translate("+le+", "+fe+")"),v.attr("x2",190)}function xt(gt){var wt=o,Rt=function(jt){var Zt=Et||mt,ne=null,Wt={month:"short",day:"numeric"};return Zt===H.DAY_MONTH||Zt===H.MONTH_YEAR?(ne=ot,Wt.year="numeric"):Zt===H.HOUR_DAY||Zt===H.MINUTE_HOUR?(ne=D,Wt.hour="numeric"):Zt===H.CUSTOM&&typeof Mt=="string"&&(ne=tt.timeFormat(Mt)),P&&typeof Intl!="undefined"&&(typeof Intl=="undefined"?"undefined":B(Intl))==="object"&&Intl.DateTimeFormat?Intl.DateTimeFormat(P,Wt).format(jt):ne(jt)}(new Date(gt[Q]));wt.length?u&&(wt=wt+" - "+Rt):wt=Rt,x.text(wt)}function Ct(gt,wt){var Rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;gt.each(function(){var jt,Zt,ne,Wt,le,fe,xe;for(jt=(gt=Z.select(this)).text().split(/\s+/).reverse(),ne=[],Wt=0,le=gt.attr("y"),fe=parseFloat(gt.attr("dy")),xe=gt.text(null).append("tspan").attr("x",Rt).attr("y",le).attr("dy",fe+"em");Zt=jt.pop();)ne.push(Zt),xe.text(ne.join(" ")),L(ne.join(" "),16,"Karla, sans-serif")>wt&&(ne.pop(),xe.text(ne.join(" ")),Wt<2&&(ne=[Zt],xe=gt.append("tspan").attr("x",Rt).attr("y",le).attr("dy",1.2*++Wt+fe+"em").text(Zt)))})}function Tt(gt){var wt=gt[dt];I.length?wt=function(Rt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I;return jt.map(function(Zt){return Rt.filter(function(ne){return ne.name===Zt})[0]})}(wt):wt.length&&wt[0].name&&(wt=function(Rt){return Rt.map(function(jt){return jt}).sort(function(jt,Zt){return jt.name>Zt.name?1:jt.name===Zt.name?0:-1})}(wt)),g.selectAll("text").remove(),g.selectAll("circle").remove(),xt(gt),p=48,f=37,l=0,wt.forEach(vt)}function Nt(gt,wt,Rt){Tt(gt),pt(0,wt,Rt)}return lt.axisTimeCombinations=H,lt.dateFormat=function(gt){return arguments.length?(Et=gt,this):Et||mt},lt.dateCustomFormat=function(gt){return arguments.length?(Mt=gt,this):Mt},lt.dateLabel=function(gt){return arguments.length?(Q=gt,this):Q},lt.hide=function(){return W.style("visibility","hidden"),this},lt.locale=function(gt){return arguments.length?(P=gt,this):P},lt.nameLabel=function(gt){return arguments.length?(nt=gt,this):nt},lt.numberFormat=function(gt){return arguments.length?(Y=gt,this):Y},lt.valueFormatter=function(gt){return arguments.length?(rt=gt,this):rt},lt.shouldShowDateInTitle=function(gt){return arguments.length?(u=gt,this):u},lt.show=function(){return W.style("visibility","visible"),this},lt.title=function(gt){return arguments.length?(o=gt,this):o},lt.tooltipOffset=function(gt){return arguments.length?(E=gt,this):E},lt.topicsOrder=function(gt){return arguments.length?(I=gt,this):I},lt.topicLabel=function(gt){return arguments.length?(dt=gt,this):dt},lt.update=function(gt,wt,Rt){var jt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return k=wt,Nt(gt,Rt,jt),this},lt.valueLabel=function(gt){return arguments.length?(st=gt,this):st},lt}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,B=function(et,K){if(Array.isArray(et))return et;if(Symbol.iterator in Object(et))return function(J,q){var Z=[],tt=!0,H=!1,X=void 0;try{for(var F,U=J[Symbol.iterator]();!(tt=(F=U.next()).done)&&(Z.push(F.value),!q||Z.length!==q);tt=!0);}catch(d){H=!0,X=d}finally{try{!tt&&U.return&&U.return()}finally{if(H)throw X}}return Z}(et,K);throw new TypeError("Invalid attempt to destructure non-iterable instance")};(R=function(et){var K=y(0),J=y(11),q=y(9),Z=y(2);return y(8),function(){var tt=12,H=12,X=12,F=12,U="",d="value",L="name",M=J.easeQuadInOut,s=void 0,_=void 0,w=0,o=20,u=".2f",C=function(b){return q.format(u)(b)},E=void 0,S=void 0,v=void 0;function g(b){b.each(function(){E=100-F-H,S=100-tt-X,function(z){v||(v=Z.select(z).append("g").classed("britechart britechart-mini-tooltip",!0)).append("g").classed("tooltip-container-group",!0).attr("transform","translate( "+F+", "+tt+")").append("g").classed("tooltip-group",!0),v.transition().attr("width",100).attr("height",100),g.hide()}(this),_=v.selectAll(".tooltip-group").append("g").classed("tooltip-text select-disable",!0),s=_.append("rect").classed("tooltip-background",!0).attr("width",100).attr("height",100).attr("rx",1).attr("ry",1).attr("y",-tt).attr("x",-F).style("fill","#43484e").style("stroke","#43484e").style("stroke-width",1).style("pointer-events","none").style("opacity",.9)})}function x(){for(var b=arguments.length,z=Array(b),T=0;T0}(nt,k)?k+o:k-E-o-H,function(mt,Et){return mt-tt-X-S-Et>0}(dt,Q)?Q+w:Q-S-w-X]}function l(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},z=b[d]||"",T=b[L]||"",k=21,Q=22*1.18,st="1em",nt=0,dt=void 0,mt=void 0,Et=void 0;_.selectAll("text").remove(),U&&(Et=_.append("text").classed("mini-tooltip-title",!0).attr("dy",st).attr("y",0).style("fill","#43484e").style("font-size",14).text(U),nt=k+nt),T&&(mt=_.append("text").classed("mini-tooltip-name",!0).attr("dy",st).attr("y",nt||0).style("fill","#ffffff").style("font-size",14).text(T),nt=k+nt),z&&(dt=_.append("text").classed("mini-tooltip-value",!0).attr("dy",st).attr("y",nt||0).style("fill","#ffffff").style("font-size",22).style("font-weight",200).text(C(z)),nt=Q+nt),E=x(mt,Et,dt),S=nt}function f(b,z,T){var k,Q,st,nt;l(b),k=p(z,T),Q=B(k,2),st=Q[0],nt=Q[1],v.transition().duration(100).ease(M).attr("height",S+tt+X).attr("width",E+F+H).attr("transform","translate("+st+","+nt+")"),s.attr("height",S+tt+X).attr("width",E+F+H)}return g.hide=function(){return v.style("visibility","hidden"),this},g.nameLabel=function(b){return arguments.length?(L=b,this):L},g.numberFormat=function(b){return arguments.length?(u=b,this):u},g.valueFormatter=function(b){return arguments.length?(C=b,this):C},g.show=function(){var b;return l(b),v.style("visibility","visible"),this},g.title=function(b){return arguments.length?(U=b,this):U},g.update=function(b,z,T){return f(b,z,T),this},g.valueLabel=function(b){return arguments.length?(d=b,this):d},g}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,B=Object.assign||function(et){for(var K=1;KXt[de]?-1:Xt[he]===Xt[de]?0:1}),Yt=At.indexOf("Other");if(Yt>=0){var ae=At.splice(Yt,1);At=At.concat(ae)}return At}(yt);var It=d.stack().keys(Rt).order(d.stackOrderNone).offset(d.stackOffsetNone);Ye=It(Kn),xe=It(Mn)}(),_r=Oe?Ue.maxY:(Ui=nt(Nn.map(function(Qe){return Qe.name})),Z.max(Mn,function(Qe){var yt=Ui.map(function(It){return Qe[It]});return Z.sum(yt)})),I=U.scaleTime().domain(Z.extent(mn,function(Qe){return Qe.date})).rangeRound([0,hn]),ot=U.scaleLinear().domain([0,_r]).rangeRound([yn,0]).nice(),gt=Rt.reduce(function(Qe,yt,It){return s({},Qe,J({},yt,pt[It]))},{}),ee=nt(Nn.map(function(Qe){return Qe.name})),Se={},ee.forEach(function(Qe){var yt=Nn.find(function(It){return It.name===Qe});yt.hasOwnProperty("show")?Se[Qe]=yt.show:Se[Qe]=!0}),wt=Se,function(Qe){qe||((qe=L.select(Qe).append("svg").classed("britechart stacked-area",!0)).append("rect").classed("export-wrapper",!0).attr("width",mt).attr("height",Et).attr("fill","white"),function(){var yt=qe.append("g").classed("container-group",!0).attr("transform","translate("+dt.left+","+dt.top+")");yt.append("g").classed("x-axis-group",!0).append("g").classed("x axis",!0),yt.selectAll(".x-axis-group").append("g").classed("month-axis",!0),yt.append("g").classed("y-axis-group axis",!0),yt.append("g").classed("grid-lines-group",!0),yt.append("g").classed("y-axis-label",!0),yt.append("g").classed("chart-group",!0),ce&&yt.append("g").classed("legend-group",!0),yt.append("g").classed("metadata-group",!0)}()),qe.attr("width",mt).attr("height",Et)}(this),function(){var Qe=void 0,yt=void 0;if(Zt==="custom"&&typeof Wt=="string")Qe={tick:ne,format:M.timeFormat(Wt)},yt=null;else{var It=u(mn,mt,Zt,le);Qe=It.minor,yt=It.major,rt=tt.axisBottom(I).ticks(yt.tick).tickSize(0,0).tickFormat(yt.format)}Y=tt.axisBottom(I).ticks(Qe.tick).tickSize(10,0).tickPadding(5).tickFormat(Qe.format),D=tt.axisRight(ot).ticks(W).tickSize([0]).tickPadding(5).tickFormat(vn),function(Xt,At){qe.select(".grid-lines-group").selectAll("line").remove(),(fr==="horizontal"||fr==="full")&&qe.select(".grid-lines-group").selectAll("line.horizontal-grid-line").data(ot.ticks(At)).enter().append("line").attr("class","horizontal-grid-line").attr("x1",-Ie-30).attr("x2",hn).attr("y1",function(Yt){return ot(Yt)}).attr("y2",function(Yt){return ot(Yt)}),fr!=="vertical"&&fr!=="full"||qe.select(".grid-lines-group").selectAll("line.vertical-grid-line").data(I.ticks(Xt)).enter().append("line").attr("class","vertical-grid-line").attr("y1",0).attr("y2",yn).attr("x1",function(Yt){return I(Yt)}).attr("x2",function(Yt){return I(Yt)}),qe.select(".grid-lines-group").selectAll("line.extended-x-line").data([0]).enter().append("line").attr("class","extended-x-line").attr("x1",-Ie-30).attr("x2",hn).attr("y1",Et-dt.bottom-dt.top).attr("y2",Et-dt.bottom-dt.top)}(Qe.tick,W)}(),function(){qe.select(".x-axis-group .axis.x").attr("transform","translate( 0, "+yn+" )").call(Y),Zt!=="custom"&&qe.select(".x-axis-group .month-axis").attr("transform","translate(0, "+(yn+30)+")").call(rt),qe.select(".y-axis-group.axis").attr("transform","translate( "+-Ie+", 0)").call(D).call(cr),lt&&(it&&qe.selectAll(".y-axis-label-text").remove(),it=qe.select(".y-axis-label").append("text").classed("y-axis-label-text",!0).attr("x",-yn/2).attr("y",vt).attr("text-anchor","middle").attr("transform","rotate(270 0 0)").text(lt))}(),function(){if(be&&(qe.selectAll(".layer-container").remove(),qe.selectAll(".layer").remove(),qe.selectAll(".area-outline").remove()),Oe)return Qe=d.line().x(function(It){return I(It.date)}).y(function(){return ot(0)-1}),(yt=qe.select(".chart-group")).append("path").attr("class","empty-data-line").attr("d",Qe(Mn)).style("stroke","url(#empty-data-line-gradient)"),void yt.append("linearGradient").attr("id","empty-data-line-gradient").attr("gradientUnits","userSpaceOnUse").attr("x1",0).attr("x2",I(Nn[Nn.length-1].date)).attr("y1",0).attr("y2",0).selectAll("stop").data([{offset:"0%",color:xt[0]},{offset:"100%",color:xt[1]}]).enter().append("stop").attr("offset",function(It){return It.offset}).attr("stop-color",function(It){return It.color});var Qe,yt;tn=d.area().curve(S[fe]).x(function(It){var Xt=It.data;return I(Xt.date)}).y0(function(It){return ot(It[0])}).y1(function(It){return ot(It[1])}),on=d.line().curve(tn.curve()).x(function(It){var Xt=It.data;return I(Xt.date)}).y(function(It){return ot(It[1])}),zt?((be=qe.select(".chart-group").selectAll(".layer").data(Ye,Te).enter().append("g").classed("layer-container",!0)).append("path").attr("class","layer").attr("d",tn).style("opacity",function(It){var Xt=It.key;return wt[Xt]?Nt:0}).style("fill",function(It){var Xt=It.key;return gt[Xt]}),be.append("path").attr("class","area-outline").attr("d",on).style("stroke",function(It){var Xt=It.key;return gt[Xt]}).style("opacity",function(It){var Xt=It.key;return wt[Xt]?Nt:0}),qe.select(".chart-group").selectAll(".layer").data(xe).transition().delay(function(It,Xt){return Jt[Xt]}).duration(1e3).ease(we).attr("d",tn).style("opacity",function(It){var Xt=It.key;return wt[Xt]?Nt:0}).style("fill",function(It){var Xt=It.key;return gt[Xt]}),qe.select(".chart-group").selectAll(".area-outline").data(xe).transition().delay(function(It,Xt){return Jt[Xt]}).duration(1e3).ease(we).attr("d",on).style("opacity",function(It){var Xt=It.key;return wt[Xt]?Nt:0})):((be=qe.select(".chart-group").selectAll(".layer").data(xe).enter().append("g").classed("layer-container",!0)).append("path").attr("class","layer").attr("d",tn).style("opacity",function(It){var Xt=It.key;return wt[Xt]?Nt:0}).style("fill",function(It){var Xt=It.key;return gt[Xt]}),be.append("path").attr("class","area-outline").attr("d",on).style("stroke",function(It){var Xt=It.key;return gt[Xt]}).style("opacity",function(It){var Xt=It.key;return wt[Xt]?Nt:0}),qe.select(".chart-group").selectAll(".layer").attr("d",tn).style("opacity",function(It){var Xt=It.key;return wt[Xt]?Nt:0}).style("fill",function(It){var Xt=It.key;return gt[Xt]}),qe.select(".chart-group").selectAll(".area-outline").attr("class","area-outline").attr("d",on).style("stroke",function(It){var Xt=It.key;return gt[Xt]}).style("opacity",function(It){var Xt=It.key;return wt[Xt]?Nt:0})),ye||qe.select(".chart-group").selectAll(".area-outline").style("display","none"),be.exit().transition().style("opacity",0).remove()}(),function(){if(ce){var Qe=Number.parseInt(hn)+Number.parseInt(dt.right);Ze=qe.selectAll(".legend-group").append("g").attr("transform","translate("+Qe+", 0)").classed("tooltip-text",!0),Me=Ze.append("text").classed("tooltip-title",!0).attr("x",-43).attr("dy",".35em").attr("y",16).style("fill","#282C35").style("font-size","12px"),Ze.append("line").classed("tooltip-divider",!0).attr("x1",-43).attr("x2",225).attr("y1",31).attr("y2",31).style("stroke","#D2D6DF"),Sn=Ze.append("g").classed("tooltip-body",!0).style("transform","translateY(8px)").style("fill","#282C35");for(var yt=[].concat(K(new Set(Nn.map(function(ke){return ke.name})))),It=[],Xt=function(ke){var Ke={},He=yt[ke];Ke.name=He,Ke.sum=Nn.filter(function(rn){return rn.name===yt[ke]}).reduce(function(rn,En){return rn+En.value},0),It.push(Ke)},At=0;Atge&&!Oe&&(function(){Kt&&qe.selectAll(".overlay").remove(),Kt=qe.select(".metadata-group").append("rect").attr("class","overlay").attr("y1",0).attr("y2",yn).attr("height",yn).attr("width",hn).attr("fill","rgba(0, 0, 0, 0)").style("display","none")}(),function(){te&&qe.selectAll(".vertical-marker-container").remove(),te=qe.select(".metadata-group").append("g").attr("class","vertical-marker-container").attr("transform","translate(9999, 0)"),Ot=te.selectAll("path").data([{x1:0,y1:0,x2:0,y2:0}]).enter().append("line").classed("vertical-marker",!0).attr("x1",0).attr("y1",yn).attr("x2",0).attr("y2",0)}(),qe.on("mouseover",function(Qe){(function(yt,It){Kt.style("display","block"),Ot.classed("bc-is-active",!0),nn.call("customMouseOver",yt,It,L.mouse(yt))})(this,Qe)}).on("mouseout",function(Qe){(function(yt,It){Kt.style("display","none"),Ot.classed("bc-is-active",!1),nn.call("customMouseOut",yt,It,L.mouse(yt))})(this,Qe)}).on("mousemove",function(Qe){(function(yt){Bt||Nr();var It=L.mouse(yt),Xt=et(It,2),At=Xt[0],Yt=Xt[1],ae=nr(At-dt.left),he=void 0;ae&&(sr(he=I(new Date(ae.key))),Lr(ae),nn.call("customMouseMove",yt,ae,gt,he,Yt))})(this)})),Ut&&function(){Bt||Nr();var Qe=nr(hn);Qe&&(sr(I(new Date(Qe.key))),Lr(Qe))}()})}function wn(){qe.on("touchmove",function(Rn){(function(Or,fi){nn.call("customTouchMove",Or,fi,L.touch(Or))})(this,Rn)})}function vn(Rn){return(p(Rn)?g:x)(Rn)}function cr(Rn){Rn.selectAll(".tick text").attr("transform","translate(-20, -8)")}function Jn(Rn){return new Date(Rn).toLocaleDateString()}function dr(Rn){var Or,fi,si=void 0,Kr=void 0;Or=Rn.name,fi=Rn.sum.toLocaleString(),Kr=Sn.append("text").classed("tooltip-left-text",!0).attr("dy","1em").attr("x",-15).attr("y",en).style("fill","#000000").style("font-size","12px").text(Or).call(gr,200,12,-25),si=Sn.append("text").classed("tooltip-right-text",!0).attr("dy","1em").attr("x",-15).attr("y",en).style("fill","#000000").style("font-size","12px").text(fi),xn=Kr.node().getBBox().height?Kr.node().getBBox().height:xn,xn+5,De=si.node().getBBox().width?si.node().getBBox().width:De,si.attr("x",300-De-75),Sn.append("circle").classed("tooltip-circle",!0).attr("cx",-35).attr("cy",en+8).attr("r",5).style("fill",gt[Rn.name]).style("stroke-width",1),en+=xn+7}function gr(Rn,Or,fi){var si=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;Rn.each(function(){var Kr,_r,Ui,ee,Se,Xe,Qe;for(Kr=(Rn=L.select(this)).text().split(/\s+/).reverse(),Ui=[],ee=0,Se=Rn.attr("y"),Xe=parseFloat(Rn.attr("dy")),Qe=Rn.text(null).append("tspan").attr("x",si).attr("y",Se).attr("dy",Xe+"em");_r=Kr.pop();)Ui.push(_r),Qe.text(Ui.join(" ")),_.getTextWidth(Ui.join(" "),fi,"Karla, sans-serif")>Or&&(Ui.pop(),Qe.text(Ui.join(" ")),ee<4&&(Ui=[_r],Qe=Rn.append("tspan").attr("x",si).attr("y",Se).attr("dy",1.2*++ee+Xe+"em").text(_r)))})}function nr(Rn){var Or=mn.filter(function(fi){var si=fi.date;return Math.abs(I(si)-Rn)<=Bt});if(Or.length)return Or[0]}function Nr(){var Rn=mn.map(function(Or){return Or.date});Bt=(I(Rn[1])-I(Rn[0]))/2}function Lr(Rn){var Or=Rn.values,fi=0;te.selectAll(".circle-container").remove(),Or=Or.filter(function(Kr){return!!Kr});var si=Rt.reduce(function(Kr,_r){return[].concat(K(Kr),[Or.find(function(Ui){return Ui.name===_r})])},[]);si.forEach(function(Kr,_r){var Ui=te.append("g").classed("circle-container",!0).append("circle").classed("data-point-highlighter",!0).attr("cx",12).attr("cy",0).attr("r",5).style("stroke-width",1.2).style("stroke",gt[Kr.name]).style("opacity",function(ee){var Se=ee.key;return wt[Se]?Nt:0}).style("cursor","pointer").on("click",function(){(function(ee){Ct||(Ct=f(qe.select(".metadata-group")),Tt=b(Ct));var Se=L.select(ee);Se.style("stroke-width",5).style("stroke-opacity",.6).attr("filter","url(#"+Tt+")"),z(Se,we,7)})(this),function(ee,Se){nn.call("customDataEntryClick",ee,Se,L.mouse(ee))}(this,Kr)}).on("mouseout",function(){var ee;ee=this,L.select(ee).attr("filter","none")});fi+=si[_r][ve],Ui.attr("transform","translate( -12, "+ot(fi)+" )")})}function sr(Rn){te.attr("transform","translate("+Rn+",0)")}return fn.areaCurve=function(Rn){return arguments.length?(fe=Rn,this):fe},fn.areaOpacity=function(Rn){return arguments.length?(Nt=Rn,this):Nt},fn.aspectRatio=function(Rn){return arguments.length?(P=Rn,this):P},fn.axisTimeCombinations=E,fn.colorSchema=function(Rn){return arguments.length?(pt=Rn,this):pt},fn.dateLabel=function(Rn){return arguments.length?(Ge=Rn,this):Ge},fn.emptyDataConfig=function(Rn){return arguments.length?(Ue=Rn,this):Ue},fn.grid=function(Rn){return arguments.length?(fr=Rn,this):fr},fn.hasOutline=function(Rn){return arguments.length?(ye=Rn,this):ye},fn.height=function(Rn){return arguments.length?(P&&(mt=Math.ceil(Rn/P)),Et=Rn,this):Et},fn.initializeVerticalMarker=function(Rn){return arguments.length?(Ut=Rn,this):Ut},fn.isAnimated=function(Rn){return arguments.length?(zt=Rn,this):zt},fn.isPrintMode=function(Rn){return arguments.length?(ce=Rn,this):ce},fn.keyLabel=function(Rn){return arguments.length?(Le=Rn,this):Le},fn.margin=function(Rn){return arguments.length?(dt=B({},dt,Rn),this):dt},fn.tooltipThreshold=function(Rn){return arguments.length?(ge=Rn,this):ge},fn.topicsOrder=function(Rn){return arguments.length?(jt=Rn,this):jt},fn.loadingState=function(Rn){return arguments.length?(Mt=Rn,this):Mt},fn.locale=function(Rn){return arguments.length?(le=Rn,this):le},fn.exportChart=function(Rn,Or){w.call(fn,qe,Rn,Or)},fn.on=function(){var Rn=nn.on.apply(nn,arguments);return Rn===nn?fn:Rn},fn.valueLabel=function(Rn){return arguments.length?(ve=Rn,this):ve},fn.width=function(Rn){return arguments.length?(P&&(Et=Math.ceil(Rn*P)),mt=Rn,this):mt},fn.xAxisCustomFormat=function(Rn){return arguments.length?(Wt=Rn,this):Wt},fn.xAxisFormat=function(Rn){return arguments.length?(Zt=Rn,this):Zt},fn.xTicks=function(Rn){return arguments.length?(ne=Rn,this):ne},fn.yAxisLabel=function(Rn){return arguments.length?(lt=Rn,this):lt},fn.yAxisLabelOffset=function(Rn){return arguments.length?(vt=Rn,this):vt},fn.yTicks=function(Rn){return arguments.length?(W=Rn,this):W},fn}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,B=Object.assign||function(et){for(var K=1;K0&&arguments[0]!==void 0&&arguments[0],Ot=te?1:0;lt.attr("opacity",Ot),it.attr("opacity",Ot)}return tn.aspectRatio=function(te){return arguments.length?(S=te,this):S},tn.circleOpacity=function(te){return arguments.length?(xt=te,this):xt},tn.colorSchema=function(te){return arguments.length?(gt=te,this):gt},tn.exportChart=function(te,Ot){d.call(tn,Wt,te,Ot)},tn.grid=function(te){return arguments.length?(l=te,this):l},tn.hasCrossHairs=function(te){return arguments.length?(Rt=te,this):Rt},tn.hasHollowCircles=function(te){return arguments.length?(ne=te,this):ne},tn.hasTrendline=function(te){return arguments.length?(jt=te,this):jt},tn.height=function(te){return arguments.length?(S&&(C=Math.ceil(te/S)),E=te,this):E},tn.highlightTextLegendOffset=function(te){return arguments.length?(vt=te,this):vt},tn.isAnimated=function(te){return arguments.length?(wt=te,this):wt},tn.margin=function(te){return arguments.length?(u=B({},u,te),this):u},tn.maxCircleArea=function(te){return arguments.length?(Nt=te,this):Nt},tn.on=function(){var te=xe.on.apply(xe,arguments);return te===xe?tn:te},tn.width=function(te){return arguments.length?(S&&(E=Math.ceil(te*S)),C=te,this):C},tn.xAxisLabel=function(te){return arguments.length?(I=te,this):I},tn.xAxisLabelOffset=function(te){return arguments.length?(rt=te,this):rt},tn.xAxisFormat=function(te){return arguments.length?(z=te,this):z},tn.xTicks=function(te){return arguments.length?(x=te,this):x},tn.yAxisFormat=function(te){return arguments.length?(Q=te,this):Q},tn.yAxisLabel=function(te){return arguments.length?(mt=te,this):mt},tn.yAxisLabelOffset=function(te){return arguments.length?(Mt=te,this):Mt},tn.yTicks=function(te){return arguments.length?(p=te,this):p},tn}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,B=Object.assign||function(K){for(var J=1;JD&&mt.on("mouseover",function(Kt){(function(te,Ot){ne.call("customMouseOver",te,Ot,d.mouse(te))})(this,Kt)}).on("mouseout",function(Kt){(function(te,Ot){mt.select(".metadata-group").attr("transform","translate(9999, 0)"),ne.call("customMouseOut",te,Ot,d.mouse(te))})(this,Kt)}).on("mousemove",function(Kt){var te,Ot,Bt,Ut,zt,ce,we,ye,qe,hn;Ot=fe(te=this),Bt=et(Ot,2),Ut=Bt[0],zt=Bt[1],ce=dt?be(zt):xe(Ut),we=void 0,ye=void 0,ce&&(dt?(we=Ut-w.left,ye=g(ce.key)+g.bandwidth()/2):(we=E(ce.key)+S(ce[Nt]),ye=zt-w.bottom),qe=we,hn=ye,mt.select(".metadata-group").attr("transform","translate("+qe+","+hn+")"),ne.call("customMouseMove",te,ce,Q,we,ye))}).on("click",function(Kt){var te,Ot,Bt,Ut,zt,ce;Ot=fe(te=this),Bt=et(Ot,2),Ut=Bt[0],zt=Bt[1],ce=dt?be(zt):xe(Ut),ne.call("customClick",te,ce,d.mouse(te))}),mt.selectAll(".bar").on("mouseover",function(Kt){(function(te,Ot){d.select(te).attr("fill",function(){return Z.color(Q[Ot.group]).darker()})})(this,Kt)}).on("mouseout",function(Kt){(function(te,Ot){d.select(te).attr("fill",function(){return Q[Ot.group]})})(this,Kt)})}()})}function le(on){on.selectAll(".tick text").attr("transform","translate("+f.x+", "+f.y+")")}function fe(on){return d.mouse(on)}function xe(on){var Jt=on-w.left,Kt=S.bandwidth(),te=[];return st.forEach(function(Ot){var Bt=Ot.values.find(function(Ut){return Math.abs(Jt>=E(Ut[Ct])+S(Ut[Nt]))&&Math.abs(Jt-S(Ut[Nt])-E(Ut[Ct])<=Kt)});Bt&&(Bt.values=Ot.values,Bt.key=Bt.name,te.push(Bt))}),te.length?te[0]:void 0}function be(on){var Jt=on-w.bottom,Kt=g.bandwidth(),te=[];return st.map(function(Ot){var Bt=Ot.values.find(function(Ut){return Math.abs(Jt>=g(Ut[Ct]))&&Math.abs(Jt-g(Ut[Ct])<=2*Kt)});Bt&&(Bt.values=Ot.values,Bt.key=Bt.name,te.push(Bt))}),te.length?te[0]:void 0}function Ye(on){var Jt=d.select(this),Kt=F.interpolateRound(0,E(Rt(on))),te=F.interpolateNumber(0,1);return function(Ot){Jt.attr("width",Kt(Ot)).style("opacity",te(Ot))}}function tn(on){var Jt=d.select(this),Kt=F.interpolateRound(0,Mt-g(Rt(on))),te=F.interpolateRound(Mt,g(Rt(on))),Ot=F.interpolateNumber(0,1);return function(Bt){Jt.attr("y",te(Bt)).attr("height",Kt(Bt)).style("opacity",Ot(Bt))}}return Wt.aspectRatio=function(on){return arguments.length?(l=on,this):l},Wt.colorSchema=function(on){return arguments.length?(T=on,this):T},Wt.exportChart=function(on,Jt){M.call(Wt,mt,on,Jt)},Wt.groupLabel=function(on){return arguments.length?(Nt=on,this):Nt},Wt.grid=function(on){return arguments.length?(xt=on,this):xt},Wt.height=function(on){return arguments.length?(l&&(o=Math.ceil(on/l)),u=on,this):u},Wt.isHorizontal=function(on){return arguments.length?(dt=on,this):dt},Wt.isAnimated=function(on){return arguments.length?(Zt=on,this):Zt},Wt.loadingState=function(on){return arguments.length?(C=on,this):C},Wt.margin=function(on){return arguments.length?(w=B({},w,on),this):w},Wt.nameLabel=function(on){return arguments.length?(Ct=on,this):Ct},Wt.yTicks=function(on){return arguments.length?(b=on,this):b},Wt.on=function(){var on=ne.on.apply(ne,arguments);return on===ne?Wt:on},Wt.tooltipThreshold=function(on){return arguments.length?(D=on,this):D},Wt.valueLabel=function(on){return arguments.length?(Tt=on,this):Tt},Wt.valueLabelFormat=function(on){return arguments.length?(gt=on,this):gt},Wt.width=function(on){return arguments.length?(l&&(u=Math.ceil(on*l)),o=on,this):o},Wt.xTicks=function(on){return arguments.length?(z=on,this):z},Wt.yAxisLabel=function(on){return arguments.length?(lt=on,this):lt},Wt.yAxisLabelOffset=function(on){return arguments.length?(vt=on,this):vt},Wt.yTickTextOffset=function(on){return arguments.length?(f=on,this):f},Wt}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,B=Object.assign||function(J){for(var q=1;qot?vn-cr-10:vn}).attr("y",function(wn){return b(Ye(wn))+16}).text(function(wn){return ye(xe(wn))+nn(be(wn))+"%"}),xn.enter().append("rect").classed("striped",!0).attr("x",1).attr("y",function(wn){return b(Ye(wn))}).attr("height",b.bandwidth()).attr("fill","url(#diagonalHatch)"));Sn.enter().append("rect").classed("bg-hover",!0).on("click",function(wn){Nn(this,wn)}).attr("x",-E.left).attr("y",function(wn){return b(Ye(wn))}).attr("height",b.bandwidth()*W.length+4*W.length).attr("width",ot+E.left).attr("fill","#d6e8fa").attr("fill-opacity",0).on("mouseover",mn).on("mouseout",Mn),on?(bn.style("opacity",.24).transition().delay(function(wn,vn){return wt[vn]}).duration(1e3).ease(Mt).tween("attr.width",Kn),Y&&Te.style("opacity",.24).transition().delay(function(wn,vn){return wt[vn]}).duration(1e3).ease(Mt).tween("attr.width",fr),fn.style("opacity",.24).transition().delay(function(wn,vn){return wt[vn]}).duration(1e3).ease(Mt).tween("attr.width",Kn)):(bn.attr("width",function(wn){return p(Y?tn(wn):be(wn))}),Y&&Te.attr("width",function(wn){return p(fe(wn))}),fn.attr("width",function(wn){return p(Y?tn(wn):be(wn))}))}(Ue),Ue.exit().transition().style("opacity",0).remove()}(),rt.select(".x-axis-group .axis.x").attr("transform","translate( 0, "+D+" )").call(l),rt.select(".y-axis-group.axis").attr("transform","translate( "+-xt+", 0)").call(z),rt.selectAll(".y-axis-group.axis .tick").call(ge),rt.selectAll(".y-axis-group.axis .tick text").on("mouseover",mn).on("mouseout",Mn).call(ce,E.left-50).selectAll("tspan"),Tt&&(Nt&&rt.selectAll(".y-axis-label-text").remove(),Nt=rt.select(".y-axis-label").append("text").classed("y-axis-label-text",!0).attr("x",-D/2).attr("y",gt).attr("text-anchor","middle").attr("transform","rotate(270 0 0)").text(Tt)),function(){if(Jt){var Ue=Number.parseInt(ot)+Number.parseInt(E.right);Kt=rt.selectAll(".legend-group").append("g").attr("transform","translate("+Ue+", -30)").classed("tooltip-text",!0),te=Kt.append("g").classed("tooltip-body",!0).style("transform","translateY(8px)").style("fill","#282C35"),[].concat(K(new Set(P.map(function(Oe){return Oe.group})))).reverse().forEach(we)}}(),function(){v>pt&&rt.on("mouseover",function(Ue){(function(Oe,De){Ut.call("customMouseOver",Oe,De,M.mouse(Oe)),mn(De)})(this,Ue)}).on("mouseout",function(Ue){(function(Oe,De){rt.select(".metadata-group").attr("transform","translate(9999, 0)"),Ut.call("customMouseOut",Oe,De,M.mouse(Oe))})(this,Ue)}).on("mousemove",function(Ue){var Oe,De,Ze,Sn,Me,en,xn,Te,bn;De=hn(Oe=this),Ze=et(De,2),Sn=Ze[0],Me=yn(Ze[1]),en=void 0,xn=void 0,Me&&(en=Sn-E.left,xn=f(Me.key)+f.bandwidth()/2,Te=en,bn=xn,rt.select(".metadata-group").attr("transform","translate("+Te+","+bn+")"),Ut.call("customMouseMove",Oe,Me,mt,en,xn))}).on("click",function(Ue){Nn(this,Ue)}),rt.selectAll(".row").on("mouseover",function(Ue){(function(Oe,De){M.select(Oe).attr("fill",function(){return tt.color(mt[De.group]).darker()})})(this,Ue)}).on("mouseout",function(Ue){(function(Oe,De){M.select(Oe).attr("fill",function(){return mt[De.group]})})(this,Ue)})}()})}function ce(Ge,ve){_.wrapTextWithEllipses(Ge,ve,-10,2,.8)}function we(Ge){var ve,Le=Ge,Ue=void 0;ve=Ge,Ue=te.append("text").classed("tooltip-left-text",!0).attr("dy","1em").attr("dx",0).attr("y",Ot).style("fill","#000000").style("font-size","12px").text(ve).call(qe,200,12,-25),Bt=Ue.node().getBBox().height?Ue.node().getBBox().height:Bt,Bt+5,te.append("circle").classed("tooltip-circle",!0).attr("cx",-39.5).attr("cy",Ot+10).attr("r",5).style("fill",mt[Le]).style("stroke-width",1),Ot+=Bt+7}function ye(Ge){return Ge?Ge+" | ":""}function qe(Ge,ve,Le){var Ue=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;Ge.each(function(){var Oe,De,Ze,Sn,Me,en,xn;for(Oe=(Ge=M.select(this)).text().split(/\s+/).reverse(),Ze=[],Sn=0,Me=Ge.attr("y"),en=parseFloat(Ge.attr("dy")),xn=Ge.text(null).append("tspan").attr("x",Ue).attr("y",Me).attr("dy",en+"em");De=Oe.pop();)Ze.push(De),xn.text(Ze.join(" ")),_.getTextWidth(Ze.join(" "),Le,"Karla, sans-serif")>ve&&(Ze.pop(),xn.text(Ze.join(" ")),Sn<4&&(Ze=[De],xn=Ge.append("tspan").attr("x",Ue).attr("y",Me).attr("dy",1.2*++Sn+en+"em").text(De)))})}function hn(Ge){return M.mouse(Ge)}function yn(Ge){var ve=Ge-E.bottom,Le=f.bandwidth(),Ue=[];return Et.map(function(Oe){var De=Oe.values.find(function(Ze){return Math.abs(ve>=f(Ze[jt]))&&Math.abs(ve-f(Ze[jt])<=2*Le)});De&&(De.values=Oe.values,De.key=De.name,Ue.push(De))}),Ue.length?Ue[0]:void 0}function Nn(Ge,ve){var Le=hn(Ge),Ue=et(Le,2),Oe=(Ue[0],yn(Ue[1]));Ut.call("customClick",Ge,Oe,M.mouse(Ge))}function mn(Ge,ve){var Le=null;this&&(Le=M.select(this.parentNode).attr("class").replace("layer layer-","")),typeof Ge=="string"&&(Le=Ie(Ge)),parseInt(Le)>-1&&(M.select(S).select(".tick svg.visibility-"+Le).attr("opacity",1),M.select(S).select("g .layer-"+Le+" .bg-hover").attr("fill-opacity",.3))}function Mn(Ge,ve){var Le=null;this&&(Le=M.select(this.parentNode).attr("class").replace("layer layer-","")),typeof Ge=="string"&&(Le=Ie(Ge)),parseInt(Le)>-1&&(M.select(S).select(".tick svg.visibility-"+Le).attr("opacity",0),M.select(S).select("g .layer-"+Le+" .bg-hover").attr("fill-opacity",0))}function Kn(Ge){var ve=M.select(this),Le=d.interpolateNumber(0,1),Ue=Y?d.interpolateRound(0,p(tn(Ge))):d.interpolateRound(0,p(be(Ge)));return function(Oe){ve.attr("width",Ue(Oe)).style("opacity",Le(Oe))}}function fr(Ge){var ve=M.select(this),Le=d.interpolateRound(0,p(fe(Ge))),Ue=d.interpolateNumber(0,1);return function(Oe){ve.attr("width",Le(Oe)).style("opacity",Ue(Oe))}}function ge(Ge){Ge.each(function(){var ve=(Ge=M.select(this)).node().getBBox().height/2,Le=Ge.append("svg").attr("class",function(Ue){return"visibility visibility-"+Ie(Ue)}).attr("x",-(E.left-5)).attr("y",-ve).attr("width","300").attr("height","300").attr("viewBox","0 0 600 600").attr("fill","none").attr("opacity",0);Le.append("rect").attr("x",-10).attr("y",-10).attr("height","50").attr("width","50").attr("fill","#d6e8fa").on("mouseover",mn).on("mouseout",Mn).attr("opacity",0),Le.append("path").attr("d","M 10,10 L 30,30 M 30,10 L 10,30").attr("stroke","#0072ce").attr("stroke-width","2").on("mouseover",mn).on("mouseout",Mn)})}function Ie(Ge){return lt.indexOf(Ge)}return zt.aspectRatio=function(Ge){return arguments.length?(T=Ge,this):T},zt.colorSchema=function(Ge){return arguments.length?(dt=Ge,this):dt},zt.exportChart=function(Ge,ve){w.call(zt,rt,Ge,ve)},zt.groupLabel=function(Ge){return arguments.length?(ne=Ge,this):ne},zt.grid=function(Ge){return arguments.length?(Rt=Ge,this):Rt},zt.height=function(Ge){return arguments.length?(T&&(v=Math.ceil(Ge/T)),g=Ge,this):g},zt.isHorizontal=function(Ge){return arguments.length?(I=Ge,this):I},zt.isPrintMode=function(Ge){return arguments.length?(Jt=Ge,this):Jt},zt.isStacked=function(Ge){return arguments.length?(Y=Ge,this):Y},zt.isAnimated=function(Ge){return arguments.length?(on=Ge,this):on},zt.loadingState=function(Ge){return arguments.length?(x=Ge,this):x},zt.margin=function(Ge){return arguments.length?(E=B({},E,Ge),this):E},zt.nameLabel=function(Ge){return arguments.length?(jt=Ge,this):jt},zt.yTicks=function(Ge){return arguments.length?(Q=Ge,this):Q},zt.on=function(){var Ge=Ut.on.apply(Ut,arguments);return Ge===Ut?zt:Ge},zt.percentageAxisToMaxRatio=function(Ge){return arguments.length?(nt=Ge,this):nt},zt.tooltipThreshold=function(Ge){return arguments.length?(pt=Ge,this):pt},zt.valueLabel=function(Ge){return arguments.length?(Zt=Ge,this):Zt},zt.valueLabelFormat=function(Ge){return arguments.length?(Wt=Ge,this):Wt},zt.width=function(Ge){return arguments.length?(T&&(g=Math.ceil(Ge*T)),v=Ge,this):v},zt.xTicks=function(Ge){return arguments.length?(st=Ge,this):st},zt.yAxisLabel=function(Ge){return arguments.length?(Tt=Ge,this):Tt},zt.yAxisLabelOffset=function(Ge){return arguments.length?(gt=Ge,this):gt},zt.yTickTextOffset=function(Ge){return arguments.length?(k=Ge,this):k},zt}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,B=Object.assign||function(K){for(var J=1;JW&&Et.on("mouseover",function(we){(function(ye,qe){le.call("customMouseOver",ye,qe,L.mouse(ye))})(this,we)}).on("mouseout",function(we){(function(ye,qe){Et.select(".metadata-group").attr("transform","translate(9999, 0)"),le.call("customMouseOut",ye,qe,L.mouse(ye))})(this,we)}).on("mousemove",function(we){var ye,qe,hn,yn,Nn,mn,Mn,Kn,fr,ge;qe=Ye(ye=this),hn=et(qe,2),yn=hn[0],Nn=hn[1],mn=mt?on(Nn):tn(yn),Mn=void 0,Kn=void 0,mn&&(mt?(Mn=yn-o.left,Kn=g(mn.key)+g.bandwidth()/2):(Mn=S(mn.key)+o.left,Kn=Nn-o.bottom),fr=Mn,ge=Kn,Et.select(".metadata-group").attr("transform","translate("+fr+","+ge+")"),le.call("customMouseMove",ye,mn,st,Mn,Kn))}).on("click",function(we){var ye,qe,hn,yn,Nn,mn;qe=Ye(ye=this),hn=et(qe,2),yn=hn[0],Nn=hn[1],mn=mt?on(Nn):tn(yn),le.call("customClick",ye,mn,L.mouse(ye))}),Et.selectAll(".bar").on("mouseover",Jt).on("mouseout",Kt)}()})}function xe(Bt){Bt.selectAll(".tick text").attr("transform","translate(-20, -8)")}function be(Bt){return Bt.map(function(Ut){for(var zt=0;zt=we&&Ut=we&&Ut=pt[1]&&(pt[0]=w[rt].floor(Ct[0]),pt[1]=w[rt].offset(pt[0])),U.select(this).transition().call(U.event.target.move,pt.map(b))}ot.call("customBrushEnd",this,pt)}}function vt(pt,xt){var Ct=null;pt!==null&&(Ct=[b(new Date(pt)),b(new Date(xt))]),dt.move(mt,Ct)}return W.axisTimeCombinations=_,W.dateRange=function(pt){return arguments.length?(p=pt,Array.isArray(p)&&vt.apply(void 0,et(p)),this):p},W.gradient=function(pt){return arguments.length?(I=pt,this):I},W.height=function(pt){return arguments.length?(S=pt,this):S},W.loadingState=function(pt){return arguments.length?(v=pt,this):v},W.locale=function(pt){return arguments.length?(nt=pt,this):nt},W.margin=function(pt){return arguments.length?(C=B({},C,pt),this):C},W.on=function(){var pt=ot.on.apply(ot,arguments);return pt===ot?W:pt},W.width=function(pt){return arguments.length?(E=pt,this):E},W.xAxisCustomFormat=function(pt){return arguments.length?(st=pt,this):st},W.xAxisFormat=function(pt){return arguments.length?(k=pt,this):k},W.xTicks=function(pt){return arguments.length?(Q=pt,this):Q},W.roundingTimeInterval=function(pt){return arguments.length?(rt=pt,this):rt},W}}.call(m,y,m,_t))===void 0||(_t.exports=R)},function(_t,m,y){"use strict";var R,B=Object.assign||function(et){for(var K=1;K0)){if(D/=xt,xt<0){if(D0){if(D>pt)return;D>vt&&(vt=D)}if(D=rt-lt,xt||!(D<0)){if(D/=xt,xt<0){if(D>pt)return;D>vt&&(vt=D)}else if(xt>0){if(D0)){if(D/=Ct,Ct<0){if(D0){if(D>pt)return;D>vt&&(vt=D)}if(D=ot-it,Ct||!(D<0)){if(D/=Ct,Ct<0){if(D>pt)return;D>vt&&(vt=D)}else if(Ct>0){if(D0||pt<1)||(vt>0&&(Mt[0]=[lt+vt*xt,it+vt*Ct]),pt<1&&(Mt[1]=[lt+pt*xt,it+pt*Ct]),!0)}}}}}function L(Mt,I,Y,rt,ot){var D=Mt[1];if(D)return!0;var P,W,lt=Mt[0],it=Mt.left,vt=Mt.right,pt=it[0],xt=it[1],Ct=vt[0],Tt=vt[1],Nt=(pt+Ct)/2,gt=(xt+Tt)/2;if(Tt===xt){if(Nt=rt)return;if(pt>Ct){if(lt){if(lt[1]>=ot)return}else lt=[Nt,Y];D=[Nt,ot]}else{if(lt){if(lt[1]1)if(pt>Ct){if(lt){if(lt[1]>=ot)return}else lt=[(Y-W)/P,Y];D=[(ot-W)/P,ot]}else{if(lt){if(lt[1]=rt)return}else lt=[I,P*I+W];D=[rt,P*rt+W]}else{if(lt){if(lt[0]=-nt)){var Ct=lt*lt+it*it,Tt=vt*vt+pt*pt,Nt=(pt*Ct-it*Tt)/xt,gt=(lt*Tt-vt*Ct)/xt,wt=o.pop()||new u;wt.arc=Mt,wt.site=ot,wt.x=Nt+P,wt.y=(wt.cy=gt+W)+Math.sqrt(Nt*Nt+gt*gt),Mt.circle=wt;for(var Rt=null,jt=k._;jt;)if(wt.yst)W=W.L;else{if(!((ot=D-b(W,P))>st)){rt>-st?(I=W.P,Y=W):ot>-st?(I=W,Y=W.N):I=Y=W;break}if(!W.R){I=W;break}W=W.R}(function(ne){T[ne.index]={site:ne,halfedges:[]}})(Mt);var lt=g(Mt);if(z.insert(I,lt),I||Y){if(I===Y)return E(I),Y=g(I.site),z.insert(lt,Y),lt.edge=Y.edge=X(I.site,lt.site),C(I),void C(Y);if(Y){E(I),E(Y);var it=I.site,vt=it[0],pt=it[1],xt=Mt[0]-vt,Ct=Mt[1]-pt,Tt=Y.site,Nt=Tt[0]-vt,gt=Tt[1]-pt,wt=2*(xt*gt-Ct*Nt),Rt=xt*xt+Ct*Ct,jt=Nt*Nt+gt*gt,Zt=[(gt*Rt-Ct*jt)/wt+vt,(xt*jt-Nt*Rt)/wt+pt];U(Y.edge,it,Tt,Zt),lt.edge=X(it,Mt,null,Zt),Y.edge=X(Mt,Tt,null,Zt),C(I),C(Y)}else lt.edge=X(I.site,lt.site)}}function f(Mt,I){var Y=Mt.site,rt=Y[0],ot=Y[1],D=ot-I;if(!D)return rt;var P=Mt.P;if(!P)return-1/0;var W=(Y=P.site)[0],lt=Y[1],it=lt-I;if(!it)return W;var vt=W-rt,pt=1/D-1/it,xt=vt/it;return pt?(-xt+Math.sqrt(xt*xt-2*pt*(vt*vt/(-2*it)-lt+it/2+ot-D/2)))/pt+rt:(rt+W)/2}function b(Mt,I){var Y=Mt.N;if(Y)return f(Y,I);var rt=Mt.site;return rt[1]===I?rt[0]:1/0}var z,T,k,Q,st=1e-6,nt=1e-12;function dt(Mt,I){return I[1]-Mt[1]||I[0]-Mt[0]}function mt(Mt,I){var Y,rt,ot,D=Mt.sort(dt).pop();for(Q=[],T=new Array(Mt.length),z=new H,k=new H;;)if(ot=w,D&&(!ot||D[1]st||Math.abs(Tt[0][1]-Tt[1][1])>st)||delete Q[Nt]})(P,W,lt,it),function(vt,pt,xt,Ct){var Tt,Nt,gt,wt,Rt,jt,Zt,ne,Wt,le,fe,xe,be=T.length,Ye=!0;for(Tt=0;Ttst||Math.abs(xe-Wt)>st)&&(Rt.splice(wt,0,Q.push(F(gt,le,Math.abs(fe-vt)st?[vt,Math.abs(ne-vt)st?[Math.abs(Wt-Ct)st?[xt,Math.abs(ne-xt)st?[Math.abs(Wt-pt)=W)return null;var lt=Mt-ot.site[0],it=I-ot.site[1],vt=lt*lt+it*it;do ot=D.cells[rt=P],P=null,ot.halfedges.forEach(function(pt){var xt=D.edges[pt],Ct=xt.left;if(Ct!==ot.site&&Ct||(Ct=xt.right)){var Tt=Mt-Ct[0],Nt=I-Ct[1],gt=Tt*Tt+Nt*Nt;gtMath.abs(De[1]-Mn[1])?Ye=!0:be=!0),Mn=De,xe=!0,L(),ve()}function ve(){var De;switch(qe=Mn[0]-mn[0],hn=Mn[1]-mn[1],Jt){case s:case M:Kt&&(qe=Math.max(zt-wt,Math.min(we-ne,qe)),Rt=wt+qe,Wt=ne+qe),te&&(hn=Math.max(ce-jt,Math.min(ye-le,hn)),Zt=jt+hn,fe=le+hn);break;case _:Kt<0?(qe=Math.max(zt-wt,Math.min(we-wt,qe)),Rt=wt+qe,Wt=ne):Kt>0&&(qe=Math.max(zt-ne,Math.min(we-ne,qe)),Rt=wt,Wt=ne+qe),te<0?(hn=Math.max(ce-jt,Math.min(ye-jt,hn)),Zt=jt+hn,fe=le):te>0&&(hn=Math.max(ce-le,Math.min(ye-le,hn)),Zt=jt,fe=le+hn);break;case w:Kt&&(Rt=Math.max(zt,Math.min(we,wt-qe*Kt)),Wt=Math.max(zt,Math.min(we,ne+qe*Kt))),te&&(Zt=Math.max(ce,Math.min(ye,jt-hn*te)),fe=Math.max(ce,Math.min(ye,le+hn*te)))}Wt0&&(wt=Rt-qe),te<0?le=fe-hn:te>0&&(jt=Zt-hn),Jt=s,ge.attr("cursor",g.selection),ve());break;default:return}L()}function Oe(){switch(et.c.keyCode){case 16:yn&&(be=Ye=yn=!1,ve());break;case 18:Jt===w&&(Kt<0?ne=Wt:Kt>0&&(wt=Rt),te<0?le=fe:te>0&&(jt=Zt),Jt=_,ve());break;case 32:Jt===s&&(et.c.altKey?(Kt&&(ne=Wt-qe*Kt,wt=Rt+qe*Kt),te&&(le=fe-hn*te,jt=Zt+hn*te),Jt=w):(Kt<0?ne=Wt:Kt>0&&(wt=Rt),te<0?le=fe:te>0&&(jt=Zt),Jt=_),ge.attr("cursor",g[on]),ve());break;default:return}L()}}function Tt(){pt(this,arguments).moved()}function Nt(){pt(this,arguments).ended()}function gt(){var wt=this.__brush||{selection:null};return wt.extent=u(rt.apply(this,arguments)),wt.dim=I,wt}return it.move=function(wt,Rt){wt.selection?wt.on("start.brush",function(){pt(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){pt(this,arguments).end()}).tween("brush",function(){var jt=this,Zt=jt.__brush,ne=pt(jt,arguments),Wt=Zt.selection,le=I.input(typeof Rt=="function"?Rt.apply(this,arguments):Rt,Zt.extent),fe=Object(Z.a)(Wt,le);function xe(be){Zt.selection=be===1&&le===null?null:fe(be),vt.call(jt),ne.brush()}return Wt!==null&&le!==null?xe:xe(1)}):wt.each(function(){var jt=this,Zt=arguments,ne=jt.__brush,Wt=I.input(typeof Rt=="function"?Rt.apply(jt,Zt):Rt,ne.extent),le=pt(jt,Zt).beforestart();Object(X.interrupt)(jt),ne.selection=Wt===null?null:Wt,vt.call(jt),le.start().brush().end()})},it.clear=function(wt){it.move(wt,null)},xt.prototype={beforestart:function(){return++this.active==1&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return--this.active==0&&(delete this.state.emitter,this.emit("end")),this},emit:function(wt){Object(et.a)(new U(it,wt,I.output(this.state.selection)),W.apply,W,[wt,this.that,this.args])}},it.extent=function(wt){return arguments.length?(rt=typeof wt=="function"?wt:F(u(wt)),it):rt},it.filter=function(wt){return arguments.length?(ot=typeof wt=="function"?wt:F(!!wt),it):ot},it.touchable=function(wt){return arguments.length?(D=typeof wt=="function"?wt:F(!!wt),it):D},it.handleSize=function(wt){return arguments.length?(lt=+wt,it):lt},it.keyModifiers=function(wt){return arguments.length?(P=!!wt,it):P},it.on=function(){var wt=W.on.apply(W,arguments);return wt===W?it:wt},it}y.d(m,"brush",function(){return Et}),y.d(m,"brushX",function(){return dt}),y.d(m,"brushY",function(){return mt}),y.d(m,"brushSelection",function(){return nt})}])})},5382:We=>{(function(ue,ht){We.exports=ht()})(window,function(){return function(ue){var ht={};function j(_t){if(ht[_t])return ht[_t].exports;var m=ht[_t]={i:_t,l:!1,exports:{}};return ue[_t].call(m.exports,m,m.exports,j),m.l=!0,m.exports}return j.m=ue,j.c=ht,j.d=function(_t,m,y){j.o(_t,m)||Object.defineProperty(_t,m,{enumerable:!0,get:y})},j.r=function(_t){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(_t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_t,"__esModule",{value:!0})},j.t=function(_t,m){if(1&m&&(_t=j(_t)),8&m||4&m&&typeof _t=="object"&&_t&&_t.__esModule)return _t;var y=Object.create(null);if(j.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:_t}),2&m&&typeof _t!="string")for(var R in _t)j.d(y,R,function(B){return _t[B]}.bind(null,R));return y},j.n=function(_t){var m=_t&&_t.__esModule?function(){return _t.default}:function(){return _t};return j.d(m,"a",m),m},j.o=function(_t,m){return Object.prototype.hasOwnProperty.call(_t,m)},j.p="",j(j.s=107)}([function(ue,ht,j){"use strict";j.d(ht,"a",function(){return y});var _t=new Date,m=new Date;function y(R,B,et,K){function J(q){return R(q=arguments.length===0?new Date:new Date(+q)),q}return J.floor=function(q){return R(q=new Date(+q)),q},J.ceil=function(q){return R(q=new Date(q-1)),B(q,1),R(q),q},J.round=function(q){var Z=J(q),tt=J.ceil(q);return q-Z0))return X;do X.push(H=new Date(+q)),B(q,tt),R(q);while(H=Z)for(;R(Z),!q(Z);)Z.setTime(Z-1)},function(Z,tt){if(Z>=Z)if(tt<0)for(;++tt<=0;)for(;B(Z,-1),!q(Z););else for(;--tt>=0;)for(;B(Z,1),!q(Z););})},et&&(J.count=function(q,Z){return _t.setTime(+q),m.setTime(+Z),R(_t),R(m),Math.floor(et(_t,m))},J.every=function(q){return q=Math.floor(q),isFinite(q)&&q>0?q>1?J.filter(K?function(Z){return K(Z)%q==0}:function(Z){return J.count(0,Z)%q==0}):J:null}),J}},function(ue,ht,j){"use strict";j.d(ht,"d",function(){return _t}),j.d(ht,"c",function(){return m}),j.d(ht,"b",function(){return y}),j.d(ht,"a",function(){return R}),j.d(ht,"e",function(){return B});var _t=1e3,m=6e4,y=36e5,R=864e5,B=6048e5},function(ue,ht,j){"use strict";j.r(ht);var _t=function(I,Y){return IY?1:I>=Y?0:NaN},m=function(I){var Y;return I.length===1&&(Y=I,I=function(rt,ot){return _t(Y(rt),ot)}),{left:function(rt,ot,D,P){for(D==null&&(D=0),P==null&&(P=rt.length);D>>1;I(rt[W],ot)<0?D=W+1:P=W}return D},right:function(rt,ot,D,P){for(D==null&&(D=0),P==null&&(P=rt.length);D>>1;I(rt[W],ot)>0?P=W:D=W+1}return D}}},y=m(_t),R=y.right,B=y.left,et=R,K=function(I,Y){Y==null&&(Y=J);for(var rt=0,ot=I.length-1,D=I[0],P=new Array(ot<0?0:ot);rtI?1:Y>=I?0:NaN},tt=function(I){return I===null?NaN:+I},H=function(I,Y){var rt,ot,D=I.length,P=0,W=-1,lt=0,it=0;if(Y==null)for(;++W1)return it/(P-1)},X=function(I,Y){var rt=H(I,Y);return rt&&Math.sqrt(rt)},F=function(I,Y){var rt,ot,D,P=I.length,W=-1;if(Y==null){for(;++W=rt)for(ot=D=rt;++Wrt&&(ot=rt),D=rt)for(ot=D=rt;++Wrt&&(ot=rt),D0)return[I];if((ot=Y0)for(I=Math.ceil(I/W),Y=Math.floor(Y/W),P=new Array(D=Math.ceil(Y-I+1));++lt=0?(P>=w?10:P>=o?5:P>=u?2:1)*Math.pow(10,D):-Math.pow(10,-D)/(P>=w?10:P>=o?5:P>=u?2:1)}function S(I,Y,rt){var ot=Math.abs(Y-I)/Math.max(0,rt),D=Math.pow(10,Math.floor(Math.log(ot)/Math.LN10)),P=ot/D;return P>=w?D*=10:P>=o?D*=5:P>=u&&(D*=2),Yxt;)Ct.pop(),--Tt;var Nt,gt=new Array(Tt+1);for(P=0;P<=Tt;++P)(Nt=gt[P]=[]).x0=P>0?Ct[P-1]:pt,Nt.x1=P=1)return+rt(I[ot-1],ot-1,I);var ot,D=(ot-1)*Y,P=Math.floor(D),W=+rt(I[P],P,I);return W+(+rt(I[P+1],P+1,I)-W)*(D-P)}},p=function(I,Y,rt){return I=L.call(I,tt).sort(_t),Math.ceil((rt-Y)/(2*(x(I,.75)-x(I,.25))*Math.pow(I.length,-1/3)))},l=function(I,Y,rt){return Math.ceil((rt-Y)/(3.5*X(I)*Math.pow(I.length,-1/3)))},f=function(I,Y){var rt,ot,D=I.length,P=-1;if(Y==null){for(;++P=rt)for(ot=rt;++Pot&&(ot=rt)}else for(;++P=rt)for(ot=rt;++Pot&&(ot=rt);return ot},b=function(I,Y){var rt,ot=I.length,D=ot,P=-1,W=0;if(Y==null)for(;++P=0;)for(Y=(ot=I[D]).length;--Y>=0;)rt[--W]=ot[Y];return rt},k=function(I,Y){var rt,ot,D=I.length,P=-1;if(Y==null){for(;++P=rt)for(ot=rt;++Prt&&(ot=rt)}else for(;++P=rt)for(ot=rt;++Prt&&(ot=rt);return ot},Q=function(I,Y){for(var rt=Y.length,ot=new Array(rt);rt--;)ot[rt]=I[Y[rt]];return ot},st=function(I,Y){if(rt=I.length){var rt,ot,D=0,P=0,W=I[P];for(Y==null&&(Y=_t);++D>8&15|b>>4&240,b>>4&15|240&b,(15&b)<<4|15&b,1):z===8?new u(b>>24&255,b>>16&255,b>>8&255,(255&b)/255):z===4?new u(b>>12&15|b>>8&240,b>>8&15|b>>4&240,b>>4&15|240&b,((15&b)<<4|15&b)/255):null):(b=q.exec(f))?new u(b[1],b[2],b[3],1):(b=Z.exec(f))?new u(255*b[1]/100,255*b[2]/100,255*b[3]/100,1):(b=tt.exec(f))?_(b[1],b[2],b[3],b[4]):(b=H.exec(f))?_(255*b[1]/100,255*b[2]/100,255*b[3]/100,b[4]):(b=X.exec(f))?v(b[1],b[2]/100,b[3]/100,1):(b=F.exec(f))?v(b[1],b[2]/100,b[3]/100,b[4]):U.hasOwnProperty(f)?s(U[f]):f==="transparent"?new u(NaN,NaN,NaN,0):null}function s(f){return new u(f>>16&255,f>>8&255,255&f,1)}function _(f,b,z,T){return T<=0&&(f=b=z=NaN),new u(f,b,z,T)}function w(f){return f instanceof m||(f=M(f)),f?new u((f=f.rgb()).r,f.g,f.b,f.opacity):new u}function o(f,b,z,T){return arguments.length===1?w(f):new u(f,b,z,T==null?1:T)}function u(f,b,z,T){this.r=+f,this.g=+b,this.b=+z,this.opacity=+T}function C(){return"#"+S(this.r)+S(this.g)+S(this.b)}function E(){var f=this.opacity;return((f=isNaN(f)?1:Math.max(0,Math.min(1,f)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(f===1?")":", "+f+")")}function S(f){return((f=Math.max(0,Math.min(255,Math.round(f)||0)))<16?"0":"")+f.toString(16)}function v(f,b,z,T){return T<=0?f=b=z=NaN:z<=0||z>=1?f=b=NaN:b<=0&&(f=NaN),new p(f,b,z,T)}function g(f){if(f instanceof p)return new p(f.h,f.s,f.l,f.opacity);if(f instanceof m||(f=M(f)),!f)return new p;if(f instanceof p)return f;var b=(f=f.rgb()).r/255,z=f.g/255,T=f.b/255,k=Math.min(b,z,T),Q=Math.max(b,z,T),st=NaN,nt=Q-k,dt=(Q+k)/2;return nt?(st=b===Q?(z-T)/nt+6*(z0&&dt<1?0:st,new p(st,nt,dt,f.opacity)}function x(f,b,z,T){return arguments.length===1?g(f):new p(f,b,z,T==null?1:T)}function p(f,b,z,T){this.h=+f,this.s=+b,this.l=+z,this.opacity=+T}function l(f,b,z){return 255*(f<60?b+(z-b)*f/60:f<180?z:f<240?b+(z-b)*(240-f)/60:b)}Object(_t.a)(m,M,{copy:function(f){return Object.assign(new this.constructor,this,f)},displayable:function(){return this.rgb().displayable()},hex:d,formatHex:d,formatHsl:function(){return g(this).formatHsl()},formatRgb:L,toString:L}),Object(_t.a)(u,o,Object(_t.b)(m,{brighter:function(f){return f=f==null?R:Math.pow(R,f),new u(this.r*f,this.g*f,this.b*f,this.opacity)},darker:function(f){return f=f==null?y:Math.pow(y,f),new u(this.r*f,this.g*f,this.b*f,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:C,formatHex:C,formatRgb:E,toString:E})),Object(_t.a)(p,x,Object(_t.b)(m,{brighter:function(f){return f=f==null?R:Math.pow(R,f),new p(this.h,this.s,this.l*f,this.opacity)},darker:function(f){return f=f==null?y:Math.pow(y,f),new p(this.h,this.s,this.l*f,this.opacity)},rgb:function(){var f=this.h%360+360*(this.h<0),b=isNaN(f)||isNaN(this.s)?0:this.s,z=this.l,T=z+(z<.5?z:1-z)*b,k=2*z-T;return new u(l(f>=240?f-240:f+120,k,T),l(f,k,T),l(f<120?f+240:f-120,k,T),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var f=this.opacity;return((f=isNaN(f)?1:Math.max(0,Math.min(1,f)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(f===1?")":", "+f+")")}}))},function(ue,ht,j){"use strict";ht.a=function(_t,m){return _t=+_t,m=+m,function(y){return _t*(1-y)+m*y}}},function(ue,ht,j){"use strict";j.r(ht);var _t=j(12),m=j(32),y=function(o){return Object(m.a)(Object(_t.a)(o).call(document.documentElement))},R=0;function B(){return new et}function et(){this._="@"+(++R).toString(36)}et.prototype=B.prototype={constructor:et,get:function(o){for(var u=this._;!(u in o);)if(!(o=o.parentNode))return;return o[u]},set:function(o,u){return o[this._]=u},remove:function(o){return this._ in o&&delete o[this._]},toString:function(){return this._}};var K=j(34),J=j(60),q=j(20),Z=j(14),tt=j(13),H=j(10),X=function(o){return typeof o=="string"?new H.a([document.querySelectorAll(o)],[document.documentElement]):new H.a([o==null?[]:o],H.c)},F=j(19),U=j(33),d=j(35),L=j(61),M=j(22),s=function(o,u){u==null&&(u=Object(M.a)().touches);for(var C=0,E=u?u.length:0,S=new Array(E);C180||J<-180?J-360*Math.round(J/360):J):Object(_t.a)(isNaN(et)?K:et)}function R(et){return(et=+et)==1?B:function(K,J){return J-K?function(q,Z,tt){return q=Math.pow(q,tt),Z=Math.pow(Z,tt)-q,tt=1/tt,function(H){return Math.pow(q+H*Z,tt)}}(K,J,et):Object(_t.a)(isNaN(K)?J:K)}}function B(et,K){var J=K-et;return J?m(et,J):Object(_t.a)(isNaN(et)?K:et)}},function(ue,ht,j){"use strict";var _t=j(18);ht.a=function(m){return(m=Object(_t.a)(Math.abs(m)))?m[1]:NaN}},function(ue,ht,j){"use strict";var _t=j(19),m=j(33),y=j(34),R=function(P){return new Array(P.length)};function B(P,W){this.ownerDocument=P.ownerDocument,this.namespaceURI=P.namespaceURI,this._next=null,this._parent=P,this.__data__=W}B.prototype={constructor:B,appendChild:function(P){return this._parent.insertBefore(P,this._next)},insertBefore:function(P,W){return this._parent.insertBefore(P,W)},querySelector:function(P){return this._parent.querySelector(P)},querySelectorAll:function(P){return this._parent.querySelectorAll(P)}};function et(P,W,lt,it,vt,pt){for(var xt,Ct=0,Tt=W.length,Nt=pt.length;CtW?1:P>=W?0:NaN}var q=j(20);function Z(P){return function(){this.removeAttribute(P)}}function tt(P){return function(){this.removeAttributeNS(P.space,P.local)}}function H(P,W){return function(){this.setAttribute(P,W)}}function X(P,W){return function(){this.setAttributeNS(P.space,P.local,W)}}function F(P,W){return function(){var lt=W.apply(this,arguments);lt==null?this.removeAttribute(P):this.setAttribute(P,lt)}}function U(P,W){return function(){var lt=W.apply(this,arguments);lt==null?this.removeAttributeNS(P.space,P.local):this.setAttributeNS(P.space,P.local,lt)}}var d=j(35);function L(P){return function(){delete this[P]}}function M(P,W){return function(){this[P]=W}}function s(P,W){return function(){var lt=W.apply(this,arguments);lt==null?delete this[P]:this[P]=lt}}function _(P){return P.trim().split(/^|\s+/)}function w(P){return P.classList||new o(P)}function o(P){this._node=P,this._names=_(P.getAttribute("class")||"")}function u(P,W){for(var lt=w(P),it=-1,vt=W.length;++it=0&&(this._names.splice(W,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(P){return this._names.indexOf(P)>=0}};function g(){this.textContent=""}function x(P){return function(){this.textContent=P}}function p(P){return function(){var W=P.apply(this,arguments);this.textContent=W==null?"":W}}function l(){this.innerHTML=""}function f(P){return function(){this.innerHTML=P}}function b(P){return function(){var W=P.apply(this,arguments);this.innerHTML=W==null?"":W}}function z(){this.nextSibling&&this.parentNode.appendChild(this)}function T(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var k=j(12);function Q(){return null}function st(){var P=this.parentNode;P&&P.removeChild(this)}function nt(){var P=this.cloneNode(!1),W=this.parentNode;return W?W.insertBefore(P,this.nextSibling):P}function dt(){var P=this.cloneNode(!0),W=this.parentNode;return W?W.insertBefore(P,this.nextSibling):P}var mt=j(17),Et=j(21);function Mt(P,W,lt){var it=Object(Et.a)(P),vt=it.CustomEvent;typeof vt=="function"?vt=new vt(W,lt):(vt=it.document.createEvent("Event"),lt?(vt.initEvent(W,lt.bubbles,lt.cancelable),vt.detail=lt.detail):vt.initEvent(W,!1,!1)),P.dispatchEvent(vt)}function I(P,W){return function(){return Mt(this,P,W)}}function Y(P,W){return function(){return Mt(this,P,W.apply(this,arguments))}}j.d(ht,"c",function(){return rt}),j.d(ht,"a",function(){return ot});var rt=[null];function ot(P,W){this._groups=P,this._parents=W}function D(){return new ot([[document.documentElement]],rt)}ot.prototype=D.prototype={constructor:ot,select:function(P){typeof P!="function"&&(P=Object(_t.a)(P));for(var W=this._groups,lt=W.length,it=new Array(lt),vt=0;vt=Ye&&(Ye=be+1);!(xe=le[Ye])&&++Ye=0;)(it=vt[pt])&&(xt&&4^it.compareDocumentPosition(xt)&&xt.parentNode.insertBefore(it,xt),xt=it);return this},sort:function(P){function W(wt,Rt){return wt&&Rt?P(wt.__data__,Rt.__data__):!wt-!Rt}P||(P=J);for(var lt=this._groups,it=lt.length,vt=new Array(it),pt=0;pt1?this.each((W==null?L:typeof W=="function"?s:M)(P,W)):this.node()[P]},classed:function(P,W){var lt=_(P+"");if(arguments.length<2){for(var it=w(this.node()),vt=-1,pt=lt.length;++vt0?Object(_t.a)(function(B){B.setFullYear(Math.floor(B.getFullYear()/R)*R),B.setMonth(0,1),B.setHours(0,0,0,0)},function(B,et){B.setFullYear(B.getFullYear()+et*R)}):null},ht.a=m;var y=m.range},function(ue,ht,j){"use strict";j.d(ht,"b",function(){return y});var _t=j(0),m=Object(_t.a)(function(R){R.setUTCMonth(0,1),R.setUTCHours(0,0,0,0)},function(R,B){R.setUTCFullYear(R.getUTCFullYear()+B)},function(R,B){return B.getUTCFullYear()-R.getUTCFullYear()},function(R){return R.getUTCFullYear()});m.every=function(R){return isFinite(R=Math.floor(R))&&R>0?Object(_t.a)(function(B){B.setUTCFullYear(Math.floor(B.getUTCFullYear()/R)*R),B.setUTCMonth(0,1),B.setUTCHours(0,0,0,0)},function(B,et){B.setUTCFullYear(B.getUTCFullYear()+et*R)}):null},ht.a=m;var y=m.range},function(ue,ht,j){"use strict";j.d(ht,"c",function(){return m}),j.d(ht,"a",function(){return J});var _t={},m=null;typeof document!="undefined"&&("onmouseenter"in document.documentElement||(_t={mouseenter:"mouseover",mouseleave:"mouseout"}));function y(q,Z,tt){return q=R(q,Z,tt),function(H){var X=H.relatedTarget;X&&(X===this||8&X.compareDocumentPosition(this))||q.call(this,H)}}function R(q,Z,tt){return function(H){var X=m;m=H;try{q.call(this,this.__data__,Z,tt)}finally{m=X}}}function B(q){return q.trim().split(/^|\s+/).map(function(Z){var tt="",H=Z.indexOf(".");return H>=0&&(tt=Z.slice(H+1),Z=Z.slice(0,H)),{type:Z,name:tt}})}function et(q){return function(){var Z=this.__on;if(Z){for(var tt,H=0,X=-1,F=Z.length;H1?R[0]+R.slice(2):R,+_t.slice(y+1)]}},function(ue,ht,j){"use strict";function _t(){}ht.a=function(m){return m==null?_t:function(){return this.querySelector(m)}}},function(ue,ht,j){"use strict";var _t=j(14);ht.a=function(m){var y=m+="",R=y.indexOf(":");return R>=0&&(y=m.slice(0,R))!=="xmlns"&&(m=m.slice(R+1)),_t.a.hasOwnProperty(y)?{space:_t.a[y],local:m}:m}},function(ue,ht,j){"use strict";ht.a=function(_t){return _t.ownerDocument&&_t.ownerDocument.defaultView||_t.document&&_t||_t.defaultView}},function(ue,ht,j){"use strict";var _t=j(17);ht.a=function(){for(var m,y=_t.c;m=y.sourceEvent;)y=m;return y}},function(ue,ht,j){"use strict";function _t(m){return ArrayBuffer.isView(m)&&!(m instanceof DataView)}j.d(ht,"b",function(){return _t}),ht.a=function(m,y){y||(y=[]);var R,B=m?Math.min(y.length,m.length):0,et=y.slice();return function(K){for(R=0;R=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function m(R){if(!(B=_t.exec(R)))throw new Error("invalid format: "+R);var B;return new y({fill:B[1],align:B[2],sign:B[3],symbol:B[4],zero:B[5],width:B[6],comma:B[7],precision:B[8]&&B[8].slice(1),trim:B[9],type:B[10]})}function y(R){this.fill=R.fill===void 0?" ":R.fill+"",this.align=R.align===void 0?">":R.align+"",this.sign=R.sign===void 0?"-":R.sign+"",this.symbol=R.symbol===void 0?"":R.symbol+"",this.zero=!!R.zero,this.width=R.width===void 0?void 0:+R.width,this.comma=!!R.comma,this.precision=R.precision===void 0?void 0:+R.precision,this.trim=!!R.trim,this.type=R.type===void 0?"":R.type+""}m.prototype=y.prototype,y.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(ue,ht,j){"use strict";function _t(m,y,R,B,et){var K=m*m,J=K*m;return((1-3*m+3*K-J)*y+(4-6*K+3*J)*R+(1+3*m+3*K-3*J)*B+J*et)/6}j.d(ht,"a",function(){return _t}),ht.b=function(m){var y=m.length-1;return function(R){var B=R<=0?R=0:R>=1?(R=1,y-1):Math.floor(R*y),et=m[B],K=m[B+1],J=B>0?m[B-1]:2*et-K,q=B0?R>1?Object(_t.a)(function(B){B.setTime(Math.floor(B/R)*R)},function(B,et){B.setTime(+B+et*R)},function(B,et){return(et-B)/R}):m:null},ht.a=m;var y=m.range},function(ue,ht,j){"use strict";var _t=j(10);ht.a=function(m){return typeof m=="string"?new _t.a([[document.querySelector(m)]],[document.documentElement]):new _t.a([[m]],_t.c)}},function(ue,ht,j){"use strict";function _t(){return[]}ht.a=function(m){return m==null?_t:function(){return this.querySelectorAll(m)}}},function(ue,ht,j){"use strict";ht.a=function(_t){return function(){return this.matches(_t)}}},function(ue,ht,j){"use strict";j.d(ht,"b",function(){return B});var _t=j(21);function m(et){return function(){this.style.removeProperty(et)}}function y(et,K,J){return function(){this.style.setProperty(et,K,J)}}function R(et,K,J){return function(){var q=K.apply(this,arguments);q==null?this.style.removeProperty(et):this.style.setProperty(et,q,J)}}function B(et,K){return et.style.getPropertyValue(K)||Object(_t.a)(et).getComputedStyle(et,null).getPropertyValue(K)}ht.a=function(et,K,J){return arguments.length>1?this.each((K==null?m:typeof K=="function"?R:y)(et,K,J==null?"":J)):B(this.node(),et)}},function(ue,ht,j){"use strict";var _t=j(5),m=j(37),y=j(58),R=j(57),B=j(6),et=j(59),K=j(55),J=j(24),q=j(23);ht.a=function(Z,tt){var H,X=typeof tt;return tt==null||X==="boolean"?Object(J.a)(tt):(X==="number"?B.a:X==="string"?(H=Object(_t.e)(tt))?(tt=H,m.a):K.a:tt instanceof _t.e?m.a:tt instanceof Date?R.a:Object(q.b)(tt)?q.a:Array.isArray(tt)?y.b:typeof tt.valueOf!="function"&&typeof tt.toString!="function"||isNaN(tt)?et.a:B.a)(Z,tt)}},function(ue,ht,j){"use strict";j.d(ht,"b",function(){return et}),j.d(ht,"c",function(){return K});var _t=j(5),m=j(26),y=j(53),R=j(8);function B(J){return function(q){var Z,tt,H=q.length,X=new Array(H),F=new Array(H),U=new Array(H);for(Z=0;ZF+1?X.slice(0,F+1)+"."+X.slice(F+1):X+new Array(F-X.length+2).join("0")},et={"%":function(Z,tt){return(100*Z).toFixed(tt)},b:function(Z){return Math.round(Z).toString(2)},c:function(Z){return Z+""},d:function(Z){return Math.round(Z).toString(10)},e:function(Z,tt){return Z.toExponential(tt)},f:function(Z,tt){return Z.toFixed(tt)},g:function(Z,tt){return Z.toPrecision(tt)},o:function(Z){return Math.round(Z).toString(8)},p:function(Z,tt){return B(100*Z,tt)},r:B,s:function(Z,tt){var H=Object(R.a)(Z,tt);if(!H)return Z+"";var X=H[0],F=H[1],U=F-(_t=3*Math.max(-8,Math.min(8,Math.floor(F/3))))+1,d=X.length;return U===d?X:U>d?X+new Array(U-d+1).join("0"):U>0?X.slice(0,U)+"."+X.slice(U):"0."+new Array(1-U).join("0")+Object(R.a)(Z,Math.max(0,tt+U-1))[0]},X:function(Z){return Math.round(Z).toString(16).toUpperCase()},x:function(Z){return Math.round(Z).toString(16)}},K=function(Z){return Z},J=Array.prototype.map,q=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];ht.a=function(Z){var tt,H,X=Z.grouping===void 0||Z.thousands===void 0?K:(tt=J.call(Z.grouping,Number),H=Z.thousands+"",function(o,u){for(var C=o.length,E=[],S=0,v=tt[0],g=0;C>0&&v>0&&(g+v+1>u&&(v=Math.max(1,u-g)),E.push(o.substring(C-=v,C+v)),!((g+=v+1)>u));)v=tt[S=(S+1)%tt.length];return E.reverse().join(H)}),F=Z.currency===void 0?"":Z.currency[0]+"",U=Z.currency===void 0?"":Z.currency[1]+"",d=Z.decimal===void 0?".":Z.decimal+"",L=Z.numerals===void 0?K:function(o){return function(u){return u.replace(/[0-9]/g,function(C){return o[+C]})}}(J.call(Z.numerals,String)),M=Z.percent===void 0?"%":Z.percent+"",s=Z.minus===void 0?"-":Z.minus+"",_=Z.nan===void 0?"NaN":Z.nan+"";function w(o){var u=(o=Object(y.b)(o)).fill,C=o.align,E=o.sign,S=o.symbol,v=o.zero,g=o.width,x=o.comma,p=o.precision,l=o.trim,f=o.type;f==="n"?(x=!0,f="g"):et[f]||(p===void 0&&(p=12),l=!0,f="g"),(v||u==="0"&&C==="=")&&(v=!0,u="0",C="=");var b=S==="$"?F:S==="#"&&/[boxX]/.test(f)?"0"+f.toLowerCase():"",z=S==="$"?U:/[%p]/.test(f)?M:"",T=et[f],k=/[defgprs%]/.test(f);function Q(st){var nt,dt,mt,Et=b,Mt=z;if(f==="c")Mt=T(st)+Mt,st="";else{var I=(st=+st)<0;if(st=isNaN(st)?_:T(Math.abs(st),p),l&&(st=function(ot){t:for(var D,P=ot.length,W=1,lt=-1;W0&&(lt=0)}return lt>0?ot.slice(0,lt)+ot.slice(D+1):ot}(st)),I&&+st==0&&(I=!1),Et=(I?E==="("?E:s:E==="-"||E==="("?"":E)+Et,Mt=(f==="s"?q[8+_t/3]:"")+Mt+(I&&E==="("?")":""),k){for(nt=-1,dt=st.length;++nt(mt=st.charCodeAt(nt))||mt>57){Mt=(mt===46?d+st.slice(nt+1):st.slice(nt))+Mt,st=st.slice(0,nt);break}}}x&&!v&&(st=X(st,1/0));var Y=Et.length+st.length+Mt.length,rt=Y>1)+Et+st+Mt+rt.slice(Y);break;default:st=rt+Et+st+Mt}return L(st)}return p=p===void 0?6:/[gprs]/.test(f)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),Q.toString=function(){return o+""},Q}return{format:w,formatPrefix:function(o,u){var C=w(((o=Object(y.b)(o)).type="f",o)),E=3*Math.max(-8,Math.min(8,Math.floor(Object(m.a)(u)/3))),S=Math.pow(10,-E),v=q[8+E/3];return function(g){return C(S*g)+v}}}}},,,function(ue,ht,j){"use strict";j.d(ht,"b",function(){return m}),j.d(ht,"c",function(){return y}),j.d(ht,"a",function(){return B});var _t,m,y,R=j(40);function B(et){return _t=Object(R.a)(et),m=_t.format,y=_t.formatPrefix,_t}B({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})},function(ue,ht,j){"use strict";j.r(ht);var _t=j(43);j.d(ht,"formatDefaultLocale",function(){return _t.a}),j.d(ht,"format",function(){return _t.b}),j.d(ht,"formatPrefix",function(){return _t.c});var m=j(40);j.d(ht,"formatLocale",function(){return m.a});var y=j(25);j.d(ht,"formatSpecifier",function(){return y.b}),j.d(ht,"FormatSpecifier",function(){return y.a});var R=j(63);j.d(ht,"precisionFixed",function(){return R.a});var B=j(64);j.d(ht,"precisionPrefix",function(){return B.a});var et=j(65);j.d(ht,"precisionRound",function(){return et.a})},function(ue,ht,j){"use strict";j.d(ht,"b",function(){return m}),j.d(ht,"c",function(){return y}),j.d(ht,"d",function(){return R}),j.d(ht,"e",function(){return B}),j.d(ht,"a",function(){return K});var _t,m,y,R,B,et=j(54);function K(J){return _t=Object(et.a)(J),m=_t.format,y=_t.parse,R=_t.utcFormat,B=_t.utcParse,_t}K({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})},function(ue,ht,j){"use strict";j.r(ht);function _t(){}function m(d,L){var M=new _t;if(d instanceof _t)d.each(function(u,C){M.set(C,u)});else if(Array.isArray(d)){var s,_=-1,w=d.length;if(L==null)for(;++_=s.length)return d!=null&&o.sort(d),L!=null?L(o):o;for(var S,v,g,x=-1,p=o.length,l=s[u++],f=y(),b=C();++xs.length)return C;var S,v=_[E-1];return L!=null&&E>=s.length?S=C.entries():(S=[],C.each(function(g,x){S.push({key:x,values:u(g,E)})})),v!=null?S.sort(function(g,x){return v(g.key,x.key)}):S}(w(o,0,K,J),0)},key:function(o){return s.push(o),M},sortKeys:function(o){return _[s.length-1]=o,M},sortValues:function(o){return d=o,M},rollup:function(o){return L=o,M}}};function B(){return{}}function et(d,L,M){d[L]=M}function K(){return y()}function J(d,L,M){d.set(L,M)}function q(){}var Z=y.prototype;function tt(d,L){var M=new q;if(d instanceof q)d.each(function(w){M.add(w)});else if(d){var s=-1,_=d.length;if(L==null)for(;++s<_;)M.add(d[s]);else for(;++s<_;)M.add(L(d[s],s,d))}return M}q.prototype=tt.prototype={constructor:q,has:Z.has,add:function(d){return this["$"+(d+="")]=d,this},remove:Z.remove,clear:Z.clear,values:Z.keys,size:Z.size,empty:Z.empty,each:Z.each};var H=tt,X=function(d){var L=[];for(var M in d)L.push(M);return L},F=function(d){var L=[];for(var M in d)L.push(d[M]);return L},U=function(d){var L=[];for(var M in d)L.push({key:M,value:d[M]});return L};j.d(ht,"nest",function(){return R}),j.d(ht,"set",function(){return H}),j.d(ht,"map",function(){return y}),j.d(ht,"keys",function(){return X}),j.d(ht,"values",function(){return F}),j.d(ht,"entries",function(){return U})},function(ue,ht,j){"use strict";j.d(ht,"b",function(){return y});var _t=j(0),m=Object(_t.a)(function(R){R.setDate(1),R.setHours(0,0,0,0)},function(R,B){R.setMonth(R.getMonth()+B)},function(R,B){return B.getMonth()-R.getMonth()+12*(B.getFullYear()-R.getFullYear())},function(R){return R.getMonth()});ht.a=m;var y=m.range},function(ue,ht,j){"use strict";j.d(ht,"b",function(){return R});var _t=j(0),m=j(1),y=Object(_t.a)(function(B){B.setTime(B-B.getMilliseconds()-B.getSeconds()*m.d-B.getMinutes()*m.c)},function(B,et){B.setTime(+B+et*m.b)},function(B,et){return(et-B)/m.b},function(B){return B.getHours()});ht.a=y;var R=y.range},function(ue,ht,j){"use strict";j.d(ht,"b",function(){return R});var _t=j(0),m=j(1),y=Object(_t.a)(function(B){B.setTime(B-B.getMilliseconds()-B.getSeconds()*m.d)},function(B,et){B.setTime(+B+et*m.c)},function(B,et){return(et-B)/m.c},function(B){return B.getMinutes()});ht.a=y;var R=y.range},function(ue,ht,j){"use strict";j.d(ht,"b",function(){return y});var _t=j(0),m=Object(_t.a)(function(R){R.setUTCDate(1),R.setUTCHours(0,0,0,0)},function(R,B){R.setUTCMonth(R.getUTCMonth()+B)},function(R,B){return B.getUTCMonth()-R.getUTCMonth()+12*(B.getUTCFullYear()-R.getUTCFullYear())},function(R){return R.getUTCMonth()});ht.a=m;var y=m.range},function(ue,ht,j){"use strict";j.d(ht,"b",function(){return R});var _t=j(0),m=j(1),y=Object(_t.a)(function(B){B.setUTCMinutes(0,0,0)},function(B,et){B.setTime(+B+et*m.b)},function(B,et){return(et-B)/m.b},function(B){return B.getUTCHours()});ht.a=y;var R=y.range},function(ue,ht,j){"use strict";j.d(ht,"b",function(){return R});var _t=j(0),m=j(1),y=Object(_t.a)(function(B){B.setUTCSeconds(0,0)},function(B,et){B.setTime(+B+et*m.c)},function(B,et){return(et-B)/m.c},function(B){return B.getUTCMinutes()});ht.a=y;var R=y.range},function(ue,ht,j){"use strict";var _t=j(26);ht.a=function(m){var y=m.length;return function(R){var B=Math.floor(((R%=1)<0?++R:R)*y),et=m[(B+y-1)%y],K=m[B%y],J=m[(B+1)%y],q=m[(B+2)%y];return Object(_t.a)((R-B/y)*y,et,K,J,q)}}},function(ue,ht,j){"use strict";j.d(ht,"a",function(){return Z});var _t=j(4),m=j(28),y=j(3),R=j(27),B=j(15),et=j(16);function K(Ot){if(0<=Ot.y&&Ot.y<100){var Bt=new Date(-1,Ot.m,Ot.d,Ot.H,Ot.M,Ot.S,Ot.L);return Bt.setFullYear(Ot.y),Bt}return new Date(Ot.y,Ot.m,Ot.d,Ot.H,Ot.M,Ot.S,Ot.L)}function J(Ot){if(0<=Ot.y&&Ot.y<100){var Bt=new Date(Date.UTC(-1,Ot.m,Ot.d,Ot.H,Ot.M,Ot.S,Ot.L));return Bt.setUTCFullYear(Ot.y),Bt}return new Date(Date.UTC(Ot.y,Ot.m,Ot.d,Ot.H,Ot.M,Ot.S,Ot.L))}function q(Ot,Bt,Ut){return{y:Ot,m:Bt,d:Ut,H:0,M:0,S:0,L:0}}function Z(Ot){var Bt=Ot.dateTime,Ut=Ot.date,zt=Ot.time,ce=Ot.periods,we=Ot.days,ye=Ot.shortDays,qe=Ot.months,hn=Ot.shortMonths,yn=L(ce),Nn=M(ce),mn=L(we),Mn=M(we),Kn=L(ye),fr=M(ye),ge=L(qe),Ie=M(qe),Ge=L(hn),ve=M(hn),Le={a:function(Me){return ye[Me.getDay()]},A:function(Me){return we[Me.getDay()]},b:function(Me){return hn[Me.getMonth()]},B:function(Me){return qe[Me.getMonth()]},c:null,d:nt,e:nt,f:I,H:dt,I:mt,j:Et,L:Mt,m:Y,M:rt,p:function(Me){return ce[+(Me.getHours()>=12)]},q:function(Me){return 1+~~(Me.getMonth()/3)},Q:Kt,s:te,S:ot,u:D,U:P,V:W,w:lt,W:it,x:null,X:null,y:vt,Y:pt,Z:xt,"%":Jt},Ue={a:function(Me){return ye[Me.getUTCDay()]},A:function(Me){return we[Me.getUTCDay()]},b:function(Me){return hn[Me.getUTCMonth()]},B:function(Me){return qe[Me.getUTCMonth()]},c:null,d:Ct,e:Ct,f:Rt,H:Tt,I:Nt,j:gt,L:wt,m:jt,M:Zt,p:function(Me){return ce[+(Me.getUTCHours()>=12)]},q:function(Me){return 1+~~(Me.getUTCMonth()/3)},Q:Kt,s:te,S:ne,u:Wt,U:le,V:fe,w:xe,W:be,x:null,X:null,y:Ye,Y:tn,Z:on,"%":Jt},Oe={a:function(Me,en,xn){var Te=Kn.exec(en.slice(xn));return Te?(Me.w=fr[Te[0].toLowerCase()],xn+Te[0].length):-1},A:function(Me,en,xn){var Te=mn.exec(en.slice(xn));return Te?(Me.w=Mn[Te[0].toLowerCase()],xn+Te[0].length):-1},b:function(Me,en,xn){var Te=Ge.exec(en.slice(xn));return Te?(Me.m=ve[Te[0].toLowerCase()],xn+Te[0].length):-1},B:function(Me,en,xn){var Te=ge.exec(en.slice(xn));return Te?(Me.m=Ie[Te[0].toLowerCase()],xn+Te[0].length):-1},c:function(Me,en,xn){return Sn(Me,Bt,en,xn)},d:x,e:x,f:T,H:l,I:l,j:p,L:z,m:g,M:f,p:function(Me,en,xn){var Te=yn.exec(en.slice(xn));return Te?(Me.p=Nn[Te[0].toLowerCase()],xn+Te[0].length):-1},q:v,Q,s:st,S:b,u:_,U:w,V:o,w:s,W:u,x:function(Me,en,xn){return Sn(Me,Ut,en,xn)},X:function(Me,en,xn){return Sn(Me,zt,en,xn)},y:E,Y:C,Z:S,"%":k};function De(Me,en){return function(xn){var Te,bn,nn,fn=[],wn=-1,vn=0,cr=Me.length;for(xn instanceof Date||(xn=new Date(+xn));++wn53)return null;"w"in nn||(nn.w=1),"Z"in nn?(bn=(Te=J(q(nn.y,0,1))).getUTCDay(),Te=bn>4||bn===0?_t.c.ceil(Te):Object(_t.c)(Te),Te=m.a.offset(Te,7*(nn.V-1)),nn.y=Te.getUTCFullYear(),nn.m=Te.getUTCMonth(),nn.d=Te.getUTCDate()+(nn.w+6)%7):(bn=(Te=K(q(nn.y,0,1))).getDay(),Te=bn>4||bn===0?y.c.ceil(Te):Object(y.c)(Te),Te=R.b.offset(Te,7*(nn.V-1)),nn.y=Te.getFullYear(),nn.m=Te.getMonth(),nn.d=Te.getDate()+(nn.w+6)%7)}else("W"in nn||"U"in nn)&&("w"in nn||(nn.w="u"in nn?nn.u%7:"W"in nn?1:0),bn="Z"in nn?J(q(nn.y,0,1)).getUTCDay():K(q(nn.y,0,1)).getDay(),nn.m=0,nn.d="W"in nn?(nn.w+6)%7+7*nn.W-(bn+5)%7:nn.w+7*nn.U-(bn+6)%7);return"Z"in nn?(nn.H+=nn.Z/100|0,nn.M+=nn.Z%100,J(nn)):K(nn)}}function Sn(Me,en,xn,Te){for(var bn,nn,fn=0,wn=en.length,vn=xn.length;fn=vn)return-1;if((bn=en.charCodeAt(fn++))===37){if(bn=en.charAt(fn++),!(nn=Oe[bn in tt?en.charAt(fn++):bn])||(Te=nn(Me,xn,Te))<0)return-1}else if(bn!=xn.charCodeAt(Te++))return-1}return Te}return Le.x=De(Ut,Le),Le.X=De(zt,Le),Le.c=De(Bt,Le),Ue.x=De(Ut,Ue),Ue.X=De(zt,Ue),Ue.c=De(Bt,Ue),{format:function(Me){var en=De(Me+="",Le);return en.toString=function(){return Me},en},parse:function(Me){var en=Ze(Me+="",!1);return en.toString=function(){return Me},en},utcFormat:function(Me){var en=De(Me+="",Ue);return en.toString=function(){return Me},en},utcParse:function(Me){var en=Ze(Me+="",!0);return en.toString=function(){return Me},en}}}var tt={"-":"",_:" ",0:"0"},H=/^\s*\d+/,X=/^%/,F=/[\\^$*+?|[\]().{}]/g;function U(Ot,Bt,Ut){var zt=Ot<0?"-":"",ce=(zt?-Ot:Ot)+"",we=ce.length;return zt+(we68?1900:2e3),Ut+zt[0].length):-1}function S(Ot,Bt,Ut){var zt=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Bt.slice(Ut,Ut+6));return zt?(Ot.Z=zt[1]?0:-(zt[2]+(zt[3]||"00")),Ut+zt[0].length):-1}function v(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+1));return zt?(Ot.q=3*zt[0]-3,Ut+zt[0].length):-1}function g(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+2));return zt?(Ot.m=zt[0]-1,Ut+zt[0].length):-1}function x(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+2));return zt?(Ot.d=+zt[0],Ut+zt[0].length):-1}function p(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+3));return zt?(Ot.m=0,Ot.d=+zt[0],Ut+zt[0].length):-1}function l(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+2));return zt?(Ot.H=+zt[0],Ut+zt[0].length):-1}function f(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+2));return zt?(Ot.M=+zt[0],Ut+zt[0].length):-1}function b(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+2));return zt?(Ot.S=+zt[0],Ut+zt[0].length):-1}function z(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+3));return zt?(Ot.L=+zt[0],Ut+zt[0].length):-1}function T(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+6));return zt?(Ot.L=Math.floor(zt[0]/1e3),Ut+zt[0].length):-1}function k(Ot,Bt,Ut){var zt=X.exec(Bt.slice(Ut,Ut+1));return zt?Ut+zt[0].length:-1}function Q(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut));return zt?(Ot.Q=+zt[0],Ut+zt[0].length):-1}function st(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut));return zt?(Ot.s=+zt[0],Ut+zt[0].length):-1}function nt(Ot,Bt){return U(Ot.getDate(),Bt,2)}function dt(Ot,Bt){return U(Ot.getHours(),Bt,2)}function mt(Ot,Bt){return U(Ot.getHours()%12||12,Bt,2)}function Et(Ot,Bt){return U(1+R.b.count(Object(B.a)(Ot),Ot),Bt,3)}function Mt(Ot,Bt){return U(Ot.getMilliseconds(),Bt,3)}function I(Ot,Bt){return Mt(Ot,Bt)+"000"}function Y(Ot,Bt){return U(Ot.getMonth()+1,Bt,2)}function rt(Ot,Bt){return U(Ot.getMinutes(),Bt,2)}function ot(Ot,Bt){return U(Ot.getSeconds(),Bt,2)}function D(Ot){var Bt=Ot.getDay();return Bt===0?7:Bt}function P(Ot,Bt){return U(y.g.count(Object(B.a)(Ot)-1,Ot),Bt,2)}function W(Ot,Bt){var Ut=Ot.getDay();return Ot=Ut>=4||Ut===0?Object(y.i)(Ot):y.i.ceil(Ot),U(y.i.count(Object(B.a)(Ot),Ot)+(Object(B.a)(Ot).getDay()===4),Bt,2)}function lt(Ot){return Ot.getDay()}function it(Ot,Bt){return U(y.c.count(Object(B.a)(Ot)-1,Ot),Bt,2)}function vt(Ot,Bt){return U(Ot.getFullYear()%100,Bt,2)}function pt(Ot,Bt){return U(Ot.getFullYear()%1e4,Bt,4)}function xt(Ot){var Bt=Ot.getTimezoneOffset();return(Bt>0?"-":(Bt*=-1,"+"))+U(Bt/60|0,"0",2)+U(Bt%60,"0",2)}function Ct(Ot,Bt){return U(Ot.getUTCDate(),Bt,2)}function Tt(Ot,Bt){return U(Ot.getUTCHours(),Bt,2)}function Nt(Ot,Bt){return U(Ot.getUTCHours()%12||12,Bt,2)}function gt(Ot,Bt){return U(1+m.a.count(Object(et.a)(Ot),Ot),Bt,3)}function wt(Ot,Bt){return U(Ot.getUTCMilliseconds(),Bt,3)}function Rt(Ot,Bt){return wt(Ot,Bt)+"000"}function jt(Ot,Bt){return U(Ot.getUTCMonth()+1,Bt,2)}function Zt(Ot,Bt){return U(Ot.getUTCMinutes(),Bt,2)}function ne(Ot,Bt){return U(Ot.getUTCSeconds(),Bt,2)}function Wt(Ot){var Bt=Ot.getUTCDay();return Bt===0?7:Bt}function le(Ot,Bt){return U(_t.g.count(Object(et.a)(Ot)-1,Ot),Bt,2)}function fe(Ot,Bt){var Ut=Ot.getUTCDay();return Ot=Ut>=4||Ut===0?Object(_t.i)(Ot):_t.i.ceil(Ot),U(_t.i.count(Object(et.a)(Ot),Ot)+(Object(et.a)(Ot).getUTCDay()===4),Bt,2)}function xe(Ot){return Ot.getUTCDay()}function be(Ot,Bt){return U(_t.c.count(Object(et.a)(Ot)-1,Ot),Bt,2)}function Ye(Ot,Bt){return U(Ot.getUTCFullYear()%100,Bt,2)}function tn(Ot,Bt){return U(Ot.getUTCFullYear()%1e4,Bt,4)}function on(){return"+0000"}function Jt(){return"%"}function Kt(Ot){return+Ot}function te(Ot){return Math.floor(+Ot/1e3)}},function(ue,ht,j){"use strict";var _t=j(6),m=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,y=new RegExp(m.source,"g");ht.a=function(R,B){var et,K,J,q=m.lastIndex=y.lastIndex=0,Z=-1,tt=[],H=[];for(R+="",B+="";(et=m.exec(R))&&(K=y.exec(B));)(J=K.index)>q&&(J=B.slice(q,J),tt[Z]?tt[Z]+=J:tt[++Z]=J),(et=et[0])===(K=K[0])?tt[Z]?tt[Z]+=K:tt[++Z]=K:(tt[++Z]=null,H.push({i:Z,x:Object(_t.a)(et,K)})),q=y.lastIndex;return q=0&&(Z=q.slice(tt+1),q=q.slice(0,tt)),q&&!J.hasOwnProperty(q))throw new Error("unknown type: "+q);return{type:q,name:Z}})}function B(K,J){for(var q,Z=0,tt=K.length;Z0)for(var q,Z,tt=new Array(q),H=0;H=0))throw _(M,new Error(pt.tagName+"@"+Ct));for(var Nt=xt.length-1;Tt"&&">")||pt=="&"&&"&"||pt=='"'&&"""||"&#"+pt.charCodeAt()+";"}function l(pt,xt){if(xt(pt))return!0;if(pt=pt.firstChild)do if(l(pt,xt))return!0;while(pt=pt.nextSibling)}function f(){}function b(pt,xt,Ct,Tt){pt&&pt._inc++,Ct.namespaceURI=="http://www.w3.org/2000/xmlns/"&&delete xt._nsMap[Ct.prefix?Ct.localName:""]}function z(pt,xt,Ct){if(pt&&pt._inc){pt._inc++;var Tt=xt.childNodes;if(Ct)Tt[Tt.length++]=Ct;else{for(var Nt=xt.firstChild,gt=0;Nt;)Tt[gt++]=Nt,Nt=Nt.nextSibling;Tt.length=gt}}}function T(pt,xt){var Ct=xt.previousSibling,Tt=xt.nextSibling;return Ct?Ct.nextSibling=Tt:pt.firstChild=Tt,Tt?Tt.previousSibling=Ct:pt.lastChild=Ct,z(pt.ownerDocument,pt),xt}function k(pt,xt,Ct){var Tt=xt.parentNode;if(Tt&&Tt.removeChild(xt),xt.nodeType===X){var Nt=xt.firstChild;if(Nt==null)return xt;var gt=xt.lastChild}else Nt=gt=xt;var wt=Ct?Ct.previousSibling:pt.lastChild;Nt.previousSibling=wt,gt.nextSibling=Ct,wt?wt.nextSibling=Nt:pt.firstChild=Nt,Ct==null?pt.lastChild=gt:Ct.previousSibling=gt;do Nt.parentNode=pt;while(Nt!==gt&&(Nt=Nt.nextSibling));return z(pt.ownerDocument||pt,pt),xt.nodeType==X&&(xt.firstChild=xt.lastChild=null),xt}function Q(){this._nsMap={}}function st(){}function nt(){}function dt(){}function mt(){}function Et(){}function Mt(){}function I(){}function Y(){}function rt(){}function ot(){}function D(){}function P(){}function W(pt,xt){var Ct=[],Tt=this.nodeType==9?this.documentElement:this,Nt=Tt.prefix,gt=Tt.namespaceURI;if(gt&&Nt==null&&(Nt=Tt.lookupPrefix(gt))==null)var wt=[{namespace:gt,prefix:null}];return it(this,Ct,pt,xt,wt),Ct.join("")}function lt(pt,xt,Ct){var Tt=pt.prefix||"",Nt=pt.namespaceURI;if(!Tt&&!Nt||Tt==="xml"&&Nt==="http://www.w3.org/XML/1998/namespace"||Nt=="http://www.w3.org/2000/xmlns/")return!1;for(var gt=Ct.length;gt--;){var wt=Ct[gt];if(wt.prefix==Tt)return wt.namespace!=Nt}return!0}function it(pt,xt,Ct,Tt,Nt){if(Tt){if(!(pt=Tt(pt)))return;if(typeof pt=="string")return void xt.push(pt)}switch(pt.nodeType){case y:Nt||(Nt=[]),Nt.length;var gt=pt.attributes,wt=gt.length,Rt=pt.firstChild,jt=pt.tagName;Ct=pt.namespaceURI==="http://www.w3.org/1999/xhtml"||Ct,xt.push("<",jt);for(var Zt=0;Zt"),Ct&&/^script$/i.test(jt))for(;Rt;)Rt.data?xt.push(Rt.data):it(Rt,xt,Ct,Tt,Nt),Rt=Rt.nextSibling;else for(;Rt;)it(Rt,xt,Ct,Tt,Nt),Rt=Rt.nextSibling;xt.push("")}else xt.push("/>");return;case tt:case X:for(Rt=pt.firstChild;Rt;)it(Rt,xt,Ct,Tt,Nt),Rt=Rt.nextSibling;return;case R:return xt.push(" ",pt.name,'="',pt.value.replace(/[<&"]/g,p),'"');case B:return xt.push(pt.data.replace(/[<&]/g,p));case et:return xt.push("");case Z:return xt.push("");case H:var xe=pt.publicId,be=pt.systemId;if(xt.push("');else if(be&&be!=".")xt.push(' SYSTEM "',be,'">');else{var Ye=pt.internalSubset;Ye&&xt.push(" [",Ye,"]"),xt.push(">")}return;case q:return xt.push("");case K:return xt.push("&",pt.nodeName,";");default:xt.push("??",pt.nodeName)}}function vt(pt,xt,Ct){pt[xt]=Ct}_.prototype=Error.prototype,j(U,_),w.prototype={length:0,item:function(pt){return this[pt]||null},toString:function(pt,xt){for(var Ct=[],Tt=0;Tt0},lookupPrefix:function(pt){for(var xt=this;xt;){var Ct=xt._nsMap;if(Ct){for(var Tt in Ct)if(Ct[Tt]==pt)return Tt}xt=xt.nodeType==R?xt.ownerDocument:xt.parentNode}return null},lookupNamespaceURI:function(pt){for(var xt=this;xt;){var Ct=xt._nsMap;if(Ct&&pt in Ct)return Ct[pt];xt=xt.nodeType==R?xt.ownerDocument:xt.parentNode}return null},isDefaultNamespace:function(pt){return this.lookupPrefix(pt)==null}},j(m,x),j(m,x.prototype),f.prototype={nodeName:"#document",nodeType:tt,doctype:null,documentElement:null,_inc:1,insertBefore:function(pt,xt){if(pt.nodeType==X){for(var Ct=pt.firstChild;Ct;){var Tt=Ct.nextSibling;this.insertBefore(Ct,xt),Ct=Tt}return pt}return this.documentElement==null&&pt.nodeType==y&&(this.documentElement=pt),k(this,pt,xt),pt.ownerDocument=this,pt},removeChild:function(pt){return this.documentElement==pt&&(this.documentElement=null),T(this,pt)},importNode:function(pt,xt){return function Ct(Tt,Nt,gt){var wt;switch(Nt.nodeType){case y:(wt=Nt.cloneNode(!1)).ownerDocument=Tt;case X:break;case R:gt=!0}if(wt||(wt=Nt.cloneNode(!1)),wt.ownerDocument=Tt,wt.parentNode=null,gt)for(var Rt=Nt.firstChild;Rt;)wt.appendChild(Ct(Tt,Rt,gt)),Rt=Rt.nextSibling;return wt}(this,pt,xt)},getElementById:function(pt){var xt=null;return l(this.documentElement,function(Ct){if(Ct.nodeType==y&&Ct.getAttribute("id")==pt)return xt=Ct,!0}),xt},createElement:function(pt){var xt=new Q;return xt.ownerDocument=this,xt.nodeName=pt,xt.tagName=pt,xt.childNodes=new w,(xt.attributes=new C)._ownerElement=xt,xt},createDocumentFragment:function(){var pt=new ot;return pt.ownerDocument=this,pt.childNodes=new w,pt},createTextNode:function(pt){var xt=new dt;return xt.ownerDocument=this,xt.appendData(pt),xt},createComment:function(pt){var xt=new mt;return xt.ownerDocument=this,xt.appendData(pt),xt},createCDATASection:function(pt){var xt=new Et;return xt.ownerDocument=this,xt.appendData(pt),xt},createProcessingInstruction:function(pt,xt){var Ct=new D;return Ct.ownerDocument=this,Ct.tagName=Ct.target=pt,Ct.nodeValue=Ct.data=xt,Ct},createAttribute:function(pt){var xt=new st;return xt.ownerDocument=this,xt.name=pt,xt.nodeName=pt,xt.localName=pt,xt.specified=!0,xt},createEntityReference:function(pt){var xt=new rt;return xt.ownerDocument=this,xt.nodeName=pt,xt},createElementNS:function(pt,xt){var Ct=new Q,Tt=xt.split(":"),Nt=Ct.attributes=new C;return Ct.childNodes=new w,Ct.ownerDocument=this,Ct.nodeName=xt,Ct.tagName=xt,Ct.namespaceURI=pt,Tt.length==2?(Ct.prefix=Tt[0],Ct.localName=Tt[1]):Ct.localName=xt,Nt._ownerElement=Ct,Ct},createAttributeNS:function(pt,xt){var Ct=new st,Tt=xt.split(":");return Ct.ownerDocument=this,Ct.nodeName=xt,Ct.name=xt,Ct.namespaceURI=pt,Ct.specified=!0,Tt.length==2?(Ct.prefix=Tt[0],Ct.localName=Tt[1]):Ct.localName=xt,Ct}},_t(f,x),Q.prototype={nodeType:y,hasAttribute:function(pt){return this.getAttributeNode(pt)!=null},getAttribute:function(pt){var xt=this.getAttributeNode(pt);return xt&&xt.value||""},getAttributeNode:function(pt){return this.attributes.getNamedItem(pt)},setAttribute:function(pt,xt){var Ct=this.ownerDocument.createAttribute(pt);Ct.value=Ct.nodeValue=""+xt,this.setAttributeNode(Ct)},removeAttribute:function(pt){var xt=this.getAttributeNode(pt);xt&&this.removeAttributeNode(xt)},appendChild:function(pt){return pt.nodeType===X?this.insertBefore(pt,null):function(xt,Ct){var Tt=Ct.parentNode;if(Tt){var Nt=xt.lastChild;Tt.removeChild(Ct),Nt=xt.lastChild}return Nt=xt.lastChild,Ct.parentNode=xt,Ct.previousSibling=Nt,Ct.nextSibling=null,Nt?Nt.nextSibling=Ct:xt.firstChild=Ct,xt.lastChild=Ct,z(xt.ownerDocument,xt,Ct),Ct}(this,pt)},setAttributeNode:function(pt){return this.attributes.setNamedItem(pt)},setAttributeNodeNS:function(pt){return this.attributes.setNamedItemNS(pt)},removeAttributeNode:function(pt){return this.attributes.removeNamedItem(pt.nodeName)},removeAttributeNS:function(pt,xt){var Ct=this.getAttributeNodeNS(pt,xt);Ct&&this.removeAttributeNode(Ct)},hasAttributeNS:function(pt,xt){return this.getAttributeNodeNS(pt,xt)!=null},getAttributeNS:function(pt,xt){var Ct=this.getAttributeNodeNS(pt,xt);return Ct&&Ct.value||""},setAttributeNS:function(pt,xt,Ct){var Tt=this.ownerDocument.createAttributeNS(pt,xt);Tt.value=Tt.nodeValue=""+Ct,this.setAttributeNode(Tt)},getAttributeNodeNS:function(pt,xt){return this.attributes.getNamedItemNS(pt,xt)},getElementsByTagName:function(pt){return new o(this,function(xt){var Ct=[];return l(xt,function(Tt){Tt===xt||Tt.nodeType!=y||pt!=="*"&&Tt.tagName!=pt||Ct.push(Tt)}),Ct})},getElementsByTagNameNS:function(pt,xt){return new o(this,function(Ct){var Tt=[];return l(Ct,function(Nt){Nt===Ct||Nt.nodeType!==y||pt!=="*"&&Nt.namespaceURI!==pt||xt!=="*"&&Nt.localName!=xt||Tt.push(Nt)}),Tt})}},f.prototype.getElementsByTagName=Q.prototype.getElementsByTagName,f.prototype.getElementsByTagNameNS=Q.prototype.getElementsByTagNameNS,_t(Q,x),st.prototype.nodeType=R,_t(st,x),nt.prototype={data:"",substringData:function(pt,xt){return this.data.substring(pt,pt+xt)},appendData:function(pt){pt=this.data+pt,this.nodeValue=this.data=pt,this.length=pt.length},insertData:function(pt,xt){this.replaceData(pt,0,xt)},appendChild:function(pt){throw new Error(d[L])},deleteData:function(pt,xt){this.replaceData(pt,xt,"")},replaceData:function(pt,xt,Ct){Ct=this.data.substring(0,pt)+Ct+this.data.substring(pt+xt),this.nodeValue=this.data=Ct,this.length=Ct.length}},_t(nt,x),dt.prototype={nodeName:"#text",nodeType:B,splitText:function(pt){var xt=this.data,Ct=xt.substring(pt);xt=xt.substring(0,pt),this.data=this.nodeValue=xt,this.length=xt.length;var Tt=this.ownerDocument.createTextNode(Ct);return this.parentNode&&this.parentNode.insertBefore(Tt,this.nextSibling),Tt}},_t(dt,nt),mt.prototype={nodeName:"#comment",nodeType:Z},_t(mt,nt),Et.prototype={nodeName:"#cdata-section",nodeType:et},_t(Et,nt),Mt.prototype.nodeType=H,_t(Mt,x),I.prototype.nodeType=F,_t(I,x),Y.prototype.nodeType=J,_t(Y,x),rt.prototype.nodeType=K,_t(rt,x),ot.prototype.nodeName="#document-fragment",ot.prototype.nodeType=X,_t(ot,x),D.prototype.nodeType=q,_t(D,x),P.prototype.serializeToString=function(pt,xt,Ct){return W.call(pt,xt,Ct)},x.prototype.toString=W;try{Object.defineProperty&&(Object.defineProperty(o.prototype,"length",{get:function(){return u(this),this.$$length}}),Object.defineProperty(x.prototype,"textContent",{get:function(){return function pt(xt){switch(xt.nodeType){case y:case X:var Ct=[];for(xt=xt.firstChild;xt;)xt.nodeType!==7&&xt.nodeType!==8&&Ct.push(pt(xt)),xt=xt.nextSibling;return Ct.join("");default:return xt.nodeValue}}(this)},set:function(pt){switch(this.nodeType){case y:case X:for(;this.firstChild;)this.removeChild(this.firstChild);(pt||String(pt))&&this.appendChild(this.ownerDocument.createTextNode(pt));break;default:this.data=pt,this.value=pt,this.nodeValue=pt}}}),vt=function(pt,xt,Ct){pt["$$"+xt]=Ct})}catch(pt){}ht.DOMImplementation=g,ht.XMLSerializer=P},,function(ue,ht,j){"use strict";j.r(ht);var _t=Math.PI,m=2*_t,y=m-1e-6;function R(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function B(){return new R}R.prototype=B.prototype={constructor:R,moveTo:function(yt,It){this._+="M"+(this._x0=this._x1=+yt)+","+(this._y0=this._y1=+It)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(yt,It){this._+="L"+(this._x1=+yt)+","+(this._y1=+It)},quadraticCurveTo:function(yt,It,Xt,At){this._+="Q"+ +yt+","+ +It+","+(this._x1=+Xt)+","+(this._y1=+At)},bezierCurveTo:function(yt,It,Xt,At,Yt,ae){this._+="C"+ +yt+","+ +It+","+ +Xt+","+ +At+","+(this._x1=+Yt)+","+(this._y1=+ae)},arcTo:function(yt,It,Xt,At,Yt){yt=+yt,It=+It,Xt=+Xt,At=+At,Yt=+Yt;var ae=this._x1,he=this._y1,de=Xt-yt,ke=At-It,Ke=ae-yt,He=he-It,rn=Ke*Ke+He*He;if(Yt<0)throw new Error("negative radius: "+Yt);if(this._x1===null)this._+="M"+(this._x1=yt)+","+(this._y1=It);else if(rn>1e-6)if(Math.abs(He*de-ke*Ke)>1e-6&&Yt){var En=Xt-ae,Ln=At-he,zn=de*de+ke*ke,pr=En*En+Ln*Ln,ir=Math.sqrt(zn),Xn=Math.sqrt(rn),lr=Yt*Math.tan((_t-Math.acos((zn+rn-pr)/(2*ir*Xn)))/2),Cr=lr/Xn,wr=lr/ir;Math.abs(Cr-1)>1e-6&&(this._+="L"+(yt+Cr*Ke)+","+(It+Cr*He)),this._+="A"+Yt+","+Yt+",0,0,"+ +(He*En>Ke*Ln)+","+(this._x1=yt+wr*de)+","+(this._y1=It+wr*ke)}else this._+="L"+(this._x1=yt)+","+(this._y1=It)},arc:function(yt,It,Xt,At,Yt,ae){yt=+yt,It=+It,ae=!!ae;var he=(Xt=+Xt)*Math.cos(At),de=Xt*Math.sin(At),ke=yt+he,Ke=It+de,He=1^ae,rn=ae?At-Yt:Yt-At;if(Xt<0)throw new Error("negative radius: "+Xt);this._x1===null?this._+="M"+ke+","+Ke:(Math.abs(this._x1-ke)>1e-6||Math.abs(this._y1-Ke)>1e-6)&&(this._+="L"+ke+","+Ke),Xt&&(rn<0&&(rn=rn%m+m),rn>y?this._+="A"+Xt+","+Xt+",0,1,"+He+","+(yt-he)+","+(It-de)+"A"+Xt+","+Xt+",0,1,"+He+","+(this._x1=ke)+","+(this._y1=Ke):rn>1e-6&&(this._+="A"+Xt+","+Xt+",0,"+ +(rn>=_t)+","+He+","+(this._x1=yt+Xt*Math.cos(Yt))+","+(this._y1=It+Xt*Math.sin(Yt))))},rect:function(yt,It,Xt,At){this._+="M"+(this._x0=this._x1=+yt)+","+(this._y0=this._y1=+It)+"h"+ +Xt+"v"+ +At+"h"+-Xt+"Z"},toString:function(){return this._}};var et=B,K=function(yt){return function(){return yt}},J=Math.abs,q=Math.atan2,Z=Math.cos,tt=Math.max,H=Math.min,X=Math.sin,F=Math.sqrt,U=Math.PI,d=U/2,L=2*U;function M(yt){return yt>1?0:yt<-1?U:Math.acos(yt)}function s(yt){return yt>=1?d:yt<=-1?-d:Math.asin(yt)}function _(yt){return yt.innerRadius}function w(yt){return yt.outerRadius}function o(yt){return yt.startAngle}function u(yt){return yt.endAngle}function C(yt){return yt&&yt.padAngle}function E(yt,It,Xt,At,Yt,ae,he,de){var ke=Xt-yt,Ke=At-It,He=he-Yt,rn=de-ae,En=rn*ke-He*Ke;if(!(En*En<1e-12))return[yt+(En=(He*(It-ae)-rn*(yt-Yt))/En)*ke,It+En*Ke]}function S(yt,It,Xt,At,Yt,ae,he){var de=yt-Xt,ke=It-At,Ke=(he?ae:-ae)/F(de*de+ke*ke),He=Ke*ke,rn=-Ke*de,En=yt+He,Ln=It+rn,zn=Xt+He,pr=At+rn,ir=(En+zn)/2,Xn=(Ln+pr)/2,lr=zn-En,Cr=pr-Ln,wr=lr*lr+Cr*Cr,Ir=Yt-ae,$r=En*pr-zn*Ln,ci=(Cr<0?-1:1)*F(tt(0,Ir*Ir*wr-$r*$r)),Ri=($r*Cr-lr*ci)/wr,Pi=(-$r*lr-Cr*ci)/wr,yi=($r*Cr+lr*ci)/wr,Oi=(-$r*lr+Cr*ci)/wr,Li=Ri-ir,Ni=Pi-Xn,Vi=yi-ir,eo=Oi-Xn;return Li*Li+Ni*Ni>Vi*Vi+eo*eo&&(Ri=yi,Pi=Oi),{cx:Ri,cy:Pi,x01:-He,y01:-rn,x11:Ri*(Yt/Ir-1),y11:Pi*(Yt/Ir-1)}}var v=function(){var yt=_,It=w,Xt=K(0),At=null,Yt=o,ae=u,he=C,de=null;function ke(){var Ke,He,rn=+yt.apply(this,arguments),En=+It.apply(this,arguments),Ln=Yt.apply(this,arguments)-d,zn=ae.apply(this,arguments)-d,pr=J(zn-Ln),ir=zn>Ln;if(de||(de=Ke=et()),En1e-12)if(pr>L-1e-12)de.moveTo(En*Z(Ln),En*X(Ln)),de.arc(0,0,En,Ln,zn,!ir),rn>1e-12&&(de.moveTo(rn*Z(zn),rn*X(zn)),de.arc(0,0,rn,zn,Ln,ir));else{var Xn,lr,Cr=Ln,wr=zn,Ir=Ln,$r=zn,ci=pr,Ri=pr,Pi=he.apply(this,arguments)/2,yi=Pi>1e-12&&(At?+At.apply(this,arguments):F(rn*rn+En*En)),Oi=H(J(En-rn)/2,+Xt.apply(this,arguments)),Li=Oi,Ni=Oi;if(yi>1e-12){var Vi=s(yi/rn*X(Pi)),eo=s(yi/En*X(Pi));(ci-=2*Vi)>1e-12?(Ir+=Vi*=ir?1:-1,$r-=Vi):(ci=0,Ir=$r=(Ln+zn)/2),(Ri-=2*eo)>1e-12?(Cr+=eo*=ir?1:-1,wr-=eo):(Ri=0,Cr=wr=(Ln+zn)/2)}var Xi=En*Z(Cr),Eo=En*X(Cr),Ro=rn*Z($r),fo=rn*X($r);if(Oi>1e-12){var ro,wo=En*Z(wr),Go=En*X(wr),ao=rn*Z(Ir),Mi=rn*X(Ir);if(pr1e-12?Ni>1e-12?(Xn=S(ao,Mi,Xi,Eo,En,Ni,ir),lr=S(wo,Go,Ro,fo,En,Ni,ir),de.moveTo(Xn.cx+Xn.x01,Xn.cy+Xn.y01),Ni1e-12&&ci>1e-12?Li>1e-12?(Xn=S(Ro,fo,wo,Go,rn,-Li,ir),lr=S(Xi,Eo,ao,Mi,rn,-Li,ir),de.lineTo(Xn.cx+Xn.x01,Xn.cy+Xn.y01),Li=En;--Ln)de.point(lr[Ln],Cr[Ln]);de.lineEnd(),de.areaEnd()}Xn&&(lr[rn]=+yt(zn,rn,He),Cr[rn]=+Xt(zn,rn,He),de.point(It?+It(zn,rn,He):lr[rn],At?+At(zn,rn,He):Cr[rn]))}if(pr)return de=null,pr+""||null}function Ke(){return f().defined(Yt).curve(he).context(ae)}return ke.x=function(He){return arguments.length?(yt=typeof He=="function"?He:K(+He),It=null,ke):yt},ke.x0=function(He){return arguments.length?(yt=typeof He=="function"?He:K(+He),ke):yt},ke.x1=function(He){return arguments.length?(It=He==null?null:typeof He=="function"?He:K(+He),ke):It},ke.y=function(He){return arguments.length?(Xt=typeof He=="function"?He:K(+He),At=null,ke):Xt},ke.y0=function(He){return arguments.length?(Xt=typeof He=="function"?He:K(+He),ke):Xt},ke.y1=function(He){return arguments.length?(At=He==null?null:typeof He=="function"?He:K(+He),ke):At},ke.lineX0=ke.lineY0=function(){return Ke().x(yt).y(Xt)},ke.lineY1=function(){return Ke().x(yt).y(At)},ke.lineX1=function(){return Ke().x(It).y(Xt)},ke.defined=function(He){return arguments.length?(Yt=typeof He=="function"?He:K(!!He),ke):Yt},ke.curve=function(He){return arguments.length?(he=He,ae!=null&&(de=he(ae)),ke):he},ke.context=function(He){return arguments.length?(He==null?ae=de=null:de=he(ae=He),ke):ae},ke},z=function(yt,It){return Ityt?1:It>=yt?0:NaN},T=function(yt){return yt},k=function(){var yt=T,It=z,Xt=null,At=K(0),Yt=K(L),ae=K(0);function he(de){var ke,Ke,He,rn,En,Ln=de.length,zn=0,pr=new Array(Ln),ir=new Array(Ln),Xn=+At.apply(this,arguments),lr=Math.min(L,Math.max(-L,Yt.apply(this,arguments)-Xn)),Cr=Math.min(Math.abs(lr)/Ln,ae.apply(this,arguments)),wr=Cr*(lr<0?-1:1);for(ke=0;ke0&&(zn+=En);for(It!=null?pr.sort(function(Ir,$r){return It(ir[Ir],ir[$r])}):Xt!=null&&pr.sort(function(Ir,$r){return Xt(de[Ir],de[$r])}),ke=0,He=zn?(lr-Ln*wr)/zn:0;ke0?En*He:0)+wr,ir[Ke]={data:de[Ke],index:ke,value:En,startAngle:Xn,endAngle:rn,padAngle:Cr};return ir}return he.value=function(de){return arguments.length?(yt=typeof de=="function"?de:K(+de),he):yt},he.sortValues=function(de){return arguments.length?(It=de,Xt=null,he):It},he.sort=function(de){return arguments.length?(Xt=de,It=null,he):Xt},he.startAngle=function(de){return arguments.length?(At=typeof de=="function"?de:K(+de),he):At},he.endAngle=function(de){return arguments.length?(Yt=typeof de=="function"?de:K(+de),he):Yt},he.padAngle=function(de){return arguments.length?(ae=typeof de=="function"?de:K(+de),he):ae},he},Q=nt(x);function st(yt){this._curve=yt}function nt(yt){function It(Xt){return new st(yt(Xt))}return It._curve=yt,It}function dt(yt){var It=yt.curve;return yt.angle=yt.x,delete yt.x,yt.radius=yt.y,delete yt.y,yt.curve=function(Xt){return arguments.length?It(nt(Xt)):It()._curve},yt}st.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(yt,It){this._curve.point(It*Math.sin(yt),It*-Math.cos(yt))}};var mt=function(){return dt(f().curve(Q))},Et=function(){var yt=b().curve(Q),It=yt.curve,Xt=yt.lineX0,At=yt.lineX1,Yt=yt.lineY0,ae=yt.lineY1;return yt.angle=yt.x,delete yt.x,yt.startAngle=yt.x0,delete yt.x0,yt.endAngle=yt.x1,delete yt.x1,yt.radius=yt.y,delete yt.y,yt.innerRadius=yt.y0,delete yt.y0,yt.outerRadius=yt.y1,delete yt.y1,yt.lineStartAngle=function(){return dt(Xt())},delete yt.lineX0,yt.lineEndAngle=function(){return dt(At())},delete yt.lineX1,yt.lineInnerRadius=function(){return dt(Yt())},delete yt.lineY0,yt.lineOuterRadius=function(){return dt(ae())},delete yt.lineY1,yt.curve=function(he){return arguments.length?It(nt(he)):It()._curve},yt},Mt=function(yt,It){return[(It=+It)*Math.cos(yt-=Math.PI/2),It*Math.sin(yt)]},I=Array.prototype.slice;function Y(yt){return yt.source}function rt(yt){return yt.target}function ot(yt){var It=Y,Xt=rt,At=p,Yt=l,ae=null;function he(){var de,ke=I.call(arguments),Ke=It.apply(this,ke),He=Xt.apply(this,ke);if(ae||(ae=de=et()),yt(ae,+At.apply(this,(ke[0]=Ke,ke)),+Yt.apply(this,ke),+At.apply(this,(ke[0]=He,ke)),+Yt.apply(this,ke)),de)return ae=null,de+""||null}return he.source=function(de){return arguments.length?(It=de,he):It},he.target=function(de){return arguments.length?(Xt=de,he):Xt},he.x=function(de){return arguments.length?(At=typeof de=="function"?de:K(+de),he):At},he.y=function(de){return arguments.length?(Yt=typeof de=="function"?de:K(+de),he):Yt},he.context=function(de){return arguments.length?(ae=de==null?null:de,he):ae},he}function D(yt,It,Xt,At,Yt){yt.moveTo(It,Xt),yt.bezierCurveTo(It=(It+At)/2,Xt,It,Yt,At,Yt)}function P(yt,It,Xt,At,Yt){yt.moveTo(It,Xt),yt.bezierCurveTo(It,Xt=(Xt+Yt)/2,At,Xt,At,Yt)}function W(yt,It,Xt,At,Yt){var ae=Mt(It,Xt),he=Mt(It,Xt=(Xt+Yt)/2),de=Mt(At,Xt),ke=Mt(At,Yt);yt.moveTo(ae[0],ae[1]),yt.bezierCurveTo(he[0],he[1],de[0],de[1],ke[0],ke[1])}function lt(){return ot(D)}function it(){return ot(P)}function vt(){var yt=ot(W);return yt.angle=yt.x,delete yt.x,yt.radius=yt.y,delete yt.y,yt}var pt={draw:function(yt,It){var Xt=Math.sqrt(It/U);yt.moveTo(Xt,0),yt.arc(0,0,Xt,0,L)}},xt={draw:function(yt,It){var Xt=Math.sqrt(It/5)/2;yt.moveTo(-3*Xt,-Xt),yt.lineTo(-Xt,-Xt),yt.lineTo(-Xt,-3*Xt),yt.lineTo(Xt,-3*Xt),yt.lineTo(Xt,-Xt),yt.lineTo(3*Xt,-Xt),yt.lineTo(3*Xt,Xt),yt.lineTo(Xt,Xt),yt.lineTo(Xt,3*Xt),yt.lineTo(-Xt,3*Xt),yt.lineTo(-Xt,Xt),yt.lineTo(-3*Xt,Xt),yt.closePath()}},Ct=Math.sqrt(1/3),Tt=2*Ct,Nt={draw:function(yt,It){var Xt=Math.sqrt(It/Tt),At=Xt*Ct;yt.moveTo(0,-Xt),yt.lineTo(At,0),yt.lineTo(0,Xt),yt.lineTo(-At,0),yt.closePath()}},gt=Math.sin(U/10)/Math.sin(7*U/10),wt=Math.sin(L/10)*gt,Rt=-Math.cos(L/10)*gt,jt={draw:function(yt,It){var Xt=Math.sqrt(.8908130915292852*It),At=wt*Xt,Yt=Rt*Xt;yt.moveTo(0,-Xt),yt.lineTo(At,Yt);for(var ae=1;ae<5;++ae){var he=L*ae/5,de=Math.cos(he),ke=Math.sin(he);yt.lineTo(ke*Xt,-de*Xt),yt.lineTo(de*At-ke*Yt,ke*At+de*Yt)}yt.closePath()}},Zt={draw:function(yt,It){var Xt=Math.sqrt(It),At=-Xt/2;yt.rect(At,At,Xt,Xt)}},ne=Math.sqrt(3),Wt={draw:function(yt,It){var Xt=-Math.sqrt(It/(3*ne));yt.moveTo(0,2*Xt),yt.lineTo(-ne*Xt,-Xt),yt.lineTo(ne*Xt,-Xt),yt.closePath()}},le=Math.sqrt(3)/2,fe=1/Math.sqrt(12),xe=3*(fe/2+1),be={draw:function(yt,It){var Xt=Math.sqrt(It/xe),At=Xt/2,Yt=Xt*fe,ae=At,he=Xt*fe+Xt,de=-ae,ke=he;yt.moveTo(At,Yt),yt.lineTo(ae,he),yt.lineTo(de,ke),yt.lineTo(-.5*At-le*Yt,le*At+-.5*Yt),yt.lineTo(-.5*ae-le*he,le*ae+-.5*he),yt.lineTo(-.5*de-le*ke,le*de+-.5*ke),yt.lineTo(-.5*At+le*Yt,-.5*Yt-le*At),yt.lineTo(-.5*ae+le*he,-.5*he-le*ae),yt.lineTo(-.5*de+le*ke,-.5*ke-le*de),yt.closePath()}},Ye=[pt,xt,Nt,Zt,jt,Wt,be],tn=function(){var yt=K(pt),It=K(64),Xt=null;function At(){var Yt;if(Xt||(Xt=Yt=et()),yt.apply(this,arguments).draw(Xt,+It.apply(this,arguments)),Yt)return Xt=null,Yt+""||null}return At.type=function(Yt){return arguments.length?(yt=typeof Yt=="function"?Yt:K(Yt),At):yt},At.size=function(Yt){return arguments.length?(It=typeof Yt=="function"?Yt:K(+Yt),At):It},At.context=function(Yt){return arguments.length?(Xt=Yt==null?null:Yt,At):Xt},At},on=function(){};function Jt(yt,It,Xt){yt._context.bezierCurveTo((2*yt._x0+yt._x1)/3,(2*yt._y0+yt._y1)/3,(yt._x0+2*yt._x1)/3,(yt._y0+2*yt._y1)/3,(yt._x0+4*yt._x1+It)/6,(yt._y0+4*yt._y1+Xt)/6)}function Kt(yt){this._context=yt}Kt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Jt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1,this._line?this._context.lineTo(yt,It):this._context.moveTo(yt,It);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Jt(this,yt,It)}this._x0=this._x1,this._x1=yt,this._y0=this._y1,this._y1=It}};var te=function(yt){return new Kt(yt)};function Ot(yt){this._context=yt}Ot.prototype={areaStart:on,areaEnd:on,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1,this._x2=yt,this._y2=It;break;case 1:this._point=2,this._x3=yt,this._y3=It;break;case 2:this._point=3,this._x4=yt,this._y4=It,this._context.moveTo((this._x0+4*this._x1+yt)/6,(this._y0+4*this._y1+It)/6);break;default:Jt(this,yt,It)}this._x0=this._x1,this._x1=yt,this._y0=this._y1,this._y1=It}};var Bt=function(yt){return new Ot(yt)};function Ut(yt){this._context=yt}Ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var Xt=(this._x0+4*this._x1+yt)/6,At=(this._y0+4*this._y1+It)/6;this._line?this._context.lineTo(Xt,At):this._context.moveTo(Xt,At);break;case 3:this._point=4;default:Jt(this,yt,It)}this._x0=this._x1,this._x1=yt,this._y0=this._y1,this._y1=It}};var zt=function(yt){return new Ut(yt)};function ce(yt,It){this._basis=new Kt(yt),this._beta=It}ce.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var yt=this._x,It=this._y,Xt=yt.length-1;if(Xt>0)for(var At,Yt=yt[0],ae=It[0],he=yt[Xt]-Yt,de=It[Xt]-ae,ke=-1;++ke<=Xt;)At=ke/Xt,this._basis.point(this._beta*yt[ke]+(1-this._beta)*(Yt+At*he),this._beta*It[ke]+(1-this._beta)*(ae+At*de));this._x=this._y=null,this._basis.lineEnd()},point:function(yt,It){this._x.push(+yt),this._y.push(+It)}};var we=function yt(It){function Xt(At){return It===1?new Kt(At):new ce(At,It)}return Xt.beta=function(At){return yt(+At)},Xt}(.85);function ye(yt,It,Xt){yt._context.bezierCurveTo(yt._x1+yt._k*(yt._x2-yt._x0),yt._y1+yt._k*(yt._y2-yt._y0),yt._x2+yt._k*(yt._x1-It),yt._y2+yt._k*(yt._y1-Xt),yt._x2,yt._y2)}function qe(yt,It){this._context=yt,this._k=(1-It)/6}qe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ye(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1,this._line?this._context.lineTo(yt,It):this._context.moveTo(yt,It);break;case 1:this._point=2,this._x1=yt,this._y1=It;break;case 2:this._point=3;default:ye(this,yt,It)}this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var hn=function yt(It){function Xt(At){return new qe(At,It)}return Xt.tension=function(At){return yt(+At)},Xt}(0);function yn(yt,It){this._context=yt,this._k=(1-It)/6}yn.prototype={areaStart:on,areaEnd:on,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1,this._x3=yt,this._y3=It;break;case 1:this._point=2,this._context.moveTo(this._x4=yt,this._y4=It);break;case 2:this._point=3,this._x5=yt,this._y5=It;break;default:ye(this,yt,It)}this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var Nn=function yt(It){function Xt(At){return new yn(At,It)}return Xt.tension=function(At){return yt(+At)},Xt}(0);function mn(yt,It){this._context=yt,this._k=(1-It)/6}mn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ye(this,yt,It)}this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var Mn=function yt(It){function Xt(At){return new mn(At,It)}return Xt.tension=function(At){return yt(+At)},Xt}(0);function Kn(yt,It,Xt){var At=yt._x1,Yt=yt._y1,ae=yt._x2,he=yt._y2;if(yt._l01_a>1e-12){var de=2*yt._l01_2a+3*yt._l01_a*yt._l12_a+yt._l12_2a,ke=3*yt._l01_a*(yt._l01_a+yt._l12_a);At=(At*de-yt._x0*yt._l12_2a+yt._x2*yt._l01_2a)/ke,Yt=(Yt*de-yt._y0*yt._l12_2a+yt._y2*yt._l01_2a)/ke}if(yt._l23_a>1e-12){var Ke=2*yt._l23_2a+3*yt._l23_a*yt._l12_a+yt._l12_2a,He=3*yt._l23_a*(yt._l23_a+yt._l12_a);ae=(ae*Ke+yt._x1*yt._l23_2a-It*yt._l12_2a)/He,he=(he*Ke+yt._y1*yt._l23_2a-Xt*yt._l12_2a)/He}yt._context.bezierCurveTo(At,Yt,ae,he,yt._x2,yt._y2)}function fr(yt,It){this._context=yt,this._alpha=It}fr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){if(yt=+yt,It=+It,this._point){var Xt=this._x2-yt,At=this._y2-It;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Xt*Xt+At*At,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(yt,It):this._context.moveTo(yt,It);break;case 1:this._point=2;break;case 2:this._point=3;default:Kn(this,yt,It)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var ge=function yt(It){function Xt(At){return It?new fr(At,It):new qe(At,0)}return Xt.alpha=function(At){return yt(+At)},Xt}(.5);function Ie(yt,It){this._context=yt,this._alpha=It}Ie.prototype={areaStart:on,areaEnd:on,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(yt,It){if(yt=+yt,It=+It,this._point){var Xt=this._x2-yt,At=this._y2-It;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Xt*Xt+At*At,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=yt,this._y3=It;break;case 1:this._point=2,this._context.moveTo(this._x4=yt,this._y4=It);break;case 2:this._point=3,this._x5=yt,this._y5=It;break;default:Kn(this,yt,It)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var Ge=function yt(It){function Xt(At){return It?new Ie(At,It):new yn(At,0)}return Xt.alpha=function(At){return yt(+At)},Xt}(.5);function ve(yt,It){this._context=yt,this._alpha=It}ve.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){if(yt=+yt,It=+It,this._point){var Xt=this._x2-yt,At=this._y2-It;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Xt*Xt+At*At,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Kn(this,yt,It)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var Le=function yt(It){function Xt(At){return It?new ve(At,It):new mn(At,0)}return Xt.alpha=function(At){return yt(+At)},Xt}(.5);function Ue(yt){this._context=yt}Ue.prototype={areaStart:on,areaEnd:on,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(yt,It){yt=+yt,It=+It,this._point?this._context.lineTo(yt,It):(this._point=1,this._context.moveTo(yt,It))}};var Oe=function(yt){return new Ue(yt)};function De(yt){return yt<0?-1:1}function Ze(yt,It,Xt){var At=yt._x1-yt._x0,Yt=It-yt._x1,ae=(yt._y1-yt._y0)/(At||Yt<0&&-0),he=(Xt-yt._y1)/(Yt||At<0&&-0),de=(ae*Yt+he*At)/(At+Yt);return(De(ae)+De(he))*Math.min(Math.abs(ae),Math.abs(he),.5*Math.abs(de))||0}function Sn(yt,It){var Xt=yt._x1-yt._x0;return Xt?(3*(yt._y1-yt._y0)/Xt-It)/2:It}function Me(yt,It,Xt){var At=yt._x0,Yt=yt._y0,ae=yt._x1,he=yt._y1,de=(ae-At)/3;yt._context.bezierCurveTo(At+de,Yt+de*It,ae-de,he-de*Xt,ae,he)}function en(yt){this._context=yt}function xn(yt){this._context=new Te(yt)}function Te(yt){this._context=yt}function bn(yt){return new en(yt)}function nn(yt){return new xn(yt)}function fn(yt){this._context=yt}function wn(yt){var It,Xt,At=yt.length-1,Yt=new Array(At),ae=new Array(At),he=new Array(At);for(Yt[0]=0,ae[0]=2,he[0]=yt[0]+2*yt[1],It=1;It=0;--It)Yt[It]=(he[It]-Yt[It+1])/ae[It];for(ae[At-1]=(yt[At]+Yt[At-1])/2,It=0;It=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1,this._line?this._context.lineTo(yt,It):this._context.moveTo(yt,It);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,It),this._context.lineTo(yt,It);else{var Xt=this._x*(1-this._t)+yt*this._t;this._context.lineTo(Xt,this._y),this._context.lineTo(Xt,It)}}this._x=yt,this._y=It}};var Jn=function(yt){return new cr(yt,.5)};function dr(yt){return new cr(yt,0)}function gr(yt){return new cr(yt,1)}var nr=function(yt,It){if((Yt=yt.length)>1)for(var Xt,At,Yt,ae=1,he=yt[It[0]],de=he.length;ae=0;)Xt[It]=It;return Xt};function Lr(yt,It){return yt[It]}var sr=function(){var yt=K([]),It=Nr,Xt=nr,At=Lr;function Yt(ae){var he,de,ke=yt.apply(this,arguments),Ke=ae.length,He=ke.length,rn=new Array(He);for(he=0;he0){for(var Xt,At,Yt,ae=0,he=yt[0].length;ae0)for(var Xt,At,Yt,ae,he,de,ke=0,Ke=yt[It[0]].length;ke0?(At[0]=ae,At[1]=ae+=Yt):Yt<0?(At[1]=he,At[0]=he+=Yt):(At[0]=0,At[1]=Yt)},fi=function(yt,It){if((Xt=yt.length)>0){for(var Xt,At=0,Yt=yt[It[0]],ae=Yt.length;At0&&(At=(Xt=yt[It[0]]).length)>0){for(var Xt,At,Yt,ae=0,he=1;heae&&(ae=It,At=Xt);return At}var Ui=function(yt){var It=yt.map(ee);return Nr(yt).sort(function(Xt,At){return It[Xt]-It[At]})};function ee(yt){for(var It,Xt=0,At=-1,Yt=yt.length;++At=0&&Kt._call.call(null,Jt),Kt=Kt._next;--B})()}finally{B=0,function(){for(var Jt,Kt,te=_t,Ot=1/0;te;)te._call?(Ot>te._time&&(Ot=te._time),Jt=te,te=te._next):(Kt=te._next,te._next=null,te=Jt?Jt._next=Kt:_t=Kt);m=Jt,s(Ot)}(),q=0}}function M(){var Jt=tt.now(),Kt=Jt-J;Kt>1e3&&(Z-=Kt,J=Jt)}function s(Jt){B||(et&&(et=clearTimeout(et)),Jt-q>24?(Jt<1/0&&(et=setTimeout(L,Jt-tt.now()-Z)),K&&(K=clearInterval(K))):(K||(J=tt.now(),K=setInterval(M,1e3)),B=1,H(L)))}U.prototype=d.prototype={constructor:U,restart:function(Jt,Kt,te){if(typeof Jt!="function")throw new TypeError("callback is not a function");te=(te==null?X():+te)+(Kt==null?0:+Kt),this._next||m===this||(m?m._next=this:_t=this,m=this),this._call=Jt,this._time=te,s()},stop:function(){this._call&&(this._call=null,this._time=1/0,s())}};var _=function(Jt,Kt,te){var Ot=new U;return Kt=Kt==null?0:+Kt,Ot.restart(function(Bt){Ot.stop(),Jt(Bt+Kt)},Kt,te),Ot},w=Object(R.a)("start","end","cancel","interrupt"),o=[],u=function(Jt,Kt,te,Ot,Bt,Ut){var zt=Jt.__transition;if(zt){if(te in zt)return}else Jt.__transition={};(function(ce,we,ye){var qe,hn=ce.__transition;function yn(Mn){var Kn,fr,ge,Ie;if(ye.state!==1)return mn();for(Kn in hn)if((Ie=hn[Kn]).name===ye.name){if(Ie.state===3)return _(yn);Ie.state===4?(Ie.state=6,Ie.timer.stop(),Ie.on.call("interrupt",ce,ce.__data__,Ie.index,Ie.group),delete hn[Kn]):+Kn0)throw new Error("too late; already scheduled");return te}function E(Jt,Kt){var te=S(Jt,Kt);if(te.state>3)throw new Error("too late; already running");return te}function S(Jt,Kt){var te=Jt.__transition;if(!te||!(te=te[Kt]))throw new Error("transition not found");return te}var v=function(Jt,Kt){var te,Ot,Bt,Ut=Jt.__transition,zt=!0;if(Ut){for(Bt in Kt=Kt==null?null:Kt+"",Ut)(te=Ut[Bt]).name===Kt?(Ot=te.state>2&&te.state<5,te.state=6,te.timer.stop(),te.on.call(Ot?"interrupt":"cancel",Jt,Jt.__data__,te.index,te.group),delete Ut[Bt]):zt=!1;zt&&delete Jt.__transition}},g=j(76),x=j(20);function p(Jt,Kt){var te,Ot;return function(){var Bt=E(this,Jt),Ut=Bt.tween;if(Ut!==te){for(var zt=0,ce=(Ot=te=Ut).length;zt=0&&(ce=ce.slice(0,we)),!ce||ce==="start"})}(Kt)?C:E;return function(){var zt=Ut(this,Jt),ce=zt.on;ce!==Ot&&(Bt=(Ot=ce).copy()).on(Kt,te),zt.on=Bt}}var xt=j(19),Ct=j(33),Tt=y.b.prototype.constructor,Nt=j(35);function gt(Jt){return function(){this.style.removeProperty(Jt)}}function wt(Jt,Kt,te){return function(Ot){this.style.setProperty(Jt,Kt.call(this,Ot),te)}}function Rt(Jt,Kt,te){var Ot,Bt;function Ut(){var zt=Kt.apply(this,arguments);return zt!==Bt&&(Ot=(Bt=zt)&&wt(Jt,zt,te)),Ot}return Ut._value=Kt,Ut}function jt(Jt){return function(Kt){this.textContent=Jt.call(this,Kt)}}function Zt(Jt){var Kt,te;function Ot(){var Bt=Jt.apply(this,arguments);return Bt!==te&&(Kt=(te=Bt)&&jt(Bt)),Kt}return Ot._value=Jt,Ot}var ne=0;function Wt(Jt,Kt,te,Ot){this._groups=Jt,this._parents=Kt,this._name=te,this._id=Ot}function le(Jt){return Object(y.b)().transition(Jt)}function fe(){return++ne}var xe=y.b.prototype;Wt.prototype=le.prototype={constructor:Wt,select:function(Jt){var Kt=this._name,te=this._id;typeof Jt!="function"&&(Jt=Object(xt.a)(Jt));for(var Ot=this._groups,Bt=Ot.length,Ut=new Array(Bt),zt=0;zt1&&te.name===Kt)return new Wt([[Jt]],tn,Kt,+Ot)}return null};j.d(ht,"transition",function(){return le}),j.d(ht,"active",function(){return on}),j.d(ht,"interrupt",function(){return v})},,function(ue,ht,j){"use strict";var _t,m,y,R,B=j(6),et=180/Math.PI,K={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},J=function(H,X,F,U,d,L){var M,s,_;return(M=Math.sqrt(H*H+X*X))&&(H/=M,X/=M),(_=H*F+X*U)&&(F-=H*_,U-=X*_),(s=Math.sqrt(F*F+U*U))&&(F/=s,U/=s,_/=s),H*U180?o+=360:o-w>180&&(w+=360),C.push({i:u.push(d(u)+"rotate(",null,U)-2,x:Object(B.a)(w,o)})):o&&u.push(d(u)+"rotate("+o+U)}(L.rotate,M.rotate,s,_),function(w,o,u,C){w!==o?C.push({i:u.push(d(u)+"skewX(",null,U)-2,x:Object(B.a)(w,o)}):o&&u.push(d(u)+"skewX("+o+U)}(L.skewX,M.skewX,s,_),function(w,o,u,C,E,S){if(w!==u||o!==C){var v=E.push(d(E)+"scale(",null,",",null,")");S.push({i:v-4,x:Object(B.a)(w,u)},{i:v-2,x:Object(B.a)(o,C)})}else u===1&&C===1||E.push(d(E)+"scale("+u+","+C+")")}(L.scaleX,L.scaleY,M.scaleX,M.scaleY,s,_),L=M=null,function(w){for(var o,u=-1,C=_.length;++uve&&(Ie=Ge,Ge=ve,ve=Ie),function(Le){return Math.max(Ge,Math.min(ve,Le))}}function w(ge,Ie,Ge){var ve=ge[0],Le=ge[1],Ue=Ie[0],Oe=Ie[1];return Le2?o:w,Le=Ue=null,en}function en(xn){return isNaN(xn=+xn)?Ge:(Le||(Le=ve(Oe.map(ge),De,Ze)))(ge(Sn(xn)))}return en.invert=function(xn){return Sn(Ie((Ue||(Ue=ve(De,Oe.map(ge),F.a)))(xn)))},en.domain=function(xn){return arguments.length?(Oe=et.call(xn,d),Sn===M||(Sn=_(Oe)),Me()):Oe.slice()},en.range=function(xn){return arguments.length?(De=K.call(xn),Me()):De.slice()},en.rangeRound=function(xn){return De=K.call(xn),Ze=U.a,Me()},en.clamp=function(xn){return arguments.length?(Sn=xn?_(Oe):M,en):Sn!==M},en.interpolate=function(xn){return arguments.length?(Ze=xn,Me()):Ze},en.unknown=function(xn){return arguments.length?(Ge=xn,en):Ge},function(xn,Te){return ge=xn,Ie=Te,Me()}}function E(ge,Ie){return C()(ge,Ie)}var S=j(25),v=j(64),g=j(43),x=j(65),p=j(63),l=function(ge,Ie,Ge,ve){var Le,Ue=Object(_t.tickStep)(ge,Ie,Ge);switch((ve=Object(S.b)(ve==null?",f":ve)).type){case"s":var Oe=Math.max(Math.abs(ge),Math.abs(Ie));return ve.precision!=null||isNaN(Le=Object(v.a)(Ue,Oe))||(ve.precision=Le),Object(g.c)(ve,Oe);case"":case"e":case"g":case"p":case"r":ve.precision!=null||isNaN(Le=Object(x.a)(Ue,Math.max(Math.abs(ge),Math.abs(Ie))))||(ve.precision=Le-(ve.type==="e"));break;case"f":case"%":ve.precision!=null||isNaN(Le=Object(p.a)(Ue))||(ve.precision=Le-2*(ve.type==="%"))}return Object(g.b)(ve)};function f(ge){var Ie=ge.domain;return ge.ticks=function(Ge){var ve=Ie();return Object(_t.ticks)(ve[0],ve[ve.length-1],Ge==null?10:Ge)},ge.tickFormat=function(Ge,ve){var Le=Ie();return l(Le[0],Le[Le.length-1],Ge==null?10:Ge,ve)},ge.nice=function(Ge){Ge==null&&(Ge=10);var ve,Le=Ie(),Ue=0,Oe=Le.length-1,De=Le[Ue],Ze=Le[Oe];return Ze0?(De=Math.floor(De/ve)*ve,Ze=Math.ceil(Ze/ve)*ve,ve=Object(_t.tickIncrement)(De,Ze,Ge)):ve<0&&(De=Math.ceil(De*ve)/ve,Ze=Math.floor(Ze*ve)/ve,ve=Object(_t.tickIncrement)(De,Ze,Ge)),ve>0?(Le[Ue]=Math.floor(De/ve)*ve,Le[Oe]=Math.ceil(Ze/ve)*ve,Ie(Le)):ve<0&&(Le[Ue]=Math.ceil(De*ve)/ve,Le[Oe]=Math.floor(Ze*ve)/ve,Ie(Le)),ge},ge}function b(){var ge=E(M,M);return ge.copy=function(){return u(ge,b())},m.apply(ge,arguments),f(ge)}function z(ge){var Ie;function Ge(ve){return isNaN(ve=+ve)?Ie:ve}return Ge.invert=Ge,Ge.domain=Ge.range=function(ve){return arguments.length?(ge=et.call(ve,d),Ge):ge.slice()},Ge.unknown=function(ve){return arguments.length?(Ie=ve,Ge):Ie},Ge.copy=function(){return z(ge).unknown(Ie)},ge=arguments.length?et.call(ge,d):[0,1],f(Ge)}var T=function(ge,Ie){var Ge,ve=0,Le=(ge=ge.slice()).length-1,Ue=ge[ve],Oe=ge[Le];return Oe0){for(;nnen)break;vn.push(bn)}}else for(;nn=1;--Te)if(!((bn=xn*Te)en)break;vn.push(bn)}}else vn=Object(_t.ticks)(nn,fn,Math.min(fn-nn,wn)).map(Ge);return Ze?vn.reverse():vn},ve.tickFormat=function(De,Ze){if(Ze==null&&(Ze=Ue===10?".0e":","),typeof Ze!="function"&&(Ze=Object(g.b)(Ze)),De===1/0)return Ze;De==null&&(De=10);var Sn=Math.max(1,Ue*De/ve.ticks().length);return function(Me){var en=Me/Ge(Math.round(Ie(Me)));return en*Ue0?ve[De-1]:Ie[0],De=ve?[Le[ve-1],Ge]:[Le[Sn-1],Le[Sn]]},Oe.unknown=function(Ze){return arguments.length&&(ge=Ze),Oe},Oe.thresholds=function(){return Le.slice()},Oe.copy=function(){return xt().domain([Ie,Ge]).range(Ue).unknown(ge)},m.apply(f(Oe),arguments)}function Ct(){var ge,Ie=[.5],Ge=[0,1],ve=1;function Le(Ue){return Ue<=Ue?Ge[Object(_t.bisect)(Ie,Ue,0,ve)]:ge}return Le.domain=function(Ue){return arguments.length?(Ie=K.call(Ue),ve=Math.min(Ie.length,Ge.length-1),Le):Ie.slice()},Le.range=function(Ue){return arguments.length?(Ge=K.call(Ue),ve=Math.min(Ie.length,Ge.length-1),Le):Ge.slice()},Le.invertExtent=function(Ue){var Oe=Ge.indexOf(Ue);return[Ie[Oe-1],Ie[Oe]]},Le.unknown=function(Ue){return arguments.length?(ge=Ue,Le):ge},Le.copy=function(){return Ct().domain(Ie).range(Ge).unknown(ge)},m.apply(Le,arguments)}var Tt=j(15),Nt=j(47),gt=j(3),wt=j(27),Rt=j(48),jt=j(49),Zt=j(30),ne=j(31),Wt=j(45);function le(ge){return new Date(ge)}function fe(ge){return ge instanceof Date?+ge:+new Date(+ge)}function xe(ge,Ie,Ge,ve,Le,Ue,Oe,De,Ze){var Sn=E(M,M),Me=Sn.invert,en=Sn.domain,xn=Ze(".%L"),Te=Ze(":%S"),bn=Ze("%I:%M"),nn=Ze("%I %p"),fn=Ze("%a %d"),wn=Ze("%b %d"),vn=Ze("%B"),cr=Ze("%Y"),Jn=[[Oe,1,1e3],[Oe,5,5e3],[Oe,15,15e3],[Oe,30,3e4],[Ue,1,6e4],[Ue,5,3e5],[Ue,15,9e5],[Ue,30,18e5],[Le,1,36e5],[Le,3,108e5],[Le,6,216e5],[Le,12,432e5],[ve,1,864e5],[ve,2,1728e5],[Ge,1,6048e5],[Ie,1,2592e6],[Ie,3,7776e6],[ge,1,31536e6]];function dr(nr){return(Oe(nr)svg{background:"+this.chartBackground+";padding: 20px;}"}};function J(X,F){if(X){X.attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg");var U=B.initializeSerializer()(X.node());return U=function(d){return navigator.userAgent.search("FireFox")>-1?d.replace(/url.*"\)/,'url("linearGradient[id*="-gradient-"]");'):d}(U),U=function(d){return d.replace(">",">"+K.styleBackgroundString)}(U=H.call(this,U,F,parseInt(X.attr("width"),10)))}}function q(X){var F=new Image;return F.src=""+K.imageSourceBase+et(encodeURIComponent(X).replace(/%([0-9A-F]{2})/g,function(U,d){return String.fromCharCode("0x"+d)})),F}function Z(X,F){return F.getContext("2d").drawImage(X,0,0),F}function tt(X,F,U){U.preventDefault(),function(d){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:K.defaultFilename,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"image/png",s=d.toDataURL(M),_=document.createElement("a");_.href=s,_.download=L,document.body.appendChild(_),_.click(),document.body.removeChild(_)}(Z(this,X),F)}function H(X,F,U){if(!F||!U)return X;var d=R.grey;return X=X.replace(/ '+F+" ]*>/,""),(_=new ActiveXObject("Microsoft.XMLDOM")).async="false",_.loadXML(s),_)},d.Property=function(s,_){this.name=s,this.value=_},d.Property.prototype.getValue=function(){return this.value},d.Property.prototype.hasValue=function(){return this.value!=null&&this.value!=""},d.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var s=parseFloat(this.value);return(this.value+"").match(/%$/)&&(s/=100),s},d.Property.prototype.valueOrDefault=function(s){return this.hasValue()?this.value:s},d.Property.prototype.numValueOrDefault=function(s){return this.hasValue()?this.numValue():s},d.Property.prototype.addOpacity=function(s){var _=this.value;if(s.value!=null&&s.value!=""&&typeof this.value=="string"){var w=new _t(this.value);w.ok&&(_="rgba("+w.r+", "+w.g+", "+w.b+", "+s.numValue()+")")}return new d.Property(this.name,_)},d.Property.prototype.getDefinition=function(){var s=this.value.match(/#([^\)'"]+)/);return s&&(s=s[1]),s||(s=this.value),d.Definitions[s]},d.Property.prototype.isUrlDefinition=function(){return this.value.indexOf("url(")==0},d.Property.prototype.getFillStyleDefinition=function(s,_){var w=this.getDefinition();if(w!=null&&w.createGradient)return w.createGradient(d.ctx,s,_);if(w!=null&&w.createPattern){if(w.getHrefAttribute().hasValue()){var o=w.attribute("patternTransform");w=w.getHrefAttribute().getDefinition(),o.hasValue()&&(w.attribute("patternTransform",!0).value=o.value)}return w.createPattern(d.ctx,s)}return null},d.Property.prototype.getDPI=function(s){return 96},d.Property.prototype.getEM=function(s){var _=12,w=new d.Property("fontSize",d.Font.Parse(d.ctx.font).fontSize);return w.hasValue()&&(_=w.toPixels(s)),_},d.Property.prototype.getUnits=function(){return(this.value+"").replace(/[0-9\.\-]/g,"")},d.Property.prototype.toPixels=function(s,_){if(!this.hasValue())return 0;var w=this.value+"";if(w.match(/em$/))return this.numValue()*this.getEM(s);if(w.match(/ex$/))return this.numValue()*this.getEM(s)/2;if(w.match(/px$/))return this.numValue();if(w.match(/pt$/))return this.numValue()*this.getDPI(s)*(1/72);if(w.match(/pc$/))return 15*this.numValue();if(w.match(/cm$/))return this.numValue()*this.getDPI(s)/2.54;if(w.match(/mm$/))return this.numValue()*this.getDPI(s)/25.4;if(w.match(/in$/))return this.numValue()*this.getDPI(s);if(w.match(/%$/))return this.numValue()*d.ViewPort.ComputeSize(s);var o=this.numValue();return _&&o<1?o*d.ViewPort.ComputeSize(s):o},d.Property.prototype.toMilliseconds=function(){if(!this.hasValue())return 0;var s=this.value+"";return s.match(/s$/)?1e3*this.numValue():(s.match(/ms$/),this.numValue())},d.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var s=this.value+"";return s.match(/deg$/)?this.numValue()*(Math.PI/180):s.match(/grad$/)?this.numValue()*(Math.PI/200):s.match(/rad$/)?this.numValue():this.numValue()*(Math.PI/180)};var M={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};return d.Property.prototype.toTextBaseline=function(){return this.hasValue()?M[this.value]:null},d.Font=new function(){this.Styles="normal|italic|oblique|inherit",this.Variants="normal|small-caps|inherit",this.Weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",this.CreateFont=function(_,w,o,u,C,E){var S=E!=null?this.Parse(E):this.CreateFont("","","","","",d.ctx.font);return{fontFamily:C||S.fontFamily,fontSize:u||S.fontSize,fontStyle:_||S.fontStyle,fontWeight:o||S.fontWeight,fontVariant:w||S.fontVariant,toString:function(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var s=this;this.Parse=function(_){for(var w={},o=d.trim(d.compressSpaces(_||"")).split(" "),u={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1},C="",E=0;Ethis.x2&&(this.x2=u)),C!=null&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=C,this.y2=C),Cthis.y2&&(this.y2=C))},this.addX=function(u){this.addPoint(u,null)},this.addY=function(u){this.addPoint(null,u)},this.addBoundingBox=function(u){this.addPoint(u.x1,u.y1),this.addPoint(u.x2,u.y2)},this.addQuadraticCurve=function(u,C,E,S,v,g){var x=u+.6666666666666666*(E-u),p=C+2/3*(S-C),l=x+1/3*(v-u),f=p+1/3*(g-C);this.addBezierCurve(u,C,x,l,p,f,v,g)},this.addBezierCurve=function(u,C,E,S,v,g,x,p){var l=[u,C],f=[E,S],b=[v,g],z=[x,p];this.addPoint(l[0],l[1]),this.addPoint(z[0],z[1]);for(var T=0;T<=1;T++){var k=function(I){return Math.pow(1-I,3)*l[T]+3*Math.pow(1-I,2)*I*f[T]+3*(1-I)*Math.pow(I,2)*b[T]+Math.pow(I,3)*z[T]},Q=6*l[T]-12*f[T]+6*b[T],st=-3*l[T]+9*f[T]-9*b[T]+3*z[T],nt=3*f[T]-3*l[T];if(st!=0){var dt=Math.pow(Q,2)-4*nt*st;if(!(dt<0)){var mt=(-Q+Math.sqrt(dt))/(2*st);0=0;g--)this.transforms[g].unapply(v)},this.applyToPoint=function(v){for(var g=0;gf&&(this.styles[l]=x[l],this.stylesSpecificity[l]=p)}}},s!=null&&s.nodeType==1){for(var _=0;_0&&_.push([this.points[this.points.length-1],_[_.length-1][1]]),_}},d.Element.polyline.prototype=new d.Element.PathElementBase,d.Element.polygon=function(s){this.base=d.Element.polyline,this.base(s),this.basePath=this.path,this.path=function(_){var w=this.basePath(_);return _!=null&&(_.lineTo(this.points[0].x,this.points[0].y),_.closePath()),w}},d.Element.polygon.prototype=new d.Element.polyline,d.Element.path=function(s){this.base=d.Element.PathElementBase,this.base(s);var _=this.attribute("d").value;_=_.replace(/,/gm," ");for(var w=0;w<2;w++)_=_.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2");for(_=(_=_.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2")).replace(/([0-9])([+\-])/gm,"$1 $2"),w=0;w<2;w++)_=_.replace(/(\.[0-9]*)(\.)/gm,"$1 $2");_=_.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 "),_=d.compressSpaces(_),_=d.trim(_),this.PathParser=new function(o){this.tokens=o.split(" "),this.reset=function(){this.i=-1,this.command="",this.previousCommand="",this.start=new d.Point(0,0),this.control=new d.Point(0,0),this.current=new d.Point(0,0),this.points=[],this.angles=[]},this.isEnd=function(){return this.i>=this.tokens.length-1},this.isCommandOrEnd=function(){return!!this.isEnd()||this.tokens[this.i+1].match(/^[A-Za-z]$/)!=null},this.isRelativeCommand=function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0}return!1},this.getToken=function(){return this.i++,this.tokens[this.i]},this.getScalar=function(){return parseFloat(this.getToken())},this.nextCommand=function(){this.previousCommand=this.command,this.command=this.getToken()},this.getPoint=function(){var u=new d.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(u)},this.getAsControlPoint=function(){var u=this.getPoint();return this.control=u,u},this.getAsCurrentPoint=function(){var u=this.getPoint();return this.current=u,u},this.getReflectedControlPoint=function(){return this.previousCommand.toLowerCase()!="c"&&this.previousCommand.toLowerCase()!="s"&&this.previousCommand.toLowerCase()!="q"&&this.previousCommand.toLowerCase()!="t"?this.current:new d.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y)},this.makeAbsolute=function(u){return this.isRelativeCommand()&&(u.x+=this.current.x,u.y+=this.current.y),u},this.addMarker=function(u,C,E){E!=null&&this.angles.length>0&&this.angles[this.angles.length-1]==null&&(this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(E)),this.addMarkerAngle(u,C==null?null:C.angleTo(u))},this.addMarkerAngle=function(u,C){this.points.push(u),this.angles.push(C)},this.getMarkerPoints=function(){return this.points},this.getMarkerAngles=function(){for(var u=0;u1&&(f*=Math.sqrt(st),b*=Math.sqrt(st));var nt=(T==k?-1:1)*Math.sqrt((Math.pow(f,2)*Math.pow(b,2)-Math.pow(f,2)*Math.pow(Q.y,2)-Math.pow(b,2)*Math.pow(Q.x,2))/(Math.pow(f,2)*Math.pow(Q.y,2)+Math.pow(b,2)*Math.pow(Q.x,2)));isNaN(nt)&&(nt=0);var dt=new d.Point(nt*f*Q.y/b,nt*-b*Q.x/f),mt=new d.Point((g.x+l.x)/2+Math.cos(z)*dt.x-Math.sin(z)*dt.y,(g.y+l.y)/2+Math.sin(z)*dt.x+Math.cos(z)*dt.y),Et=function(pt){return Math.sqrt(Math.pow(pt[0],2)+Math.pow(pt[1],2))},Mt=function(pt,xt){return(pt[0]*xt[0]+pt[1]*xt[1])/(Et(pt)*Et(xt))},I=function(pt,xt){return(pt[0]*xt[1]=1&&(D=0);var P=1-k?1:-1,W=Y+P*(D/2),lt=new d.Point(mt.x+f*Math.cos(W),mt.y+b*Math.sin(W));if(u.addMarkerAngle(lt,W-P*Math.PI/2),u.addMarkerAngle(l,W-P*Math.PI),C.addPoint(l.x,l.y),o!=null){Mt=f>b?f:b;var it=f>b?1:f/b,vt=f>b?b/f:1;o.translate(mt.x,mt.y),o.rotate(z),o.scale(it,vt),o.arc(0,0,Mt,Y,Y+D,1-k),o.scale(1/it,1/vt),o.rotate(-z),o.translate(-mt.x,-mt.y)}}break;case"Z":case"z":o!=null&&o.closePath(),u.current=u.start}return C},this.getMarkers=function(){for(var o=this.PathParser.getMarkerPoints(),u=this.PathParser.getMarkerAngles(),C=[],E=0;E1&&(this.offset=1);var _=this.style("stop-color",!0);_.value==""&&(_.value="#000"),this.style("stop-opacity").hasValue()&&(_=_.addOpacity(this.style("stop-opacity"))),this.color=_.value},d.Element.stop.prototype=new d.Element.ElementBase,d.Element.AnimateBase=function(s){this.base=d.Element.ElementBase,this.base(s),d.Animations.push(this),this.duration=0,this.begin=this.attribute("begin").toMilliseconds(),this.maxDuration=this.begin+this.attribute("dur").toMilliseconds(),this.getProperty=function(){var _=this.attribute("attributeType").value,w=this.attribute("attributeName").value;return _=="CSS"?this.parent.style(w,!0):this.parent.attribute(w,!0)},this.initialValue=null,this.initialUnits="",this.removed=!1,this.calcValue=function(){return""},this.update=function(_){if(this.initialValue==null&&(this.initialValue=this.getProperty().value,this.initialUnits=this.getProperty().getUnits()),this.duration>this.maxDuration){if(this.attribute("repeatCount").value=="indefinite"||this.attribute("repeatDur").value=="indefinite")this.duration=0;else if(this.attribute("fill").valueOrDefault("remove")!="freeze"||this.frozen){if(this.attribute("fill").valueOrDefault("remove")=="remove"&&!this.removed)return this.removed=!0,this.getProperty().value=this.parent.animationFrozen?this.parent.animationFrozenValue:this.initialValue,!0}else this.frozen=!0,this.parent.animationFrozen=!0,this.parent.animationFrozenValue=this.getProperty().value;return!1}this.duration=this.duration+_;var w=!1;if(this.begino&&S.attribute("x").hasValue())break;C+=S.measureTextRecursive(_)}return-1*(u=="end"?C:C/2)}return 0},this.renderChild=function(_,w,o,u){var C=o.children[u];for(C.attribute("x").hasValue()?(C.x=C.attribute("x").toPixels("x")+w.getAnchorDelta(_,o,u),C.attribute("dx").hasValue()&&(C.x+=C.attribute("dx").toPixels("x"))):(C.attribute("dx").hasValue()&&(w.x+=C.attribute("dx").toPixels("x")),C.x=w.x),w.x=C.x+C.measureText(_),C.attribute("y").hasValue()?(C.y=C.attribute("y").toPixels("y"),C.attribute("dy").hasValue()&&(C.y+=C.attribute("dy").toPixels("y"))):(C.attribute("dy").hasValue()&&(w.y+=C.attribute("dy").toPixels("y")),C.y=w.y),w.y=C.y,C.render(_),u=0;u0&&w[o-1]!=" "&&o0&&w[o-1]!=" "&&(o==w.length-1||w[o+1]==" ")&&(E="initial"),_.glyphs[u]!==void 0&&(C=_.glyphs[u][E])==null&&_.glyphs[u].type=="glyph"&&(C=_.glyphs[u])}else C=_.glyphs[u];return C==null&&(C=_.missingGlyph),C},this.renderChildren=function(_){var w=this.parent.style("font-family").getDefinition();if(w==null)_.fillStyle!=""&&_.fillText(d.compressSpaces(this.getText()),this.x,this.y),_.strokeStyle!=""&&_.strokeText(d.compressSpaces(this.getText()),this.x,this.y);else{var o=this.parent.style("font-size").numValueOrDefault(d.Font.Parse(d.ctx.font).fontSize),u=this.parent.style("font-style").valueOrDefault(d.Font.Parse(d.ctx.font).fontStyle),C=this.getText();w.isRTL&&(C=C.split("").reverse().join(""));for(var E=d.ToNumberArray(this.parent.attribute("dx").value),S=0;S0?"":this.text}},d.Element.tspan.prototype=new d.Element.TextElementBase,d.Element.tref=function(s){this.base=d.Element.TextElementBase,this.base(s),this.getText=function(){var _=this.getHrefAttribute().getDefinition();if(_!=null)return _.children[0].getText()}},d.Element.tref.prototype=new d.Element.TextElementBase,d.Element.a=function(s){this.base=d.Element.TextElementBase,this.base(s),this.hasText=s.childNodes.length>0;for(var _=0;_0){var u=new d.Element.g;u.children=this.children,u.parent=this,u.render(w)}},this.onclick=function(){window.open(this.getHrefAttribute().value)},this.onmousemove=function(){d.ctx.canvas.style.cursor="pointer"}},d.Element.a.prototype=new d.Element.TextElementBase,d.Element.image=function(s){this.base=d.Element.RenderedElementBase,this.base(s);var _=this.getHrefAttribute().value;if(_!=""){var w=_.match(/\.svg$/);if(d.Images.push(this),this.loaded=!1,w)this.img=d.ajax(_),this.loaded=!0;else{this.img=document.createElement("img"),d.opts.useCORS==1&&(this.img.crossOrigin="Anonymous");var o=this;this.img.onload=function(){o.loaded=!0},this.img.onerror=function(){d.log('ERROR: image "'+_+'" not found'),o.loaded=!0},this.img.src=_}this.renderChildren=function(u){var C=this.attribute("x").toPixels("x"),E=this.attribute("y").toPixels("y"),S=this.attribute("width").toPixels("x"),v=this.attribute("height").toPixels("y");S!=0&&v!=0&&(u.save(),w?u.drawSvg(this.img,C,E,S,v):(u.translate(C,E),d.AspectRatio(u,this.attribute("preserveAspectRatio").value,S,this.img.width,v,this.img.height,0,0),u.drawImage(this.img,0,0)),u.restore())},this.getBoundingBox=function(){var u=this.attribute("x").toPixels("x"),C=this.attribute("y").toPixels("y"),E=this.attribute("width").toPixels("x"),S=this.attribute("height").toPixels("y");return new d.BoundingBox(u,C,u+E,C+S)}}},d.Element.image.prototype=new d.Element.RenderedElementBase,d.Element.g=function(s){this.base=d.Element.RenderedElementBase,this.base(s),this.getBoundingBox=function(){for(var _=new d.BoundingBox,w=0;w0)for(var k=z[T].indexOf("url"),Q=z[T].indexOf(")",k),st=z[T].substr(k+5,Q-k-6),nt=d.parseXml(d.ajax(st)).getElementsByTagName("font"),dt=0;dt~\.\[:]+)/g,0),K(/(\.[^\s\+>~\.\[:]+)/g,1),K(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,2),K(/(:[\w-]+\([^\)]*\))/gi,1),K(/(:[^\s\+>~\.\[:]+)/g,1),B=(B=B.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," "),K(/([^\s\+>~\.\[:]+)/g,2),et.join("")}ue.exports=y},function(ue,ht){ue.exports=function(j){this.ok=!1,this.alpha=1,j.charAt(0)=="#"&&(j=j.substr(1,6)),j=(j=j.replace(/ /g,"")).toLowerCase();var _t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};j=_t[j]||j;for(var m=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(J){return[parseInt(J[1]),parseInt(J[2]),parseInt(J[3]),parseFloat(J[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(J){return[parseInt(J[1]),parseInt(J[2]),parseInt(J[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(J){return[parseInt(J[1],16),parseInt(J[2],16),parseInt(J[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(J){return[parseInt(J[1]+J[1],16),parseInt(J[2]+J[2],16),parseInt(J[3]+J[3],16)]}}],y=0;y3&&(this.alpha=K[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var J=this.r.toString(16),q=this.g.toString(16),Z=this.b.toString(16);return J.length==1&&(J="0"+J),q.length==1&&(q="0"+q),Z.length==1&&(Z="0"+Z),"#"+J+q+Z},this.getHelpXML=function(){for(var J=new Array,q=0;q "+U.toRGB()+" -> "+U.toHex());F.appendChild(d),F.appendChild(L),X.appendChild(F)}catch(M){}return X}}},function(ue,ht){var j=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],_t=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function m(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}ue.exports=function(y,R,B,et){if(!(isNaN(et)||et<1)){var K,J,q,Z,tt,H,X,F,U,d,L,M,s,_,w,o,u,C,E,S,v,g,x,p,l=(et|=0)+et+1,f=R-1,b=B-1,z=et+1,T=z*(z+1)/2,k=new m,Q=k;for(q=1;q>Et,x!=0?(x=255/x,y[H]=(F*mt>>Et)*x,y[H+1]=(U*mt>>Et)*x,y[H+2]=(d*mt>>Et)*x):y[H]=y[H+1]=y[H+2]=0,F-=M,U-=s,d-=_,L-=w,M-=nt.r,s-=nt.g,_-=nt.b,w-=nt.a,Z=X+((Z=K+et+1)>Et,x>0?(x=255/x,y[Z]=(F*mt>>Et)*x,y[Z+1]=(U*mt>>Et)*x,y[Z+2]=(d*mt>>Et)*x):y[Z]=y[Z+1]=y[Z+2]=0,F-=M,U-=s,d-=_,L-=w,M-=nt.r,s-=nt.g,_-=nt.b,w-=nt.a,Z=K+((Z=J+z)=Z+tt||Z?new java.lang.String(q,Z,tt)+"":q}function et(q,Z){q.currentElement?q.currentElement.appendChild(Z):q.doc.appendChild(Z)}_t.prototype.parseFromString=function(q,Z){var tt=this.options,H=new K,X=tt.domBuilder||new m,F=tt.errorHandler,U=tt.locator,d=tt.xmlns||{},L={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return U&&X.setDocumentLocator(U),H.errorHandler=function(M,s,_){if(!M){if(s instanceof m)return s;M=s}var w={},o=M instanceof Function;function u(C){var E=M[C];!E&&o&&(E=M.length==2?function(S){M(C,S)}:M),w[C]=E&&function(S){E("[xmldom "+C+"] "+S+R(_))}||function(){}}return _=_||{},u("warning"),u("error"),u("fatalError"),w}(F,X,U),H.domBuilder=tt.domBuilder||X,/\/x?html?$/.test(Z)&&(L.nbsp="\xA0",L.copy="\xA9",d[""]="http://www.w3.org/1999/xhtml"),d.xml=d.xml||"http://www.w3.org/XML/1998/namespace",q?H.parse(q,d,L):H.errorHandler.error("invalid doc source"),X.doc},m.prototype={startDocument:function(){this.doc=new J().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(q,Z,tt,H){var X=this.doc,F=X.createElementNS(q,tt||Z),U=H.length;et(this,F),this.currentElement=F,this.locator&&y(this.locator,F);for(var d=0;d":switch(o){case 0:d.setTagName(F.slice(U,w));case 5:case 6:case 7:break;case 4:case 1:(C=F.slice(U,w)).slice(-1)==="/"&&(d.closed=!0,C=C.slice(0,-1));case 2:o===2&&(C=_),o==4?(s.warning('attribute "'+C+'" missed quot(")!!'),d.add(_,C.replace(/&#?\w+;/g,M),U)):(L[""]==="http://www.w3.org/1999/xhtml"&&C.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+C+'" missed value!! "'+C+'" instead!!'),d.add(C,C,U));break;case 3:throw new Error("attribute value missed!!")}return w;case"\x80":u=" ";default:if(u<=" ")switch(o){case 0:d.setTagName(F.slice(U,w)),o=6;break;case 1:_=F.slice(U,w),o=2;break;case 4:var C=F.slice(U,w).replace(/&#?\w+;/g,M);s.warning('attribute "'+C+'" missed quot(")!!'),d.add(_,C,U);case 5:o=6}else switch(o){case 2:d.tagName,L[""]==="http://www.w3.org/1999/xhtml"&&_.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+_+'" missed value!! "'+_+'" instead2!!'),d.add(_,_,U),U=w,o=1;break;case 5:s.warning('attribute space is required"'+_+'"!!');case 6:o=1,U=w;break;case 3:o=4,U=w;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}w++}}function et(F,U,d){for(var L=F.tagName,M=null,s=F.length;s--;){var _=F[s],w=_.qName,o=_.value;if((S=w.indexOf(":"))>0)var u=_.prefix=w.slice(0,S),C=w.slice(S+1),E=u==="xmlns"&&C;else C=w,u=null,E=w==="xmlns"&&"";_.localName=C,E!==!1&&(M==null&&(M={},q(d,d={})),d[E]=M[E]=o,_.uri="http://www.w3.org/2000/xmlns/",U.startPrefixMapping(E,o))}for(s=F.length;s--;)(u=(_=F[s]).prefix)&&(u==="xml"&&(_.uri="http://www.w3.org/XML/1998/namespace"),u!=="xmlns"&&(_.uri=d[u||""]));var S;(S=L.indexOf(":"))>0?(u=F.prefix=L.slice(0,S),C=F.localName=L.slice(S+1)):(u=null,C=F.localName=L);var v=F.uri=d[u||""];if(U.startElement(v,C,L,F),!F.closed)return F.currentNSMap=d,F.localNSMap=M,!0;if(U.endElement(v,C,L),M)for(u in M)U.endPrefixMapping(u)}function K(F,U,d,L,M){if(/^(?:script|textarea)$/i.test(d)){var s=F.indexOf("",U),_=F.substring(U+1,s);if(/[&<]/.test(_))return/^script$/i.test(d)?(M.characters(_,0,_.length),s):(_=_.replace(/&#?\w+;/g,L),M.characters(_,0,_.length),s)}return U+1}function J(F,U,d,L){var M=L[d];return M==null&&((M=F.lastIndexOf(""))",U+4))>U?(d.comment(F,U+4,M-U-4),M+3):(L.error("Unclosed comment"),-1):-1;default:if(F.substr(U+3,6)=="CDATA["){var M=F.indexOf("]]>",U+9);return d.startCDATA(),d.characters(F,U+9,M-U-9),d.endCDATA(),M+3}var s=function(E,S){var v,g=[],x=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(x.lastIndex=S,x.exec(E);v=x.exec(E);)if(g.push(v),v[1])return g}(F,U),_=s.length;if(_>1&&/!doctype/i.test(s[0][0])){var w=s[1][0],o=_>3&&/^public$/i.test(s[2][0])&&s[3][0],u=_>4&&s[4][0],C=s[_-1];return d.startDTD(w,o&&o.replace(/^(['"])(.*?)\1$/,"$2"),u&&u.replace(/^(['"])(.*?)\1$/,"$2")),d.endDTD(),C.index+C[0].length}}return-1}function tt(F,U,d){var L=F.indexOf("?>",U);if(L){var M=F.substring(U,L).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return M?(M[0].length,d.processingInstruction(M[1],M[2]),L+2):-1}return-1}function H(F){}function X(F,U){return F.__proto__=U,F}y.prototype={parse:function(F,U,d){var L=this.domBuilder;L.startDocument(),q(U,U={}),function(M,s,_,w,o){function u(D){var P=D.slice(1,-1);return P in _?_[P]:P.charAt(0)==="#"?function(W){if(W>65535){var lt=55296+((W-=65536)>>10),it=56320+(1023&W);return String.fromCharCode(lt,it)}return String.fromCharCode(W)}(parseInt(P.substr(1).replace("x","0x"))):(o.error("entity not found:"+D),D)}function C(D){if(D>f){var P=M.substring(f,D).replace(/&#?\w+;/g,u);x&&E(f),w.characters(P,0,D-f),f=D}}function E(D,P){for(;D>=v&&(P=g.exec(M));)S=P.index,v=S+P[0].length,x.lineNumber++;x.columnNumber=D-S+1}for(var S=0,v=0,g=/.*(?:\r\n?|\n)|.*$/g,x=w.locator,p=[{currentNSMap:s}],l={},f=0;;){try{var b=M.indexOf("<",f);if(b<0){if(!M.substr(f).match(/^\s*$/)){var z=w.doc,T=z.createTextNode(M.substr(f));z.appendChild(T),w.currentElement=T}return}switch(b>f&&C(b),M.charAt(b+1)){case"/":var k=M.indexOf(">",b+3),Q=M.substring(b+2,k),st=p.pop();k<0?(Q=M.substring(b+2).replace(/[\s<].*/,""),o.error("end tag name: "+Q+" is not complete:"+st.tagName),k=b+1+Q.length):Q.match(/\sf?f=k:C(Math.max(b,f)+1)}}(F,U,d,L,this.errorHandler),L.endDocument()}},H.prototype={setTagName:function(F){if(!m.test(F))throw new Error("invalid tagName:"+F);this.tagName=F},add:function(F,U,d){if(!m.test(F))throw new Error("invalid attribute:"+F);this[this.length++]={qName:F,value:U,offset:d}},length:0,getLocalName:function(F){return this[F].localName},getLocator:function(F){return this[F].locator},getQName:function(F){return this[F].qName},getURI:function(F){return this[F].uri},getValue:function(F){return this[F].value}},X({},X.prototype)instanceof X||(X=function(F,U){function d(){}for(U in d.prototype=U,d=new d,F)d[U]=F[U];return d}),ht.XMLReader=y},function(ue,ht,j){"use strict";var _t,m,y;ue.exports=(_t={BASE:!0,HEAD:!0,HTML:!0,META:!0,NOFRAME:!0,NOSCRIPT:!0,PARAM:!0,SCRIPT:!0,STYLE:!0,TITLE:!0},m=["A","ABBR","ADDRESS","AREA","ARTICLE","ASIDE","AUDIO","B","BASE","BDI","BDO","BLOCKQUOTE","BODY","BR","BUTTON","CANVAS","CAPTION","CENTER","CITE","CODE","COL","COLGROUP","COMMAND","DATALIST","DD","DEL","DETAILS","DFN","DIV","DL","DT","EM","EMBED","FIELDSET","FIGCAPTION","FIGURE","FONT","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEAD","HEADER","HGROUP","HR","HTML","I","IFRAME","IMG","INPUT","INS","KBD","LABEL","LEGEND","LI","LINK","MAP","MARK","MATH","MENU","META","METER","NAV","NOBR","NOSCRIPT","OBJECT","OL","OPTION","OPTGROUP","OUTPUT","P","PARAM","PRE","PROGRESS","Q","RP","RT","RUBY","S","SAMP","SCRIPT","SECTION","SELECT","SMALL","SOURCE","SPAN","STRONG","STYLE","SUB","SUMMARY","SUP","SVG","TABLE","TBODY","TD","TEXTAREA","TFOOT","TH","THEAD","TIME","TITLE","TR","TRACK","U","UL","VAR","VIDEO","WBR"],y=function(R){var B={},et=document.body.appendChild(document.createElement(R)),K=window.getComputedStyle(et);return[].forEach.call(K,function(J){B[J]=K[J]}),document.body.removeChild(et),B},{initializeSerializer:function(){var R={};return[].forEach.call(m,function(B){_t[B]||(R[B]=y(B))}),function(B){var et,K=[],J=void 0,q=void 0,Z=void 0;if(B&&B.nodeType===Node.ELEMENT_NODE)return K=[],J=B.querySelectorAll("*"),[].forEach.call(J,function(tt,H){var X;_t[tt.tagName]||(q=window.getComputedStyle(tt),X=(X=tt.tagName).toUpperCase(),R[X]||(R[X]=y(X)),Z=R[X],K[H]=tt.style.cssText,[].forEach.call(q,function(F){q[F]!==Z[F]&&(tt.style[F]=q[F])}))}),et=new XMLSerializer().serializeToString(B),J=[].map.call(J,function(tt,H){return tt.style.cssText=K[H],tt}),et}}})},function(ue,ht,j){(function(_t,m){var y;/*! http://mths.be/base64 v0.1.0 by @mathias | MIT license */(function(R){var B=ht,et=(_t&&_t.exports,typeof m=="object"&&m);et.global!==et&&et.window;var K=function(H){this.message=H};(K.prototype=new Error).name="InvalidCharacterError";var J=function(H){throw new K(H)},q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Z=/[\t\n\f\r ]/g,tt={encode:function(H){H=String(H),/[^\0-\xFF]/.test(H)&&J("The string to be encoded contains characters outside of the Latin1 range.");for(var X,F,U,d,L=H.length%3,M="",s=-1,_=H.length-L;++s<_;)X=H.charCodeAt(s)<<16,F=H.charCodeAt(++s)<<8,U=H.charCodeAt(++s),M+=q.charAt((d=X+F+U)>>18&63)+q.charAt(d>>12&63)+q.charAt(d>>6&63)+q.charAt(63&d);return L==2?(X=H.charCodeAt(s)<<8,F=H.charCodeAt(++s),M+=q.charAt((d=X+F)>>10)+q.charAt(d>>4&63)+q.charAt(d<<2&63)+"="):L==1&&(d=H.charCodeAt(s),M+=q.charAt(d>>2)+q.charAt(d<<4&63)+"=="),M},decode:function(H){var X=(H=String(H).replace(Z,"")).length;X%4==0&&(X=(H=H.replace(/==?$/,"")).length),(X%4==1||/[^+a-zA-Z0-9/]/.test(H))&&J("Invalid character: the string to be decoded is not correctly encoded.");for(var F,U,d=0,L="",M=-1;++M>(-2*d&6)));return L},version:"0.1.0"};(y=function(){return tt}.call(ht,j,ht,_t))===void 0||(_t.exports=y)})()}).call(this,j(86)(ue),j(87))},function(ue,ht){ue.exports=function(j){return j.webpackPolyfill||(j.deprecate=function(){},j.paths=[],j.children||(j.children=[]),Object.defineProperty(j,"loaded",{enumerable:!0,get:function(){return j.l}}),Object.defineProperty(j,"id",{enumerable:!0,get:function(){return j.i}}),j.webpackPolyfill=1),j}},function(ue,ht){var j;j=function(){return this}();try{j=j||new Function("return this")()}catch(_t){typeof window=="object"&&(j=window)}ue.exports=j},function(ue,ht,j){"use strict";ht.a=function(_t,m){return _t=+_t,m=+m,function(y){return Math.round(_t*(1-y)+m*y)}}},function(ue,ht,j){"use strict";var _t;(_t=function(){return{bar:` @@ -322,17 +322,17 @@ var qY=Object.defineProperty,KY=Object.defineProperties;var ZY=Object.getOwnProp - `}}.call(ht,z,ht,ue))===void 0||(ue.exports=_t)},function(ue,ht,z){"use strict";z.r(ht);var _t=Array.prototype.slice,m=function(X){return X};function y(X){return"translate("+(X+.5)+",0)"}function R(X){return"translate(0,"+(X+.5)+")"}function j(X){return function(B){return+X(B)}}function et(X){var B=Math.max(0,X.bandwidth()-1)/2;return X.round()&&(B=Math.round(B)),function(U){return+X(U)+B}}function K(){return!this.__axis}function J(X,B){var U=[],d=null,L=null,M=6,s=6,w=3,_=X===1||X===4?-1:1,o=X===4||X===2?"x":"y",u=X===1||X===3?y:R;function C(E){var S=d==null?B.ticks?B.ticks.apply(B,U):B.domain():d,v=L==null?B.tickFormat?B.tickFormat.apply(B,U):m:L,g=Math.max(M,0)+w,x=B.range(),p=+x[0]+.5,l=+x[x.length-1]+.5,f=(B.bandwidth?et:j)(B.copy()),b=E.selection?E.selection():E,F=b.selectAll(".domain").data([null]),T=b.selectAll(".tick").data(S,B).order(),k=T.exit(),Q=T.enter().append("g").attr("class","tick"),st=T.select("line"),nt=T.select("text");F=F.merge(F.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge(Q),st=st.merge(Q.append("line").attr("stroke","currentColor").attr(o+"2",_*M)),nt=nt.merge(Q.append("text").attr("fill","currentColor").attr(o,_*g).attr("dy",X===1?"0em":X===3?"0.71em":"0.32em")),E!==b&&(F=F.transition(E),T=T.transition(E),st=st.transition(E),nt=nt.transition(E),k=k.transition(E).attr("opacity",1e-6).attr("transform",function(dt){return isFinite(dt=f(dt))?u(dt):this.getAttribute("transform")}),Q.attr("opacity",1e-6).attr("transform",function(dt){var mt=this.parentNode.__axis;return u(mt&&isFinite(mt=mt(dt))?mt:f(dt))})),k.remove(),F.attr("d",X===4||X==2?s?"M"+_*s+","+p+"H0.5V"+l+"H"+_*s:"M0.5,"+p+"V"+l:s?"M"+p+","+_*s+"V0.5H"+l+"V"+_*s:"M"+p+",0.5H"+l),T.attr("opacity",1).attr("transform",function(dt){return u(f(dt))}),st.attr(o+"2",_*M),nt.attr(o,_*g).text(v),b.filter(K).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",X===2?"start":X===4?"end":"middle"),b.each(function(){this.__axis=f})}return C.scale=function(E){return arguments.length?(B=E,C):B},C.ticks=function(){return U=_t.call(arguments),C},C.tickArguments=function(E){return arguments.length?(U=E==null?[]:_t.call(E),C):U.slice()},C.tickValues=function(E){return arguments.length?(d=E==null?null:_t.call(E),C):d&&d.slice()},C.tickFormat=function(E){return arguments.length?(L=E,C):L},C.tickSize=function(E){return arguments.length?(M=s=+E,C):M},C.tickSizeInner=function(E){return arguments.length?(M=+E,C):M},C.tickSizeOuter=function(E){return arguments.length?(s=+E,C):s},C.tickPadding=function(E){return arguments.length?(w=+E,C):w},C}function q(X){return J(1,X)}function Z(X){return J(2,X)}function tt(X){return J(3,X)}function H(X){return J(4,X)}z.d(ht,"axisTop",function(){return q}),z.d(ht,"axisRight",function(){return Z}),z.d(ht,"axisBottom",function(){return tt}),z.d(ht,"axisLeft",function(){return H})},,function(ue,ht,z){"use strict";var _t;(_t=function(m){var y=z(44),R=0,j={small:{limit:10,format:y.format("")},medium:{limit:1e3,format:y.format("")},large:{limit:null,format:y.format(",d")}},et={small:{limit:10,format:y.format(".3f")},medium:{limit:100,format:y.format(".1f")},large:{limit:null,format:y.format(".2s")}},K=function(J,q){var Z="large";return J1&&arguments[1]!==void 0?arguments[1]:12,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Arial",X=document.createElement("canvas"),B=X.getContext("2d");return B.font=tt+"px "+H,B.measureText(Z).width},wrapText:function(Z,tt,H,X){var B=y.select(X),U=B.text().split(/\s+/).reverse(),d=void 0,L=[],M=0,s=R*et,w=B.attr("y"),_=parseFloat(B.attr("dy")),o=tt*K,u=B.text(null).append("tspan").attr("x",Z).attr("y",w-5).attr("dy",_+"em").classed(J,!0).style("font-size",tt+"px");for(u.text(U.pop()),u=B.append("tspan").classed(q,!0).attr("x",Z).attr("y",w+j).attr("dy",++M*s+_+"em").style("font-size",o+"px");d=U.pop();)L.push(d),u.text(L.join(" ")),u.node()&&u.node().getComputedTextLength()>H-50&&(L.pop(),u.text(L.join(" ")),L=[d],u=B.append("tspan").classed(q,!0).attr("x",Z).attr("y",w+j).attr("dy",++M*s+_+"em").text(d).style("font-size",o+"px"))},wrapTextWithEllipses:function(Z,tt){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,B=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1.2;Z.each(function(){var U,d,L,M,s,w,_;for(U=(Z=y.select(this)).text().split(/\s+/).reverse(),L=[],M=0,s=Z.attr("y"),w=parseFloat(Z.attr("dy")),_=Z.text(null).append("tspan").attr("x",H).attr("y",s).attr("dy",w+"em");d=U.pop();)if(L.push(d),_.text(L.join(" ")),_.node()&&_.node().getComputedTextLength()>tt){if(L.pop(),_.text(L.join(" ")),!(M1&&arguments[1]!==void 0?arguments[1]:"day",j=localeTimeMap[R],et=new Intl.DateTimeFormat(y,j);return function(K){return et.format(K)}}}}.call(ht,z,ht,ue))===void 0||(ue.exports=_t)},function(ue,ht,z){"use strict";var _t,m=function(j,et){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return function(K,J){var q=[],Z=!0,tt=!1,H=void 0;try{for(var X,B=K[Symbol.iterator]();!(Z=(X=B.next()).done)&&(q.push(X.value),!J||q.length!==J);Z=!0);}catch(U){tt=!0,H=U}finally{try{!Z&&B.return&&B.return()}finally{if(tt)throw H}}return q}(j,et);throw new TypeError("Invalid attempt to destructure non-iterable instance")},y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j};function R(j,et,K){return et in j?Object.defineProperty(j,et,{value:K,enumerable:!0,configurable:!0,writable:!0}):j[et]=K,j}(_t=function(j){var et,K=z(39),J=z(67),q=z(73),Z=q.axisTimeCombinations,tt=q.timeBenchmarks,H=z(95),X=H.convertMillisecondsToDays,B=H.getLocaleDateFormatter,U={minute:J.timeFormat("%M m"),hour:J.timeFormat("%H %p"),day:J.timeFormat("%e"),daymonth:J.timeFormat("%d %b"),month:J.timeFormat("%b"),year:J.timeFormat("%Y")},d=(R(et={},Z.MINUTE_HOUR,K.timeHour.every(1)),R(et,Z.HOUR_DAY,K.timeDay.every(1)),R(et,Z.DAY_MONTH,K.timeMonth.every(1)),R(et,Z.MONTH_YEAR,K.timeYear.every(1)),et),L=function(s){var w=tt.ONE_YEAR;return s2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,u=new Date(s[0].date),C=new Date(s[s.length-1].date),E=C-u;o&&(typeof Intl=="undefined"||(typeof Intl=="undefined"?"undefined":y(Intl))==="object"&&!Intl.DateTimeFormat)&&(o=null),_||(_=L(E));var S=_.split("-"),v=m(S,2),g=v[0],x=v[1],p=d[_],l=M(w,X(E));return{minor:{format:o?B(o,g):U[g],tick:l},major:{format:o?B(o,x):U[x],tick:p}}}}}.call(ht,z,ht,ue))===void 0||(ue.exports=_t)},function(ue,ht,z){"use strict";var _t;(_t=function(m){z(7);var y="highlight-filter";return{bounceCircleHighlight:function(R,j,et){var K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2*et,J=100,q=50;R.transition().ease(j).duration(J).attr("r",K).transition().ease(j).delay(q).duration(J).attr("r",et)},createFilterContainer:function(R){return R.append("defs").append("filter").attr("id",y)},createGausianBlur:function(R){return R.append("feGaussianBlur").attr("stdDeviation",1).attr("result","coloredBlur"),y},createWhiteGlow:function(R){R.attr("x","-5000%").attr("y","-5000%").attr("width","10000%").attr("height","10000%"),R.append("feFlood").attr("result","flood").attr("flood-color","#ffffff").attr("flood-opacity","1"),R.append("feComposite").attr("result","mask").attr("in2","SourceGraphic").attr("operator","in").attr("in","flood"),R.append("feMorphology").attr("result","dilated").attr("operator","dilate").attr("radius","2").attr("in","mask"),R.append("feGaussianBlur").attr("result","blurred").attr("stdDeviation","5").attr("in","dilated");var j=R.append("feMerge");return j.append("feMergeNode").attr("in","blurred"),j.append("feMergeNode").attr("in","SourceGraphic"),y},createGlow:function(R){R.attr("x","-30%").attr("y","-30%").attr("width","160%").attr("height","160%"),R.append("feGaussianBlur").attr("stdDeviation","0.9 0.9").attr("result","glow");var j=R.append("feMerge");return j.append("feMergeNode").attr("in","glow"),j.append("feMergeNode").attr("in","glow"),j.append("feMergeNode").attr("in","glow"),y},createGlowWithMatrix:function(R){R.attr("x","-500%").attr("y","-500%").attr("width","1800%").attr("height","1800%"),R.append("feColorMatrix").attr("type","matrix").attr("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"),R.append("feGaussianBlur").attr("stdDeviation","1").attr("result","coloredBlur").attr("in","SourceGraphic");var j=R.append("feMerge");return j.append("feMergeNode").attr("in","coloredBlur"),j.append("feMergeNode").attr("in","SourceGraphic"),y}}}.call(ht,z,ht,ue))===void 0||(ue.exports=_t)},,,,,,,,,,function(ue,ht,z){"use strict";var _t,m=function(j,et){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return function(K,J){var q=[],Z=!0,tt=!1,H=void 0;try{for(var X,B=K[Symbol.iterator]();!(Z=(X=B.next()).done)&&(q.push(X.value),!J||q.length!==J);Z=!0);}catch(U){tt=!0,H=U}finally{try{!Z&&B.return&&B.return()}finally{if(tt)throw H}}return q}(j,et);throw new TypeError("Invalid attempt to destructure non-iterable instance")},y=Object.assign||function(j){for(var et=1;et=0||Object.prototype.hasOwnProperty.call(Dn,si)&&(hi[si]=Dn[si]);return hi}(er,["dates"]),ar=Dr.map(function(Dn){return{date:new Date(Dn[de]),value:+Dn[xe]}});return gr.push(y({dates:ar},Rr)),gr},[]),dataByDate:cr,dataRange:Jn}}(en);ne=xn.dataByTopic,Wt=xn.dataByDate,le=xn.dataRange;var Te,bn,nn,fn=gt?300:0;dt=b-f.left-f.right-fn,mt=F-f.top-f.bottom,function(){var wn=et.min(ne,function(er){var Dr=er.dates;return et.min(Dr,Mn)}),vn=et.max(ne,function(er){var Dr=er.dates;return et.max(Dr,Mn)}),cr=et.max(ne,function(er){var Dr=er.dates;return et.max(Dr,Kn)}),Jn=et.min(ne,function(er){var Dr=er.dates;return et.min(Dr,Kn)}),dr=Jn<0?Jn:0;Et=H.scaleTime().domain([wn,vn]).rangeRound([0,dt]),Mt=H.scaleLinear().domain([dr,Math.abs(cr)]).rangeRound([mt,0]).nice();var gr=(I=H.scaleOrdinal().range(P).domain(ne.map(fr))).range();W=I.domain().reduce(function(er,Dr,Rr){return er[Dr]=gr[Rr],er},{})}(),function(wn){st||(st=B.select(wn).append("svg").classed("britechart line-chart",!0),function(){var vn=st.append("g").classed("container-group",!0).attr("transform","translate("+f.left+","+f.top+")");vn.append("g").classed("x-axis-group",!0).append("g").classed("axis x",!0),vn.selectAll(".x-axis-group").append("g").classed("month-axis",!0),vn.append("g").classed("y-axis-group",!0).append("g").classed("axis y",!0),vn.append("g").classed("grid-lines-group",!0),vn.append("g").classed("chart-group",!0),gt&&vn.append("g").classed("legend-group",!0),vn.append("g").classed("metadata-group",!0)}()),st.attr("width",b).attr("height",F)}(this),function(){var wn=void 0,vn=void 0;if(vt==="custom"&&typeof xt=="string")wn={tick:pt,format:U.timeFormat(xt)},vn=null;else{var cr=w(Wt,b,vt,Ct);wn=cr.minor,vn=cr.major,rt=K.axisBottom(Et).ticks(vn.tick).tickSize(0,0).tickFormat(vn.format)}Y=K.axisBottom(Et).ticks(wn.tick).tickSize(10,0).tickPadding(5).tickFormat(wn.format),ot=K.axisLeft(Mt).ticks(te).tickSize([0]).tickPadding(5).tickFormat(ve),function(Jn,dr){st.select(".grid-lines-group").selectAll("line").remove(),(ce==="horizontal"||ce==="full")&&st.select(".grid-lines-group").selectAll("line.horizontal-grid-line").data(Mt.ticks(dr)).enter().append("line").attr("class","horizontal-grid-line").attr("x1",-D-30).attr("x2",dt).attr("y1",function(gr){return Mt(gr)}).attr("y2",function(gr){return Mt(gr)}),ce!=="vertical"&&ce!=="full"||st.select(".grid-lines-group").selectAll("line.vertical-grid-line").data(Et.ticks(Jn)).enter().append("line").attr("class","vertical-grid-line").attr("y1",0).attr("y2",mt).attr("x1",function(gr){return Et(gr)}).attr("x2",function(gr){return Et(gr)}),st.select(".grid-lines-group").selectAll("line.extended-x-line").data([0]).enter().append("line").attr("class","extended-x-line").attr("x1",-D-30).attr("x2",dt).attr("y1",F-f.bottom-f.top).attr("y2",F-f.bottom-f.top)}(wn.tick,te)}(),function(){if(st.select(".x-axis-group .axis.x").attr("transform","translate(0, "+mt+")").call(Y),vt!=="custom"&&st.select(".x-axis-group .month-axis").attr("transform","translate(0, "+(mt+28)+")").call(rt),Ye){tn&&st.selectAll(".x-axis-label").remove();var wn=dt/2,vn=mt+28+36;tn=st.select(".x-axis-group").append("text").attr("x",wn).attr("y",vn).attr("text-anchor","middle").attr("class","x-axis-label").text(Ye)}if(st.select(".y-axis-group .axis.y").attr("transform","translate("+-D+", 0)").call(ot).call(Ge),an){Jt&&st.selectAll(".y-axis-label").remove();var cr=-Kt-D,Jn=-mt/2;Jt=st.select(".y-axis-group").append("text").attr("x",Jn).attr("y",cr).attr("text-anchor","middle").attr("transform","rotate(270)").attr("class","y-axis-label").text(an)}}(),function(){if(le){var wn=X.area().curve(u[Zt]).x(function(vn){var cr=vn.date;return Et(cr)}).y0(function(vn){var cr=vn.min;return Mt(cr)}).y1(function(vn){var cr=vn.max;return Mt(cr)});st.select(".chart-group").append("g").attr("class","area").append("path").data([le]).attr("class","area").attr("d",wn)}}(),Te=void 0,bn=void 0,bn=X.line().curve(u[Zt]).x(function(wn){var vn=wn.date;return Et(vn)}).y(function(wn){var vn=wn.value;return Mt(vn)}),Te=st.select(".chart-group").selectAll(".line").data(ne,fr),nt=Te.enter().append("g").attr("class","topic").append("path").attr("class","line").merge(Te).attr("id",function(wn){return wn.topic}).attr("d",function(wn){var vn=wn.dates;return bn(vn)}).style("stroke",function(wn){return vn=wn.topic,I(vn);var vn}).style("opacity",function(wn){return wn.hasOwnProperty("show")?wn.show?1:0:1}).style("stroke-dasharray",function(wn){return!!wn.hasOwnProperty("show")&&!!wn.dashed&&[.5,4]}),Te.exit().remove(),function(){if(gt){var wn=Number.parseInt(dt)+Number.parseInt(f.right);qe=st.selectAll(".legend-group").append("g").attr("transform","translate("+wn+", 0)").classed("tooltip-text",!0),yn=qe.append("text").classed("tooltip-title",!0).attr("x",-43).attr("dy",".35em").attr("y",16).style("fill","#282C35").style("font-size","12px"),qe.append("line").classed("tooltip-divider",!0).attr("x1",-43).attr("x2",225).attr("y1",31).attr("y2",31).style("stroke","#D2D6DF"),hn=qe.append("g").classed("tooltip-body",!0).style("transform","translateY(8px)").style("fill","#282C35");var vn=void 0;vn=ne[0].hasOwnProperty("show")?ne.filter(function(er){return er.show}):ne;for(var cr=0;crQ&&(Ot||(Ot=st.select(".metadata-group").append("rect").attr("class","overlay").attr("y1",0).attr("y2",F).attr("height",mt).attr("width",dt).attr("fill","rgba(0, 0, 0, 0)").style("display","none")),Bt||(Bt=st.select(".metadata-group").append("g").attr("class","hover-marker vertical-marker-container").attr("transform","translate(9999, 0)"),Ut=Bt.selectAll("path").data([{x1:0,y1:0,x2:0,y2:0}]).enter().append("line").classed("vertical-marker",!0).attr("x1",0).attr("y1",mt).attr("x2",0).attr("y2",0)),st.on("mouseover",function(wn){(function(vn,cr){Ot.style("display","block"),Ut.classed("bc-is-active",!0),ge.call("customMouseOver",vn,cr,B.mouse(vn))})(this,wn)}).on("mouseout",function(wn){(function(vn,cr){Ot.style("display","none"),Ut.classed("bc-is-active",!1),ge.call("customMouseOut",vn,cr,B.mouse(vn))})(this,wn)}).on("mousemove",function(wn){var vn,cr,Jn,dr,gr,er,Dr,Rr;vn=this,cr=B.mouse(vn),Jn=m(cr,2),dr=Jn[0],gr=Jn[1],er=-f.left,Dr=Oe(dr+er),Rr=void 0,Dr&&(Sn(Rr=Et(new Date(Dr.date))),Ze(Dr),ge.call("customMouseMove",vn,Dr,W,Rr,gr))})),Tt&&function(){st.select(".chart-group").selectAll(".data-points-container").remove();var wn=nt.nodes().reduce(function(vn,cr){return vn[cr.id]=cr,vn},{});Wt.reduce(function(vn,cr){var Jn=cr.topics.map(function(dr){return{topic:dr,node:wn[dr.name]}});return vn=[].concat(R(vn),R(Jn))},[])}(),st.on("touchmove",function(wn){(function(vn,cr){ge.call("customTouchMove",vn,cr,B.touch(vn))})(this,wn)}),wt&&(nn=Oe(dt))&&(Sn(Et(new Date(nn.date))),Ze(nn))})}function Ge(Me){Me.selectAll(".tick text").attr("transform","translate(0, -7)")}function ve(Me){var en=void 0;return en=l(Me)?x:p,zt&&(en=tt.format(zt)),en(Me)}function Re(Me){return new Date(Me).toLocaleDateString()}function ze(Me){var en,xn,Te=void 0,bn=void 0;en=Me.topicName,xn=Me.sum.toLocaleString(),bn=hn.append("text").classed("tooltip-left-text",!0).attr("dy","1em").attr("x",-15).attr("y",Nn).style("fill","#000000").style("font-size","12px").text(en).call(De,200,12,-25),Te=hn.append("text").classed("tooltip-right-text",!0).attr("dy","1em").attr("x",-15).attr("y",Nn).style("fill","#000000").style("font-size","12px").text(xn),pn=bn.node().getBBox().height?bn.node().getBBox().height:pn,pn+5,ye=Te.node().getBBox().width?Te.node().getBBox().width:ye,Te.attr("x",300-ye-75),hn.append("circle").classed("tooltip-circle",!0).attr("cx",-35).attr("cy",Nn+8).attr("r",5).style("fill",W[Me.topic]).style("stroke-width",1),Nn+=pn+7}function Oe(Me){var en,xn,Te,bn=Et.invert(Me),nn=(0,et.bisector(Mn).left)(Wt,bn,1),fn=Wt[nn],wn=Wt[nn-1],vn=void 0;return wn&&fn?(en=bn,xn=fn,Te=wn,vn=new Date(en).getTime()-new Date(xn.date).getTime()>new Date(Te.date).getTime()-new Date(en).getTime()?xn:Te):vn=fn,vn}function De(Me,en,xn){var Te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;Me.each(function(){var bn,nn,fn,wn,vn,cr,Jn;for(bn=(Me=B.select(this)).text().split(/\s+/).reverse(),fn=[],wn=0,vn=Me.attr("y"),cr=parseFloat(Me.attr("dy")),Jn=Me.text(null).append("tspan").attr("x",Te).attr("y",vn).attr("dy",cr+"em");nn=bn.pop();)fn.push(nn),Jn.text(fn.join(" ")),d.getTextWidth(fn.join(" "),xn,"Karla, sans-serif")>en&&(fn.pop(),Jn.text(fn.join(" ")),wn<4&&(fn=[nn],Jn=Me.append("tspan").attr("x",Te).attr("y",vn).attr("dy",1.2*++wn+cr+"em").text(nn)))})}function Ze(Me){Bt.selectAll(".circle-container").remove();var en=nt.nodes().reduce(function(bn,nn){return bn[nn.id]=nn,bn},{}),xn=ne.filter(function(bn){return!bn.show}).map(function(bn){return bn.topicName}),Te=Me.topics.map(function(bn){return{topic:bn,node:en[bn.name]}}).filter(function(bn){return!!bn.topic}).sort(function(bn,nn){return W[bn.topic.name]ar.x+gr;){var Nr=(Dr+Rr)/2;if(ar=Jn.getPointAtLength(Nr),cr{(function(ue,ht){We.exports=ht()})(window,function(){return function(ue){var ht={};function z(_t){if(ht[_t])return ht[_t].exports;var m=ht[_t]={i:_t,l:!1,exports:{}};return ue[_t].call(m.exports,m,m.exports,z),m.l=!0,m.exports}return z.m=ue,z.c=ht,z.d=function(_t,m,y){z.o(_t,m)||Object.defineProperty(_t,m,{enumerable:!0,get:y})},z.r=function(_t){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(_t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_t,"__esModule",{value:!0})},z.t=function(_t,m){if(1&m&&(_t=z(_t)),8&m||4&m&&typeof _t=="object"&&_t&&_t.__esModule)return _t;var y=Object.create(null);if(z.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:_t}),2&m&&typeof _t!="string")for(var R in _t)z.d(y,R,function(j){return _t[j]}.bind(null,R));return y},z.n=function(_t){var m=_t&&_t.__esModule?function(){return _t.default}:function(){return _t};return z.d(m,"a",m),m},z.o=function(_t,m){return Object.prototype.hasOwnProperty.call(_t,m)},z.p="",z(z.s=116)}([function(ue,ht,z){"use strict";z.d(ht,"a",function(){return y});var _t=new Date,m=new Date;function y(R,j,et,K){function J(q){return R(q=arguments.length===0?new Date:new Date(+q)),q}return J.floor=function(q){return R(q=new Date(+q)),q},J.ceil=function(q){return R(q=new Date(q-1)),j(q,1),R(q),q},J.round=function(q){var Z=J(q),tt=J.ceil(q);return q-Z0))return X;do X.push(H=new Date(+q)),j(q,tt),R(q);while(H=Z)for(;R(Z),!q(Z);)Z.setTime(Z-1)},function(Z,tt){if(Z>=Z)if(tt<0)for(;++tt<=0;)for(;j(Z,-1),!q(Z););else for(;--tt>=0;)for(;j(Z,1),!q(Z););})},et&&(J.count=function(q,Z){return _t.setTime(+q),m.setTime(+Z),R(_t),R(m),Math.floor(et(_t,m))},J.every=function(q){return q=Math.floor(q),isFinite(q)&&q>0?q>1?J.filter(K?function(Z){return K(Z)%q==0}:function(Z){return J.count(0,Z)%q==0}):J:null}),J}},function(ue,ht,z){"use strict";z.d(ht,"d",function(){return _t}),z.d(ht,"c",function(){return m}),z.d(ht,"b",function(){return y}),z.d(ht,"a",function(){return R}),z.d(ht,"e",function(){return j});var _t=1e3,m=6e4,y=36e5,R=864e5,j=6048e5},,function(ue,ht,z){"use strict";z.d(ht,"g",function(){return R}),z.d(ht,"c",function(){return j}),z.d(ht,"k",function(){return et}),z.d(ht,"m",function(){return K}),z.d(ht,"i",function(){return J}),z.d(ht,"a",function(){return q}),z.d(ht,"e",function(){return Z}),z.d(ht,"h",function(){return tt}),z.d(ht,"d",function(){return H}),z.d(ht,"l",function(){return X}),z.d(ht,"n",function(){return B}),z.d(ht,"j",function(){return U}),z.d(ht,"b",function(){return d}),z.d(ht,"f",function(){return L});var _t=z(0),m=z(1);function y(M){return Object(_t.a)(function(s){s.setDate(s.getDate()-(s.getDay()+7-M)%7),s.setHours(0,0,0,0)},function(s,w){s.setDate(s.getDate()+7*w)},function(s,w){return(w-s-(w.getTimezoneOffset()-s.getTimezoneOffset())*m.c)/m.e})}var R=y(0),j=y(1),et=y(2),K=y(3),J=y(4),q=y(5),Z=y(6),tt=R.range,H=j.range,X=et.range,B=K.range,U=J.range,d=q.range,L=Z.range},function(ue,ht,z){"use strict";z.d(ht,"g",function(){return R}),z.d(ht,"c",function(){return j}),z.d(ht,"k",function(){return et}),z.d(ht,"m",function(){return K}),z.d(ht,"i",function(){return J}),z.d(ht,"a",function(){return q}),z.d(ht,"e",function(){return Z}),z.d(ht,"h",function(){return tt}),z.d(ht,"d",function(){return H}),z.d(ht,"l",function(){return X}),z.d(ht,"n",function(){return B}),z.d(ht,"j",function(){return U}),z.d(ht,"b",function(){return d}),z.d(ht,"f",function(){return L});var _t=z(0),m=z(1);function y(M){return Object(_t.a)(function(s){s.setUTCDate(s.getUTCDate()-(s.getUTCDay()+7-M)%7),s.setUTCHours(0,0,0,0)},function(s,w){s.setUTCDate(s.getUTCDate()+7*w)},function(s,w){return(w-s)/m.e})}var R=y(0),j=y(1),et=y(2),K=y(3),J=y(4),q=y(5),Z=y(6),tt=R.range,H=j.range,X=et.range,B=K.range,U=J.range,d=q.range,L=Z.range},function(ue,ht,z){"use strict";z.d(ht,"a",function(){return m}),z.d(ht,"d",function(){return y}),z.d(ht,"c",function(){return R}),z.d(ht,"e",function(){return M}),z.d(ht,"h",function(){return _}),z.d(ht,"g",function(){return o}),z.d(ht,"b",function(){return u}),z.d(ht,"f",function(){return x});var _t=z(11);function m(){}var y=.7,R=1/y,j="\\s*([+-]?\\d+)\\s*",et="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",K="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",J=/^#([0-9a-f]{3,8})$/,q=new RegExp("^rgb\\("+[j,j,j]+"\\)$"),Z=new RegExp("^rgb\\("+[K,K,K]+"\\)$"),tt=new RegExp("^rgba\\("+[j,j,j,et]+"\\)$"),H=new RegExp("^rgba\\("+[K,K,K,et]+"\\)$"),X=new RegExp("^hsl\\("+[et,K,K]+"\\)$"),B=new RegExp("^hsla\\("+[et,K,K,et]+"\\)$"),U={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function d(){return this.rgb().formatHex()}function L(){return this.rgb().formatRgb()}function M(f){var b,F;return f=(f+"").trim().toLowerCase(),(b=J.exec(f))?(F=b[1].length,b=parseInt(b[1],16),F===6?s(b):F===3?new u(b>>8&15|b>>4&240,b>>4&15|240&b,(15&b)<<4|15&b,1):F===8?new u(b>>24&255,b>>16&255,b>>8&255,(255&b)/255):F===4?new u(b>>12&15|b>>8&240,b>>8&15|b>>4&240,b>>4&15|240&b,((15&b)<<4|15&b)/255):null):(b=q.exec(f))?new u(b[1],b[2],b[3],1):(b=Z.exec(f))?new u(255*b[1]/100,255*b[2]/100,255*b[3]/100,1):(b=tt.exec(f))?w(b[1],b[2],b[3],b[4]):(b=H.exec(f))?w(255*b[1]/100,255*b[2]/100,255*b[3]/100,b[4]):(b=X.exec(f))?v(b[1],b[2]/100,b[3]/100,1):(b=B.exec(f))?v(b[1],b[2]/100,b[3]/100,b[4]):U.hasOwnProperty(f)?s(U[f]):f==="transparent"?new u(NaN,NaN,NaN,0):null}function s(f){return new u(f>>16&255,f>>8&255,255&f,1)}function w(f,b,F,T){return T<=0&&(f=b=F=NaN),new u(f,b,F,T)}function _(f){return f instanceof m||(f=M(f)),f?new u((f=f.rgb()).r,f.g,f.b,f.opacity):new u}function o(f,b,F,T){return arguments.length===1?_(f):new u(f,b,F,T==null?1:T)}function u(f,b,F,T){this.r=+f,this.g=+b,this.b=+F,this.opacity=+T}function C(){return"#"+S(this.r)+S(this.g)+S(this.b)}function E(){var f=this.opacity;return((f=isNaN(f)?1:Math.max(0,Math.min(1,f)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(f===1?")":", "+f+")")}function S(f){return((f=Math.max(0,Math.min(255,Math.round(f)||0)))<16?"0":"")+f.toString(16)}function v(f,b,F,T){return T<=0?f=b=F=NaN:F<=0||F>=1?f=b=NaN:b<=0&&(f=NaN),new p(f,b,F,T)}function g(f){if(f instanceof p)return new p(f.h,f.s,f.l,f.opacity);if(f instanceof m||(f=M(f)),!f)return new p;if(f instanceof p)return f;var b=(f=f.rgb()).r/255,F=f.g/255,T=f.b/255,k=Math.min(b,F,T),Q=Math.max(b,F,T),st=NaN,nt=Q-k,dt=(Q+k)/2;return nt?(st=b===Q?(F-T)/nt+6*(F0&&dt<1?0:st,new p(st,nt,dt,f.opacity)}function x(f,b,F,T){return arguments.length===1?g(f):new p(f,b,F,T==null?1:T)}function p(f,b,F,T){this.h=+f,this.s=+b,this.l=+F,this.opacity=+T}function l(f,b,F){return 255*(f<60?b+(F-b)*f/60:f<180?F:f<240?b+(F-b)*(240-f)/60:b)}Object(_t.a)(m,M,{copy:function(f){return Object.assign(new this.constructor,this,f)},displayable:function(){return this.rgb().displayable()},hex:d,formatHex:d,formatHsl:function(){return g(this).formatHsl()},formatRgb:L,toString:L}),Object(_t.a)(u,o,Object(_t.b)(m,{brighter:function(f){return f=f==null?R:Math.pow(R,f),new u(this.r*f,this.g*f,this.b*f,this.opacity)},darker:function(f){return f=f==null?y:Math.pow(y,f),new u(this.r*f,this.g*f,this.b*f,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:C,formatHex:C,formatRgb:E,toString:E})),Object(_t.a)(p,x,Object(_t.b)(m,{brighter:function(f){return f=f==null?R:Math.pow(R,f),new p(this.h,this.s,this.l*f,this.opacity)},darker:function(f){return f=f==null?y:Math.pow(y,f),new p(this.h,this.s,this.l*f,this.opacity)},rgb:function(){var f=this.h%360+360*(this.h<0),b=isNaN(f)||isNaN(this.s)?0:this.s,F=this.l,T=F+(F<.5?F:1-F)*b,k=2*F-T;return new u(l(f>=240?f-240:f+120,k,T),l(f,k,T),l(f<120?f+240:f-120,k,T),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var f=this.opacity;return((f=isNaN(f)?1:Math.max(0,Math.min(1,f)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(f===1?")":", "+f+")")}}))},function(ue,ht,z){"use strict";ht.a=function(_t,m){return _t=+_t,m=+m,function(y){return _t*(1-y)+m*y}}},function(ue,ht,z){"use strict";z.r(ht);var _t=z(12),m=z(32),y=function(o){return Object(m.a)(Object(_t.a)(o).call(document.documentElement))},R=0;function j(){return new et}function et(){this._="@"+(++R).toString(36)}et.prototype=j.prototype={constructor:et,get:function(o){for(var u=this._;!(u in o);)if(!(o=o.parentNode))return;return o[u]},set:function(o,u){return o[this._]=u},remove:function(o){return this._ in o&&delete o[this._]},toString:function(){return this._}};var K=z(34),J=z(60),q=z(20),Z=z(14),tt=z(13),H=z(10),X=function(o){return typeof o=="string"?new H.a([document.querySelectorAll(o)],[document.documentElement]):new H.a([o==null?[]:o],H.c)},B=z(19),U=z(33),d=z(35),L=z(61),M=z(22),s=function(o,u){u==null&&(u=Object(M.a)().touches);for(var C=0,E=u?u.length:0,S=new Array(E);C180||J<-180?J-360*Math.round(J/360):J):Object(_t.a)(isNaN(et)?K:et)}function R(et){return(et=+et)==1?j:function(K,J){return J-K?function(q,Z,tt){return q=Math.pow(q,tt),Z=Math.pow(Z,tt)-q,tt=1/tt,function(H){return Math.pow(q+H*Z,tt)}}(K,J,et):Object(_t.a)(isNaN(K)?J:K)}}function j(et,K){var J=K-et;return J?m(et,J):Object(_t.a)(isNaN(et)?K:et)}},function(ue,ht,z){"use strict";var _t=z(18);ht.a=function(m){return(m=Object(_t.a)(Math.abs(m)))?m[1]:NaN}},function(ue,ht,z){"use strict";var _t=z(19),m=z(33),y=z(34),R=function(P){return new Array(P.length)};function j(P,W){this.ownerDocument=P.ownerDocument,this.namespaceURI=P.namespaceURI,this._next=null,this._parent=P,this.__data__=W}j.prototype={constructor:j,appendChild:function(P){return this._parent.insertBefore(P,this._next)},insertBefore:function(P,W){return this._parent.insertBefore(P,W)},querySelector:function(P){return this._parent.querySelector(P)},querySelectorAll:function(P){return this._parent.querySelectorAll(P)}};function et(P,W,lt,it,vt,pt){for(var xt,Ct=0,Tt=W.length,Nt=pt.length;CtW?1:P>=W?0:NaN}var q=z(20);function Z(P){return function(){this.removeAttribute(P)}}function tt(P){return function(){this.removeAttributeNS(P.space,P.local)}}function H(P,W){return function(){this.setAttribute(P,W)}}function X(P,W){return function(){this.setAttributeNS(P.space,P.local,W)}}function B(P,W){return function(){var lt=W.apply(this,arguments);lt==null?this.removeAttribute(P):this.setAttribute(P,lt)}}function U(P,W){return function(){var lt=W.apply(this,arguments);lt==null?this.removeAttributeNS(P.space,P.local):this.setAttributeNS(P.space,P.local,lt)}}var d=z(35);function L(P){return function(){delete this[P]}}function M(P,W){return function(){this[P]=W}}function s(P,W){return function(){var lt=W.apply(this,arguments);lt==null?delete this[P]:this[P]=lt}}function w(P){return P.trim().split(/^|\s+/)}function _(P){return P.classList||new o(P)}function o(P){this._node=P,this._names=w(P.getAttribute("class")||"")}function u(P,W){for(var lt=_(P),it=-1,vt=W.length;++it=0&&(this._names.splice(W,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(P){return this._names.indexOf(P)>=0}};function g(){this.textContent=""}function x(P){return function(){this.textContent=P}}function p(P){return function(){var W=P.apply(this,arguments);this.textContent=W==null?"":W}}function l(){this.innerHTML=""}function f(P){return function(){this.innerHTML=P}}function b(P){return function(){var W=P.apply(this,arguments);this.innerHTML=W==null?"":W}}function F(){this.nextSibling&&this.parentNode.appendChild(this)}function T(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var k=z(12);function Q(){return null}function st(){var P=this.parentNode;P&&P.removeChild(this)}function nt(){var P=this.cloneNode(!1),W=this.parentNode;return W?W.insertBefore(P,this.nextSibling):P}function dt(){var P=this.cloneNode(!0),W=this.parentNode;return W?W.insertBefore(P,this.nextSibling):P}var mt=z(17),Et=z(21);function Mt(P,W,lt){var it=Object(Et.a)(P),vt=it.CustomEvent;typeof vt=="function"?vt=new vt(W,lt):(vt=it.document.createEvent("Event"),lt?(vt.initEvent(W,lt.bubbles,lt.cancelable),vt.detail=lt.detail):vt.initEvent(W,!1,!1)),P.dispatchEvent(vt)}function I(P,W){return function(){return Mt(this,P,W)}}function Y(P,W){return function(){return Mt(this,P,W.apply(this,arguments))}}z.d(ht,"c",function(){return rt}),z.d(ht,"a",function(){return ot});var rt=[null];function ot(P,W){this._groups=P,this._parents=W}function D(){return new ot([[document.documentElement]],rt)}ot.prototype=D.prototype={constructor:ot,select:function(P){typeof P!="function"&&(P=Object(_t.a)(P));for(var W=this._groups,lt=W.length,it=new Array(lt),vt=0;vt=Ye&&(Ye=be+1);!(xe=le[Ye])&&++Ye=0;)(it=vt[pt])&&(xt&&4^it.compareDocumentPosition(xt)&&xt.parentNode.insertBefore(it,xt),xt=it);return this},sort:function(P){function W(wt,Rt){return wt&&Rt?P(wt.__data__,Rt.__data__):!wt-!Rt}P||(P=J);for(var lt=this._groups,it=lt.length,vt=new Array(it),pt=0;pt1?this.each((W==null?L:typeof W=="function"?s:M)(P,W)):this.node()[P]},classed:function(P,W){var lt=w(P+"");if(arguments.length<2){for(var it=_(this.node()),vt=-1,pt=lt.length;++vt0?Object(_t.a)(function(j){j.setFullYear(Math.floor(j.getFullYear()/R)*R),j.setMonth(0,1),j.setHours(0,0,0,0)},function(j,et){j.setFullYear(j.getFullYear()+et*R)}):null},ht.a=m;var y=m.range},function(ue,ht,z){"use strict";z.d(ht,"b",function(){return y});var _t=z(0),m=Object(_t.a)(function(R){R.setUTCMonth(0,1),R.setUTCHours(0,0,0,0)},function(R,j){R.setUTCFullYear(R.getUTCFullYear()+j)},function(R,j){return j.getUTCFullYear()-R.getUTCFullYear()},function(R){return R.getUTCFullYear()});m.every=function(R){return isFinite(R=Math.floor(R))&&R>0?Object(_t.a)(function(j){j.setUTCFullYear(Math.floor(j.getUTCFullYear()/R)*R),j.setUTCMonth(0,1),j.setUTCHours(0,0,0,0)},function(j,et){j.setUTCFullYear(j.getUTCFullYear()+et*R)}):null},ht.a=m;var y=m.range},function(ue,ht,z){"use strict";z.d(ht,"c",function(){return m}),z.d(ht,"a",function(){return J});var _t={},m=null;typeof document!="undefined"&&("onmouseenter"in document.documentElement||(_t={mouseenter:"mouseover",mouseleave:"mouseout"}));function y(q,Z,tt){return q=R(q,Z,tt),function(H){var X=H.relatedTarget;X&&(X===this||8&X.compareDocumentPosition(this))||q.call(this,H)}}function R(q,Z,tt){return function(H){var X=m;m=H;try{q.call(this,this.__data__,Z,tt)}finally{m=X}}}function j(q){return q.trim().split(/^|\s+/).map(function(Z){var tt="",H=Z.indexOf(".");return H>=0&&(tt=Z.slice(H+1),Z=Z.slice(0,H)),{type:Z,name:tt}})}function et(q){return function(){var Z=this.__on;if(Z){for(var tt,H=0,X=-1,B=Z.length;H1?R[0]+R.slice(2):R,+_t.slice(y+1)]}},function(ue,ht,z){"use strict";function _t(){}ht.a=function(m){return m==null?_t:function(){return this.querySelector(m)}}},function(ue,ht,z){"use strict";var _t=z(14);ht.a=function(m){var y=m+="",R=y.indexOf(":");return R>=0&&(y=m.slice(0,R))!=="xmlns"&&(m=m.slice(R+1)),_t.a.hasOwnProperty(y)?{space:_t.a[y],local:m}:m}},function(ue,ht,z){"use strict";ht.a=function(_t){return _t.ownerDocument&&_t.ownerDocument.defaultView||_t.document&&_t||_t.defaultView}},function(ue,ht,z){"use strict";var _t=z(17);ht.a=function(){for(var m,y=_t.c;m=y.sourceEvent;)y=m;return y}},,function(ue,ht,z){"use strict";ht.a=function(_t){return function(){return _t}}},function(ue,ht,z){"use strict";z.d(ht,"b",function(){return m}),z.d(ht,"a",function(){return y});var _t=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function m(R){if(!(j=_t.exec(R)))throw new Error("invalid format: "+R);var j;return new y({fill:j[1],align:j[2],sign:j[3],symbol:j[4],zero:j[5],width:j[6],comma:j[7],precision:j[8]&&j[8].slice(1),trim:j[9],type:j[10]})}function y(R){this.fill=R.fill===void 0?" ":R.fill+"",this.align=R.align===void 0?">":R.align+"",this.sign=R.sign===void 0?"-":R.sign+"",this.symbol=R.symbol===void 0?"":R.symbol+"",this.zero=!!R.zero,this.width=R.width===void 0?void 0:+R.width,this.comma=!!R.comma,this.precision=R.precision===void 0?void 0:+R.precision,this.trim=!!R.trim,this.type=R.type===void 0?"":R.type+""}m.prototype=y.prototype,y.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(ue,ht,z){"use strict";function _t(m,y,R,j,et){var K=m*m,J=K*m;return((1-3*m+3*K-J)*y+(4-6*K+3*J)*R+(1+3*m+3*K-3*J)*j+J*et)/6}z.d(ht,"a",function(){return _t}),ht.b=function(m){var y=m.length-1;return function(R){var j=R<=0?R=0:R>=1?(R=1,y-1):Math.floor(R*y),et=m[j],K=m[j+1],J=j>0?m[j-1]:2*et-K,q=j0?R>1?Object(_t.a)(function(j){j.setTime(Math.floor(j/R)*R)},function(j,et){j.setTime(+j+et*R)},function(j,et){return(et-j)/R}):m:null},ht.a=m;var y=m.range},function(ue,ht,z){"use strict";var _t=z(10);ht.a=function(m){return typeof m=="string"?new _t.a([[document.querySelector(m)]],[document.documentElement]):new _t.a([[m]],_t.c)}},function(ue,ht,z){"use strict";function _t(){return[]}ht.a=function(m){return m==null?_t:function(){return this.querySelectorAll(m)}}},function(ue,ht,z){"use strict";ht.a=function(_t){return function(){return this.matches(_t)}}},function(ue,ht,z){"use strict";z.d(ht,"b",function(){return j});var _t=z(21);function m(et){return function(){this.style.removeProperty(et)}}function y(et,K,J){return function(){this.style.setProperty(et,K,J)}}function R(et,K,J){return function(){var q=K.apply(this,arguments);q==null?this.style.removeProperty(et):this.style.setProperty(et,q,J)}}function j(et,K){return et.style.getPropertyValue(K)||Object(_t.a)(et).getComputedStyle(et,null).getPropertyValue(K)}ht.a=function(et,K,J){return arguments.length>1?this.each((K==null?m:typeof K=="function"?R:y)(et,K,J==null?"":J)):j(this.node(),et)}},,function(ue,ht,z){"use strict";z.d(ht,"b",function(){return et}),z.d(ht,"c",function(){return K});var _t=z(5),m=z(26),y=z(53),R=z(8);function j(J){return function(q){var Z,tt,H=q.length,X=new Array(H),B=new Array(H),U=new Array(H);for(Z=0;ZB+1?X.slice(0,B+1)+"."+X.slice(B+1):X+new Array(B-X.length+2).join("0")},et={"%":function(Z,tt){return(100*Z).toFixed(tt)},b:function(Z){return Math.round(Z).toString(2)},c:function(Z){return Z+""},d:function(Z){return Math.round(Z).toString(10)},e:function(Z,tt){return Z.toExponential(tt)},f:function(Z,tt){return Z.toFixed(tt)},g:function(Z,tt){return Z.toPrecision(tt)},o:function(Z){return Math.round(Z).toString(8)},p:function(Z,tt){return j(100*Z,tt)},r:j,s:function(Z,tt){var H=Object(R.a)(Z,tt);if(!H)return Z+"";var X=H[0],B=H[1],U=B-(_t=3*Math.max(-8,Math.min(8,Math.floor(B/3))))+1,d=X.length;return U===d?X:U>d?X+new Array(U-d+1).join("0"):U>0?X.slice(0,U)+"."+X.slice(U):"0."+new Array(1-U).join("0")+Object(R.a)(Z,Math.max(0,tt+U-1))[0]},X:function(Z){return Math.round(Z).toString(16).toUpperCase()},x:function(Z){return Math.round(Z).toString(16)}},K=function(Z){return Z},J=Array.prototype.map,q=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];ht.a=function(Z){var tt,H,X=Z.grouping===void 0||Z.thousands===void 0?K:(tt=J.call(Z.grouping,Number),H=Z.thousands+"",function(o,u){for(var C=o.length,E=[],S=0,v=tt[0],g=0;C>0&&v>0&&(g+v+1>u&&(v=Math.max(1,u-g)),E.push(o.substring(C-=v,C+v)),!((g+=v+1)>u));)v=tt[S=(S+1)%tt.length];return E.reverse().join(H)}),B=Z.currency===void 0?"":Z.currency[0]+"",U=Z.currency===void 0?"":Z.currency[1]+"",d=Z.decimal===void 0?".":Z.decimal+"",L=Z.numerals===void 0?K:function(o){return function(u){return u.replace(/[0-9]/g,function(C){return o[+C]})}}(J.call(Z.numerals,String)),M=Z.percent===void 0?"%":Z.percent+"",s=Z.minus===void 0?"-":Z.minus+"",w=Z.nan===void 0?"NaN":Z.nan+"";function _(o){var u=(o=Object(y.b)(o)).fill,C=o.align,E=o.sign,S=o.symbol,v=o.zero,g=o.width,x=o.comma,p=o.precision,l=o.trim,f=o.type;f==="n"?(x=!0,f="g"):et[f]||(p===void 0&&(p=12),l=!0,f="g"),(v||u==="0"&&C==="=")&&(v=!0,u="0",C="=");var b=S==="$"?B:S==="#"&&/[boxX]/.test(f)?"0"+f.toLowerCase():"",F=S==="$"?U:/[%p]/.test(f)?M:"",T=et[f],k=/[defgprs%]/.test(f);function Q(st){var nt,dt,mt,Et=b,Mt=F;if(f==="c")Mt=T(st)+Mt,st="";else{var I=(st=+st)<0;if(st=isNaN(st)?w:T(Math.abs(st),p),l&&(st=function(ot){t:for(var D,P=ot.length,W=1,lt=-1;W0&&(lt=0)}return lt>0?ot.slice(0,lt)+ot.slice(D+1):ot}(st)),I&&+st==0&&(I=!1),Et=(I?E==="("?E:s:E==="-"||E==="("?"":E)+Et,Mt=(f==="s"?q[8+_t/3]:"")+Mt+(I&&E==="("?")":""),k){for(nt=-1,dt=st.length;++nt(mt=st.charCodeAt(nt))||mt>57){Mt=(mt===46?d+st.slice(nt+1):st.slice(nt))+Mt,st=st.slice(0,nt);break}}}x&&!v&&(st=X(st,1/0));var Y=Et.length+st.length+Mt.length,rt=Y>1)+Et+st+Mt+rt.slice(Y);break;default:st=rt+Et+st+Mt}return L(st)}return p=p===void 0?6:/[gprs]/.test(f)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),Q.toString=function(){return o+""},Q}return{format:_,formatPrefix:function(o,u){var C=_(((o=Object(y.b)(o)).type="f",o)),E=3*Math.max(-8,Math.min(8,Math.floor(Object(m.a)(u)/3))),S=Math.pow(10,-E),v=q[8+E/3];return function(g){return C(S*g)+v}}}}},,,function(ue,ht,z){"use strict";z.d(ht,"b",function(){return m}),z.d(ht,"c",function(){return y}),z.d(ht,"a",function(){return j});var _t,m,y,R=z(40);function j(et){return _t=Object(R.a)(et),m=_t.format,y=_t.formatPrefix,_t}j({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})},function(ue,ht,z){"use strict";z.r(ht);var _t=z(43);z.d(ht,"formatDefaultLocale",function(){return _t.a}),z.d(ht,"format",function(){return _t.b}),z.d(ht,"formatPrefix",function(){return _t.c});var m=z(40);z.d(ht,"formatLocale",function(){return m.a});var y=z(25);z.d(ht,"formatSpecifier",function(){return y.b}),z.d(ht,"FormatSpecifier",function(){return y.a});var R=z(63);z.d(ht,"precisionFixed",function(){return R.a});var j=z(64);z.d(ht,"precisionPrefix",function(){return j.a});var et=z(65);z.d(ht,"precisionRound",function(){return et.a})},function(ue,ht,z){"use strict";z.d(ht,"b",function(){return m}),z.d(ht,"c",function(){return y}),z.d(ht,"d",function(){return R}),z.d(ht,"e",function(){return j}),z.d(ht,"a",function(){return K});var _t,m,y,R,j,et=z(54);function K(J){return _t=Object(et.a)(J),m=_t.format,y=_t.parse,R=_t.utcFormat,j=_t.utcParse,_t}K({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})},,function(ue,ht,z){"use strict";z.d(ht,"b",function(){return y});var _t=z(0),m=Object(_t.a)(function(R){R.setDate(1),R.setHours(0,0,0,0)},function(R,j){R.setMonth(R.getMonth()+j)},function(R,j){return j.getMonth()-R.getMonth()+12*(j.getFullYear()-R.getFullYear())},function(R){return R.getMonth()});ht.a=m;var y=m.range},function(ue,ht,z){"use strict";z.d(ht,"b",function(){return R});var _t=z(0),m=z(1),y=Object(_t.a)(function(j){j.setTime(j-j.getMilliseconds()-j.getSeconds()*m.d-j.getMinutes()*m.c)},function(j,et){j.setTime(+j+et*m.b)},function(j,et){return(et-j)/m.b},function(j){return j.getHours()});ht.a=y;var R=y.range},function(ue,ht,z){"use strict";z.d(ht,"b",function(){return R});var _t=z(0),m=z(1),y=Object(_t.a)(function(j){j.setTime(j-j.getMilliseconds()-j.getSeconds()*m.d)},function(j,et){j.setTime(+j+et*m.c)},function(j,et){return(et-j)/m.c},function(j){return j.getMinutes()});ht.a=y;var R=y.range},function(ue,ht,z){"use strict";z.d(ht,"b",function(){return y});var _t=z(0),m=Object(_t.a)(function(R){R.setUTCDate(1),R.setUTCHours(0,0,0,0)},function(R,j){R.setUTCMonth(R.getUTCMonth()+j)},function(R,j){return j.getUTCMonth()-R.getUTCMonth()+12*(j.getUTCFullYear()-R.getUTCFullYear())},function(R){return R.getUTCMonth()});ht.a=m;var y=m.range},function(ue,ht,z){"use strict";z.d(ht,"b",function(){return R});var _t=z(0),m=z(1),y=Object(_t.a)(function(j){j.setUTCMinutes(0,0,0)},function(j,et){j.setTime(+j+et*m.b)},function(j,et){return(et-j)/m.b},function(j){return j.getUTCHours()});ht.a=y;var R=y.range},function(ue,ht,z){"use strict";z.d(ht,"b",function(){return R});var _t=z(0),m=z(1),y=Object(_t.a)(function(j){j.setUTCSeconds(0,0)},function(j,et){j.setTime(+j+et*m.c)},function(j,et){return(et-j)/m.c},function(j){return j.getUTCMinutes()});ht.a=y;var R=y.range},function(ue,ht,z){"use strict";var _t=z(26);ht.a=function(m){var y=m.length;return function(R){var j=Math.floor(((R%=1)<0?++R:R)*y),et=m[(j+y-1)%y],K=m[j%y],J=m[(j+1)%y],q=m[(j+2)%y];return Object(_t.a)((R-j/y)*y,et,K,J,q)}}},function(ue,ht,z){"use strict";z.d(ht,"a",function(){return Z});var _t=z(4),m=z(28),y=z(3),R=z(27),j=z(15),et=z(16);function K(Ot){if(0<=Ot.y&&Ot.y<100){var Bt=new Date(-1,Ot.m,Ot.d,Ot.H,Ot.M,Ot.S,Ot.L);return Bt.setFullYear(Ot.y),Bt}return new Date(Ot.y,Ot.m,Ot.d,Ot.H,Ot.M,Ot.S,Ot.L)}function J(Ot){if(0<=Ot.y&&Ot.y<100){var Bt=new Date(Date.UTC(-1,Ot.m,Ot.d,Ot.H,Ot.M,Ot.S,Ot.L));return Bt.setUTCFullYear(Ot.y),Bt}return new Date(Date.UTC(Ot.y,Ot.m,Ot.d,Ot.H,Ot.M,Ot.S,Ot.L))}function q(Ot,Bt,Ut){return{y:Ot,m:Bt,d:Ut,H:0,M:0,S:0,L:0}}function Z(Ot){var Bt=Ot.dateTime,Ut=Ot.date,zt=Ot.time,ce=Ot.periods,_e=Ot.days,ye=Ot.shortDays,qe=Ot.months,hn=Ot.shortMonths,yn=L(ce),Nn=M(ce),pn=L(_e),Mn=M(_e),Kn=L(ye),fr=M(ye),ge=L(qe),Ie=M(qe),Ge=L(hn),ve=M(hn),Re={a:function(Me){return ye[Me.getDay()]},A:function(Me){return _e[Me.getDay()]},b:function(Me){return hn[Me.getMonth()]},B:function(Me){return qe[Me.getMonth()]},c:null,d:nt,e:nt,f:I,H:dt,I:mt,j:Et,L:Mt,m:Y,M:rt,p:function(Me){return ce[+(Me.getHours()>=12)]},q:function(Me){return 1+~~(Me.getMonth()/3)},Q:Kt,s:te,S:ot,u:D,U:P,V:W,w:lt,W:it,x:null,X:null,y:vt,Y:pt,Z:xt,"%":Jt},ze={a:function(Me){return ye[Me.getUTCDay()]},A:function(Me){return _e[Me.getUTCDay()]},b:function(Me){return hn[Me.getUTCMonth()]},B:function(Me){return qe[Me.getUTCMonth()]},c:null,d:Ct,e:Ct,f:Rt,H:Tt,I:Nt,j:gt,L:wt,m:jt,M:Zt,p:function(Me){return ce[+(Me.getUTCHours()>=12)]},q:function(Me){return 1+~~(Me.getUTCMonth()/3)},Q:Kt,s:te,S:ne,u:Wt,U:le,V:de,w:xe,W:be,x:null,X:null,y:Ye,Y:tn,Z:an,"%":Jt},Oe={a:function(Me,en,xn){var Te=Kn.exec(en.slice(xn));return Te?(Me.w=fr[Te[0].toLowerCase()],xn+Te[0].length):-1},A:function(Me,en,xn){var Te=pn.exec(en.slice(xn));return Te?(Me.w=Mn[Te[0].toLowerCase()],xn+Te[0].length):-1},b:function(Me,en,xn){var Te=Ge.exec(en.slice(xn));return Te?(Me.m=ve[Te[0].toLowerCase()],xn+Te[0].length):-1},B:function(Me,en,xn){var Te=ge.exec(en.slice(xn));return Te?(Me.m=Ie[Te[0].toLowerCase()],xn+Te[0].length):-1},c:function(Me,en,xn){return Sn(Me,Bt,en,xn)},d:x,e:x,f:T,H:l,I:l,j:p,L:F,m:g,M:f,p:function(Me,en,xn){var Te=yn.exec(en.slice(xn));return Te?(Me.p=Nn[Te[0].toLowerCase()],xn+Te[0].length):-1},q:v,Q,s:st,S:b,u:w,U:_,V:o,w:s,W:u,x:function(Me,en,xn){return Sn(Me,Ut,en,xn)},X:function(Me,en,xn){return Sn(Me,zt,en,xn)},y:E,Y:C,Z:S,"%":k};function De(Me,en){return function(xn){var Te,bn,nn,fn=[],wn=-1,vn=0,cr=Me.length;for(xn instanceof Date||(xn=new Date(+xn));++wn53)return null;"w"in nn||(nn.w=1),"Z"in nn?(bn=(Te=J(q(nn.y,0,1))).getUTCDay(),Te=bn>4||bn===0?_t.c.ceil(Te):Object(_t.c)(Te),Te=m.a.offset(Te,7*(nn.V-1)),nn.y=Te.getUTCFullYear(),nn.m=Te.getUTCMonth(),nn.d=Te.getUTCDate()+(nn.w+6)%7):(bn=(Te=K(q(nn.y,0,1))).getDay(),Te=bn>4||bn===0?y.c.ceil(Te):Object(y.c)(Te),Te=R.b.offset(Te,7*(nn.V-1)),nn.y=Te.getFullYear(),nn.m=Te.getMonth(),nn.d=Te.getDate()+(nn.w+6)%7)}else("W"in nn||"U"in nn)&&("w"in nn||(nn.w="u"in nn?nn.u%7:"W"in nn?1:0),bn="Z"in nn?J(q(nn.y,0,1)).getUTCDay():K(q(nn.y,0,1)).getDay(),nn.m=0,nn.d="W"in nn?(nn.w+6)%7+7*nn.W-(bn+5)%7:nn.w+7*nn.U-(bn+6)%7);return"Z"in nn?(nn.H+=nn.Z/100|0,nn.M+=nn.Z%100,J(nn)):K(nn)}}function Sn(Me,en,xn,Te){for(var bn,nn,fn=0,wn=en.length,vn=xn.length;fn=vn)return-1;if((bn=en.charCodeAt(fn++))===37){if(bn=en.charAt(fn++),!(nn=Oe[bn in tt?en.charAt(fn++):bn])||(Te=nn(Me,xn,Te))<0)return-1}else if(bn!=xn.charCodeAt(Te++))return-1}return Te}return Re.x=De(Ut,Re),Re.X=De(zt,Re),Re.c=De(Bt,Re),ze.x=De(Ut,ze),ze.X=De(zt,ze),ze.c=De(Bt,ze),{format:function(Me){var en=De(Me+="",Re);return en.toString=function(){return Me},en},parse:function(Me){var en=Ze(Me+="",!1);return en.toString=function(){return Me},en},utcFormat:function(Me){var en=De(Me+="",ze);return en.toString=function(){return Me},en},utcParse:function(Me){var en=Ze(Me+="",!0);return en.toString=function(){return Me},en}}}var tt={"-":"",_:" ",0:"0"},H=/^\s*\d+/,X=/^%/,B=/[\\^$*+?|[\]().{}]/g;function U(Ot,Bt,Ut){var zt=Ot<0?"-":"",ce=(zt?-Ot:Ot)+"",_e=ce.length;return zt+(_e68?1900:2e3),Ut+zt[0].length):-1}function S(Ot,Bt,Ut){var zt=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Bt.slice(Ut,Ut+6));return zt?(Ot.Z=zt[1]?0:-(zt[2]+(zt[3]||"00")),Ut+zt[0].length):-1}function v(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+1));return zt?(Ot.q=3*zt[0]-3,Ut+zt[0].length):-1}function g(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+2));return zt?(Ot.m=zt[0]-1,Ut+zt[0].length):-1}function x(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+2));return zt?(Ot.d=+zt[0],Ut+zt[0].length):-1}function p(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+3));return zt?(Ot.m=0,Ot.d=+zt[0],Ut+zt[0].length):-1}function l(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+2));return zt?(Ot.H=+zt[0],Ut+zt[0].length):-1}function f(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+2));return zt?(Ot.M=+zt[0],Ut+zt[0].length):-1}function b(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+2));return zt?(Ot.S=+zt[0],Ut+zt[0].length):-1}function F(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+3));return zt?(Ot.L=+zt[0],Ut+zt[0].length):-1}function T(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+6));return zt?(Ot.L=Math.floor(zt[0]/1e3),Ut+zt[0].length):-1}function k(Ot,Bt,Ut){var zt=X.exec(Bt.slice(Ut,Ut+1));return zt?Ut+zt[0].length:-1}function Q(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut));return zt?(Ot.Q=+zt[0],Ut+zt[0].length):-1}function st(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut));return zt?(Ot.s=+zt[0],Ut+zt[0].length):-1}function nt(Ot,Bt){return U(Ot.getDate(),Bt,2)}function dt(Ot,Bt){return U(Ot.getHours(),Bt,2)}function mt(Ot,Bt){return U(Ot.getHours()%12||12,Bt,2)}function Et(Ot,Bt){return U(1+R.b.count(Object(j.a)(Ot),Ot),Bt,3)}function Mt(Ot,Bt){return U(Ot.getMilliseconds(),Bt,3)}function I(Ot,Bt){return Mt(Ot,Bt)+"000"}function Y(Ot,Bt){return U(Ot.getMonth()+1,Bt,2)}function rt(Ot,Bt){return U(Ot.getMinutes(),Bt,2)}function ot(Ot,Bt){return U(Ot.getSeconds(),Bt,2)}function D(Ot){var Bt=Ot.getDay();return Bt===0?7:Bt}function P(Ot,Bt){return U(y.g.count(Object(j.a)(Ot)-1,Ot),Bt,2)}function W(Ot,Bt){var Ut=Ot.getDay();return Ot=Ut>=4||Ut===0?Object(y.i)(Ot):y.i.ceil(Ot),U(y.i.count(Object(j.a)(Ot),Ot)+(Object(j.a)(Ot).getDay()===4),Bt,2)}function lt(Ot){return Ot.getDay()}function it(Ot,Bt){return U(y.c.count(Object(j.a)(Ot)-1,Ot),Bt,2)}function vt(Ot,Bt){return U(Ot.getFullYear()%100,Bt,2)}function pt(Ot,Bt){return U(Ot.getFullYear()%1e4,Bt,4)}function xt(Ot){var Bt=Ot.getTimezoneOffset();return(Bt>0?"-":(Bt*=-1,"+"))+U(Bt/60|0,"0",2)+U(Bt%60,"0",2)}function Ct(Ot,Bt){return U(Ot.getUTCDate(),Bt,2)}function Tt(Ot,Bt){return U(Ot.getUTCHours(),Bt,2)}function Nt(Ot,Bt){return U(Ot.getUTCHours()%12||12,Bt,2)}function gt(Ot,Bt){return U(1+m.a.count(Object(et.a)(Ot),Ot),Bt,3)}function wt(Ot,Bt){return U(Ot.getUTCMilliseconds(),Bt,3)}function Rt(Ot,Bt){return wt(Ot,Bt)+"000"}function jt(Ot,Bt){return U(Ot.getUTCMonth()+1,Bt,2)}function Zt(Ot,Bt){return U(Ot.getUTCMinutes(),Bt,2)}function ne(Ot,Bt){return U(Ot.getUTCSeconds(),Bt,2)}function Wt(Ot){var Bt=Ot.getUTCDay();return Bt===0?7:Bt}function le(Ot,Bt){return U(_t.g.count(Object(et.a)(Ot)-1,Ot),Bt,2)}function de(Ot,Bt){var Ut=Ot.getUTCDay();return Ot=Ut>=4||Ut===0?Object(_t.i)(Ot):_t.i.ceil(Ot),U(_t.i.count(Object(et.a)(Ot),Ot)+(Object(et.a)(Ot).getUTCDay()===4),Bt,2)}function xe(Ot){return Ot.getUTCDay()}function be(Ot,Bt){return U(_t.c.count(Object(et.a)(Ot)-1,Ot),Bt,2)}function Ye(Ot,Bt){return U(Ot.getUTCFullYear()%100,Bt,2)}function tn(Ot,Bt){return U(Ot.getUTCFullYear()%1e4,Bt,4)}function an(){return"+0000"}function Jt(){return"%"}function Kt(Ot){return+Ot}function te(Ot){return Math.floor(+Ot/1e3)}},function(ue,ht,z){"use strict";var _t=z(6),m=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,y=new RegExp(m.source,"g");ht.a=function(R,j){var et,K,J,q=m.lastIndex=y.lastIndex=0,Z=-1,tt=[],H=[];for(R+="",j+="";(et=m.exec(R))&&(K=y.exec(j));)(J=K.index)>q&&(J=j.slice(q,J),tt[Z]?tt[Z]+=J:tt[++Z]=J),(et=et[0])===(K=K[0])?tt[Z]?tt[Z]+=K:tt[++Z]=K:(tt[++Z]=null,H.push({i:Z,x:Object(_t.a)(et,K)})),q=y.lastIndex;return q=0&&(Z=q.slice(tt+1),q=q.slice(0,tt)),q&&!J.hasOwnProperty(q))throw new Error("unknown type: "+q);return{type:q,name:Z}})}function j(K,J){for(var q,Z=0,tt=K.length;Z0)for(var q,Z,tt=new Array(q),H=0;H1e-6)if(Math.abs(Ue*pe-ke*Ke)>1e-6&&Yt){var En=Xt-ae,Ln=At-he,Un=pe*pe+ke*ke,pr=En*En+Ln*Ln,ir=Math.sqrt(Un),$n=Math.sqrt(rn),sr=Yt*Math.tan((_t-Math.acos((Un+rn-pr)/(2*ir*$n)))/2),Cr=sr/$n,wr=sr/ir;Math.abs(Cr-1)>1e-6&&(this._+="L"+(yt+Cr*Ke)+","+(It+Cr*Ue)),this._+="A"+Yt+","+Yt+",0,0,"+ +(Ue*En>Ke*Ln)+","+(this._x1=yt+wr*pe)+","+(this._y1=It+wr*ke)}else this._+="L"+(this._x1=yt)+","+(this._y1=It)},arc:function(yt,It,Xt,At,Yt,ae){yt=+yt,It=+It,ae=!!ae;var he=(Xt=+Xt)*Math.cos(At),pe=Xt*Math.sin(At),ke=yt+he,Ke=It+pe,Ue=1^ae,rn=ae?At-Yt:Yt-At;if(Xt<0)throw new Error("negative radius: "+Xt);this._x1===null?this._+="M"+ke+","+Ke:(Math.abs(this._x1-ke)>1e-6||Math.abs(this._y1-Ke)>1e-6)&&(this._+="L"+ke+","+Ke),Xt&&(rn<0&&(rn=rn%m+m),rn>y?this._+="A"+Xt+","+Xt+",0,1,"+Ue+","+(yt-he)+","+(It-pe)+"A"+Xt+","+Xt+",0,1,"+Ue+","+(this._x1=ke)+","+(this._y1=Ke):rn>1e-6&&(this._+="A"+Xt+","+Xt+",0,"+ +(rn>=_t)+","+Ue+","+(this._x1=yt+Xt*Math.cos(Yt))+","+(this._y1=It+Xt*Math.sin(Yt))))},rect:function(yt,It,Xt,At){this._+="M"+(this._x0=this._x1=+yt)+","+(this._y0=this._y1=+It)+"h"+ +Xt+"v"+ +At+"h"+-Xt+"Z"},toString:function(){return this._}};var et=j,K=function(yt){return function(){return yt}},J=Math.abs,q=Math.atan2,Z=Math.cos,tt=Math.max,H=Math.min,X=Math.sin,B=Math.sqrt,U=Math.PI,d=U/2,L=2*U;function M(yt){return yt>1?0:yt<-1?U:Math.acos(yt)}function s(yt){return yt>=1?d:yt<=-1?-d:Math.asin(yt)}function w(yt){return yt.innerRadius}function _(yt){return yt.outerRadius}function o(yt){return yt.startAngle}function u(yt){return yt.endAngle}function C(yt){return yt&&yt.padAngle}function E(yt,It,Xt,At,Yt,ae,he,pe){var ke=Xt-yt,Ke=At-It,Ue=he-Yt,rn=pe-ae,En=rn*ke-Ue*Ke;if(!(En*En<1e-12))return[yt+(En=(Ue*(It-ae)-rn*(yt-Yt))/En)*ke,It+En*Ke]}function S(yt,It,Xt,At,Yt,ae,he){var pe=yt-Xt,ke=It-At,Ke=(he?ae:-ae)/B(pe*pe+ke*ke),Ue=Ke*ke,rn=-Ke*pe,En=yt+Ue,Ln=It+rn,Un=Xt+Ue,pr=At+rn,ir=(En+Un)/2,$n=(Ln+pr)/2,sr=Un-En,Cr=pr-Ln,wr=sr*sr+Cr*Cr,Ir=Yt-ae,$r=En*pr-Un*Ln,ui=(Cr<0?-1:1)*B(tt(0,Ir*Ir*wr-$r*$r)),Ni=($r*Cr-sr*ui)/wr,Ai=(-$r*sr-Cr*ui)/wr,yi=($r*Cr+sr*ui)/wr,Pi=(-$r*sr+Cr*ui)/wr,Di=Ni-ir,Oi=Ai-$n,Wi=yi-ir,to=Pi-$n;return Di*Di+Oi*Oi>Wi*Wi+to*to&&(Ni=yi,Ai=Pi),{cx:Ni,cy:Ai,x01:-Ue,y01:-rn,x11:Ni*(Yt/Ir-1),y11:Ai*(Yt/Ir-1)}}var v=function(){var yt=w,It=_,Xt=K(0),At=null,Yt=o,ae=u,he=C,pe=null;function ke(){var Ke,Ue,rn=+yt.apply(this,arguments),En=+It.apply(this,arguments),Ln=Yt.apply(this,arguments)-d,Un=ae.apply(this,arguments)-d,pr=J(Un-Ln),ir=Un>Ln;if(pe||(pe=Ke=et()),En1e-12)if(pr>L-1e-12)pe.moveTo(En*Z(Ln),En*X(Ln)),pe.arc(0,0,En,Ln,Un,!ir),rn>1e-12&&(pe.moveTo(rn*Z(Un),rn*X(Un)),pe.arc(0,0,rn,Un,Ln,ir));else{var $n,sr,Cr=Ln,wr=Un,Ir=Ln,$r=Un,ui=pr,Ni=pr,Ai=he.apply(this,arguments)/2,yi=Ai>1e-12&&(At?+At.apply(this,arguments):B(rn*rn+En*En)),Pi=H(J(En-rn)/2,+Xt.apply(this,arguments)),Di=Pi,Oi=Pi;if(yi>1e-12){var Wi=s(yi/rn*X(Ai)),to=s(yi/En*X(Ai));(ui-=2*Wi)>1e-12?(Ir+=Wi*=ir?1:-1,$r-=Wi):(ui=0,Ir=$r=(Ln+Un)/2),(Ni-=2*to)>1e-12?(Cr+=to*=ir?1:-1,wr-=to):(Ni=0,Cr=wr=(Ln+Un)/2)}var Xi=En*Z(Cr),To=En*X(Cr),Ro=rn*Z($r),po=rn*X($r);if(Pi>1e-12){var no,_o=En*Z(wr),Zo=En*X(wr),oo=rn*Z(Ir),Mi=rn*X(Ir);if(pr1e-12?Oi>1e-12?($n=S(oo,Mi,Xi,To,En,Oi,ir),sr=S(_o,Zo,Ro,po,En,Oi,ir),pe.moveTo($n.cx+$n.x01,$n.cy+$n.y01),Oi1e-12&&ui>1e-12?Di>1e-12?($n=S(Ro,po,_o,Zo,rn,-Di,ir),sr=S(Xi,To,oo,Mi,rn,-Di,ir),pe.lineTo($n.cx+$n.x01,$n.cy+$n.y01),Di=En;--Ln)pe.point(sr[Ln],Cr[Ln]);pe.lineEnd(),pe.areaEnd()}$n&&(sr[rn]=+yt(Un,rn,Ue),Cr[rn]=+Xt(Un,rn,Ue),pe.point(It?+It(Un,rn,Ue):sr[rn],At?+At(Un,rn,Ue):Cr[rn]))}if(pr)return pe=null,pr+""||null}function Ke(){return f().defined(Yt).curve(he).context(ae)}return ke.x=function(Ue){return arguments.length?(yt=typeof Ue=="function"?Ue:K(+Ue),It=null,ke):yt},ke.x0=function(Ue){return arguments.length?(yt=typeof Ue=="function"?Ue:K(+Ue),ke):yt},ke.x1=function(Ue){return arguments.length?(It=Ue==null?null:typeof Ue=="function"?Ue:K(+Ue),ke):It},ke.y=function(Ue){return arguments.length?(Xt=typeof Ue=="function"?Ue:K(+Ue),At=null,ke):Xt},ke.y0=function(Ue){return arguments.length?(Xt=typeof Ue=="function"?Ue:K(+Ue),ke):Xt},ke.y1=function(Ue){return arguments.length?(At=Ue==null?null:typeof Ue=="function"?Ue:K(+Ue),ke):At},ke.lineX0=ke.lineY0=function(){return Ke().x(yt).y(Xt)},ke.lineY1=function(){return Ke().x(yt).y(At)},ke.lineX1=function(){return Ke().x(It).y(Xt)},ke.defined=function(Ue){return arguments.length?(Yt=typeof Ue=="function"?Ue:K(!!Ue),ke):Yt},ke.curve=function(Ue){return arguments.length?(he=Ue,ae!=null&&(pe=he(ae)),ke):he},ke.context=function(Ue){return arguments.length?(Ue==null?ae=pe=null:pe=he(ae=Ue),ke):ae},ke},F=function(yt,It){return Ityt?1:It>=yt?0:NaN},T=function(yt){return yt},k=function(){var yt=T,It=F,Xt=null,At=K(0),Yt=K(L),ae=K(0);function he(pe){var ke,Ke,Ue,rn,En,Ln=pe.length,Un=0,pr=new Array(Ln),ir=new Array(Ln),$n=+At.apply(this,arguments),sr=Math.min(L,Math.max(-L,Yt.apply(this,arguments)-$n)),Cr=Math.min(Math.abs(sr)/Ln,ae.apply(this,arguments)),wr=Cr*(sr<0?-1:1);for(ke=0;ke0&&(Un+=En);for(It!=null?pr.sort(function(Ir,$r){return It(ir[Ir],ir[$r])}):Xt!=null&&pr.sort(function(Ir,$r){return Xt(pe[Ir],pe[$r])}),ke=0,Ue=Un?(sr-Ln*wr)/Un:0;ke0?En*Ue:0)+wr,ir[Ke]={data:pe[Ke],index:ke,value:En,startAngle:$n,endAngle:rn,padAngle:Cr};return ir}return he.value=function(pe){return arguments.length?(yt=typeof pe=="function"?pe:K(+pe),he):yt},he.sortValues=function(pe){return arguments.length?(It=pe,Xt=null,he):It},he.sort=function(pe){return arguments.length?(Xt=pe,It=null,he):Xt},he.startAngle=function(pe){return arguments.length?(At=typeof pe=="function"?pe:K(+pe),he):At},he.endAngle=function(pe){return arguments.length?(Yt=typeof pe=="function"?pe:K(+pe),he):Yt},he.padAngle=function(pe){return arguments.length?(ae=typeof pe=="function"?pe:K(+pe),he):ae},he},Q=nt(x);function st(yt){this._curve=yt}function nt(yt){function It(Xt){return new st(yt(Xt))}return It._curve=yt,It}function dt(yt){var It=yt.curve;return yt.angle=yt.x,delete yt.x,yt.radius=yt.y,delete yt.y,yt.curve=function(Xt){return arguments.length?It(nt(Xt)):It()._curve},yt}st.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(yt,It){this._curve.point(It*Math.sin(yt),It*-Math.cos(yt))}};var mt=function(){return dt(f().curve(Q))},Et=function(){var yt=b().curve(Q),It=yt.curve,Xt=yt.lineX0,At=yt.lineX1,Yt=yt.lineY0,ae=yt.lineY1;return yt.angle=yt.x,delete yt.x,yt.startAngle=yt.x0,delete yt.x0,yt.endAngle=yt.x1,delete yt.x1,yt.radius=yt.y,delete yt.y,yt.innerRadius=yt.y0,delete yt.y0,yt.outerRadius=yt.y1,delete yt.y1,yt.lineStartAngle=function(){return dt(Xt())},delete yt.lineX0,yt.lineEndAngle=function(){return dt(At())},delete yt.lineX1,yt.lineInnerRadius=function(){return dt(Yt())},delete yt.lineY0,yt.lineOuterRadius=function(){return dt(ae())},delete yt.lineY1,yt.curve=function(he){return arguments.length?It(nt(he)):It()._curve},yt},Mt=function(yt,It){return[(It=+It)*Math.cos(yt-=Math.PI/2),It*Math.sin(yt)]},I=Array.prototype.slice;function Y(yt){return yt.source}function rt(yt){return yt.target}function ot(yt){var It=Y,Xt=rt,At=p,Yt=l,ae=null;function he(){var pe,ke=I.call(arguments),Ke=It.apply(this,ke),Ue=Xt.apply(this,ke);if(ae||(ae=pe=et()),yt(ae,+At.apply(this,(ke[0]=Ke,ke)),+Yt.apply(this,ke),+At.apply(this,(ke[0]=Ue,ke)),+Yt.apply(this,ke)),pe)return ae=null,pe+""||null}return he.source=function(pe){return arguments.length?(It=pe,he):It},he.target=function(pe){return arguments.length?(Xt=pe,he):Xt},he.x=function(pe){return arguments.length?(At=typeof pe=="function"?pe:K(+pe),he):At},he.y=function(pe){return arguments.length?(Yt=typeof pe=="function"?pe:K(+pe),he):Yt},he.context=function(pe){return arguments.length?(ae=pe==null?null:pe,he):ae},he}function D(yt,It,Xt,At,Yt){yt.moveTo(It,Xt),yt.bezierCurveTo(It=(It+At)/2,Xt,It,Yt,At,Yt)}function P(yt,It,Xt,At,Yt){yt.moveTo(It,Xt),yt.bezierCurveTo(It,Xt=(Xt+Yt)/2,At,Xt,At,Yt)}function W(yt,It,Xt,At,Yt){var ae=Mt(It,Xt),he=Mt(It,Xt=(Xt+Yt)/2),pe=Mt(At,Xt),ke=Mt(At,Yt);yt.moveTo(ae[0],ae[1]),yt.bezierCurveTo(he[0],he[1],pe[0],pe[1],ke[0],ke[1])}function lt(){return ot(D)}function it(){return ot(P)}function vt(){var yt=ot(W);return yt.angle=yt.x,delete yt.x,yt.radius=yt.y,delete yt.y,yt}var pt={draw:function(yt,It){var Xt=Math.sqrt(It/U);yt.moveTo(Xt,0),yt.arc(0,0,Xt,0,L)}},xt={draw:function(yt,It){var Xt=Math.sqrt(It/5)/2;yt.moveTo(-3*Xt,-Xt),yt.lineTo(-Xt,-Xt),yt.lineTo(-Xt,-3*Xt),yt.lineTo(Xt,-3*Xt),yt.lineTo(Xt,-Xt),yt.lineTo(3*Xt,-Xt),yt.lineTo(3*Xt,Xt),yt.lineTo(Xt,Xt),yt.lineTo(Xt,3*Xt),yt.lineTo(-Xt,3*Xt),yt.lineTo(-Xt,Xt),yt.lineTo(-3*Xt,Xt),yt.closePath()}},Ct=Math.sqrt(1/3),Tt=2*Ct,Nt={draw:function(yt,It){var Xt=Math.sqrt(It/Tt),At=Xt*Ct;yt.moveTo(0,-Xt),yt.lineTo(At,0),yt.lineTo(0,Xt),yt.lineTo(-At,0),yt.closePath()}},gt=Math.sin(U/10)/Math.sin(7*U/10),wt=Math.sin(L/10)*gt,Rt=-Math.cos(L/10)*gt,jt={draw:function(yt,It){var Xt=Math.sqrt(.8908130915292852*It),At=wt*Xt,Yt=Rt*Xt;yt.moveTo(0,-Xt),yt.lineTo(At,Yt);for(var ae=1;ae<5;++ae){var he=L*ae/5,pe=Math.cos(he),ke=Math.sin(he);yt.lineTo(ke*Xt,-pe*Xt),yt.lineTo(pe*At-ke*Yt,ke*At+pe*Yt)}yt.closePath()}},Zt={draw:function(yt,It){var Xt=Math.sqrt(It),At=-Xt/2;yt.rect(At,At,Xt,Xt)}},ne=Math.sqrt(3),Wt={draw:function(yt,It){var Xt=-Math.sqrt(It/(3*ne));yt.moveTo(0,2*Xt),yt.lineTo(-ne*Xt,-Xt),yt.lineTo(ne*Xt,-Xt),yt.closePath()}},le=Math.sqrt(3)/2,de=1/Math.sqrt(12),xe=3*(de/2+1),be={draw:function(yt,It){var Xt=Math.sqrt(It/xe),At=Xt/2,Yt=Xt*de,ae=At,he=Xt*de+Xt,pe=-ae,ke=he;yt.moveTo(At,Yt),yt.lineTo(ae,he),yt.lineTo(pe,ke),yt.lineTo(-.5*At-le*Yt,le*At+-.5*Yt),yt.lineTo(-.5*ae-le*he,le*ae+-.5*he),yt.lineTo(-.5*pe-le*ke,le*pe+-.5*ke),yt.lineTo(-.5*At+le*Yt,-.5*Yt-le*At),yt.lineTo(-.5*ae+le*he,-.5*he-le*ae),yt.lineTo(-.5*pe+le*ke,-.5*ke-le*pe),yt.closePath()}},Ye=[pt,xt,Nt,Zt,jt,Wt,be],tn=function(){var yt=K(pt),It=K(64),Xt=null;function At(){var Yt;if(Xt||(Xt=Yt=et()),yt.apply(this,arguments).draw(Xt,+It.apply(this,arguments)),Yt)return Xt=null,Yt+""||null}return At.type=function(Yt){return arguments.length?(yt=typeof Yt=="function"?Yt:K(Yt),At):yt},At.size=function(Yt){return arguments.length?(It=typeof Yt=="function"?Yt:K(+Yt),At):It},At.context=function(Yt){return arguments.length?(Xt=Yt==null?null:Yt,At):Xt},At},an=function(){};function Jt(yt,It,Xt){yt._context.bezierCurveTo((2*yt._x0+yt._x1)/3,(2*yt._y0+yt._y1)/3,(yt._x0+2*yt._x1)/3,(yt._y0+2*yt._y1)/3,(yt._x0+4*yt._x1+It)/6,(yt._y0+4*yt._y1+Xt)/6)}function Kt(yt){this._context=yt}Kt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Jt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1,this._line?this._context.lineTo(yt,It):this._context.moveTo(yt,It);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Jt(this,yt,It)}this._x0=this._x1,this._x1=yt,this._y0=this._y1,this._y1=It}};var te=function(yt){return new Kt(yt)};function Ot(yt){this._context=yt}Ot.prototype={areaStart:an,areaEnd:an,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1,this._x2=yt,this._y2=It;break;case 1:this._point=2,this._x3=yt,this._y3=It;break;case 2:this._point=3,this._x4=yt,this._y4=It,this._context.moveTo((this._x0+4*this._x1+yt)/6,(this._y0+4*this._y1+It)/6);break;default:Jt(this,yt,It)}this._x0=this._x1,this._x1=yt,this._y0=this._y1,this._y1=It}};var Bt=function(yt){return new Ot(yt)};function Ut(yt){this._context=yt}Ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var Xt=(this._x0+4*this._x1+yt)/6,At=(this._y0+4*this._y1+It)/6;this._line?this._context.lineTo(Xt,At):this._context.moveTo(Xt,At);break;case 3:this._point=4;default:Jt(this,yt,It)}this._x0=this._x1,this._x1=yt,this._y0=this._y1,this._y1=It}};var zt=function(yt){return new Ut(yt)};function ce(yt,It){this._basis=new Kt(yt),this._beta=It}ce.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var yt=this._x,It=this._y,Xt=yt.length-1;if(Xt>0)for(var At,Yt=yt[0],ae=It[0],he=yt[Xt]-Yt,pe=It[Xt]-ae,ke=-1;++ke<=Xt;)At=ke/Xt,this._basis.point(this._beta*yt[ke]+(1-this._beta)*(Yt+At*he),this._beta*It[ke]+(1-this._beta)*(ae+At*pe));this._x=this._y=null,this._basis.lineEnd()},point:function(yt,It){this._x.push(+yt),this._y.push(+It)}};var _e=function yt(It){function Xt(At){return It===1?new Kt(At):new ce(At,It)}return Xt.beta=function(At){return yt(+At)},Xt}(.85);function ye(yt,It,Xt){yt._context.bezierCurveTo(yt._x1+yt._k*(yt._x2-yt._x0),yt._y1+yt._k*(yt._y2-yt._y0),yt._x2+yt._k*(yt._x1-It),yt._y2+yt._k*(yt._y1-Xt),yt._x2,yt._y2)}function qe(yt,It){this._context=yt,this._k=(1-It)/6}qe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ye(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1,this._line?this._context.lineTo(yt,It):this._context.moveTo(yt,It);break;case 1:this._point=2,this._x1=yt,this._y1=It;break;case 2:this._point=3;default:ye(this,yt,It)}this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var hn=function yt(It){function Xt(At){return new qe(At,It)}return Xt.tension=function(At){return yt(+At)},Xt}(0);function yn(yt,It){this._context=yt,this._k=(1-It)/6}yn.prototype={areaStart:an,areaEnd:an,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1,this._x3=yt,this._y3=It;break;case 1:this._point=2,this._context.moveTo(this._x4=yt,this._y4=It);break;case 2:this._point=3,this._x5=yt,this._y5=It;break;default:ye(this,yt,It)}this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var Nn=function yt(It){function Xt(At){return new yn(At,It)}return Xt.tension=function(At){return yt(+At)},Xt}(0);function pn(yt,It){this._context=yt,this._k=(1-It)/6}pn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ye(this,yt,It)}this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var Mn=function yt(It){function Xt(At){return new pn(At,It)}return Xt.tension=function(At){return yt(+At)},Xt}(0);function Kn(yt,It,Xt){var At=yt._x1,Yt=yt._y1,ae=yt._x2,he=yt._y2;if(yt._l01_a>1e-12){var pe=2*yt._l01_2a+3*yt._l01_a*yt._l12_a+yt._l12_2a,ke=3*yt._l01_a*(yt._l01_a+yt._l12_a);At=(At*pe-yt._x0*yt._l12_2a+yt._x2*yt._l01_2a)/ke,Yt=(Yt*pe-yt._y0*yt._l12_2a+yt._y2*yt._l01_2a)/ke}if(yt._l23_a>1e-12){var Ke=2*yt._l23_2a+3*yt._l23_a*yt._l12_a+yt._l12_2a,Ue=3*yt._l23_a*(yt._l23_a+yt._l12_a);ae=(ae*Ke+yt._x1*yt._l23_2a-It*yt._l12_2a)/Ue,he=(he*Ke+yt._y1*yt._l23_2a-Xt*yt._l12_2a)/Ue}yt._context.bezierCurveTo(At,Yt,ae,he,yt._x2,yt._y2)}function fr(yt,It){this._context=yt,this._alpha=It}fr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){if(yt=+yt,It=+It,this._point){var Xt=this._x2-yt,At=this._y2-It;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Xt*Xt+At*At,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(yt,It):this._context.moveTo(yt,It);break;case 1:this._point=2;break;case 2:this._point=3;default:Kn(this,yt,It)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var ge=function yt(It){function Xt(At){return It?new fr(At,It):new qe(At,0)}return Xt.alpha=function(At){return yt(+At)},Xt}(.5);function Ie(yt,It){this._context=yt,this._alpha=It}Ie.prototype={areaStart:an,areaEnd:an,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(yt,It){if(yt=+yt,It=+It,this._point){var Xt=this._x2-yt,At=this._y2-It;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Xt*Xt+At*At,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=yt,this._y3=It;break;case 1:this._point=2,this._context.moveTo(this._x4=yt,this._y4=It);break;case 2:this._point=3,this._x5=yt,this._y5=It;break;default:Kn(this,yt,It)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var Ge=function yt(It){function Xt(At){return It?new Ie(At,It):new yn(At,0)}return Xt.alpha=function(At){return yt(+At)},Xt}(.5);function ve(yt,It){this._context=yt,this._alpha=It}ve.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){if(yt=+yt,It=+It,this._point){var Xt=this._x2-yt,At=this._y2-It;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Xt*Xt+At*At,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Kn(this,yt,It)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var Re=function yt(It){function Xt(At){return It?new ve(At,It):new pn(At,0)}return Xt.alpha=function(At){return yt(+At)},Xt}(.5);function ze(yt){this._context=yt}ze.prototype={areaStart:an,areaEnd:an,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(yt,It){yt=+yt,It=+It,this._point?this._context.lineTo(yt,It):(this._point=1,this._context.moveTo(yt,It))}};var Oe=function(yt){return new ze(yt)};function De(yt){return yt<0?-1:1}function Ze(yt,It,Xt){var At=yt._x1-yt._x0,Yt=It-yt._x1,ae=(yt._y1-yt._y0)/(At||Yt<0&&-0),he=(Xt-yt._y1)/(Yt||At<0&&-0),pe=(ae*Yt+he*At)/(At+Yt);return(De(ae)+De(he))*Math.min(Math.abs(ae),Math.abs(he),.5*Math.abs(pe))||0}function Sn(yt,It){var Xt=yt._x1-yt._x0;return Xt?(3*(yt._y1-yt._y0)/Xt-It)/2:It}function Me(yt,It,Xt){var At=yt._x0,Yt=yt._y0,ae=yt._x1,he=yt._y1,pe=(ae-At)/3;yt._context.bezierCurveTo(At+pe,Yt+pe*It,ae-pe,he-pe*Xt,ae,he)}function en(yt){this._context=yt}function xn(yt){this._context=new Te(yt)}function Te(yt){this._context=yt}function bn(yt){return new en(yt)}function nn(yt){return new xn(yt)}function fn(yt){this._context=yt}function wn(yt){var It,Xt,At=yt.length-1,Yt=new Array(At),ae=new Array(At),he=new Array(At);for(Yt[0]=0,ae[0]=2,he[0]=yt[0]+2*yt[1],It=1;It=0;--It)Yt[It]=(he[It]-Yt[It+1])/ae[It];for(ae[At-1]=(yt[At]+Yt[At-1])/2,It=0;It=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1,this._line?this._context.lineTo(yt,It):this._context.moveTo(yt,It);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,It),this._context.lineTo(yt,It);else{var Xt=this._x*(1-this._t)+yt*this._t;this._context.lineTo(Xt,this._y),this._context.lineTo(Xt,It)}}this._x=yt,this._y=It}};var Jn=function(yt){return new cr(yt,.5)};function dr(yt){return new cr(yt,0)}function gr(yt){return new cr(yt,1)}var er=function(yt,It){if((Yt=yt.length)>1)for(var Xt,At,Yt,ae=1,he=yt[It[0]],pe=he.length;ae=0;)Xt[It]=It;return Xt};function Rr(yt,It){return yt[It]}var ar=function(){var yt=K([]),It=Dr,Xt=er,At=Rr;function Yt(ae){var he,pe,ke=yt.apply(this,arguments),Ke=ae.length,Ue=ke.length,rn=new Array(Ue);for(he=0;he0){for(var Xt,At,Yt,ae=0,he=yt[0].length;ae0)for(var Xt,At,Yt,ae,he,pe,ke=0,Ke=yt[It[0]].length;ke0?(At[0]=ae,At[1]=ae+=Yt):Yt<0?(At[1]=he,At[0]=he+=Yt):(At[0]=0,At[1]=Yt)},hi=function(yt,It){if((Xt=yt.length)>0){for(var Xt,At=0,Yt=yt[It[0]],ae=Yt.length;At0&&(At=(Xt=yt[It[0]]).length)>0){for(var Xt,At,Yt,ae=0,he=1;heae&&(ae=It,At=Xt);return At}var Bi=function(yt){var It=yt.map(ee);return Dr(yt).sort(function(Xt,At){return It[Xt]-It[At]})};function ee(yt){for(var It,Xt=0,At=-1,Yt=yt.length;++At=0&&Kt._call.call(null,Jt),Kt=Kt._next;--j})()}finally{j=0,function(){for(var Jt,Kt,te=_t,Ot=1/0;te;)te._call?(Ot>te._time&&(Ot=te._time),Jt=te,te=te._next):(Kt=te._next,te._next=null,te=Jt?Jt._next=Kt:_t=Kt);m=Jt,s(Ot)}(),q=0}}function M(){var Jt=tt.now(),Kt=Jt-J;Kt>1e3&&(Z-=Kt,J=Jt)}function s(Jt){j||(et&&(et=clearTimeout(et)),Jt-q>24?(Jt<1/0&&(et=setTimeout(L,Jt-tt.now()-Z)),K&&(K=clearInterval(K))):(K||(J=tt.now(),K=setInterval(M,1e3)),j=1,H(L)))}U.prototype=d.prototype={constructor:U,restart:function(Jt,Kt,te){if(typeof Jt!="function")throw new TypeError("callback is not a function");te=(te==null?X():+te)+(Kt==null?0:+Kt),this._next||m===this||(m?m._next=this:_t=this,m=this),this._call=Jt,this._time=te,s()},stop:function(){this._call&&(this._call=null,this._time=1/0,s())}};var w=function(Jt,Kt,te){var Ot=new U;return Kt=Kt==null?0:+Kt,Ot.restart(function(Bt){Ot.stop(),Jt(Bt+Kt)},Kt,te),Ot},_=Object(R.a)("start","end","cancel","interrupt"),o=[],u=function(Jt,Kt,te,Ot,Bt,Ut){var zt=Jt.__transition;if(zt){if(te in zt)return}else Jt.__transition={};(function(ce,_e,ye){var qe,hn=ce.__transition;function yn(Mn){var Kn,fr,ge,Ie;if(ye.state!==1)return pn();for(Kn in hn)if((Ie=hn[Kn]).name===ye.name){if(Ie.state===3)return w(yn);Ie.state===4?(Ie.state=6,Ie.timer.stop(),Ie.on.call("interrupt",ce,ce.__data__,Ie.index,Ie.group),delete hn[Kn]):+Kn<_e&&(Ie.state=6,Ie.timer.stop(),Ie.on.call("cancel",ce,ce.__data__,Ie.index,Ie.group),delete hn[Kn])}if(w(function(){ye.state===3&&(ye.state=4,ye.timer.restart(Nn,ye.delay,ye.time),Nn(Mn))}),ye.state=2,ye.on.call("start",ce,ce.__data__,ye.index,ye.group),ye.state===2){for(ye.state=3,qe=new Array(ge=ye.tween.length),Kn=0,fr=-1;Kn0)throw new Error("too late; already scheduled");return te}function E(Jt,Kt){var te=S(Jt,Kt);if(te.state>3)throw new Error("too late; already running");return te}function S(Jt,Kt){var te=Jt.__transition;if(!te||!(te=te[Kt]))throw new Error("transition not found");return te}var v=function(Jt,Kt){var te,Ot,Bt,Ut=Jt.__transition,zt=!0;if(Ut){for(Bt in Kt=Kt==null?null:Kt+"",Ut)(te=Ut[Bt]).name===Kt?(Ot=te.state>2&&te.state<5,te.state=6,te.timer.stop(),te.on.call(Ot?"interrupt":"cancel",Jt,Jt.__data__,te.index,te.group),delete Ut[Bt]):zt=!1;zt&&delete Jt.__transition}},g=z(76),x=z(20);function p(Jt,Kt){var te,Ot;return function(){var Bt=E(this,Jt),Ut=Bt.tween;if(Ut!==te){for(var zt=0,ce=(Ot=te=Ut).length;zt=0&&(ce=ce.slice(0,_e)),!ce||ce==="start"})}(Kt)?C:E;return function(){var zt=Ut(this,Jt),ce=zt.on;ce!==Ot&&(Bt=(Ot=ce).copy()).on(Kt,te),zt.on=Bt}}var xt=z(19),Ct=z(33),Tt=y.b.prototype.constructor,Nt=z(35);function gt(Jt){return function(){this.style.removeProperty(Jt)}}function wt(Jt,Kt,te){return function(Ot){this.style.setProperty(Jt,Kt.call(this,Ot),te)}}function Rt(Jt,Kt,te){var Ot,Bt;function Ut(){var zt=Kt.apply(this,arguments);return zt!==Bt&&(Ot=(Bt=zt)&&wt(Jt,zt,te)),Ot}return Ut._value=Kt,Ut}function jt(Jt){return function(Kt){this.textContent=Jt.call(this,Kt)}}function Zt(Jt){var Kt,te;function Ot(){var Bt=Jt.apply(this,arguments);return Bt!==te&&(Kt=(te=Bt)&&jt(Bt)),Kt}return Ot._value=Jt,Ot}var ne=0;function Wt(Jt,Kt,te,Ot){this._groups=Jt,this._parents=Kt,this._name=te,this._id=Ot}function le(Jt){return Object(y.b)().transition(Jt)}function de(){return++ne}var xe=y.b.prototype;Wt.prototype=le.prototype={constructor:Wt,select:function(Jt){var Kt=this._name,te=this._id;typeof Jt!="function"&&(Jt=Object(xt.a)(Jt));for(var Ot=this._groups,Bt=Ot.length,Ut=new Array(Bt),zt=0;zt1&&te.name===Kt)return new Wt([[Jt]],tn,Kt,+Ot)}return null};z.d(ht,"transition",function(){return le}),z.d(ht,"active",function(){return an}),z.d(ht,"interrupt",function(){return v})},,function(ue,ht,z){"use strict";var _t,m,y,R,j=z(6),et=180/Math.PI,K={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},J=function(H,X,B,U,d,L){var M,s,w;return(M=Math.sqrt(H*H+X*X))&&(H/=M,X/=M),(w=H*B+X*U)&&(B-=H*w,U-=X*w),(s=Math.sqrt(B*B+U*U))&&(B/=s,U/=s,w/=s),H*U180?o+=360:o-_>180&&(_+=360),C.push({i:u.push(d(u)+"rotate(",null,U)-2,x:Object(j.a)(_,o)})):o&&u.push(d(u)+"rotate("+o+U)}(L.rotate,M.rotate,s,w),function(_,o,u,C){_!==o?C.push({i:u.push(d(u)+"skewX(",null,U)-2,x:Object(j.a)(_,o)}):o&&u.push(d(u)+"skewX("+o+U)}(L.skewX,M.skewX,s,w),function(_,o,u,C,E,S){if(_!==u||o!==C){var v=E.push(d(E)+"scale(",null,",",null,")");S.push({i:v-4,x:Object(j.a)(_,u)},{i:v-2,x:Object(j.a)(o,C)})}else u===1&&C===1||E.push(d(E)+"scale("+u+","+C+")")}(L.scaleX,L.scaleY,M.scaleX,M.scaleY,s,w),L=M=null,function(_){for(var o,u=-1,C=w.length;++u1&&arguments[1]!==void 0?arguments[1]:12,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Arial",X=document.createElement("canvas"),B=X.getContext("2d");return B.font=tt+"px "+H,B.measureText(Z).width},wrapText:function(Z,tt,H,X){var B=y.select(X),U=B.text().split(/\s+/).reverse(),d=void 0,L=[],M=0,s=R*et,w=B.attr("y"),_=parseFloat(B.attr("dy")),o=tt*K,u=B.text(null).append("tspan").attr("x",Z).attr("y",w-5).attr("dy",_+"em").classed(J,!0).style("font-size",tt+"px");for(u.text(U.pop()),u=B.append("tspan").classed(q,!0).attr("x",Z).attr("y",w+j).attr("dy",++M*s+_+"em").style("font-size",o+"px");d=U.pop();)L.push(d),u.text(L.join(" ")),u.node()&&u.node().getComputedTextLength()>H-50&&(L.pop(),u.text(L.join(" ")),L=[d],u=B.append("tspan").classed(q,!0).attr("x",Z).attr("y",w+j).attr("dy",++M*s+_+"em").text(d).style("font-size",o+"px"))},wrapTextWithEllipses:function(Z,tt){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,B=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1.2;Z.each(function(){var U,d,L,M,s,w,_;for(U=(Z=y.select(this)).text().split(/\s+/).reverse(),L=[],M=0,s=Z.attr("y"),w=parseFloat(Z.attr("dy")),_=Z.text(null).append("tspan").attr("x",H).attr("y",s).attr("dy",w+"em");d=U.pop();)if(L.push(d),_.text(L.join(" ")),_.node()&&_.node().getComputedTextLength()>tt){if(L.pop(),_.text(L.join(" ")),!(M2&&arguments[2]!==void 0?arguments[2]:0;Ct.each(function(){var gt,wt,Rt,jt,Zt,ne,Wt;for(gt=(Ct=K.select(this)).text().split(/\s+/).reverse(),Rt=[],jt=0,Zt=Ct.attr("y"),ne=parseFloat(Ct.attr("dy")),Wt=Ct.text(null).append("tspan").attr("x",Nt).attr("y",Zt).attr("dy",ne+"em");wt=gt.pop();)Rt.push(wt),Wt.text(Rt.join(" ")),B(Rt.join(" "),16,"Karla, sans-serif")>Tt&&(Rt.pop(),Wt.text(Rt.join(" ")),jt<2&&(Rt=[wt],Wt=Ct.append("tspan").attr("x",Nt).attr("y",Zt).attr("dy",1.2*++jt+ne+"em").text(wt)))})}function pt(Ct){var Tt=Ct[Q];mt.length?Tt=function(Nt){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mt;return gt.map(function(wt){return Nt.filter(function(Rt){return Rt.name===wt})[0]})}(Tt):Tt.length&&Tt[0].name&&(Tt=function(Nt){return Nt.map(function(gt){return gt}).sort(function(gt,wt){return gt.name>wt.name?1:gt.name===wt.name?0:-1})}(Tt)),E.selectAll("text").remove(),E.selectAll("circle").remove(),it(Ct),v=48,x=37,g=0,Tt.forEach(W)}function xt(Ct,Tt,Nt){pt(Ct),lt(0,Tt,Nt)}return D.axisTimeCombinations=q,D.dateFormat=function(Ct){return arguments.length?(nt=Ct,this):nt||st},D.dateCustomFormat=function(Ct){return arguments.length?(dt=Ct,this):dt},D.dateLabel=function(Ct){return arguments.length?(F=Ct,this):F},D.hide=function(){return ot.style("visibility","hidden"),this},D.locale=function(Ct){return arguments.length?(rt=Ct,this):rt},D.nameLabel=function(Ct){return arguments.length?(k=Ct,this):k},D.numberFormat=function(Ct){return arguments.length?(Et=Ct,this):Et},D.valueFormatter=function(Ct){return arguments.length?(Mt=Ct,this):Mt},D.shouldShowDateInTitle=function(Ct){return arguments.length?(w=Ct,this):w},D.show=function(){return ot.style("visibility","visible"),this},D.title=function(Ct){return arguments.length?(s=Ct,this):s},D.tooltipOffset=function(Ct){return arguments.length?(o=Ct,this):o},D.topicsOrder=function(Ct){return arguments.length?(mt=Ct,this):mt},D.topicLabel=function(Ct){return arguments.length?(Q=Ct,this):Q},D.update=function(Ct,Tt,Nt){var gt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return b=Tt,xt(Ct,Nt,gt),this},D.valueLabel=function(Ct){return arguments.length?(T=Ct,this):T},D}}.call(ht,z,ht,ue))===void 0||(ue.exports=_t)}])})},3224:(We,ue,ht)=>{"use strict";ht.r(ue),ht.d(ue,{FormatSpecifier:()=>dm,active:()=>Dy,arc:()=>hA,area:()=>lC,areaRadial:()=>Xw,ascending:()=>d.V_,autoType:()=>ff,axisBottom:()=>f,axisLeft:()=>b,axisRight:()=>l,axisTop:()=>p,bisect:()=>d.h1,bisectLeft:()=>d.ah,bisectRight:()=>d.Jj,bisector:()=>d.yl,blob:()=>Xy,brush:()=>gg,brushSelection:()=>_l,brushX:()=>mg,brushY:()=>Ly,buffer:()=>Lx,chord:()=>vg,clientPoint:()=>In,cluster:()=>gS,color:()=>po,contourDensity:()=>Dx,contours:()=>qp,create:()=>rA,creator:()=>dr,cross:()=>d.$A,csv:()=>rl,csvFormat:()=>mc,csvFormatBody:()=>Lu,csvFormatRow:()=>ws,csvFormatRows:()=>Vo,csvFormatValue:()=>kg,csvParse:()=>Hy,csvParseRows:()=>Ia,cubehelix:()=>Jo,curveBasis:()=>CA,curveBasisClosed:()=>xC,curveBasisOpen:()=>wC,curveBundle:()=>MA,curveCardinal:()=>TA,curveCardinalClosed:()=>SC,curveCardinalOpen:()=>kA,curveCatmullRom:()=>PA,curveCatmullRomClosed:()=>OA,curveCatmullRomOpen:()=>CC,curveLinear:()=>_1,curveLinearClosed:()=>NA,curveMonotoneX:()=>DA,curveMonotoneY:()=>PC,curveNatural:()=>RA,curveStep:()=>LA,curveStepAfter:()=>jA,curveStepBefore:()=>IA,customEvent:()=>Xt,descending:()=>d.rG,deviation:()=>d.KS,dispatch:()=>dt,drag:()=>y_,dragDisable:()=>Un,dragEnable:()=>pr,dsv:()=>jg,dsvFormat:()=>Ru,easeBack:()=>Cl,easeBackIn:()=>rm,easeBackInOut:()=>Cl,easeBackOut:()=>ls,easeBounce:()=>Dd,easeBounceIn:()=>Dg,easeBounceInOut:()=>Rx,easeBounceOut:()=>Dd,easeCircle:()=>Pd,easeCircleIn:()=>Yy,easeCircleInOut:()=>Pd,easeCircleOut:()=>em,easeCubic:()=>is,easeCubicIn:()=>wu,easeCubicInOut:()=>is,easeCubicOut:()=>gs,easeElastic:()=>Gy,easeElasticIn:()=>Ql,easeElasticInOut:()=>Iu,easeElasticOut:()=>Gy,easeExp:()=>Sa,easeExpIn:()=>Wy,easeExpInOut:()=>Sa,easeExpOut:()=>pf,easeLinear:()=>kd,easePoly:()=>rh,easePolyIn:()=>xc,easePolyInOut:()=>rh,easePolyOut:()=>Jp,easeQuad:()=>vc,easeQuadIn:()=>Qp,easeQuadInOut:()=>vc,easeQuadOut:()=>Og,easeSin:()=>df,easeSinIn:()=>Vy,easeSinInOut:()=>df,easeSinOut:()=>tm,entries:()=>ef,event:()=>Sr,extent:()=>d.Xx,forceCenter:()=>yf,forceCollide:()=>qy,forceLink:()=>Hg,forceManyBody:()=>jx,forceRadial:()=>Bx,forceSimulation:()=>hm,forceX:()=>Zy,forceY:()=>Vg,format:()=>ol,formatDefaultLocale:()=>sh,formatLocale:()=>Bd,formatPrefix:()=>Al,formatSpecifier:()=>bf,geoAlbers:()=>wb,geoAlbersUsa:()=>o3,geoArea:()=>zx,geoAzimuthalEqualArea:()=>Sb,geoAzimuthalEqualAreaRaw:()=>Nv,geoAzimuthalEquidistant:()=>a3,geoAzimuthalEquidistantRaw:()=>Eb,geoBounds:()=>D5,geoCentroid:()=>BT,geoCircle:()=>A_,geoClipAntimeridian:()=>bm,geoClipCircle:()=>Jx,geoClipExtent:()=>FT,geoClipRectangle:()=>tb,geoConicConformal:()=>I5,geoConicConformalRaw:()=>cS,geoConicEqualArea:()=>c0,geoConicEqualAreaRaw:()=>i3,geoConicEquidistant:()=>s3,geoConicEquidistantRaw:()=>hS,geoContains:()=>V_,geoDistance:()=>yv,geoEqualEarth:()=>Mb,geoEqualEarthRaw:()=>Bv,geoEquirectangular:()=>Cb,geoEquirectangularRaw:()=>km,geoGnomonic:()=>l3,geoGnomonicRaw:()=>Tb,geoGraticule:()=>W_,geoGraticule10:()=>GT,geoIdentity:()=>B5,geoInterpolate:()=>Y_,geoLength:()=>B_,geoMercator:()=>uS,geoMercatorRaw:()=>Dv,geoNaturalEarth1:()=>kb,geoNaturalEarth1Raw:()=>Fv,geoOrthographic:()=>fS,geoOrthographicRaw:()=>Ab,geoPath:()=>rS,geoProjection:()=>Gu,geoProjectionMutator:()=>u0,geoRotation:()=>k_,geoStereographic:()=>pS,geoStereographicRaw:()=>dS,geoStream:()=>Wr,geoTransform:()=>iS,geoTransverseMercator:()=>u3,geoTransverseMercatorRaw:()=>f0,gray:()=>ao,hcl:()=>as,hierarchy:()=>zv,histogram:()=>d.JW,hsl:()=>pa,html:()=>ca,image:()=>Za,interpolate:()=>cn,interpolateArray:()=>Qu,interpolateBasis:()=>mu,interpolateBasisClosed:()=>Fl,interpolateBlues:()=>Yk,interpolateBrBG:()=>Bm,interpolateBuGn:()=>R0,interpolateBuPu:()=>ru,interpolateCividis:()=>JE,interpolateCool:()=>Gw,interpolateCubehelix:()=>v0,interpolateCubehelixDefault:()=>Ic,interpolateCubehelixLong:()=>$v,interpolateDate:()=>Ju,interpolateDiscrete:()=>g0,interpolateGnBu:()=>ll,interpolateGreens:()=>Gk,interpolateGreys:()=>Xk,interpolateHcl:()=>R3,interpolateHclLong:()=>L3,interpolateHsl:()=>N3,interpolateHslLong:()=>y0,interpolateHue:()=>P3,interpolateInferno:()=>eA,interpolateLab:()=>Xb,interpolateMagma:()=>tA,interpolateNumber:()=>As,interpolateNumberArray:()=>Rh,interpolateObject:()=>Wc,interpolateOrRd:()=>L0,interpolateOranges:()=>$k,interpolatePRGn:()=>Bk,interpolatePiYG:()=>Rc,interpolatePlasma:()=>nA,interpolatePuBu:()=>VE,interpolatePuBuGn:()=>I0,interpolatePuOr:()=>zw,interpolatePuRd:()=>zk,interpolatePurples:()=>QE,interpolateRainbow:()=>qk,interpolateRdBu:()=>Uw,interpolateRdGy:()=>Fk,interpolateRdPu:()=>WE,interpolateRdYlBu:()=>x1,interpolateRdYlGn:()=>D0,interpolateReds:()=>rO,interpolateRgb:()=>yu,interpolateRgbBasis:()=>td,interpolateRgbBasisClosed:()=>Vc,interpolateRound:()=>di,interpolateSinebow:()=>tC,interpolateSpectral:()=>zE,interpolateString:()=>$e,interpolateTransformCss:()=>Rp,interpolateTransformSvg:()=>ag,interpolateTurbo:()=>Qk,interpolateViridis:()=>Jk,interpolateWarm:()=>zm,interpolateYlGn:()=>Hk,interpolateYlGnBu:()=>Uk,interpolateYlOrBr:()=>Vk,interpolateYlOrRd:()=>Wk,interpolateZoom:()=>O3,interrupt:()=>vu,interval:()=>WA,isoFormat:()=>u2,isoParse:()=>HC,json:()=>Ba,keys:()=>Yp,lab:()=>Ho,lch:()=>ua,line:()=>C1,lineRadial:()=>pA,linkHorizontal:()=>xA,linkRadial:()=>wA,linkVertical:()=>bA,local:()=>nC,map:()=>Or,matcher:()=>ot,max:()=>d.T9,mean:()=>d.i2,median:()=>d.JZ,merge:()=>d.Am,min:()=>d.jk,mouse:()=>Tr,namespace:()=>tn,namespaces:()=>Ye,nest:()=>By,now:()=>jh,pack:()=>M3,packEnclose:()=>_S,packSiblings:()=>S3,pairs:()=>d.AS,partition:()=>Y5,path:()=>Tu,permute:()=>d.Ny,pie:()=>dA,piecewise:()=>I3,pointRadial:()=>Vm,polygonArea:()=>j3,polygonCentroid:()=>RS,polygonContains:()=>Z5,polygonHull:()=>z3,polygonLength:()=>Q5,precisionFixed:()=>Yg,precisionPrefix:()=>Fd,precisionRound:()=>ev,quadtree:()=>ra,quantile:()=>d.YV,quantize:()=>DS,radialArea:()=>Xw,radialLine:()=>pA,randomBates:()=>U3,randomExponential:()=>LS,randomIrwinHall:()=>qb,randomLogNormal:()=>J5,randomNormal:()=>$b,randomUniform:()=>fh,range:()=>d.y1,rgb:()=>oo,ribbon:()=>wg,scaleBand:()=>Jd,scaleDiverging:()=>LE,scaleDivergingLog:()=>Lw,scaleDivergingPow:()=>Iw,scaleDivergingSqrt:()=>Lk,scaleDivergingSymlog:()=>IE,scaleIdentity:()=>zS,scaleImplicit:()=>Kv,scaleLinear:()=>FS,scaleLog:()=>nw,scaleOrdinal:()=>x0,scalePoint:()=>tp,scalePow:()=>lw,scaleQuantile:()=>uw,scaleQuantize:()=>ep,scaleSequential:()=>DE,scaleSequentialLog:()=>m1,scaleSequentialPow:()=>Dw,scaleSequentialQuantile:()=>Rw,scaleSequentialSqrt:()=>Rk,scaleSequentialSymlog:()=>RE,scaleSqrt:()=>W3,scaleSymlog:()=>iw,scaleThreshold:()=>cw,scaleTime:()=>If,scaleUtc:()=>Dk,scan:()=>d.SQ,schemeAccent:()=>jk,schemeBlues:()=>qE,schemeBrBG:()=>Fw,schemeBuGn:()=>UE,schemeBuPu:()=>$s,schemeCategory10:()=>Ik,schemeDark2:()=>jw,schemeGnBu:()=>Ll,schemeGreens:()=>KE,schemeGreys:()=>ZE,schemeOrRd:()=>b1,schemeOranges:()=>j0,schemePRGn:()=>y1,schemePaired:()=>Rl,schemePastel1:()=>ap,schemePastel2:()=>nu,schemePiYG:()=>jE,schemePuBu:()=>HE,schemePuBuGn:()=>lp,schemePuOr:()=>yh,schemePuRd:()=>Fm,schemePurples:()=>Ww,schemeRdBu:()=>Lc,schemeRdGy:()=>BE,schemeRdPu:()=>Vw,schemeRdYlBu:()=>v1,schemeRdYlGn:()=>Hw,schemeReds:()=>Yw,schemeSet1:()=>Bw,schemeSet2:()=>sp,schemeSet3:()=>g1,schemeSpectral:()=>FE,schemeTableau10:()=>jm,schemeYlGn:()=>GE,schemeYlGnBu:()=>YE,schemeYlOrBr:()=>XE,schemeYlOrRd:()=>$E,select:()=>rn,selectAll:()=>iA,selection:()=>Ue,selector:()=>Et,selectorAll:()=>Y,set:()=>Ou,shuffle:()=>d.k4,stack:()=>RC,stackOffsetDiverging:()=>R1,stackOffsetExpand:()=>s2,stackOffsetNone:()=>up,stackOffsetSilhouette:()=>BA,stackOffsetWiggle:()=>LC,stackOrderAppearance:()=>IC,stackOrderAscending:()=>jC,stackOrderDescending:()=>BC,stackOrderInsideOut:()=>zA,stackOrderNone:()=>cp,stackOrderReverse:()=>FC,stratify:()=>TS,style:()=>hn,sum:()=>d.cz,svg:()=>im,symbol:()=>EA,symbolCircle:()=>qw,symbolCross:()=>pC,symbolDiamond:()=>Y0,symbolSquare:()=>gC,symbolStar:()=>mC,symbolTriangle:()=>yC,symbolWye:()=>bh,symbols:()=>G0,text:()=>Hs,thresholdFreedmanDiaconis:()=>d.c3,thresholdScott:()=>d.Ft,thresholdSturges:()=>d.zr,tickFormat:()=>BS,tickIncrement:()=>d.lq,tickStep:()=>d.sG,ticks:()=>d.Zc,timeDay:()=>Nm,timeDays:()=>ph,timeFormat:()=>k0,timeFormatDefaultLocale:()=>AE,timeFormatLocale:()=>oE,timeFriday:()=>qS,timeFridays:()=>q3,timeHour:()=>u1,timeHours:()=>K3,timeInterval:()=>es,timeMillisecond:()=>mh,timeMilliseconds:()=>QS,timeMinute:()=>mw,timeMinutes:()=>Z3,timeMonday:()=>E0,timeMondays:()=>G3,timeMonth:()=>hw,timeMonths:()=>XS,timeParse:()=>Aw,timeSaturday:()=>s1,timeSaturdays:()=>KS,timeSecond:()=>c1,timeSeconds:()=>Q3,timeSunday:()=>S0,timeSundays:()=>fw,timeThursday:()=>rp,timeThursdays:()=>dw,timeTuesday:()=>Of,timeTuesdays:()=>X3,timeWednesday:()=>Nf,timeWednesdays:()=>$3,timeWeek:()=>S0,timeWeeks:()=>fw,timeYear:()=>Pf,timeYears:()=>tO,timeout:()=>zh,timer:()=>nd,timerFlush:()=>tc,touch:()=>yr,touches:()=>rC,transition:()=>bu,transpose:()=>d.mg,tree:()=>$5,treemap:()=>q5,treemapBinary:()=>vi,treemapDice:()=>m0,treemapResquarify:()=>Wb,treemapSlice:()=>Yo,treemapSliceDice:()=>Pn,treemapSquarify:()=>Vi,tsv:()=>ro,tsvFormat:()=>cf,tsvFormatBody:()=>Td,tsvFormatRow:()=>Pg,tsvFormatRows:()=>Ag,tsvFormatValue:()=>hf,tsvParse:()=>gc,tsvParseRows:()=>yc,utcDay:()=>Es,utcDays:()=>Pc,utcFormat:()=>A0,utcFriday:()=>tE,utcFridays:()=>gw,utcHour:()=>NE,utcHours:()=>Ok,utcMillisecond:()=>mh,utcMilliseconds:()=>QS,utcMinute:()=>gh,utcMinutes:()=>Nk,utcMonday:()=>C0,utcMondays:()=>rE,utcMonth:()=>Ow,utcMonths:()=>OE,utcParse:()=>Lf,utcSaturday:()=>eE,utcSaturdays:()=>h1,utcSecond:()=>c1,utcSeconds:()=>Q3,utcSunday:()=>pi,utcSundays:()=>nE,utcThursday:()=>ip,utcThursdays:()=>iE,utcTuesday:()=>cs,utcTuesdays:()=>J3,utcWednesday:()=>JS,utcWednesdays:()=>tk,utcWeek:()=>pi,utcWeeks:()=>nE,utcYear:()=>Oc,utcYears:()=>ek,values:()=>Nu,variance:()=>d.GV,version:()=>_t,voronoi:()=>QC,window:()=>zt,xml:()=>ih,zip:()=>d.yU,zoom:()=>ty,zoomIdentity:()=>U1,zoomTransform:()=>JC});var z="d3",_t="5.16.0",m="Data-Driven Documents",y=null,R="https://d3js.org",j="BSD-3-Clause",et={name:"Mike Bostock",url:"https://bost.ocks.org/mike"},K="dist/d3.node.js",J="dist/d3.min.js",q="dist/d3.min.js",Z="index.js",tt={type:"git",url:"https://github.com/d3/d3.git"},H=null,X={pretest:"rimraf dist && mkdir dist && json2module package.json > dist/package.js && rollup -c",test:"tape 'test/**/*-test.js'",prepublishOnly:"yarn test",postpublish:'git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3/dist/d3.js d3.v5.js && cp ../d3/dist/d3.min.js d3.v5.min.js && git add d3.v5.js d3.v5.min.js && git commit -m "d3 ${npm_package_version}" && git push && cd - && cd ../d3-bower && git pull && cp ../d3/LICENSE ../d3/README.md ../d3/dist/d3.js ../d3/dist/d3.min.js . && git add -- LICENSE README.md d3.js d3.min.js && git commit -m "${npm_package_version}" && git tag -am "${npm_package_version}" v${npm_package_version} && git push && git push --tags && cd - && zip -j dist/d3.zip -- LICENSE README.md API.md CHANGES.md dist/d3.js dist/d3.min.js'},B={json2module:"0.0",rimraf:"2",rollup:"1","rollup-plugin-ascii":"0.0","rollup-plugin-node-resolve":"3","rollup-plugin-terser":"5",tape:"4"},U={"d3-array":"1","d3-axis":"1","d3-brush":"1","d3-chord":"1","d3-collection":"1","d3-color":"1","d3-contour":"1","d3-dispatch":"1","d3-drag":"1","d3-dsv":"1","d3-ease":"1","d3-fetch":"1","d3-force":"1","d3-format":"1","d3-geo":"1","d3-hierarchy":"1","d3-interpolate":"1","d3-path":"1","d3-polygon":"1","d3-quadtree":"1","d3-random":"1","d3-scale":"2","d3-scale-chromatic":"1","d3-selection":"1","d3-shape":"1","d3-time":"1","d3-time-format":"2","d3-timer":"1","d3-transition":"1","d3-voronoi":"1","d3-zoom":"1"},d=ht(9685),L=Array.prototype.slice;function M(r){return r}var s=1,w=2,_=3,o=4,u=1e-6;function C(r){return"translate("+(r+.5)+",0)"}function E(r){return"translate(0,"+(r+.5)+")"}function S(r){return function(a){return+r(a)}}function v(r){var a=Math.max(0,r.bandwidth()-1)/2;return r.round()&&(a=Math.round(a)),function(A){return+r(A)+a}}function g(){return!this.__axis}function x(r,a){var A=[],V=null,ut=null,bt=6,Pt=6,Dt=3,Ft=r===s||r===o?-1:1,Vt=r===o||r===w?"x":"y",$t=r===s||r===_?C:E;function ie(Qt){var we=V==null?a.ticks?a.ticks.apply(a,A):a.domain():V,Ne=ut==null?a.tickFormat?a.tickFormat.apply(a,A):M:ut,Pe=Math.max(bt,0)+Dt,Be=a.range(),He=+Be[0]+.5,ln=+Be[Be.length-1]+.5,Je=(a.bandwidth?v:S)(a.copy()),sn=Qt.selection?Qt.selection():Qt,kn=sn.selectAll(".domain").data([null]),Vn=sn.selectAll(".tick").data(we,a).order(),Fn=Vn.exit(),vr=Vn.enter().append("g").attr("class","tick"),nr=Vn.select("line"),lr=Vn.select("text");kn=kn.merge(kn.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Vn=Vn.merge(vr),nr=nr.merge(vr.append("line").attr("stroke","currentColor").attr(Vt+"2",Ft*bt)),lr=lr.merge(vr.append("text").attr("fill","currentColor").attr(Vt,Ft*Pe).attr("dy",r===s?"0em":r===_?"0.71em":"0.32em")),Qt!==sn&&(kn=kn.transition(Qt),Vn=Vn.transition(Qt),nr=nr.transition(Qt),lr=lr.transition(Qt),Fn=Fn.transition(Qt).attr("opacity",u).attr("transform",function(Xn){return isFinite(Xn=Je(Xn))?$t(Xn):this.getAttribute("transform")}),vr.attr("opacity",u).attr("transform",function(Xn){var un=this.parentNode.__axis;return $t(un&&isFinite(un=un(Xn))?un:Je(Xn))})),Fn.remove(),kn.attr("d",r===o||r==w?Pt?"M"+Ft*Pt+","+He+"H0.5V"+ln+"H"+Ft*Pt:"M0.5,"+He+"V"+ln:Pt?"M"+He+","+Ft*Pt+"V0.5H"+ln+"V"+Ft*Pt:"M"+He+",0.5H"+ln),Vn.attr("opacity",1).attr("transform",function(Xn){return $t(Je(Xn))}),nr.attr(Vt+"2",Ft*bt),lr.attr(Vt,Ft*Pe).text(Ne),sn.filter(g).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",r===w?"start":r===o?"end":"middle"),sn.each(function(){this.__axis=Je})}return ie.scale=function(Qt){return arguments.length?(a=Qt,ie):a},ie.ticks=function(){return A=L.call(arguments),ie},ie.tickArguments=function(Qt){return arguments.length?(A=Qt==null?[]:L.call(Qt),ie):A.slice()},ie.tickValues=function(Qt){return arguments.length?(V=Qt==null?null:L.call(Qt),ie):V&&V.slice()},ie.tickFormat=function(Qt){return arguments.length?(ut=Qt,ie):ut},ie.tickSize=function(Qt){return arguments.length?(bt=Pt=+Qt,ie):bt},ie.tickSizeInner=function(Qt){return arguments.length?(bt=+Qt,ie):bt},ie.tickSizeOuter=function(Qt){return arguments.length?(Pt=+Qt,ie):Pt},ie.tickPadding=function(Qt){return arguments.length?(Dt=+Qt,ie):Dt},ie}function p(r){return x(s,r)}function l(r){return x(w,r)}function f(r){return x(_,r)}function b(r){return x(o,r)}var F={value:function(){}};function T(){for(var r=0,a=arguments.length,A={},V;r=0&&(V=A.slice(ut+1),A=A.slice(0,ut)),A&&!a.hasOwnProperty(A))throw new Error("unknown type: "+A);return{type:A,name:V}})}k.prototype=T.prototype={constructor:k,on:function(r,a){var A=this._,V=Q(r+"",A),ut,bt=-1,Pt=V.length;if(arguments.length<2){for(;++bt0)for(var A=new Array(ut),V=0,ut,bt;V=Je&&(Je=ln+1);!(kn=Be[Je])&&++Je=0;)(Pt=V[ut])&&(bt&&Pt.compareDocumentPosition(bt)^4&&bt.parentNode.insertBefore(Pt,bt),bt=Pt);return this}function Rt(r){r||(r=jt);function a(ie,Qt){return ie&&Qt?r(ie.__data__,Qt.__data__):!ie-!Qt}for(var A=this._groups,V=A.length,ut=new Array(V),bt=0;bta?1:r>=a?0:NaN}function Zt(){var r=arguments[0];return arguments[0]=this,r.apply(null,arguments),this}function ne(){var r=new Array(this.size()),a=-1;return this.each(function(){r[++a]=this}),r}function Wt(){for(var r=this._groups,a=0,A=r.length;a=0&&(a=r.slice(0,A))!=="xmlns"&&(r=r.slice(A+1)),Ye.hasOwnProperty(a)?{space:Ye[a],local:r}:r}function an(r){return function(){this.removeAttribute(r)}}function Jt(r){return function(){this.removeAttributeNS(r.space,r.local)}}function Kt(r,a){return function(){this.setAttribute(r,a)}}function te(r,a){return function(){this.setAttributeNS(r.space,r.local,a)}}function Ot(r,a){return function(){var A=a.apply(this,arguments);A==null?this.removeAttribute(r):this.setAttribute(r,A)}}function Bt(r,a){return function(){var A=a.apply(this,arguments);A==null?this.removeAttributeNS(r.space,r.local):this.setAttributeNS(r.space,r.local,A)}}function Ut(r,a){var A=tn(r);if(arguments.length<2){var V=this.node();return A.local?V.getAttributeNS(A.space,A.local):V.getAttribute(A)}return this.each((a==null?A.local?Jt:an:typeof a=="function"?A.local?Bt:Ot:A.local?te:Kt)(A,a))}function zt(r){return r.ownerDocument&&r.ownerDocument.defaultView||r.document&&r||r.defaultView}function ce(r){return function(){this.style.removeProperty(r)}}function _e(r,a,A){return function(){this.style.setProperty(r,a,A)}}function ye(r,a,A){return function(){var V=a.apply(this,arguments);V==null?this.style.removeProperty(r):this.style.setProperty(r,V,A)}}function qe(r,a,A){return arguments.length>1?this.each((a==null?ce:typeof a=="function"?ye:_e)(r,a,A==null?"":A)):hn(this.node(),r)}function hn(r,a){return r.style.getPropertyValue(a)||zt(r).getComputedStyle(r,null).getPropertyValue(a)}function yn(r){return function(){delete this[r]}}function Nn(r,a){return function(){this[r]=a}}function pn(r,a){return function(){var A=a.apply(this,arguments);A==null?delete this[r]:this[r]=A}}function Mn(r,a){return arguments.length>1?this.each((a==null?yn:typeof a=="function"?pn:Nn)(r,a)):this.node()[r]}function Kn(r){return r.trim().split(/^|\s+/)}function fr(r){return r.classList||new ge(r)}function ge(r){this._node=r,this._names=Kn(r.getAttribute("class")||"")}ge.prototype={add:function(r){var a=this._names.indexOf(r);a<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var a=this._names.indexOf(r);a>=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};function Ie(r,a){for(var A=fr(r),V=-1,ut=a.length;++V=0&&(A=a.slice(V+1),a=a.slice(0,V)),{type:a,name:A}})}function Qe(r){return function(){var a=this.__on;if(a){for(var A=0,V=-1,ut=a.length,bt;A>8&15|a>>4&240,a>>4&15|a&240,(a&15)<<4|a&15,1):A===8?_o(a>>24&255,a>>16&255,a>>8&255,(a&255)/255):A===4?_o(a>>12&15|a>>8&240,a>>8&15|a>>4&240,a>>4&15|a&240,((a&15)<<4|a&15)/255):null):(a=Ai.exec(r))?new Mi(a[1],a[2],a[3],1):(a=yi.exec(r))?new Mi(a[1]*255/100,a[2]*255/100,a[3]*255/100,1):(a=Pi.exec(r))?_o(a[1],a[2],a[3],a[4]):(a=Di.exec(r))?_o(a[1]*255/100,a[2]*255/100,a[3]*255/100,a[4]):(a=Oi.exec(r))?yo(a[1],a[2]/100,a[3]/100,1):(a=Wi.exec(r))?yo(a[1],a[2]/100,a[3]/100,a[4]):to.hasOwnProperty(r)?no(to[r]):r==="transparent"?new Mi(NaN,NaN,NaN,0):null}function no(r){return new Mi(r>>16&255,r>>8&255,r&255,1)}function _o(r,a,A,V){return V<=0&&(r=a=A=NaN),new Mi(r,a,A,V)}function Zo(r){return r instanceof sr||(r=po(r)),r?(r=r.rgb(),new Mi(r.r,r.g,r.b,r.opacity)):new Mi}function oo(r,a,A,V){return arguments.length===1?Zo(r):new Mi(r,a,A,V==null?1:V)}function Mi(r,a,A,V){this.r=+r,this.g=+a,this.b=+A,this.opacity=+V}ir(Mi,oo,$n(sr,{brighter:function(r){return r=r==null?wr:Math.pow(wr,r),new Mi(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=r==null?Cr:Math.pow(Cr,r),new Mi(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:aa,formatHex:aa,formatRgb:sa,toString:sa}));function aa(){return"#"+ko(this.r)+ko(this.g)+ko(this.b)}function sa(){var r=this.opacity;return r=isNaN(r)?1:Math.max(0,Math.min(1,r)),(r===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(r===1?")":", "+r+")")}function ko(r){return r=Math.max(0,Math.min(255,Math.round(r)||0)),(r<16?"0":"")+r.toString(16)}function yo(r,a,A,V){return V<=0?r=a=A=NaN:A<=0||A>=1?r=a=NaN:a<=0&&(r=NaN),new Na(r,a,A,V)}function ea(r){if(r instanceof Na)return new Na(r.h,r.s,r.l,r.opacity);if(r instanceof sr||(r=po(r)),!r)return new Na;if(r instanceof Na)return r;r=r.rgb();var a=r.r/255,A=r.g/255,V=r.b/255,ut=Math.min(a,A,V),bt=Math.max(a,A,V),Pt=NaN,Dt=bt-ut,Ft=(bt+ut)/2;return Dt?(a===bt?Pt=(A-V)/Dt+(A0&&Ft<1?0:Pt,new Na(Pt,Dt,Ft,r.opacity)}function pa(r,a,A,V){return arguments.length===1?ea(r):new Na(r,a,A,V==null?1:V)}function Na(r,a,A,V){this.h=+r,this.s=+a,this.l=+A,this.opacity=+V}ir(Na,pa,$n(sr,{brighter:function(r){return r=r==null?wr:Math.pow(wr,r),new Na(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=r==null?Cr:Math.pow(Cr,r),new Na(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+(this.h<0)*360,a=isNaN(r)||isNaN(this.s)?0:this.s,A=this.l,V=A+(A<.5?A:1-A)*a,ut=2*A-V;return new Mi(pu(r>=240?r-240:r+120,ut,V),pu(r,ut,V),pu(r<120?r+240:r-120,ut,V),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var r=this.opacity;return r=isNaN(r)?1:Math.max(0,Math.min(1,r)),(r===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(r===1?")":", "+r+")")}}));function pu(r,a,A){return(r<60?a+(A-a)*r/60:r<180?A:r<240?a+(A-a)*(240-r)/60:a)*255}function yl(r,a,A,V,ut){var bt=r*r,Pt=bt*r;return((1-3*r+3*bt-Pt)*a+(4-6*bt+3*Pt)*A+(1+3*r+3*bt-3*Pt)*V+Pt*ut)/6}function mu(r){var a=r.length-1;return function(A){var V=A<=0?A=0:A>=1?(A=1,a-1):Math.floor(A*a),ut=r[V],bt=r[V+1],Pt=V>0?r[V-1]:2*ut-bt,Dt=V180||A<-180?A-360*Math.round(A/360):A):gu(isNaN(r)?a:r)}function ds(r){return(r=+r)==1?la:function(a,A){return A-a?Tp(a,A,r):gu(isNaN(a)?A:a)}}function la(r,a){var A=a-r;return A?Dh(r,A):gu(isNaN(r)?a:r)}const yu=function r(a){var A=ds(a);function V(ut,bt){var Pt=A((ut=oo(ut)).r,(bt=oo(bt)).r),Dt=A(ut.g,bt.g),Ft=A(ut.b,bt.b),Vt=la(ut.opacity,bt.opacity);return function($t){return ut.r=Pt($t),ut.g=Dt($t),ut.b=Ft($t),ut.opacity=Vt($t),ut+""}}return V.gamma=r,V}(1);function Jf(r){return function(a){var A=a.length,V=new Array(A),ut=new Array(A),bt=new Array(A),Pt,Dt;for(Pt=0;PtA&&(bt=a.slice(A,bt),Dt[Pt]?Dt[Pt]+=bt:Dt[++Pt]=bt),(V=V[0])===(ut=ut[0])?Dt[Pt]?Dt[Pt]+=ut:Dt[++Pt]=ut:(Dt[++Pt]=null,Ft.push({i:Pt,x:As(V,ut)})),A=ed.lastIndex;return A=0&&r._call.call(null,a),r=r._next;--ci}function Fh(){ps=($a=Wa.now())+zl,ci=_i=0;try{tc()}finally{ci=0,Ap(),ps=0}}function kp(){var r=Wa.now(),a=r-$a;a>Ao&&(zl-=a,$a=r)}function Ap(){for(var r,a=Da,A,V=1/0;a;)a._call?(V>a._time&&(V=a._time),r=a,a=a._next):(A=a._next,a._next=null,a=r?r._next=A:Da=A);So=r,Jm(V)}function Jm(r){if(!ci){_i&&(_i=clearTimeout(_i));var a=r-ps;a>24?(r<1/0&&(_i=setTimeout(Fh,r-Wa.now()-zl)),wi&&(wi=clearInterval(wi))):(wi||($a=Wa.now(),wi=setInterval(kp,Ao)),ci=1,by(Fh))}}function zh(r,a,A){var V=new Bh;return a=a==null?0:+a,V.restart(function(ut){V.stop(),r(ut+a)},a,A),V}var tg=dt("start","end","cancel","interrupt"),eg=[],wy=0,ng=1,Pp=2,rg=3,bx=4,Op=5,Np=6;function rd(r,a,A,V,ut,bt){var Pt=r.__transition;if(!Pt)r.__transition={};else if(A in Pt)return;wx(r,A,{name:a,index:V,group:ut,on:tg,tween:eg,time:bt.time,delay:bt.delay,duration:bt.duration,ease:bt.ease,timer:null,state:wy})}function Ps(r,a){var A=Ra(r,a);if(A.state>wy)throw new Error("too late; already scheduled");return A}function Ks(r,a){var A=Ra(r,a);if(A.state>rg)throw new Error("too late; already running");return A}function Ra(r,a){var A=r.__transition;if(!A||!(A=A[a]))throw new Error("transition not found");return A}function wx(r,a,A){var V=r.__transition,ut;V[a]=A,A.timer=nd(bt,0,A.time);function bt(Vt){A.state=ng,A.timer.restart(Pt,A.delay,A.time),A.delay<=Vt&&Pt(Vt-A.delay)}function Pt(Vt){var $t,ie,Qt,we;if(A.state!==ng)return Ft();for($t in V)if(we=V[$t],we.name===A.name){if(we.state===rg)return zh(Pt);we.state===bx?(we.state=Np,we.timer.stop(),we.on.call("interrupt",r,r.__data__,we.index,we.group),delete V[$t]):+$tPp&&V.state180?$t+=360:$t-Vt>180&&(Vt+=360),Qt.push({i:ie.push(ut(ie)+"rotate(",null,V)-2,x:As(Vt,$t)})):$t&&ie.push(ut(ie)+"rotate("+$t+V)}function Dt(Vt,$t,ie,Qt){Vt!==$t?Qt.push({i:ie.push(ut(ie)+"skewX(",null,V)-2,x:As(Vt,$t)}):$t&&ie.push(ut(ie)+"skewX("+$t+V)}function Ft(Vt,$t,ie,Qt,we,Ne){if(Vt!==ie||$t!==Qt){var Pe=we.push(ut(we)+"scale(",null,",",null,")");Ne.push({i:Pe-4,x:As(Vt,ie)},{i:Pe-2,x:As($t,Qt)})}else(ie!==1||Qt!==1)&&we.push(ut(we)+"scale("+ie+","+Qt+")")}return function(Vt,$t){var ie=[],Qt=[];return Vt=r(Vt),$t=r($t),bt(Vt.translateX,Vt.translateY,$t.translateX,$t.translateY,ie,Qt),Pt(Vt.rotate,$t.rotate,ie,Qt),Dt(Vt.skewX,$t.skewX,ie,Qt),Ft(Vt.scaleX,Vt.scaleY,$t.scaleX,$t.scaleY,ie,Qt),Vt=$t=null,function(we){for(var Ne=-1,Pe=Qt.length,Be;++Ne=0&&(a=a.slice(0,A)),!a||a==="start"})}function cg(r,a,A){var V,ut,bt=eo(a)?Ps:Ks;return function(){var Pt=bt(this,r),Dt=Pt.on;Dt!==V&&(ut=(V=Dt).copy()).on(a,A),Pt.on=ut}}function hd(r,a){var A=this._id;return arguments.length<2?Ra(this.node(),A).on.on(r):this.each(cg(A,r,a))}function Lp(r){return function(){var a=this.parentNode;for(var A in this.__transition)if(+A!==r)return;a&&a.removeChild(this)}}function bl(){return this.on("end.remove",Lp(this._id))}function hg(r){var a=this._name,A=this._id;typeof r!="function"&&(r=Et(r));for(var V=this._groups,ut=V.length,bt=new Array(ut),Pt=0;Ptng&&V.name===a)return new ms([[r]],jp,a,+ut)}return null}function Bp(r){return function(){return r}}function Fp(r,a,A){this.target=r,this.type=a,this.selection=A}function Ry(){Sr.stopImmediatePropagation()}function Fs(){Sr.preventDefault(),Sr.stopImmediatePropagation()}var $h={name:"drag"},qh={name:"space"},_u={name:"handle"},Kh={name:"center"};function Su(r){return[+r[0],+r[1]]}function ac(r){return[Su(r[0]),Su(r[1])]}function Zh(r){return function(a){return yr(a,Sr.touches,r)}}var Gc={name:"x",handles:["w","e"].map($c),input:function(r,a){return r==null?null:[[+r[0],a[0][1]],[+r[1],a[1][1]]]},output:function(r){return r&&[r[0][0],r[1][0]]}},Xc={name:"y",handles:["n","s"].map($c),input:function(r,a){return r==null?null:[[a[0][0],+r[0]],[a[1][0],+r[1]]]},output:function(r){return r&&[r[0][1],r[1][1]]}},Zs={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map($c),input:function(r){return r==null?null:ac(r)},output:function(r){return r}},ma={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Eu={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Wl={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Cu={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Yl={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function $c(r){return{type:r}}function md(){return!Sr.ctrlKey&&!Sr.button}function pg(){var r=this.ownerSVGElement||this;return r.hasAttribute("viewBox")?(r=r.viewBox.baseVal,[[r.x,r.y],[r.x+r.width,r.y+r.height]]):[[0,0],[r.width.baseVal.value,r.height.baseVal.value]]}function zs(){return navigator.maxTouchPoints||"ontouchstart"in this}function ys(r){for(;!r.__brush;)if(!(r=r.parentNode))return;return r.__brush}function zo(r){return r[0][0]===r[1][0]||r[0][1]===r[1][1]}function _l(r){var a=r.__brush;return a?a.dim.output(a.selection):null}function mg(){return Qh(Gc)}function Ly(){return Qh(Xc)}function gg(){return Qh(Zs)}function Qh(r){var a=pg,A=md,V=zs,ut=!0,bt=dt("start","brush","end"),Pt=6,Dt;function Ft(Be){var He=Be.property("__brush",Pe).selectAll(".overlay").data([$c("overlay")]);He.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ma.overlay).merge(He).each(function(){var Je=ys(this).extent;rn(this).attr("x",Je[0][0]).attr("y",Je[0][1]).attr("width",Je[1][0]-Je[0][0]).attr("height",Je[1][1]-Je[0][1])}),Be.selectAll(".selection").data([$c("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ma.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var ln=Be.selectAll(".handle").data(r.handles,function(Je){return Je.type});ln.exit().remove(),ln.enter().append("rect").attr("class",function(Je){return"handle handle--"+Je.type}).attr("cursor",function(Je){return ma[Je.type]}),Be.each(Vt).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",Qt).filter(V).on("touchstart.brush",Qt).on("touchmove.brush",we).on("touchend.brush touchcancel.brush",Ne).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}Ft.move=function(Be,He){Be.selection?Be.on("start.brush",function(){$t(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){$t(this,arguments).end()}).tween("brush",function(){var ln=this,Je=ln.__brush,sn=$t(ln,arguments),kn=Je.selection,Vn=r.input(typeof He=="function"?He.apply(this,arguments):He,Je.extent),Fn=cn(kn,Vn);function vr(nr){Je.selection=nr===1&&Vn===null?null:Fn(nr),Vt.call(ln),sn.brush()}return kn!==null&&Vn!==null?vr:vr(1)}):Be.each(function(){var ln=this,Je=arguments,sn=ln.__brush,kn=r.input(typeof He=="function"?He.apply(ln,Je):He,sn.extent),Vn=$t(ln,Je).beforestart();vu(ln),sn.selection=kn===null?null:kn,Vt.call(ln),Vn.start().brush().end()})},Ft.clear=function(Be){Ft.move(Be,null)};function Vt(){var Be=rn(this),He=ys(this).selection;He?(Be.selectAll(".selection").style("display",null).attr("x",He[0][0]).attr("y",He[0][1]).attr("width",He[1][0]-He[0][0]).attr("height",He[1][1]-He[0][1]),Be.selectAll(".handle").style("display",null).attr("x",function(ln){return ln.type[ln.type.length-1]==="e"?He[1][0]-Pt/2:He[0][0]-Pt/2}).attr("y",function(ln){return ln.type[0]==="s"?He[1][1]-Pt/2:He[0][1]-Pt/2}).attr("width",function(ln){return ln.type==="n"||ln.type==="s"?He[1][0]-He[0][0]+Pt:Pt}).attr("height",function(ln){return ln.type==="e"||ln.type==="w"?He[1][1]-He[0][1]+Pt:Pt})):Be.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function $t(Be,He,ln){var Je=Be.__brush.emitter;return Je&&(!ln||!Je.clean)?Je:new ie(Be,He,ln)}function ie(Be,He,ln){this.that=Be,this.args=He,this.state=Be.__brush,this.active=0,this.clean=ln}ie.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return--this.active===0&&(delete this.state.emitter,this.emit("end")),this},emit:function(Be){Xt(new Fp(Ft,Be,r.output(this.state.selection)),bt.apply,bt,[Be,this.that,this.args])}};function Qt(){if(Dt&&!Sr.touches||!A.apply(this,arguments))return;var Be=this,He=Sr.target.__data__.type,ln=(ut&&Sr.metaKey?He="overlay":He)==="selection"?$h:ut&&Sr.altKey?Kh:_u,Je=r===Xc?null:Cu[He],sn=r===Gc?null:Yl[He],kn=ys(Be),Vn=kn.extent,Fn=kn.selection,vr=Vn[0][0],nr,lr,Xn=Vn[0][1],un,Bn,br=Vn[1][0],Hn,xr,Zr=Vn[1][1],jr,oi,Ri=0,Li=0,mo,Bo=Je&&sn&&ut&&Sr.shiftKey,lo,Ha,au=Sr.touches?Zh(Sr.changedTouches[0].identifier):Tr,su=au(Be),qu=su,Yr=$t(Be,arguments,!0).beforestart();He==="overlay"?(Fn&&(mo=!0),kn.selection=Fn=[[nr=r===Xc?vr:su[0],un=r===Gc?Xn:su[1]],[Hn=r===Xc?br:nr,jr=r===Gc?Zr:un]]):(nr=Fn[0][0],un=Fn[0][1],Hn=Fn[1][0],jr=Fn[1][1]),lr=nr,Bn=un,xr=Hn,oi=jr;var ji=rn(Be).attr("pointer-events","none"),qi=ji.selectAll(".overlay").attr("cursor",ma[He]);if(Sr.touches)Yr.moved=hs,Yr.ended=Ds;else{var Pr=rn(Sr.view).on("mousemove.brush",hs,!0).on("mouseup.brush",Ds,!0);ut&&Pr.on("keydown.brush",Rs,!0).on("keyup.brush",wh,!0),Un(Sr.view)}Ry(),vu(Be),Vt.call(Be),Yr.start();function hs(){var rs=au(Be);Bo&&!lo&&!Ha&&(Math.abs(rs[0]-qu[0])>Math.abs(rs[1]-qu[1])?Ha=!0:lo=!0),qu=rs,mo=!0,Fs(),uo()}function uo(){var rs;switch(Ri=qu[0]-su[0],Li=qu[1]-su[1],ln){case qh:case $h:{Je&&(Ri=Math.max(vr-nr,Math.min(br-Hn,Ri)),lr=nr+Ri,xr=Hn+Ri),sn&&(Li=Math.max(Xn-un,Math.min(Zr-jr,Li)),Bn=un+Li,oi=jr+Li);break}case _u:{Je<0?(Ri=Math.max(vr-nr,Math.min(br-nr,Ri)),lr=nr+Ri,xr=Hn):Je>0&&(Ri=Math.max(vr-Hn,Math.min(br-Hn,Ri)),lr=nr,xr=Hn+Ri),sn<0?(Li=Math.max(Xn-un,Math.min(Zr-un,Li)),Bn=un+Li,oi=jr):sn>0&&(Li=Math.max(Xn-jr,Math.min(Zr-jr,Li)),Bn=un,oi=jr+Li);break}case Kh:{Je&&(lr=Math.max(vr,Math.min(br,nr-Ri*Je)),xr=Math.max(vr,Math.min(br,Hn+Ri*Je))),sn&&(Bn=Math.max(Xn,Math.min(Zr,un-Li*sn)),oi=Math.max(Xn,Math.min(Zr,jr+Li*sn)));break}}xr0&&(nr=lr-Ri),sn<0?jr=oi-Li:sn>0&&(un=Bn-Li),ln=qh,qi.attr("cursor",ma.selection),uo());break}default:return}Fs()}function wh(){switch(Sr.keyCode){case 16:{Bo&&(lo=Ha=Bo=!1,uo());break}case 18:{ln===Kh&&(Je<0?Hn=xr:Je>0&&(nr=lr),sn<0?jr=oi:sn>0&&(un=Bn),ln=_u,uo());break}case 32:{ln===qh&&(Sr.altKey?(Je&&(Hn=xr-Ri*Je,nr=lr+Ri*Je),sn&&(jr=oi-Li*sn,un=Bn+Li*sn),ln=Kh):(Je<0?Hn=xr:Je>0&&(nr=lr),sn<0?jr=oi:sn>0&&(un=Bn),ln=_u),qi.attr("cursor",ma[He]),uo());break}default:return}Fs()}}function we(){$t(this,arguments).moved()}function Ne(){$t(this,arguments).ended()}function Pe(){var Be=this.__brush||{selection:null};return Be.extent=ac(a.apply(this,arguments)),Be.dim=r,Be}return Ft.extent=function(Be){return arguments.length?(a=typeof Be=="function"?Be:Bp(ac(Be)),Ft):a},Ft.filter=function(Be){return arguments.length?(A=typeof Be=="function"?Be:Bp(!!Be),Ft):A},Ft.touchable=function(Be){return arguments.length?(V=typeof Be=="function"?Be:Bp(!!Be),Ft):V},Ft.handleSize=function(Be){return arguments.length?(Pt=+Be,Ft):Pt},Ft.keyModifiers=function(Be){return arguments.length?(ut=!!Be,Ft):ut},Ft.on=function(){var Be=bt.on.apply(bt,arguments);return Be===bt?Ft:Be},Ft}var yg=Math.cos,gd=Math.sin,zp=Math.PI,Sl=zp/2,yd=zp*2,Iy=Math.max;function vd(r){return function(a,A){return r(a.source.value+a.target.value,A.source.value+A.target.value)}}function vg(){var r=0,a=null,A=null,V=null;function ut(bt){var Pt=bt.length,Dt=[],Ft=(0,d.y1)(Pt),Vt=[],$t=[],ie=$t.groups=new Array(Pt),Qt=new Array(Pt*Pt),we,Ne,Pe,Be,He,ln;for(we=0,He=-1;++HeMu)if(!(Math.abs($t*Dt-Ft*Vt)>Mu)||!ut)this._+="L"+(this._x1=r)+","+(this._y1=a);else{var Qt=A-bt,we=V-Pt,Ne=Dt*Dt+Ft*Ft,Pe=Qt*Qt+we*we,Be=Math.sqrt(Ne),He=Math.sqrt(ie),ln=ut*Math.tan((sc-Math.acos((Ne+ie-Pe)/(2*Be*He)))/2),Je=ln/He,sn=ln/Be;Math.abs(Je-1)>Mu&&(this._+="L"+(r+Je*Vt)+","+(a+Je*$t)),this._+="A"+ut+","+ut+",0,0,"+ +($t*Qt>Vt*we)+","+(this._x1=r+sn*Dt)+","+(this._y1=a+sn*Ft)}},arc:function(r,a,A,V,ut,bt){r=+r,a=+a,A=+A,bt=!!bt;var Pt=A*Math.cos(V),Dt=A*Math.sin(V),Ft=r+Pt,Vt=a+Dt,$t=1^bt,ie=bt?V-ut:ut-V;if(A<0)throw new Error("negative radius: "+A);this._x1===null?this._+="M"+Ft+","+Vt:(Math.abs(this._x1-Ft)>Mu||Math.abs(this._y1-Vt)>Mu)&&(this._+="L"+Ft+","+Vt),A&&(ie<0&&(ie=ie%Hp+Hp),ie>xg?this._+="A"+A+","+A+",0,1,"+$t+","+(r-Pt)+","+(a-Dt)+"A"+A+","+A+",0,1,"+$t+","+(this._x1=Ft)+","+(this._y1=Vt):ie>Mu&&(this._+="A"+A+","+A+",0,"+ +(ie>=sc)+","+$t+","+(this._x1=r+A*Math.cos(ut))+","+(this._y1=a+A*Math.sin(ut))))},rect:function(r,a,A,V){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+a)+"h"+ +A+"v"+ +V+"h"+-A+"Z"},toString:function(){return this._}};const Tu=Vp;function Wp(r){return r.source}function bg(r){return r.target}function Jh(r){return r.radius}function mi(r){return r.startAngle}function tf(r){return r.endAngle}function wg(){var r=Wp,a=bg,A=Jh,V=mi,ut=tf,bt=null;function Pt(){var Dt,Ft=jy.call(arguments),Vt=r.apply(this,Ft),$t=a.apply(this,Ft),ie=+A.apply(this,(Ft[0]=Vt,Ft)),Qt=V.apply(this,Ft)-Sl,we=ut.apply(this,Ft)-Sl,Ne=ie*yg(Qt),Pe=ie*gd(Qt),Be=+A.apply(this,(Ft[0]=$t,Ft)),He=V.apply(this,Ft)-Sl,ln=ut.apply(this,Ft)-Sl;if(bt||(bt=Dt=Tu()),bt.moveTo(Ne,Pe),bt.arc(0,0,ie,Qt,we),(Qt!==He||we!==ln)&&(bt.quadraticCurveTo(0,0,Be*yg(He),Be*gd(He)),bt.arc(0,0,Be,He,ln)),bt.quadraticCurveTo(0,0,Ne,Pe),bt.closePath(),Dt)return bt=null,Dt+""||null}return Pt.radius=function(Dt){return arguments.length?(A=typeof Dt=="function"?Dt:Up(+Dt),Pt):A},Pt.startAngle=function(Dt){return arguments.length?(V=typeof Dt=="function"?Dt:Up(+Dt),Pt):V},Pt.endAngle=function(Dt){return arguments.length?(ut=typeof Dt=="function"?Dt:Up(+Dt),Pt):ut},Pt.source=function(Dt){return arguments.length?(r=Dt,Pt):r},Pt.target=function(Dt){return arguments.length?(a=Dt,Pt):a},Pt.context=function(Dt){return arguments.length?(bt=Dt==null?null:Dt,Pt):bt},Pt}var Us="$";function Qs(){}Qs.prototype=ku.prototype={constructor:Qs,has:function(r){return Us+r in this},get:function(r){return this[Us+r]},set:function(r,a){return this[Us+r]=a,this},remove:function(r){var a=Us+r;return a in this&&delete this[a]},clear:function(){for(var r in this)r[0]===Us&&delete this[r]},keys:function(){var r=[];for(var a in this)a[0]===Us&&r.push(a.slice(1));return r},values:function(){var r=[];for(var a in this)a[0]===Us&&r.push(this[a]);return r},entries:function(){var r=[];for(var a in this)a[0]===Us&&r.push({key:a.slice(1),value:this[a]});return r},size:function(){var r=0;for(var a in this)a[0]===Us&&++r;return r},empty:function(){for(var r in this)if(r[0]===Us)return!1;return!0},each:function(r){for(var a in this)a[0]===Us&&r(this[a],a.slice(1),this)}};function ku(r,a){var A=new Qs;if(r instanceof Qs)r.each(function(Dt,Ft){A.set(Ft,Dt)});else if(Array.isArray(r)){var V=-1,ut=r.length,bt;if(a==null)for(;++V=r.length)return A!=null&&Dt.sort(A),V!=null?V(Dt):Dt;for(var ie=-1,Qt=Dt.length,we=r[Ft++],Ne,Pe,Be=Or(),He,ln=Vt();++ier.length)return Dt;var Vt,$t=a[Ft-1];return V!=null&&Ft>=r.length?Vt=Dt.entries():(Vt=[],Dt.each(function(ie,Qt){Vt.push({key:Qt,values:Pt(ie,Ft)})})),$t!=null?Vt.sort(function(ie,Qt){return $t(ie.key,Qt.key)}):Vt}return ut={object:function(Dt){return bt(Dt,0,Au,lc)},map:function(Dt){return bt(Dt,0,Kc,ga)},entries:function(Dt){return Pt(bt(Dt,0,Kc,ga),0)},key:function(Dt){return r.push(Dt),ut},sortKeys:function(Dt){return a[r.length-1]=Dt,ut},sortValues:function(Dt){return A=Dt,ut},rollup:function(Dt){return V=Dt,ut}}}function Au(){return{}}function lc(r,a,A){r[a]=A}function Kc(){return Or()}function ga(r,a,A){r.set(a,A)}function vs(){}var uc=Or.prototype;vs.prototype=Pu.prototype={constructor:vs,has:uc.has,add:function(r){return r+="",this[Us+r]=r,this},remove:uc.remove,clear:uc.clear,values:uc.keys,size:uc.size,empty:uc.empty,each:uc.each};function Pu(r,a){var A=new vs;if(r instanceof vs)r.each(function(bt){A.add(bt)});else if(r){var V=-1,ut=r.length;if(a==null)for(;++VGl?Math.pow(r,.3333333333333333):r/tl+xd}function Qc(r){return r>Zc?r*r*r:tl*(r-xd)}function of(r){return 255*(r<=.0031308?12.92*r:1.055*Math.pow(r,.4166666666666667)-.055)}function Fy(r){return(r/=255)<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function Si(r){if(r instanceof Io)return new Io(r.h,r.c,r.l,r.opacity);if(r instanceof Eo||(r=ya(r)),r.a===0&&r.b===0)return new Io(NaN,0V!=we>V&&A<(Qt-Vt)*(V-$t)/(we-$t)+Vt&&(ut=-ut)}return ut}function zy(r,a,A){var V;return $l(r,a,A)&&Sg(r[V=+(r[0]===a[0])],A[V],a[V])}function $l(r,a,A){return(a[0]-r[0])*(A[1]-r[1])===(A[0]-r[0])*(a[1]-r[1])}function Sg(r,a,A){return r<=a&&a<=A||A<=a&&a<=r}function La(){}var El=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function qp(){var r=1,a=1,A=d.zr,V=Ft;function ut(Vt){var $t=A(Vt);if(Array.isArray($t))$t=$t.slice().sort(Nx);else{var ie=(0,d.Xx)(Vt),Qt=ie[0],we=ie[1];$t=(0,d.sG)(Qt,we,$t),$t=(0,d.y1)(Math.floor(Qt/$t)*$t,Math.floor(we/$t)*$t,$t)}return $t.map(function(Ne){return bt(Vt,Ne)})}function bt(Vt,$t){var ie=[],Qt=[];return Pt(Vt,$t,function(we){V(we,Vt,$t),_g(we)>0?ie.push([we]):Qt.push(we)}),Qt.forEach(function(we){for(var Ne=0,Pe=ie.length,Be;Ne=$t,El[He<<1].forEach(sn);++Ne=$t,El[Be|He<<1].forEach(sn);for(El[He<<0].forEach(sn);++Pe=$t,ln=Vt[Pe*r]>=$t,El[He<<1|ln<<2].forEach(sn);++Ne=$t,Je=ln,ln=Vt[Pe*r+Ne+1]>=$t,El[Be|He<<1|ln<<2|Je<<3].forEach(sn);El[He|ln<<3].forEach(sn)}for(Ne=-1,ln=Vt[Pe*r]>=$t,El[ln<<2].forEach(sn);++Ne=$t,El[ln<<2|Je<<3].forEach(sn);El[ln<<3].forEach(sn);function sn(kn){var Vn=[kn[0][0]+Ne,kn[0][1]+Pe],Fn=[kn[1][0]+Ne,kn[1][1]+Pe],vr=Dt(Vn),nr=Dt(Fn),lr,Xn;(lr=we[vr])?(Xn=Qt[nr])?(delete we[lr.end],delete Qt[Xn.start],lr===Xn?(lr.ring.push(Fn),ie(lr.ring)):Qt[lr.start]=we[Xn.end]={start:lr.start,end:Xn.end,ring:lr.ring.concat(Xn.ring)}):(delete we[lr.end],lr.ring.push(Fn),we[lr.end=nr]=lr):(lr=Qt[nr])?(Xn=we[vr])?(delete Qt[lr.start],delete we[Xn.end],lr===Xn?(lr.ring.push(Fn),ie(lr.ring)):Qt[Xn.start]=we[lr.end]={start:Xn.start,end:lr.end,ring:Xn.ring.concat(lr.ring)}):(delete Qt[lr.start],lr.ring.unshift(Vn),Qt[lr.start=vr]=lr):Qt[vr]=we[nr]={start:vr,end:nr,ring:[Vn,Fn]}}}function Dt(Vt){return Vt[0]*2+Vt[1]*(r+1)*4}function Ft(Vt,$t,ie){Vt.forEach(function(Qt){var we=Qt[0],Ne=Qt[1],Pe=we|0,Be=Ne|0,He,ln=$t[Be*r+Pe];we>0&&we0&&Ne0)||!(ie>0))throw new Error("invalid size");return r=$t,a=ie,ut},ut.thresholds=function(Vt){return arguments.length?(A=typeof Vt=="function"?Vt:Array.isArray(Vt)?Xl(wd.call(Vt)):Xl(Vt),ut):A},ut.smooth=function(Vt){return arguments.length?(V=Vt?Ft:La,ut):V===Ft},ut}function sf(r,a,A){for(var V=r.width,ut=r.height,bt=(A<<1)+1,Pt=0;Pt=A&&(Dt>=bt&&(Ft-=r.data[Dt-bt+Pt*V]),a.data[Dt-A+Pt*V]=Ft/Math.min(Dt+1,V-1+bt-Dt,bt))}function Kp(r,a,A){for(var V=r.width,ut=r.height,bt=(A<<1)+1,Pt=0;Pt=A&&(Dt>=bt&&(Ft-=r.data[Pt+(Dt-bt)*V]),a.data[Pt+(Dt-A)*V]=Ft/Math.min(Dt+1,ut-1+bt-Dt,bt))}function lf(r){return r[0]}function Sd(r){return r[1]}function p_(){return 1}function Dx(){var r=lf,a=Sd,A=p_,V=960,ut=500,bt=20,Pt=2,Dt=bt*3,Ft=V+Dt*2>>Pt,Vt=ut+Dt*2>>Pt,$t=Xl(20);function ie(He){var ln=new Float32Array(Ft*Vt),Je=new Float32Array(Ft*Vt);He.forEach(function(Vn,Fn,vr){var nr=+r(Vn,Fn,vr)+Dt>>Pt,lr=+a(Vn,Fn,vr)+Dt>>Pt,Xn=+A(Vn,Fn,vr);nr>=0&&nr=0&&lr>Pt),Kp({width:Ft,height:Vt,data:Je},{width:Ft,height:Vt,data:ln},bt>>Pt),sf({width:Ft,height:Vt,data:ln},{width:Ft,height:Vt,data:Je},bt>>Pt),Kp({width:Ft,height:Vt,data:Je},{width:Ft,height:Vt,data:ln},bt>>Pt),sf({width:Ft,height:Vt,data:ln},{width:Ft,height:Vt,data:Je},bt>>Pt),Kp({width:Ft,height:Vt,data:Je},{width:Ft,height:Vt,data:ln},bt>>Pt);var sn=$t(ln);if(!Array.isArray(sn)){var kn=(0,d.T9)(ln);sn=(0,d.sG)(0,kn,sn),sn=(0,d.y1)(0,Math.floor(kn/sn)*sn,sn),sn.shift()}return qp().thresholds(sn).size([Ft,Vt])(ln).map(Qt)}function Qt(He){return He.value*=Math.pow(2,-2*Pt),He.coordinates.forEach(we),He}function we(He){He.forEach(Ne)}function Ne(He){He.forEach(Pe)}function Pe(He){He[0]=He[0]*Math.pow(2,Pt)-Dt,He[1]=He[1]*Math.pow(2,Pt)-Dt}function Be(){return Dt=bt*3,Ft=V+Dt*2>>Pt,Vt=ut+Dt*2>>Pt,ie}return ie.x=function(He){return arguments.length?(r=typeof He=="function"?He:Xl(+He),ie):r},ie.y=function(He){return arguments.length?(a=typeof He=="function"?He:Xl(+He),ie):a},ie.weight=function(He){return arguments.length?(A=typeof He=="function"?He:Xl(+He),ie):A},ie.size=function(He){if(!arguments.length)return[V,ut];var ln=Math.ceil(He[0]),Je=Math.ceil(He[1]);if(!(ln>=0)&&!(ln>=0))throw new Error("invalid size");return V=ln,ut=Je,Be()},ie.cellSize=function(He){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return Pt=Math.floor(Math.log(He)/Math.LN2),Be()},ie.thresholds=function(He){return arguments.length?($t=typeof He=="function"?He:Array.isArray(He)?Xl(wd.call(He)):Xl(He),ie):$t},ie.bandwidth=function(He){if(!arguments.length)return Math.sqrt(bt*(bt+1));if(!((He=+He)>=0))throw new Error("invalid bandwidth");return bt=Math.round((Math.sqrt(4*He*He+1)-1)/2),Be()},ie}function Ed(r){return function(){return r}}function Zp(r,a,A,V,ut,bt,Pt,Dt,Ft,Vt){this.target=r,this.type=a,this.subject=A,this.identifier=V,this.active=ut,this.x=bt,this.y=Pt,this.dx=Dt,this.dy=Ft,this._=Vt}Zp.prototype.on=function(){var r=this._.on.apply(this._,arguments);return r===this._?this:r};function Uy(){return!Sr.ctrlKey&&!Sr.button}function uf(){return this.parentNode}function m_(r){return r==null?{x:Sr.x,y:Sr.y}:r}function g_(){return navigator.maxTouchPoints||"ontouchstart"in this}function y_(){var r=Uy,a=uf,A=m_,V=g_,ut={},bt=dt("start","drag","end"),Pt=0,Dt,Ft,Vt,$t,ie=0;function Qt(sn){sn.on("mousedown.drag",we).filter(V).on("touchstart.drag",Be).on("touchmove.drag",He).on("touchend.drag touchcancel.drag",ln).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function we(){if(!($t||!r.apply(this,arguments))){var sn=Je("mouse",a.apply(this,arguments),Tr,this,arguments);sn&&(rn(Sr.view).on("mousemove.drag",Ne,!0).on("mouseup.drag",Pe,!0),Un(Sr.view),En(),Vt=!1,Dt=Sr.clientX,Ft=Sr.clientY,sn("start"))}}function Ne(){if(Ln(),!Vt){var sn=Sr.clientX-Dt,kn=Sr.clientY-Ft;Vt=sn*sn+kn*kn>ie}ut.mouse("drag")}function Pe(){rn(Sr.view).on("mousemove.drag mouseup.drag",null),pr(Sr.view,Vt),Ln(),ut.mouse("end")}function Be(){if(r.apply(this,arguments)){var sn=Sr.changedTouches,kn=a.apply(this,arguments),Vn=sn.length,Fn,vr;for(Fn=0;Fn9999?"+"+ss(r,6):ss(r,4)}function Tg(r){var a=r.getUTCHours(),A=r.getUTCMinutes(),V=r.getUTCSeconds(),ut=r.getUTCMilliseconds();return isNaN(r)?"Invalid Date":Mg(r.getUTCFullYear(),4)+"-"+ss(r.getUTCMonth()+1,2)+"-"+ss(r.getUTCDate(),2)+(ut?"T"+ss(a,2)+":"+ss(A,2)+":"+ss(V,2)+"."+ss(ut,3)+"Z":V?"T"+ss(a,2)+":"+ss(A,2)+":"+ss(V,2)+"Z":A||a?"T"+ss(a,2)+":"+ss(A,2)+"Z":"")}function Ru(r){var a=new RegExp('["'+r+` -\r]`),A=r.charCodeAt(0);function V(ie,Qt){var we,Ne,Pe=ut(ie,function(Be,He){if(we)return we(Be,He-1);Ne=Be,we=Qt?Cg(Be,Qt):Eg(Be)});return Pe.columns=Ne||[],Pe}function ut(ie,Qt){var we=[],Ne=ie.length,Pe=0,Be=0,He,ln=Ne<=0,Je=!1;ie.charCodeAt(Ne-1)===Md&&--Ne,ie.charCodeAt(Ne-1)===eh&&--Ne;function sn(){if(ln)return Cd;if(Je)return Je=!1,el;var Vn,Fn=Pe,vr;if(ie.charCodeAt(Fn)===th){for(;Pe++=Ne?ln=!0:(vr=ie.charCodeAt(Pe++))===Md?Je=!0:vr===eh&&(Je=!0,ie.charCodeAt(Pe)===Md&&++Pe),ie.slice(Fn+1,Vn-1).replace(/""/g,'"')}for(;Pe1&&arguments[1]!==void 0?arguments[1]:12,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Arial",X=document.createElement("canvas"),F=X.getContext("2d");return F.font=tt+"px "+H,F.measureText(Z).width},wrapText:function(Z,tt,H,X){var F=y.select(X),U=F.text().split(/\s+/).reverse(),d=void 0,L=[],M=0,s=R*et,_=F.attr("y"),w=parseFloat(F.attr("dy")),o=tt*K,u=F.text(null).append("tspan").attr("x",Z).attr("y",_-5).attr("dy",w+"em").classed(J,!0).style("font-size",tt+"px");for(u.text(U.pop()),u=F.append("tspan").classed(q,!0).attr("x",Z).attr("y",_+B).attr("dy",++M*s+w+"em").style("font-size",o+"px");d=U.pop();)L.push(d),u.text(L.join(" ")),u.node()&&u.node().getComputedTextLength()>H-50&&(L.pop(),u.text(L.join(" ")),L=[d],u=F.append("tspan").classed(q,!0).attr("x",Z).attr("y",_+B).attr("dy",++M*s+w+"em").text(d).style("font-size",o+"px"))},wrapTextWithEllipses:function(Z,tt){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,F=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1.2;Z.each(function(){var U,d,L,M,s,_,w;for(U=(Z=y.select(this)).text().split(/\s+/).reverse(),L=[],M=0,s=Z.attr("y"),_=parseFloat(Z.attr("dy")),w=Z.text(null).append("tspan").attr("x",H).attr("y",s).attr("dy",_+"em");d=U.pop();)if(L.push(d),w.text(L.join(" ")),w.node()&&w.node().getComputedTextLength()>tt){if(L.pop(),w.text(L.join(" ")),!(M1&&arguments[1]!==void 0?arguments[1]:"day",B=localeTimeMap[R],et=new Intl.DateTimeFormat(y,B);return function(K){return et.format(K)}}}}.call(ht,j,ht,ue))===void 0||(ue.exports=_t)},function(ue,ht,j){"use strict";var _t,m=function(B,et){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return function(K,J){var q=[],Z=!0,tt=!1,H=void 0;try{for(var X,F=K[Symbol.iterator]();!(Z=(X=F.next()).done)&&(q.push(X.value),!J||q.length!==J);Z=!0);}catch(U){tt=!0,H=U}finally{try{!Z&&F.return&&F.return()}finally{if(tt)throw H}}return q}(B,et);throw new TypeError("Invalid attempt to destructure non-iterable instance")},y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B};function R(B,et,K){return et in B?Object.defineProperty(B,et,{value:K,enumerable:!0,configurable:!0,writable:!0}):B[et]=K,B}(_t=function(B){var et,K=j(39),J=j(67),q=j(73),Z=q.axisTimeCombinations,tt=q.timeBenchmarks,H=j(95),X=H.convertMillisecondsToDays,F=H.getLocaleDateFormatter,U={minute:J.timeFormat("%M m"),hour:J.timeFormat("%H %p"),day:J.timeFormat("%e"),daymonth:J.timeFormat("%d %b"),month:J.timeFormat("%b"),year:J.timeFormat("%Y")},d=(R(et={},Z.MINUTE_HOUR,K.timeHour.every(1)),R(et,Z.HOUR_DAY,K.timeDay.every(1)),R(et,Z.DAY_MONTH,K.timeMonth.every(1)),R(et,Z.MONTH_YEAR,K.timeYear.every(1)),et),L=function(s){var _=tt.ONE_YEAR;return s2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,u=new Date(s[0].date),C=new Date(s[s.length-1].date),E=C-u;o&&(typeof Intl=="undefined"||(typeof Intl=="undefined"?"undefined":y(Intl))==="object"&&!Intl.DateTimeFormat)&&(o=null),w||(w=L(E));var S=w.split("-"),v=m(S,2),g=v[0],x=v[1],p=d[w],l=M(_,X(E));return{minor:{format:o?F(o,g):U[g],tick:l},major:{format:o?F(o,x):U[x],tick:p}}}}}.call(ht,j,ht,ue))===void 0||(ue.exports=_t)},function(ue,ht,j){"use strict";var _t;(_t=function(m){j(7);var y="highlight-filter";return{bounceCircleHighlight:function(R,B,et){var K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2*et,J=100,q=50;R.transition().ease(B).duration(J).attr("r",K).transition().ease(B).delay(q).duration(J).attr("r",et)},createFilterContainer:function(R){return R.append("defs").append("filter").attr("id",y)},createGausianBlur:function(R){return R.append("feGaussianBlur").attr("stdDeviation",1).attr("result","coloredBlur"),y},createWhiteGlow:function(R){R.attr("x","-5000%").attr("y","-5000%").attr("width","10000%").attr("height","10000%"),R.append("feFlood").attr("result","flood").attr("flood-color","#ffffff").attr("flood-opacity","1"),R.append("feComposite").attr("result","mask").attr("in2","SourceGraphic").attr("operator","in").attr("in","flood"),R.append("feMorphology").attr("result","dilated").attr("operator","dilate").attr("radius","2").attr("in","mask"),R.append("feGaussianBlur").attr("result","blurred").attr("stdDeviation","5").attr("in","dilated");var B=R.append("feMerge");return B.append("feMergeNode").attr("in","blurred"),B.append("feMergeNode").attr("in","SourceGraphic"),y},createGlow:function(R){R.attr("x","-30%").attr("y","-30%").attr("width","160%").attr("height","160%"),R.append("feGaussianBlur").attr("stdDeviation","0.9 0.9").attr("result","glow");var B=R.append("feMerge");return B.append("feMergeNode").attr("in","glow"),B.append("feMergeNode").attr("in","glow"),B.append("feMergeNode").attr("in","glow"),y},createGlowWithMatrix:function(R){R.attr("x","-500%").attr("y","-500%").attr("width","1800%").attr("height","1800%"),R.append("feColorMatrix").attr("type","matrix").attr("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"),R.append("feGaussianBlur").attr("stdDeviation","1").attr("result","coloredBlur").attr("in","SourceGraphic");var B=R.append("feMerge");return B.append("feMergeNode").attr("in","coloredBlur"),B.append("feMergeNode").attr("in","SourceGraphic"),y}}}.call(ht,j,ht,ue))===void 0||(ue.exports=_t)},,,,,,,,,,function(ue,ht,j){"use strict";var _t,m=function(B,et){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return function(K,J){var q=[],Z=!0,tt=!1,H=void 0;try{for(var X,F=K[Symbol.iterator]();!(Z=(X=F.next()).done)&&(q.push(X.value),!J||q.length!==J);Z=!0);}catch(U){tt=!0,H=U}finally{try{!Z&&F.return&&F.return()}finally{if(tt)throw H}}return q}(B,et);throw new TypeError("Invalid attempt to destructure non-iterable instance")},y=Object.assign||function(B){for(var et=1;et=0||Object.prototype.hasOwnProperty.call(Rn,si)&&(fi[si]=Rn[si]);return fi}(nr,["dates"]),sr=Nr.map(function(Rn){return{date:new Date(Rn[fe]),value:+Rn[xe]}});return gr.push(y({dates:sr},Lr)),gr},[]),dataByDate:cr,dataRange:Jn}}(en);ne=xn.dataByTopic,Wt=xn.dataByDate,le=xn.dataRange;var Te,bn,nn,fn=gt?300:0;dt=b-f.left-f.right-fn,mt=z-f.top-f.bottom,function(){var wn=et.min(ne,function(nr){var Nr=nr.dates;return et.min(Nr,Mn)}),vn=et.max(ne,function(nr){var Nr=nr.dates;return et.max(Nr,Mn)}),cr=et.max(ne,function(nr){var Nr=nr.dates;return et.max(Nr,Kn)}),Jn=et.min(ne,function(nr){var Nr=nr.dates;return et.min(Nr,Kn)}),dr=Jn<0?Jn:0;Et=H.scaleTime().domain([wn,vn]).rangeRound([0,dt]),Mt=H.scaleLinear().domain([dr,Math.abs(cr)]).rangeRound([mt,0]).nice();var gr=(I=H.scaleOrdinal().range(P).domain(ne.map(fr))).range();W=I.domain().reduce(function(nr,Nr,Lr){return nr[Nr]=gr[Lr],nr},{})}(),function(wn){st||(st=F.select(wn).append("svg").classed("britechart line-chart",!0),function(){var vn=st.append("g").classed("container-group",!0).attr("transform","translate("+f.left+","+f.top+")");vn.append("g").classed("x-axis-group",!0).append("g").classed("axis x",!0),vn.selectAll(".x-axis-group").append("g").classed("month-axis",!0),vn.append("g").classed("y-axis-group",!0).append("g").classed("axis y",!0),vn.append("g").classed("grid-lines-group",!0),vn.append("g").classed("chart-group",!0),gt&&vn.append("g").classed("legend-group",!0),vn.append("g").classed("metadata-group",!0)}()),st.attr("width",b).attr("height",z)}(this),function(){var wn=void 0,vn=void 0;if(vt==="custom"&&typeof xt=="string")wn={tick:pt,format:U.timeFormat(xt)},vn=null;else{var cr=_(Wt,b,vt,Ct);wn=cr.minor,vn=cr.major,rt=K.axisBottom(Et).ticks(vn.tick).tickSize(0,0).tickFormat(vn.format)}Y=K.axisBottom(Et).ticks(wn.tick).tickSize(10,0).tickPadding(5).tickFormat(wn.format),ot=K.axisLeft(Mt).ticks(te).tickSize([0]).tickPadding(5).tickFormat(ve),function(Jn,dr){st.select(".grid-lines-group").selectAll("line").remove(),(ce==="horizontal"||ce==="full")&&st.select(".grid-lines-group").selectAll("line.horizontal-grid-line").data(Mt.ticks(dr)).enter().append("line").attr("class","horizontal-grid-line").attr("x1",-D-30).attr("x2",dt).attr("y1",function(gr){return Mt(gr)}).attr("y2",function(gr){return Mt(gr)}),ce!=="vertical"&&ce!=="full"||st.select(".grid-lines-group").selectAll("line.vertical-grid-line").data(Et.ticks(Jn)).enter().append("line").attr("class","vertical-grid-line").attr("y1",0).attr("y2",mt).attr("x1",function(gr){return Et(gr)}).attr("x2",function(gr){return Et(gr)}),st.select(".grid-lines-group").selectAll("line.extended-x-line").data([0]).enter().append("line").attr("class","extended-x-line").attr("x1",-D-30).attr("x2",dt).attr("y1",z-f.bottom-f.top).attr("y2",z-f.bottom-f.top)}(wn.tick,te)}(),function(){if(st.select(".x-axis-group .axis.x").attr("transform","translate(0, "+mt+")").call(Y),vt!=="custom"&&st.select(".x-axis-group .month-axis").attr("transform","translate(0, "+(mt+28)+")").call(rt),Ye){tn&&st.selectAll(".x-axis-label").remove();var wn=dt/2,vn=mt+28+36;tn=st.select(".x-axis-group").append("text").attr("x",wn).attr("y",vn).attr("text-anchor","middle").attr("class","x-axis-label").text(Ye)}if(st.select(".y-axis-group .axis.y").attr("transform","translate("+-D+", 0)").call(ot).call(Ge),on){Jt&&st.selectAll(".y-axis-label").remove();var cr=-Kt-D,Jn=-mt/2;Jt=st.select(".y-axis-group").append("text").attr("x",Jn).attr("y",cr).attr("text-anchor","middle").attr("transform","rotate(270)").attr("class","y-axis-label").text(on)}}(),function(){if(le){var wn=X.area().curve(u[Zt]).x(function(vn){var cr=vn.date;return Et(cr)}).y0(function(vn){var cr=vn.min;return Mt(cr)}).y1(function(vn){var cr=vn.max;return Mt(cr)});st.select(".chart-group").append("g").attr("class","area").append("path").data([le]).attr("class","area").attr("d",wn)}}(),Te=void 0,bn=void 0,bn=X.line().curve(u[Zt]).x(function(wn){var vn=wn.date;return Et(vn)}).y(function(wn){var vn=wn.value;return Mt(vn)}),Te=st.select(".chart-group").selectAll(".line").data(ne,fr),nt=Te.enter().append("g").attr("class","topic").append("path").attr("class","line").merge(Te).attr("id",function(wn){return wn.topic}).attr("d",function(wn){var vn=wn.dates;return bn(vn)}).style("stroke",function(wn){return vn=wn.topic,I(vn);var vn}).style("opacity",function(wn){return wn.hasOwnProperty("show")?wn.show?1:0:1}).style("stroke-dasharray",function(wn){return!!wn.hasOwnProperty("show")&&!!wn.dashed&&[.5,4]}),Te.exit().remove(),function(){if(gt){var wn=Number.parseInt(dt)+Number.parseInt(f.right);qe=st.selectAll(".legend-group").append("g").attr("transform","translate("+wn+", 0)").classed("tooltip-text",!0),yn=qe.append("text").classed("tooltip-title",!0).attr("x",-43).attr("dy",".35em").attr("y",16).style("fill","#282C35").style("font-size","12px"),qe.append("line").classed("tooltip-divider",!0).attr("x1",-43).attr("x2",225).attr("y1",31).attr("y2",31).style("stroke","#D2D6DF"),hn=qe.append("g").classed("tooltip-body",!0).style("transform","translateY(8px)").style("fill","#282C35");var vn=void 0;vn=ne[0].hasOwnProperty("show")?ne.filter(function(nr){return nr.show}):ne;for(var cr=0;crQ&&(Ot||(Ot=st.select(".metadata-group").append("rect").attr("class","overlay").attr("y1",0).attr("y2",z).attr("height",mt).attr("width",dt).attr("fill","rgba(0, 0, 0, 0)").style("display","none")),Bt||(Bt=st.select(".metadata-group").append("g").attr("class","hover-marker vertical-marker-container").attr("transform","translate(9999, 0)"),Ut=Bt.selectAll("path").data([{x1:0,y1:0,x2:0,y2:0}]).enter().append("line").classed("vertical-marker",!0).attr("x1",0).attr("y1",mt).attr("x2",0).attr("y2",0)),st.on("mouseover",function(wn){(function(vn,cr){Ot.style("display","block"),Ut.classed("bc-is-active",!0),ge.call("customMouseOver",vn,cr,F.mouse(vn))})(this,wn)}).on("mouseout",function(wn){(function(vn,cr){Ot.style("display","none"),Ut.classed("bc-is-active",!1),ge.call("customMouseOut",vn,cr,F.mouse(vn))})(this,wn)}).on("mousemove",function(wn){var vn,cr,Jn,dr,gr,nr,Nr,Lr;vn=this,cr=F.mouse(vn),Jn=m(cr,2),dr=Jn[0],gr=Jn[1],nr=-f.left,Nr=Oe(dr+nr),Lr=void 0,Nr&&(Sn(Lr=Et(new Date(Nr.date))),Ze(Nr),ge.call("customMouseMove",vn,Nr,W,Lr,gr))})),Tt&&function(){st.select(".chart-group").selectAll(".data-points-container").remove();var wn=nt.nodes().reduce(function(vn,cr){return vn[cr.id]=cr,vn},{});Wt.reduce(function(vn,cr){var Jn=cr.topics.map(function(dr){return{topic:dr,node:wn[dr.name]}});return vn=[].concat(R(vn),R(Jn))},[])}(),st.on("touchmove",function(wn){(function(vn,cr){ge.call("customTouchMove",vn,cr,F.touch(vn))})(this,wn)}),wt&&(nn=Oe(dt))&&(Sn(Et(new Date(nn.date))),Ze(nn))})}function Ge(Me){Me.selectAll(".tick text").attr("transform","translate(0, -7)")}function ve(Me){var en=void 0;return en=l(Me)?x:p,zt&&(en=tt.format(zt)),en(Me)}function Le(Me){return new Date(Me).toLocaleDateString()}function Ue(Me){var en,xn,Te=void 0,bn=void 0;en=Me.topicName,xn=Me.sum.toLocaleString(),bn=hn.append("text").classed("tooltip-left-text",!0).attr("dy","1em").attr("x",-15).attr("y",Nn).style("fill","#000000").style("font-size","12px").text(en).call(De,200,12,-25),Te=hn.append("text").classed("tooltip-right-text",!0).attr("dy","1em").attr("x",-15).attr("y",Nn).style("fill","#000000").style("font-size","12px").text(xn),mn=bn.node().getBBox().height?bn.node().getBBox().height:mn,mn+5,ye=Te.node().getBBox().width?Te.node().getBBox().width:ye,Te.attr("x",300-ye-75),hn.append("circle").classed("tooltip-circle",!0).attr("cx",-35).attr("cy",Nn+8).attr("r",5).style("fill",W[Me.topic]).style("stroke-width",1),Nn+=mn+7}function Oe(Me){var en,xn,Te,bn=Et.invert(Me),nn=(0,et.bisector(Mn).left)(Wt,bn,1),fn=Wt[nn],wn=Wt[nn-1],vn=void 0;return wn&&fn?(en=bn,xn=fn,Te=wn,vn=new Date(en).getTime()-new Date(xn.date).getTime()>new Date(Te.date).getTime()-new Date(en).getTime()?xn:Te):vn=fn,vn}function De(Me,en,xn){var Te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;Me.each(function(){var bn,nn,fn,wn,vn,cr,Jn;for(bn=(Me=F.select(this)).text().split(/\s+/).reverse(),fn=[],wn=0,vn=Me.attr("y"),cr=parseFloat(Me.attr("dy")),Jn=Me.text(null).append("tspan").attr("x",Te).attr("y",vn).attr("dy",cr+"em");nn=bn.pop();)fn.push(nn),Jn.text(fn.join(" ")),d.getTextWidth(fn.join(" "),xn,"Karla, sans-serif")>en&&(fn.pop(),Jn.text(fn.join(" ")),wn<4&&(fn=[nn],Jn=Me.append("tspan").attr("x",Te).attr("y",vn).attr("dy",1.2*++wn+cr+"em").text(nn)))})}function Ze(Me){Bt.selectAll(".circle-container").remove();var en=nt.nodes().reduce(function(bn,nn){return bn[nn.id]=nn,bn},{}),xn=ne.filter(function(bn){return!bn.show}).map(function(bn){return bn.topicName}),Te=Me.topics.map(function(bn){return{topic:bn,node:en[bn.name]}}).filter(function(bn){return!!bn.topic}).sort(function(bn,nn){return W[bn.topic.name]sr.x+gr;){var Or=(Nr+Lr)/2;if(sr=Jn.getPointAtLength(Or),cr{(function(ue,ht){We.exports=ht()})(window,function(){return function(ue){var ht={};function j(_t){if(ht[_t])return ht[_t].exports;var m=ht[_t]={i:_t,l:!1,exports:{}};return ue[_t].call(m.exports,m,m.exports,j),m.l=!0,m.exports}return j.m=ue,j.c=ht,j.d=function(_t,m,y){j.o(_t,m)||Object.defineProperty(_t,m,{enumerable:!0,get:y})},j.r=function(_t){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(_t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_t,"__esModule",{value:!0})},j.t=function(_t,m){if(1&m&&(_t=j(_t)),8&m||4&m&&typeof _t=="object"&&_t&&_t.__esModule)return _t;var y=Object.create(null);if(j.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:_t}),2&m&&typeof _t!="string")for(var R in _t)j.d(y,R,function(B){return _t[B]}.bind(null,R));return y},j.n=function(_t){var m=_t&&_t.__esModule?function(){return _t.default}:function(){return _t};return j.d(m,"a",m),m},j.o=function(_t,m){return Object.prototype.hasOwnProperty.call(_t,m)},j.p="",j(j.s=116)}([function(ue,ht,j){"use strict";j.d(ht,"a",function(){return y});var _t=new Date,m=new Date;function y(R,B,et,K){function J(q){return R(q=arguments.length===0?new Date:new Date(+q)),q}return J.floor=function(q){return R(q=new Date(+q)),q},J.ceil=function(q){return R(q=new Date(q-1)),B(q,1),R(q),q},J.round=function(q){var Z=J(q),tt=J.ceil(q);return q-Z0))return X;do X.push(H=new Date(+q)),B(q,tt),R(q);while(H=Z)for(;R(Z),!q(Z);)Z.setTime(Z-1)},function(Z,tt){if(Z>=Z)if(tt<0)for(;++tt<=0;)for(;B(Z,-1),!q(Z););else for(;--tt>=0;)for(;B(Z,1),!q(Z););})},et&&(J.count=function(q,Z){return _t.setTime(+q),m.setTime(+Z),R(_t),R(m),Math.floor(et(_t,m))},J.every=function(q){return q=Math.floor(q),isFinite(q)&&q>0?q>1?J.filter(K?function(Z){return K(Z)%q==0}:function(Z){return J.count(0,Z)%q==0}):J:null}),J}},function(ue,ht,j){"use strict";j.d(ht,"d",function(){return _t}),j.d(ht,"c",function(){return m}),j.d(ht,"b",function(){return y}),j.d(ht,"a",function(){return R}),j.d(ht,"e",function(){return B});var _t=1e3,m=6e4,y=36e5,R=864e5,B=6048e5},,function(ue,ht,j){"use strict";j.d(ht,"g",function(){return R}),j.d(ht,"c",function(){return B}),j.d(ht,"k",function(){return et}),j.d(ht,"m",function(){return K}),j.d(ht,"i",function(){return J}),j.d(ht,"a",function(){return q}),j.d(ht,"e",function(){return Z}),j.d(ht,"h",function(){return tt}),j.d(ht,"d",function(){return H}),j.d(ht,"l",function(){return X}),j.d(ht,"n",function(){return F}),j.d(ht,"j",function(){return U}),j.d(ht,"b",function(){return d}),j.d(ht,"f",function(){return L});var _t=j(0),m=j(1);function y(M){return Object(_t.a)(function(s){s.setDate(s.getDate()-(s.getDay()+7-M)%7),s.setHours(0,0,0,0)},function(s,_){s.setDate(s.getDate()+7*_)},function(s,_){return(_-s-(_.getTimezoneOffset()-s.getTimezoneOffset())*m.c)/m.e})}var R=y(0),B=y(1),et=y(2),K=y(3),J=y(4),q=y(5),Z=y(6),tt=R.range,H=B.range,X=et.range,F=K.range,U=J.range,d=q.range,L=Z.range},function(ue,ht,j){"use strict";j.d(ht,"g",function(){return R}),j.d(ht,"c",function(){return B}),j.d(ht,"k",function(){return et}),j.d(ht,"m",function(){return K}),j.d(ht,"i",function(){return J}),j.d(ht,"a",function(){return q}),j.d(ht,"e",function(){return Z}),j.d(ht,"h",function(){return tt}),j.d(ht,"d",function(){return H}),j.d(ht,"l",function(){return X}),j.d(ht,"n",function(){return F}),j.d(ht,"j",function(){return U}),j.d(ht,"b",function(){return d}),j.d(ht,"f",function(){return L});var _t=j(0),m=j(1);function y(M){return Object(_t.a)(function(s){s.setUTCDate(s.getUTCDate()-(s.getUTCDay()+7-M)%7),s.setUTCHours(0,0,0,0)},function(s,_){s.setUTCDate(s.getUTCDate()+7*_)},function(s,_){return(_-s)/m.e})}var R=y(0),B=y(1),et=y(2),K=y(3),J=y(4),q=y(5),Z=y(6),tt=R.range,H=B.range,X=et.range,F=K.range,U=J.range,d=q.range,L=Z.range},function(ue,ht,j){"use strict";j.d(ht,"a",function(){return m}),j.d(ht,"d",function(){return y}),j.d(ht,"c",function(){return R}),j.d(ht,"e",function(){return M}),j.d(ht,"h",function(){return w}),j.d(ht,"g",function(){return o}),j.d(ht,"b",function(){return u}),j.d(ht,"f",function(){return x});var _t=j(11);function m(){}var y=.7,R=1/y,B="\\s*([+-]?\\d+)\\s*",et="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",K="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",J=/^#([0-9a-f]{3,8})$/,q=new RegExp("^rgb\\("+[B,B,B]+"\\)$"),Z=new RegExp("^rgb\\("+[K,K,K]+"\\)$"),tt=new RegExp("^rgba\\("+[B,B,B,et]+"\\)$"),H=new RegExp("^rgba\\("+[K,K,K,et]+"\\)$"),X=new RegExp("^hsl\\("+[et,K,K]+"\\)$"),F=new RegExp("^hsla\\("+[et,K,K,et]+"\\)$"),U={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function d(){return this.rgb().formatHex()}function L(){return this.rgb().formatRgb()}function M(f){var b,z;return f=(f+"").trim().toLowerCase(),(b=J.exec(f))?(z=b[1].length,b=parseInt(b[1],16),z===6?s(b):z===3?new u(b>>8&15|b>>4&240,b>>4&15|240&b,(15&b)<<4|15&b,1):z===8?new u(b>>24&255,b>>16&255,b>>8&255,(255&b)/255):z===4?new u(b>>12&15|b>>8&240,b>>8&15|b>>4&240,b>>4&15|240&b,((15&b)<<4|15&b)/255):null):(b=q.exec(f))?new u(b[1],b[2],b[3],1):(b=Z.exec(f))?new u(255*b[1]/100,255*b[2]/100,255*b[3]/100,1):(b=tt.exec(f))?_(b[1],b[2],b[3],b[4]):(b=H.exec(f))?_(255*b[1]/100,255*b[2]/100,255*b[3]/100,b[4]):(b=X.exec(f))?v(b[1],b[2]/100,b[3]/100,1):(b=F.exec(f))?v(b[1],b[2]/100,b[3]/100,b[4]):U.hasOwnProperty(f)?s(U[f]):f==="transparent"?new u(NaN,NaN,NaN,0):null}function s(f){return new u(f>>16&255,f>>8&255,255&f,1)}function _(f,b,z,T){return T<=0&&(f=b=z=NaN),new u(f,b,z,T)}function w(f){return f instanceof m||(f=M(f)),f?new u((f=f.rgb()).r,f.g,f.b,f.opacity):new u}function o(f,b,z,T){return arguments.length===1?w(f):new u(f,b,z,T==null?1:T)}function u(f,b,z,T){this.r=+f,this.g=+b,this.b=+z,this.opacity=+T}function C(){return"#"+S(this.r)+S(this.g)+S(this.b)}function E(){var f=this.opacity;return((f=isNaN(f)?1:Math.max(0,Math.min(1,f)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(f===1?")":", "+f+")")}function S(f){return((f=Math.max(0,Math.min(255,Math.round(f)||0)))<16?"0":"")+f.toString(16)}function v(f,b,z,T){return T<=0?f=b=z=NaN:z<=0||z>=1?f=b=NaN:b<=0&&(f=NaN),new p(f,b,z,T)}function g(f){if(f instanceof p)return new p(f.h,f.s,f.l,f.opacity);if(f instanceof m||(f=M(f)),!f)return new p;if(f instanceof p)return f;var b=(f=f.rgb()).r/255,z=f.g/255,T=f.b/255,k=Math.min(b,z,T),Q=Math.max(b,z,T),st=NaN,nt=Q-k,dt=(Q+k)/2;return nt?(st=b===Q?(z-T)/nt+6*(z0&&dt<1?0:st,new p(st,nt,dt,f.opacity)}function x(f,b,z,T){return arguments.length===1?g(f):new p(f,b,z,T==null?1:T)}function p(f,b,z,T){this.h=+f,this.s=+b,this.l=+z,this.opacity=+T}function l(f,b,z){return 255*(f<60?b+(z-b)*f/60:f<180?z:f<240?b+(z-b)*(240-f)/60:b)}Object(_t.a)(m,M,{copy:function(f){return Object.assign(new this.constructor,this,f)},displayable:function(){return this.rgb().displayable()},hex:d,formatHex:d,formatHsl:function(){return g(this).formatHsl()},formatRgb:L,toString:L}),Object(_t.a)(u,o,Object(_t.b)(m,{brighter:function(f){return f=f==null?R:Math.pow(R,f),new u(this.r*f,this.g*f,this.b*f,this.opacity)},darker:function(f){return f=f==null?y:Math.pow(y,f),new u(this.r*f,this.g*f,this.b*f,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:C,formatHex:C,formatRgb:E,toString:E})),Object(_t.a)(p,x,Object(_t.b)(m,{brighter:function(f){return f=f==null?R:Math.pow(R,f),new p(this.h,this.s,this.l*f,this.opacity)},darker:function(f){return f=f==null?y:Math.pow(y,f),new p(this.h,this.s,this.l*f,this.opacity)},rgb:function(){var f=this.h%360+360*(this.h<0),b=isNaN(f)||isNaN(this.s)?0:this.s,z=this.l,T=z+(z<.5?z:1-z)*b,k=2*z-T;return new u(l(f>=240?f-240:f+120,k,T),l(f,k,T),l(f<120?f+240:f-120,k,T),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var f=this.opacity;return((f=isNaN(f)?1:Math.max(0,Math.min(1,f)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(f===1?")":", "+f+")")}}))},function(ue,ht,j){"use strict";ht.a=function(_t,m){return _t=+_t,m=+m,function(y){return _t*(1-y)+m*y}}},function(ue,ht,j){"use strict";j.r(ht);var _t=j(12),m=j(32),y=function(o){return Object(m.a)(Object(_t.a)(o).call(document.documentElement))},R=0;function B(){return new et}function et(){this._="@"+(++R).toString(36)}et.prototype=B.prototype={constructor:et,get:function(o){for(var u=this._;!(u in o);)if(!(o=o.parentNode))return;return o[u]},set:function(o,u){return o[this._]=u},remove:function(o){return this._ in o&&delete o[this._]},toString:function(){return this._}};var K=j(34),J=j(60),q=j(20),Z=j(14),tt=j(13),H=j(10),X=function(o){return typeof o=="string"?new H.a([document.querySelectorAll(o)],[document.documentElement]):new H.a([o==null?[]:o],H.c)},F=j(19),U=j(33),d=j(35),L=j(61),M=j(22),s=function(o,u){u==null&&(u=Object(M.a)().touches);for(var C=0,E=u?u.length:0,S=new Array(E);C180||J<-180?J-360*Math.round(J/360):J):Object(_t.a)(isNaN(et)?K:et)}function R(et){return(et=+et)==1?B:function(K,J){return J-K?function(q,Z,tt){return q=Math.pow(q,tt),Z=Math.pow(Z,tt)-q,tt=1/tt,function(H){return Math.pow(q+H*Z,tt)}}(K,J,et):Object(_t.a)(isNaN(K)?J:K)}}function B(et,K){var J=K-et;return J?m(et,J):Object(_t.a)(isNaN(et)?K:et)}},function(ue,ht,j){"use strict";var _t=j(18);ht.a=function(m){return(m=Object(_t.a)(Math.abs(m)))?m[1]:NaN}},function(ue,ht,j){"use strict";var _t=j(19),m=j(33),y=j(34),R=function(P){return new Array(P.length)};function B(P,W){this.ownerDocument=P.ownerDocument,this.namespaceURI=P.namespaceURI,this._next=null,this._parent=P,this.__data__=W}B.prototype={constructor:B,appendChild:function(P){return this._parent.insertBefore(P,this._next)},insertBefore:function(P,W){return this._parent.insertBefore(P,W)},querySelector:function(P){return this._parent.querySelector(P)},querySelectorAll:function(P){return this._parent.querySelectorAll(P)}};function et(P,W,lt,it,vt,pt){for(var xt,Ct=0,Tt=W.length,Nt=pt.length;CtW?1:P>=W?0:NaN}var q=j(20);function Z(P){return function(){this.removeAttribute(P)}}function tt(P){return function(){this.removeAttributeNS(P.space,P.local)}}function H(P,W){return function(){this.setAttribute(P,W)}}function X(P,W){return function(){this.setAttributeNS(P.space,P.local,W)}}function F(P,W){return function(){var lt=W.apply(this,arguments);lt==null?this.removeAttribute(P):this.setAttribute(P,lt)}}function U(P,W){return function(){var lt=W.apply(this,arguments);lt==null?this.removeAttributeNS(P.space,P.local):this.setAttributeNS(P.space,P.local,lt)}}var d=j(35);function L(P){return function(){delete this[P]}}function M(P,W){return function(){this[P]=W}}function s(P,W){return function(){var lt=W.apply(this,arguments);lt==null?delete this[P]:this[P]=lt}}function _(P){return P.trim().split(/^|\s+/)}function w(P){return P.classList||new o(P)}function o(P){this._node=P,this._names=_(P.getAttribute("class")||"")}function u(P,W){for(var lt=w(P),it=-1,vt=W.length;++it=0&&(this._names.splice(W,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(P){return this._names.indexOf(P)>=0}};function g(){this.textContent=""}function x(P){return function(){this.textContent=P}}function p(P){return function(){var W=P.apply(this,arguments);this.textContent=W==null?"":W}}function l(){this.innerHTML=""}function f(P){return function(){this.innerHTML=P}}function b(P){return function(){var W=P.apply(this,arguments);this.innerHTML=W==null?"":W}}function z(){this.nextSibling&&this.parentNode.appendChild(this)}function T(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var k=j(12);function Q(){return null}function st(){var P=this.parentNode;P&&P.removeChild(this)}function nt(){var P=this.cloneNode(!1),W=this.parentNode;return W?W.insertBefore(P,this.nextSibling):P}function dt(){var P=this.cloneNode(!0),W=this.parentNode;return W?W.insertBefore(P,this.nextSibling):P}var mt=j(17),Et=j(21);function Mt(P,W,lt){var it=Object(Et.a)(P),vt=it.CustomEvent;typeof vt=="function"?vt=new vt(W,lt):(vt=it.document.createEvent("Event"),lt?(vt.initEvent(W,lt.bubbles,lt.cancelable),vt.detail=lt.detail):vt.initEvent(W,!1,!1)),P.dispatchEvent(vt)}function I(P,W){return function(){return Mt(this,P,W)}}function Y(P,W){return function(){return Mt(this,P,W.apply(this,arguments))}}j.d(ht,"c",function(){return rt}),j.d(ht,"a",function(){return ot});var rt=[null];function ot(P,W){this._groups=P,this._parents=W}function D(){return new ot([[document.documentElement]],rt)}ot.prototype=D.prototype={constructor:ot,select:function(P){typeof P!="function"&&(P=Object(_t.a)(P));for(var W=this._groups,lt=W.length,it=new Array(lt),vt=0;vt=Ye&&(Ye=be+1);!(xe=le[Ye])&&++Ye=0;)(it=vt[pt])&&(xt&&4^it.compareDocumentPosition(xt)&&xt.parentNode.insertBefore(it,xt),xt=it);return this},sort:function(P){function W(wt,Rt){return wt&&Rt?P(wt.__data__,Rt.__data__):!wt-!Rt}P||(P=J);for(var lt=this._groups,it=lt.length,vt=new Array(it),pt=0;pt1?this.each((W==null?L:typeof W=="function"?s:M)(P,W)):this.node()[P]},classed:function(P,W){var lt=_(P+"");if(arguments.length<2){for(var it=w(this.node()),vt=-1,pt=lt.length;++vt0?Object(_t.a)(function(B){B.setFullYear(Math.floor(B.getFullYear()/R)*R),B.setMonth(0,1),B.setHours(0,0,0,0)},function(B,et){B.setFullYear(B.getFullYear()+et*R)}):null},ht.a=m;var y=m.range},function(ue,ht,j){"use strict";j.d(ht,"b",function(){return y});var _t=j(0),m=Object(_t.a)(function(R){R.setUTCMonth(0,1),R.setUTCHours(0,0,0,0)},function(R,B){R.setUTCFullYear(R.getUTCFullYear()+B)},function(R,B){return B.getUTCFullYear()-R.getUTCFullYear()},function(R){return R.getUTCFullYear()});m.every=function(R){return isFinite(R=Math.floor(R))&&R>0?Object(_t.a)(function(B){B.setUTCFullYear(Math.floor(B.getUTCFullYear()/R)*R),B.setUTCMonth(0,1),B.setUTCHours(0,0,0,0)},function(B,et){B.setUTCFullYear(B.getUTCFullYear()+et*R)}):null},ht.a=m;var y=m.range},function(ue,ht,j){"use strict";j.d(ht,"c",function(){return m}),j.d(ht,"a",function(){return J});var _t={},m=null;typeof document!="undefined"&&("onmouseenter"in document.documentElement||(_t={mouseenter:"mouseover",mouseleave:"mouseout"}));function y(q,Z,tt){return q=R(q,Z,tt),function(H){var X=H.relatedTarget;X&&(X===this||8&X.compareDocumentPosition(this))||q.call(this,H)}}function R(q,Z,tt){return function(H){var X=m;m=H;try{q.call(this,this.__data__,Z,tt)}finally{m=X}}}function B(q){return q.trim().split(/^|\s+/).map(function(Z){var tt="",H=Z.indexOf(".");return H>=0&&(tt=Z.slice(H+1),Z=Z.slice(0,H)),{type:Z,name:tt}})}function et(q){return function(){var Z=this.__on;if(Z){for(var tt,H=0,X=-1,F=Z.length;H1?R[0]+R.slice(2):R,+_t.slice(y+1)]}},function(ue,ht,j){"use strict";function _t(){}ht.a=function(m){return m==null?_t:function(){return this.querySelector(m)}}},function(ue,ht,j){"use strict";var _t=j(14);ht.a=function(m){var y=m+="",R=y.indexOf(":");return R>=0&&(y=m.slice(0,R))!=="xmlns"&&(m=m.slice(R+1)),_t.a.hasOwnProperty(y)?{space:_t.a[y],local:m}:m}},function(ue,ht,j){"use strict";ht.a=function(_t){return _t.ownerDocument&&_t.ownerDocument.defaultView||_t.document&&_t||_t.defaultView}},function(ue,ht,j){"use strict";var _t=j(17);ht.a=function(){for(var m,y=_t.c;m=y.sourceEvent;)y=m;return y}},,function(ue,ht,j){"use strict";ht.a=function(_t){return function(){return _t}}},function(ue,ht,j){"use strict";j.d(ht,"b",function(){return m}),j.d(ht,"a",function(){return y});var _t=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function m(R){if(!(B=_t.exec(R)))throw new Error("invalid format: "+R);var B;return new y({fill:B[1],align:B[2],sign:B[3],symbol:B[4],zero:B[5],width:B[6],comma:B[7],precision:B[8]&&B[8].slice(1),trim:B[9],type:B[10]})}function y(R){this.fill=R.fill===void 0?" ":R.fill+"",this.align=R.align===void 0?">":R.align+"",this.sign=R.sign===void 0?"-":R.sign+"",this.symbol=R.symbol===void 0?"":R.symbol+"",this.zero=!!R.zero,this.width=R.width===void 0?void 0:+R.width,this.comma=!!R.comma,this.precision=R.precision===void 0?void 0:+R.precision,this.trim=!!R.trim,this.type=R.type===void 0?"":R.type+""}m.prototype=y.prototype,y.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(ue,ht,j){"use strict";function _t(m,y,R,B,et){var K=m*m,J=K*m;return((1-3*m+3*K-J)*y+(4-6*K+3*J)*R+(1+3*m+3*K-3*J)*B+J*et)/6}j.d(ht,"a",function(){return _t}),ht.b=function(m){var y=m.length-1;return function(R){var B=R<=0?R=0:R>=1?(R=1,y-1):Math.floor(R*y),et=m[B],K=m[B+1],J=B>0?m[B-1]:2*et-K,q=B0?R>1?Object(_t.a)(function(B){B.setTime(Math.floor(B/R)*R)},function(B,et){B.setTime(+B+et*R)},function(B,et){return(et-B)/R}):m:null},ht.a=m;var y=m.range},function(ue,ht,j){"use strict";var _t=j(10);ht.a=function(m){return typeof m=="string"?new _t.a([[document.querySelector(m)]],[document.documentElement]):new _t.a([[m]],_t.c)}},function(ue,ht,j){"use strict";function _t(){return[]}ht.a=function(m){return m==null?_t:function(){return this.querySelectorAll(m)}}},function(ue,ht,j){"use strict";ht.a=function(_t){return function(){return this.matches(_t)}}},function(ue,ht,j){"use strict";j.d(ht,"b",function(){return B});var _t=j(21);function m(et){return function(){this.style.removeProperty(et)}}function y(et,K,J){return function(){this.style.setProperty(et,K,J)}}function R(et,K,J){return function(){var q=K.apply(this,arguments);q==null?this.style.removeProperty(et):this.style.setProperty(et,q,J)}}function B(et,K){return et.style.getPropertyValue(K)||Object(_t.a)(et).getComputedStyle(et,null).getPropertyValue(K)}ht.a=function(et,K,J){return arguments.length>1?this.each((K==null?m:typeof K=="function"?R:y)(et,K,J==null?"":J)):B(this.node(),et)}},,function(ue,ht,j){"use strict";j.d(ht,"b",function(){return et}),j.d(ht,"c",function(){return K});var _t=j(5),m=j(26),y=j(53),R=j(8);function B(J){return function(q){var Z,tt,H=q.length,X=new Array(H),F=new Array(H),U=new Array(H);for(Z=0;ZF+1?X.slice(0,F+1)+"."+X.slice(F+1):X+new Array(F-X.length+2).join("0")},et={"%":function(Z,tt){return(100*Z).toFixed(tt)},b:function(Z){return Math.round(Z).toString(2)},c:function(Z){return Z+""},d:function(Z){return Math.round(Z).toString(10)},e:function(Z,tt){return Z.toExponential(tt)},f:function(Z,tt){return Z.toFixed(tt)},g:function(Z,tt){return Z.toPrecision(tt)},o:function(Z){return Math.round(Z).toString(8)},p:function(Z,tt){return B(100*Z,tt)},r:B,s:function(Z,tt){var H=Object(R.a)(Z,tt);if(!H)return Z+"";var X=H[0],F=H[1],U=F-(_t=3*Math.max(-8,Math.min(8,Math.floor(F/3))))+1,d=X.length;return U===d?X:U>d?X+new Array(U-d+1).join("0"):U>0?X.slice(0,U)+"."+X.slice(U):"0."+new Array(1-U).join("0")+Object(R.a)(Z,Math.max(0,tt+U-1))[0]},X:function(Z){return Math.round(Z).toString(16).toUpperCase()},x:function(Z){return Math.round(Z).toString(16)}},K=function(Z){return Z},J=Array.prototype.map,q=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];ht.a=function(Z){var tt,H,X=Z.grouping===void 0||Z.thousands===void 0?K:(tt=J.call(Z.grouping,Number),H=Z.thousands+"",function(o,u){for(var C=o.length,E=[],S=0,v=tt[0],g=0;C>0&&v>0&&(g+v+1>u&&(v=Math.max(1,u-g)),E.push(o.substring(C-=v,C+v)),!((g+=v+1)>u));)v=tt[S=(S+1)%tt.length];return E.reverse().join(H)}),F=Z.currency===void 0?"":Z.currency[0]+"",U=Z.currency===void 0?"":Z.currency[1]+"",d=Z.decimal===void 0?".":Z.decimal+"",L=Z.numerals===void 0?K:function(o){return function(u){return u.replace(/[0-9]/g,function(C){return o[+C]})}}(J.call(Z.numerals,String)),M=Z.percent===void 0?"%":Z.percent+"",s=Z.minus===void 0?"-":Z.minus+"",_=Z.nan===void 0?"NaN":Z.nan+"";function w(o){var u=(o=Object(y.b)(o)).fill,C=o.align,E=o.sign,S=o.symbol,v=o.zero,g=o.width,x=o.comma,p=o.precision,l=o.trim,f=o.type;f==="n"?(x=!0,f="g"):et[f]||(p===void 0&&(p=12),l=!0,f="g"),(v||u==="0"&&C==="=")&&(v=!0,u="0",C="=");var b=S==="$"?F:S==="#"&&/[boxX]/.test(f)?"0"+f.toLowerCase():"",z=S==="$"?U:/[%p]/.test(f)?M:"",T=et[f],k=/[defgprs%]/.test(f);function Q(st){var nt,dt,mt,Et=b,Mt=z;if(f==="c")Mt=T(st)+Mt,st="";else{var I=(st=+st)<0;if(st=isNaN(st)?_:T(Math.abs(st),p),l&&(st=function(ot){t:for(var D,P=ot.length,W=1,lt=-1;W0&&(lt=0)}return lt>0?ot.slice(0,lt)+ot.slice(D+1):ot}(st)),I&&+st==0&&(I=!1),Et=(I?E==="("?E:s:E==="-"||E==="("?"":E)+Et,Mt=(f==="s"?q[8+_t/3]:"")+Mt+(I&&E==="("?")":""),k){for(nt=-1,dt=st.length;++nt(mt=st.charCodeAt(nt))||mt>57){Mt=(mt===46?d+st.slice(nt+1):st.slice(nt))+Mt,st=st.slice(0,nt);break}}}x&&!v&&(st=X(st,1/0));var Y=Et.length+st.length+Mt.length,rt=Y>1)+Et+st+Mt+rt.slice(Y);break;default:st=rt+Et+st+Mt}return L(st)}return p=p===void 0?6:/[gprs]/.test(f)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),Q.toString=function(){return o+""},Q}return{format:w,formatPrefix:function(o,u){var C=w(((o=Object(y.b)(o)).type="f",o)),E=3*Math.max(-8,Math.min(8,Math.floor(Object(m.a)(u)/3))),S=Math.pow(10,-E),v=q[8+E/3];return function(g){return C(S*g)+v}}}}},,,function(ue,ht,j){"use strict";j.d(ht,"b",function(){return m}),j.d(ht,"c",function(){return y}),j.d(ht,"a",function(){return B});var _t,m,y,R=j(40);function B(et){return _t=Object(R.a)(et),m=_t.format,y=_t.formatPrefix,_t}B({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})},function(ue,ht,j){"use strict";j.r(ht);var _t=j(43);j.d(ht,"formatDefaultLocale",function(){return _t.a}),j.d(ht,"format",function(){return _t.b}),j.d(ht,"formatPrefix",function(){return _t.c});var m=j(40);j.d(ht,"formatLocale",function(){return m.a});var y=j(25);j.d(ht,"formatSpecifier",function(){return y.b}),j.d(ht,"FormatSpecifier",function(){return y.a});var R=j(63);j.d(ht,"precisionFixed",function(){return R.a});var B=j(64);j.d(ht,"precisionPrefix",function(){return B.a});var et=j(65);j.d(ht,"precisionRound",function(){return et.a})},function(ue,ht,j){"use strict";j.d(ht,"b",function(){return m}),j.d(ht,"c",function(){return y}),j.d(ht,"d",function(){return R}),j.d(ht,"e",function(){return B}),j.d(ht,"a",function(){return K});var _t,m,y,R,B,et=j(54);function K(J){return _t=Object(et.a)(J),m=_t.format,y=_t.parse,R=_t.utcFormat,B=_t.utcParse,_t}K({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})},,function(ue,ht,j){"use strict";j.d(ht,"b",function(){return y});var _t=j(0),m=Object(_t.a)(function(R){R.setDate(1),R.setHours(0,0,0,0)},function(R,B){R.setMonth(R.getMonth()+B)},function(R,B){return B.getMonth()-R.getMonth()+12*(B.getFullYear()-R.getFullYear())},function(R){return R.getMonth()});ht.a=m;var y=m.range},function(ue,ht,j){"use strict";j.d(ht,"b",function(){return R});var _t=j(0),m=j(1),y=Object(_t.a)(function(B){B.setTime(B-B.getMilliseconds()-B.getSeconds()*m.d-B.getMinutes()*m.c)},function(B,et){B.setTime(+B+et*m.b)},function(B,et){return(et-B)/m.b},function(B){return B.getHours()});ht.a=y;var R=y.range},function(ue,ht,j){"use strict";j.d(ht,"b",function(){return R});var _t=j(0),m=j(1),y=Object(_t.a)(function(B){B.setTime(B-B.getMilliseconds()-B.getSeconds()*m.d)},function(B,et){B.setTime(+B+et*m.c)},function(B,et){return(et-B)/m.c},function(B){return B.getMinutes()});ht.a=y;var R=y.range},function(ue,ht,j){"use strict";j.d(ht,"b",function(){return y});var _t=j(0),m=Object(_t.a)(function(R){R.setUTCDate(1),R.setUTCHours(0,0,0,0)},function(R,B){R.setUTCMonth(R.getUTCMonth()+B)},function(R,B){return B.getUTCMonth()-R.getUTCMonth()+12*(B.getUTCFullYear()-R.getUTCFullYear())},function(R){return R.getUTCMonth()});ht.a=m;var y=m.range},function(ue,ht,j){"use strict";j.d(ht,"b",function(){return R});var _t=j(0),m=j(1),y=Object(_t.a)(function(B){B.setUTCMinutes(0,0,0)},function(B,et){B.setTime(+B+et*m.b)},function(B,et){return(et-B)/m.b},function(B){return B.getUTCHours()});ht.a=y;var R=y.range},function(ue,ht,j){"use strict";j.d(ht,"b",function(){return R});var _t=j(0),m=j(1),y=Object(_t.a)(function(B){B.setUTCSeconds(0,0)},function(B,et){B.setTime(+B+et*m.c)},function(B,et){return(et-B)/m.c},function(B){return B.getUTCMinutes()});ht.a=y;var R=y.range},function(ue,ht,j){"use strict";var _t=j(26);ht.a=function(m){var y=m.length;return function(R){var B=Math.floor(((R%=1)<0?++R:R)*y),et=m[(B+y-1)%y],K=m[B%y],J=m[(B+1)%y],q=m[(B+2)%y];return Object(_t.a)((R-B/y)*y,et,K,J,q)}}},function(ue,ht,j){"use strict";j.d(ht,"a",function(){return Z});var _t=j(4),m=j(28),y=j(3),R=j(27),B=j(15),et=j(16);function K(Ot){if(0<=Ot.y&&Ot.y<100){var Bt=new Date(-1,Ot.m,Ot.d,Ot.H,Ot.M,Ot.S,Ot.L);return Bt.setFullYear(Ot.y),Bt}return new Date(Ot.y,Ot.m,Ot.d,Ot.H,Ot.M,Ot.S,Ot.L)}function J(Ot){if(0<=Ot.y&&Ot.y<100){var Bt=new Date(Date.UTC(-1,Ot.m,Ot.d,Ot.H,Ot.M,Ot.S,Ot.L));return Bt.setUTCFullYear(Ot.y),Bt}return new Date(Date.UTC(Ot.y,Ot.m,Ot.d,Ot.H,Ot.M,Ot.S,Ot.L))}function q(Ot,Bt,Ut){return{y:Ot,m:Bt,d:Ut,H:0,M:0,S:0,L:0}}function Z(Ot){var Bt=Ot.dateTime,Ut=Ot.date,zt=Ot.time,ce=Ot.periods,we=Ot.days,ye=Ot.shortDays,qe=Ot.months,hn=Ot.shortMonths,yn=L(ce),Nn=M(ce),mn=L(we),Mn=M(we),Kn=L(ye),fr=M(ye),ge=L(qe),Ie=M(qe),Ge=L(hn),ve=M(hn),Le={a:function(Me){return ye[Me.getDay()]},A:function(Me){return we[Me.getDay()]},b:function(Me){return hn[Me.getMonth()]},B:function(Me){return qe[Me.getMonth()]},c:null,d:nt,e:nt,f:I,H:dt,I:mt,j:Et,L:Mt,m:Y,M:rt,p:function(Me){return ce[+(Me.getHours()>=12)]},q:function(Me){return 1+~~(Me.getMonth()/3)},Q:Kt,s:te,S:ot,u:D,U:P,V:W,w:lt,W:it,x:null,X:null,y:vt,Y:pt,Z:xt,"%":Jt},Ue={a:function(Me){return ye[Me.getUTCDay()]},A:function(Me){return we[Me.getUTCDay()]},b:function(Me){return hn[Me.getUTCMonth()]},B:function(Me){return qe[Me.getUTCMonth()]},c:null,d:Ct,e:Ct,f:Rt,H:Tt,I:Nt,j:gt,L:wt,m:jt,M:Zt,p:function(Me){return ce[+(Me.getUTCHours()>=12)]},q:function(Me){return 1+~~(Me.getUTCMonth()/3)},Q:Kt,s:te,S:ne,u:Wt,U:le,V:fe,w:xe,W:be,x:null,X:null,y:Ye,Y:tn,Z:on,"%":Jt},Oe={a:function(Me,en,xn){var Te=Kn.exec(en.slice(xn));return Te?(Me.w=fr[Te[0].toLowerCase()],xn+Te[0].length):-1},A:function(Me,en,xn){var Te=mn.exec(en.slice(xn));return Te?(Me.w=Mn[Te[0].toLowerCase()],xn+Te[0].length):-1},b:function(Me,en,xn){var Te=Ge.exec(en.slice(xn));return Te?(Me.m=ve[Te[0].toLowerCase()],xn+Te[0].length):-1},B:function(Me,en,xn){var Te=ge.exec(en.slice(xn));return Te?(Me.m=Ie[Te[0].toLowerCase()],xn+Te[0].length):-1},c:function(Me,en,xn){return Sn(Me,Bt,en,xn)},d:x,e:x,f:T,H:l,I:l,j:p,L:z,m:g,M:f,p:function(Me,en,xn){var Te=yn.exec(en.slice(xn));return Te?(Me.p=Nn[Te[0].toLowerCase()],xn+Te[0].length):-1},q:v,Q,s:st,S:b,u:_,U:w,V:o,w:s,W:u,x:function(Me,en,xn){return Sn(Me,Ut,en,xn)},X:function(Me,en,xn){return Sn(Me,zt,en,xn)},y:E,Y:C,Z:S,"%":k};function De(Me,en){return function(xn){var Te,bn,nn,fn=[],wn=-1,vn=0,cr=Me.length;for(xn instanceof Date||(xn=new Date(+xn));++wn53)return null;"w"in nn||(nn.w=1),"Z"in nn?(bn=(Te=J(q(nn.y,0,1))).getUTCDay(),Te=bn>4||bn===0?_t.c.ceil(Te):Object(_t.c)(Te),Te=m.a.offset(Te,7*(nn.V-1)),nn.y=Te.getUTCFullYear(),nn.m=Te.getUTCMonth(),nn.d=Te.getUTCDate()+(nn.w+6)%7):(bn=(Te=K(q(nn.y,0,1))).getDay(),Te=bn>4||bn===0?y.c.ceil(Te):Object(y.c)(Te),Te=R.b.offset(Te,7*(nn.V-1)),nn.y=Te.getFullYear(),nn.m=Te.getMonth(),nn.d=Te.getDate()+(nn.w+6)%7)}else("W"in nn||"U"in nn)&&("w"in nn||(nn.w="u"in nn?nn.u%7:"W"in nn?1:0),bn="Z"in nn?J(q(nn.y,0,1)).getUTCDay():K(q(nn.y,0,1)).getDay(),nn.m=0,nn.d="W"in nn?(nn.w+6)%7+7*nn.W-(bn+5)%7:nn.w+7*nn.U-(bn+6)%7);return"Z"in nn?(nn.H+=nn.Z/100|0,nn.M+=nn.Z%100,J(nn)):K(nn)}}function Sn(Me,en,xn,Te){for(var bn,nn,fn=0,wn=en.length,vn=xn.length;fn=vn)return-1;if((bn=en.charCodeAt(fn++))===37){if(bn=en.charAt(fn++),!(nn=Oe[bn in tt?en.charAt(fn++):bn])||(Te=nn(Me,xn,Te))<0)return-1}else if(bn!=xn.charCodeAt(Te++))return-1}return Te}return Le.x=De(Ut,Le),Le.X=De(zt,Le),Le.c=De(Bt,Le),Ue.x=De(Ut,Ue),Ue.X=De(zt,Ue),Ue.c=De(Bt,Ue),{format:function(Me){var en=De(Me+="",Le);return en.toString=function(){return Me},en},parse:function(Me){var en=Ze(Me+="",!1);return en.toString=function(){return Me},en},utcFormat:function(Me){var en=De(Me+="",Ue);return en.toString=function(){return Me},en},utcParse:function(Me){var en=Ze(Me+="",!0);return en.toString=function(){return Me},en}}}var tt={"-":"",_:" ",0:"0"},H=/^\s*\d+/,X=/^%/,F=/[\\^$*+?|[\]().{}]/g;function U(Ot,Bt,Ut){var zt=Ot<0?"-":"",ce=(zt?-Ot:Ot)+"",we=ce.length;return zt+(we68?1900:2e3),Ut+zt[0].length):-1}function S(Ot,Bt,Ut){var zt=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Bt.slice(Ut,Ut+6));return zt?(Ot.Z=zt[1]?0:-(zt[2]+(zt[3]||"00")),Ut+zt[0].length):-1}function v(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+1));return zt?(Ot.q=3*zt[0]-3,Ut+zt[0].length):-1}function g(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+2));return zt?(Ot.m=zt[0]-1,Ut+zt[0].length):-1}function x(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+2));return zt?(Ot.d=+zt[0],Ut+zt[0].length):-1}function p(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+3));return zt?(Ot.m=0,Ot.d=+zt[0],Ut+zt[0].length):-1}function l(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+2));return zt?(Ot.H=+zt[0],Ut+zt[0].length):-1}function f(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+2));return zt?(Ot.M=+zt[0],Ut+zt[0].length):-1}function b(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+2));return zt?(Ot.S=+zt[0],Ut+zt[0].length):-1}function z(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+3));return zt?(Ot.L=+zt[0],Ut+zt[0].length):-1}function T(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut,Ut+6));return zt?(Ot.L=Math.floor(zt[0]/1e3),Ut+zt[0].length):-1}function k(Ot,Bt,Ut){var zt=X.exec(Bt.slice(Ut,Ut+1));return zt?Ut+zt[0].length:-1}function Q(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut));return zt?(Ot.Q=+zt[0],Ut+zt[0].length):-1}function st(Ot,Bt,Ut){var zt=H.exec(Bt.slice(Ut));return zt?(Ot.s=+zt[0],Ut+zt[0].length):-1}function nt(Ot,Bt){return U(Ot.getDate(),Bt,2)}function dt(Ot,Bt){return U(Ot.getHours(),Bt,2)}function mt(Ot,Bt){return U(Ot.getHours()%12||12,Bt,2)}function Et(Ot,Bt){return U(1+R.b.count(Object(B.a)(Ot),Ot),Bt,3)}function Mt(Ot,Bt){return U(Ot.getMilliseconds(),Bt,3)}function I(Ot,Bt){return Mt(Ot,Bt)+"000"}function Y(Ot,Bt){return U(Ot.getMonth()+1,Bt,2)}function rt(Ot,Bt){return U(Ot.getMinutes(),Bt,2)}function ot(Ot,Bt){return U(Ot.getSeconds(),Bt,2)}function D(Ot){var Bt=Ot.getDay();return Bt===0?7:Bt}function P(Ot,Bt){return U(y.g.count(Object(B.a)(Ot)-1,Ot),Bt,2)}function W(Ot,Bt){var Ut=Ot.getDay();return Ot=Ut>=4||Ut===0?Object(y.i)(Ot):y.i.ceil(Ot),U(y.i.count(Object(B.a)(Ot),Ot)+(Object(B.a)(Ot).getDay()===4),Bt,2)}function lt(Ot){return Ot.getDay()}function it(Ot,Bt){return U(y.c.count(Object(B.a)(Ot)-1,Ot),Bt,2)}function vt(Ot,Bt){return U(Ot.getFullYear()%100,Bt,2)}function pt(Ot,Bt){return U(Ot.getFullYear()%1e4,Bt,4)}function xt(Ot){var Bt=Ot.getTimezoneOffset();return(Bt>0?"-":(Bt*=-1,"+"))+U(Bt/60|0,"0",2)+U(Bt%60,"0",2)}function Ct(Ot,Bt){return U(Ot.getUTCDate(),Bt,2)}function Tt(Ot,Bt){return U(Ot.getUTCHours(),Bt,2)}function Nt(Ot,Bt){return U(Ot.getUTCHours()%12||12,Bt,2)}function gt(Ot,Bt){return U(1+m.a.count(Object(et.a)(Ot),Ot),Bt,3)}function wt(Ot,Bt){return U(Ot.getUTCMilliseconds(),Bt,3)}function Rt(Ot,Bt){return wt(Ot,Bt)+"000"}function jt(Ot,Bt){return U(Ot.getUTCMonth()+1,Bt,2)}function Zt(Ot,Bt){return U(Ot.getUTCMinutes(),Bt,2)}function ne(Ot,Bt){return U(Ot.getUTCSeconds(),Bt,2)}function Wt(Ot){var Bt=Ot.getUTCDay();return Bt===0?7:Bt}function le(Ot,Bt){return U(_t.g.count(Object(et.a)(Ot)-1,Ot),Bt,2)}function fe(Ot,Bt){var Ut=Ot.getUTCDay();return Ot=Ut>=4||Ut===0?Object(_t.i)(Ot):_t.i.ceil(Ot),U(_t.i.count(Object(et.a)(Ot),Ot)+(Object(et.a)(Ot).getUTCDay()===4),Bt,2)}function xe(Ot){return Ot.getUTCDay()}function be(Ot,Bt){return U(_t.c.count(Object(et.a)(Ot)-1,Ot),Bt,2)}function Ye(Ot,Bt){return U(Ot.getUTCFullYear()%100,Bt,2)}function tn(Ot,Bt){return U(Ot.getUTCFullYear()%1e4,Bt,4)}function on(){return"+0000"}function Jt(){return"%"}function Kt(Ot){return+Ot}function te(Ot){return Math.floor(+Ot/1e3)}},function(ue,ht,j){"use strict";var _t=j(6),m=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,y=new RegExp(m.source,"g");ht.a=function(R,B){var et,K,J,q=m.lastIndex=y.lastIndex=0,Z=-1,tt=[],H=[];for(R+="",B+="";(et=m.exec(R))&&(K=y.exec(B));)(J=K.index)>q&&(J=B.slice(q,J),tt[Z]?tt[Z]+=J:tt[++Z]=J),(et=et[0])===(K=K[0])?tt[Z]?tt[Z]+=K:tt[++Z]=K:(tt[++Z]=null,H.push({i:Z,x:Object(_t.a)(et,K)})),q=y.lastIndex;return q=0&&(Z=q.slice(tt+1),q=q.slice(0,tt)),q&&!J.hasOwnProperty(q))throw new Error("unknown type: "+q);return{type:q,name:Z}})}function B(K,J){for(var q,Z=0,tt=K.length;Z0)for(var q,Z,tt=new Array(q),H=0;H1e-6)if(Math.abs(He*de-ke*Ke)>1e-6&&Yt){var En=Xt-ae,Ln=At-he,zn=de*de+ke*ke,pr=En*En+Ln*Ln,ir=Math.sqrt(zn),Xn=Math.sqrt(rn),lr=Yt*Math.tan((_t-Math.acos((zn+rn-pr)/(2*ir*Xn)))/2),Cr=lr/Xn,wr=lr/ir;Math.abs(Cr-1)>1e-6&&(this._+="L"+(yt+Cr*Ke)+","+(It+Cr*He)),this._+="A"+Yt+","+Yt+",0,0,"+ +(He*En>Ke*Ln)+","+(this._x1=yt+wr*de)+","+(this._y1=It+wr*ke)}else this._+="L"+(this._x1=yt)+","+(this._y1=It)},arc:function(yt,It,Xt,At,Yt,ae){yt=+yt,It=+It,ae=!!ae;var he=(Xt=+Xt)*Math.cos(At),de=Xt*Math.sin(At),ke=yt+he,Ke=It+de,He=1^ae,rn=ae?At-Yt:Yt-At;if(Xt<0)throw new Error("negative radius: "+Xt);this._x1===null?this._+="M"+ke+","+Ke:(Math.abs(this._x1-ke)>1e-6||Math.abs(this._y1-Ke)>1e-6)&&(this._+="L"+ke+","+Ke),Xt&&(rn<0&&(rn=rn%m+m),rn>y?this._+="A"+Xt+","+Xt+",0,1,"+He+","+(yt-he)+","+(It-de)+"A"+Xt+","+Xt+",0,1,"+He+","+(this._x1=ke)+","+(this._y1=Ke):rn>1e-6&&(this._+="A"+Xt+","+Xt+",0,"+ +(rn>=_t)+","+He+","+(this._x1=yt+Xt*Math.cos(Yt))+","+(this._y1=It+Xt*Math.sin(Yt))))},rect:function(yt,It,Xt,At){this._+="M"+(this._x0=this._x1=+yt)+","+(this._y0=this._y1=+It)+"h"+ +Xt+"v"+ +At+"h"+-Xt+"Z"},toString:function(){return this._}};var et=B,K=function(yt){return function(){return yt}},J=Math.abs,q=Math.atan2,Z=Math.cos,tt=Math.max,H=Math.min,X=Math.sin,F=Math.sqrt,U=Math.PI,d=U/2,L=2*U;function M(yt){return yt>1?0:yt<-1?U:Math.acos(yt)}function s(yt){return yt>=1?d:yt<=-1?-d:Math.asin(yt)}function _(yt){return yt.innerRadius}function w(yt){return yt.outerRadius}function o(yt){return yt.startAngle}function u(yt){return yt.endAngle}function C(yt){return yt&&yt.padAngle}function E(yt,It,Xt,At,Yt,ae,he,de){var ke=Xt-yt,Ke=At-It,He=he-Yt,rn=de-ae,En=rn*ke-He*Ke;if(!(En*En<1e-12))return[yt+(En=(He*(It-ae)-rn*(yt-Yt))/En)*ke,It+En*Ke]}function S(yt,It,Xt,At,Yt,ae,he){var de=yt-Xt,ke=It-At,Ke=(he?ae:-ae)/F(de*de+ke*ke),He=Ke*ke,rn=-Ke*de,En=yt+He,Ln=It+rn,zn=Xt+He,pr=At+rn,ir=(En+zn)/2,Xn=(Ln+pr)/2,lr=zn-En,Cr=pr-Ln,wr=lr*lr+Cr*Cr,Ir=Yt-ae,$r=En*pr-zn*Ln,ci=(Cr<0?-1:1)*F(tt(0,Ir*Ir*wr-$r*$r)),Ri=($r*Cr-lr*ci)/wr,Pi=(-$r*lr-Cr*ci)/wr,yi=($r*Cr+lr*ci)/wr,Oi=(-$r*lr+Cr*ci)/wr,Li=Ri-ir,Ni=Pi-Xn,Vi=yi-ir,eo=Oi-Xn;return Li*Li+Ni*Ni>Vi*Vi+eo*eo&&(Ri=yi,Pi=Oi),{cx:Ri,cy:Pi,x01:-He,y01:-rn,x11:Ri*(Yt/Ir-1),y11:Pi*(Yt/Ir-1)}}var v=function(){var yt=_,It=w,Xt=K(0),At=null,Yt=o,ae=u,he=C,de=null;function ke(){var Ke,He,rn=+yt.apply(this,arguments),En=+It.apply(this,arguments),Ln=Yt.apply(this,arguments)-d,zn=ae.apply(this,arguments)-d,pr=J(zn-Ln),ir=zn>Ln;if(de||(de=Ke=et()),En1e-12)if(pr>L-1e-12)de.moveTo(En*Z(Ln),En*X(Ln)),de.arc(0,0,En,Ln,zn,!ir),rn>1e-12&&(de.moveTo(rn*Z(zn),rn*X(zn)),de.arc(0,0,rn,zn,Ln,ir));else{var Xn,lr,Cr=Ln,wr=zn,Ir=Ln,$r=zn,ci=pr,Ri=pr,Pi=he.apply(this,arguments)/2,yi=Pi>1e-12&&(At?+At.apply(this,arguments):F(rn*rn+En*En)),Oi=H(J(En-rn)/2,+Xt.apply(this,arguments)),Li=Oi,Ni=Oi;if(yi>1e-12){var Vi=s(yi/rn*X(Pi)),eo=s(yi/En*X(Pi));(ci-=2*Vi)>1e-12?(Ir+=Vi*=ir?1:-1,$r-=Vi):(ci=0,Ir=$r=(Ln+zn)/2),(Ri-=2*eo)>1e-12?(Cr+=eo*=ir?1:-1,wr-=eo):(Ri=0,Cr=wr=(Ln+zn)/2)}var Xi=En*Z(Cr),Eo=En*X(Cr),Ro=rn*Z($r),fo=rn*X($r);if(Oi>1e-12){var ro,wo=En*Z(wr),Go=En*X(wr),ao=rn*Z(Ir),Mi=rn*X(Ir);if(pr1e-12?Ni>1e-12?(Xn=S(ao,Mi,Xi,Eo,En,Ni,ir),lr=S(wo,Go,Ro,fo,En,Ni,ir),de.moveTo(Xn.cx+Xn.x01,Xn.cy+Xn.y01),Ni1e-12&&ci>1e-12?Li>1e-12?(Xn=S(Ro,fo,wo,Go,rn,-Li,ir),lr=S(Xi,Eo,ao,Mi,rn,-Li,ir),de.lineTo(Xn.cx+Xn.x01,Xn.cy+Xn.y01),Li=En;--Ln)de.point(lr[Ln],Cr[Ln]);de.lineEnd(),de.areaEnd()}Xn&&(lr[rn]=+yt(zn,rn,He),Cr[rn]=+Xt(zn,rn,He),de.point(It?+It(zn,rn,He):lr[rn],At?+At(zn,rn,He):Cr[rn]))}if(pr)return de=null,pr+""||null}function Ke(){return f().defined(Yt).curve(he).context(ae)}return ke.x=function(He){return arguments.length?(yt=typeof He=="function"?He:K(+He),It=null,ke):yt},ke.x0=function(He){return arguments.length?(yt=typeof He=="function"?He:K(+He),ke):yt},ke.x1=function(He){return arguments.length?(It=He==null?null:typeof He=="function"?He:K(+He),ke):It},ke.y=function(He){return arguments.length?(Xt=typeof He=="function"?He:K(+He),At=null,ke):Xt},ke.y0=function(He){return arguments.length?(Xt=typeof He=="function"?He:K(+He),ke):Xt},ke.y1=function(He){return arguments.length?(At=He==null?null:typeof He=="function"?He:K(+He),ke):At},ke.lineX0=ke.lineY0=function(){return Ke().x(yt).y(Xt)},ke.lineY1=function(){return Ke().x(yt).y(At)},ke.lineX1=function(){return Ke().x(It).y(Xt)},ke.defined=function(He){return arguments.length?(Yt=typeof He=="function"?He:K(!!He),ke):Yt},ke.curve=function(He){return arguments.length?(he=He,ae!=null&&(de=he(ae)),ke):he},ke.context=function(He){return arguments.length?(He==null?ae=de=null:de=he(ae=He),ke):ae},ke},z=function(yt,It){return Ityt?1:It>=yt?0:NaN},T=function(yt){return yt},k=function(){var yt=T,It=z,Xt=null,At=K(0),Yt=K(L),ae=K(0);function he(de){var ke,Ke,He,rn,En,Ln=de.length,zn=0,pr=new Array(Ln),ir=new Array(Ln),Xn=+At.apply(this,arguments),lr=Math.min(L,Math.max(-L,Yt.apply(this,arguments)-Xn)),Cr=Math.min(Math.abs(lr)/Ln,ae.apply(this,arguments)),wr=Cr*(lr<0?-1:1);for(ke=0;ke0&&(zn+=En);for(It!=null?pr.sort(function(Ir,$r){return It(ir[Ir],ir[$r])}):Xt!=null&&pr.sort(function(Ir,$r){return Xt(de[Ir],de[$r])}),ke=0,He=zn?(lr-Ln*wr)/zn:0;ke0?En*He:0)+wr,ir[Ke]={data:de[Ke],index:ke,value:En,startAngle:Xn,endAngle:rn,padAngle:Cr};return ir}return he.value=function(de){return arguments.length?(yt=typeof de=="function"?de:K(+de),he):yt},he.sortValues=function(de){return arguments.length?(It=de,Xt=null,he):It},he.sort=function(de){return arguments.length?(Xt=de,It=null,he):Xt},he.startAngle=function(de){return arguments.length?(At=typeof de=="function"?de:K(+de),he):At},he.endAngle=function(de){return arguments.length?(Yt=typeof de=="function"?de:K(+de),he):Yt},he.padAngle=function(de){return arguments.length?(ae=typeof de=="function"?de:K(+de),he):ae},he},Q=nt(x);function st(yt){this._curve=yt}function nt(yt){function It(Xt){return new st(yt(Xt))}return It._curve=yt,It}function dt(yt){var It=yt.curve;return yt.angle=yt.x,delete yt.x,yt.radius=yt.y,delete yt.y,yt.curve=function(Xt){return arguments.length?It(nt(Xt)):It()._curve},yt}st.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(yt,It){this._curve.point(It*Math.sin(yt),It*-Math.cos(yt))}};var mt=function(){return dt(f().curve(Q))},Et=function(){var yt=b().curve(Q),It=yt.curve,Xt=yt.lineX0,At=yt.lineX1,Yt=yt.lineY0,ae=yt.lineY1;return yt.angle=yt.x,delete yt.x,yt.startAngle=yt.x0,delete yt.x0,yt.endAngle=yt.x1,delete yt.x1,yt.radius=yt.y,delete yt.y,yt.innerRadius=yt.y0,delete yt.y0,yt.outerRadius=yt.y1,delete yt.y1,yt.lineStartAngle=function(){return dt(Xt())},delete yt.lineX0,yt.lineEndAngle=function(){return dt(At())},delete yt.lineX1,yt.lineInnerRadius=function(){return dt(Yt())},delete yt.lineY0,yt.lineOuterRadius=function(){return dt(ae())},delete yt.lineY1,yt.curve=function(he){return arguments.length?It(nt(he)):It()._curve},yt},Mt=function(yt,It){return[(It=+It)*Math.cos(yt-=Math.PI/2),It*Math.sin(yt)]},I=Array.prototype.slice;function Y(yt){return yt.source}function rt(yt){return yt.target}function ot(yt){var It=Y,Xt=rt,At=p,Yt=l,ae=null;function he(){var de,ke=I.call(arguments),Ke=It.apply(this,ke),He=Xt.apply(this,ke);if(ae||(ae=de=et()),yt(ae,+At.apply(this,(ke[0]=Ke,ke)),+Yt.apply(this,ke),+At.apply(this,(ke[0]=He,ke)),+Yt.apply(this,ke)),de)return ae=null,de+""||null}return he.source=function(de){return arguments.length?(It=de,he):It},he.target=function(de){return arguments.length?(Xt=de,he):Xt},he.x=function(de){return arguments.length?(At=typeof de=="function"?de:K(+de),he):At},he.y=function(de){return arguments.length?(Yt=typeof de=="function"?de:K(+de),he):Yt},he.context=function(de){return arguments.length?(ae=de==null?null:de,he):ae},he}function D(yt,It,Xt,At,Yt){yt.moveTo(It,Xt),yt.bezierCurveTo(It=(It+At)/2,Xt,It,Yt,At,Yt)}function P(yt,It,Xt,At,Yt){yt.moveTo(It,Xt),yt.bezierCurveTo(It,Xt=(Xt+Yt)/2,At,Xt,At,Yt)}function W(yt,It,Xt,At,Yt){var ae=Mt(It,Xt),he=Mt(It,Xt=(Xt+Yt)/2),de=Mt(At,Xt),ke=Mt(At,Yt);yt.moveTo(ae[0],ae[1]),yt.bezierCurveTo(he[0],he[1],de[0],de[1],ke[0],ke[1])}function lt(){return ot(D)}function it(){return ot(P)}function vt(){var yt=ot(W);return yt.angle=yt.x,delete yt.x,yt.radius=yt.y,delete yt.y,yt}var pt={draw:function(yt,It){var Xt=Math.sqrt(It/U);yt.moveTo(Xt,0),yt.arc(0,0,Xt,0,L)}},xt={draw:function(yt,It){var Xt=Math.sqrt(It/5)/2;yt.moveTo(-3*Xt,-Xt),yt.lineTo(-Xt,-Xt),yt.lineTo(-Xt,-3*Xt),yt.lineTo(Xt,-3*Xt),yt.lineTo(Xt,-Xt),yt.lineTo(3*Xt,-Xt),yt.lineTo(3*Xt,Xt),yt.lineTo(Xt,Xt),yt.lineTo(Xt,3*Xt),yt.lineTo(-Xt,3*Xt),yt.lineTo(-Xt,Xt),yt.lineTo(-3*Xt,Xt),yt.closePath()}},Ct=Math.sqrt(1/3),Tt=2*Ct,Nt={draw:function(yt,It){var Xt=Math.sqrt(It/Tt),At=Xt*Ct;yt.moveTo(0,-Xt),yt.lineTo(At,0),yt.lineTo(0,Xt),yt.lineTo(-At,0),yt.closePath()}},gt=Math.sin(U/10)/Math.sin(7*U/10),wt=Math.sin(L/10)*gt,Rt=-Math.cos(L/10)*gt,jt={draw:function(yt,It){var Xt=Math.sqrt(.8908130915292852*It),At=wt*Xt,Yt=Rt*Xt;yt.moveTo(0,-Xt),yt.lineTo(At,Yt);for(var ae=1;ae<5;++ae){var he=L*ae/5,de=Math.cos(he),ke=Math.sin(he);yt.lineTo(ke*Xt,-de*Xt),yt.lineTo(de*At-ke*Yt,ke*At+de*Yt)}yt.closePath()}},Zt={draw:function(yt,It){var Xt=Math.sqrt(It),At=-Xt/2;yt.rect(At,At,Xt,Xt)}},ne=Math.sqrt(3),Wt={draw:function(yt,It){var Xt=-Math.sqrt(It/(3*ne));yt.moveTo(0,2*Xt),yt.lineTo(-ne*Xt,-Xt),yt.lineTo(ne*Xt,-Xt),yt.closePath()}},le=Math.sqrt(3)/2,fe=1/Math.sqrt(12),xe=3*(fe/2+1),be={draw:function(yt,It){var Xt=Math.sqrt(It/xe),At=Xt/2,Yt=Xt*fe,ae=At,he=Xt*fe+Xt,de=-ae,ke=he;yt.moveTo(At,Yt),yt.lineTo(ae,he),yt.lineTo(de,ke),yt.lineTo(-.5*At-le*Yt,le*At+-.5*Yt),yt.lineTo(-.5*ae-le*he,le*ae+-.5*he),yt.lineTo(-.5*de-le*ke,le*de+-.5*ke),yt.lineTo(-.5*At+le*Yt,-.5*Yt-le*At),yt.lineTo(-.5*ae+le*he,-.5*he-le*ae),yt.lineTo(-.5*de+le*ke,-.5*ke-le*de),yt.closePath()}},Ye=[pt,xt,Nt,Zt,jt,Wt,be],tn=function(){var yt=K(pt),It=K(64),Xt=null;function At(){var Yt;if(Xt||(Xt=Yt=et()),yt.apply(this,arguments).draw(Xt,+It.apply(this,arguments)),Yt)return Xt=null,Yt+""||null}return At.type=function(Yt){return arguments.length?(yt=typeof Yt=="function"?Yt:K(Yt),At):yt},At.size=function(Yt){return arguments.length?(It=typeof Yt=="function"?Yt:K(+Yt),At):It},At.context=function(Yt){return arguments.length?(Xt=Yt==null?null:Yt,At):Xt},At},on=function(){};function Jt(yt,It,Xt){yt._context.bezierCurveTo((2*yt._x0+yt._x1)/3,(2*yt._y0+yt._y1)/3,(yt._x0+2*yt._x1)/3,(yt._y0+2*yt._y1)/3,(yt._x0+4*yt._x1+It)/6,(yt._y0+4*yt._y1+Xt)/6)}function Kt(yt){this._context=yt}Kt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Jt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1,this._line?this._context.lineTo(yt,It):this._context.moveTo(yt,It);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Jt(this,yt,It)}this._x0=this._x1,this._x1=yt,this._y0=this._y1,this._y1=It}};var te=function(yt){return new Kt(yt)};function Ot(yt){this._context=yt}Ot.prototype={areaStart:on,areaEnd:on,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1,this._x2=yt,this._y2=It;break;case 1:this._point=2,this._x3=yt,this._y3=It;break;case 2:this._point=3,this._x4=yt,this._y4=It,this._context.moveTo((this._x0+4*this._x1+yt)/6,(this._y0+4*this._y1+It)/6);break;default:Jt(this,yt,It)}this._x0=this._x1,this._x1=yt,this._y0=this._y1,this._y1=It}};var Bt=function(yt){return new Ot(yt)};function Ut(yt){this._context=yt}Ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var Xt=(this._x0+4*this._x1+yt)/6,At=(this._y0+4*this._y1+It)/6;this._line?this._context.lineTo(Xt,At):this._context.moveTo(Xt,At);break;case 3:this._point=4;default:Jt(this,yt,It)}this._x0=this._x1,this._x1=yt,this._y0=this._y1,this._y1=It}};var zt=function(yt){return new Ut(yt)};function ce(yt,It){this._basis=new Kt(yt),this._beta=It}ce.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var yt=this._x,It=this._y,Xt=yt.length-1;if(Xt>0)for(var At,Yt=yt[0],ae=It[0],he=yt[Xt]-Yt,de=It[Xt]-ae,ke=-1;++ke<=Xt;)At=ke/Xt,this._basis.point(this._beta*yt[ke]+(1-this._beta)*(Yt+At*he),this._beta*It[ke]+(1-this._beta)*(ae+At*de));this._x=this._y=null,this._basis.lineEnd()},point:function(yt,It){this._x.push(+yt),this._y.push(+It)}};var we=function yt(It){function Xt(At){return It===1?new Kt(At):new ce(At,It)}return Xt.beta=function(At){return yt(+At)},Xt}(.85);function ye(yt,It,Xt){yt._context.bezierCurveTo(yt._x1+yt._k*(yt._x2-yt._x0),yt._y1+yt._k*(yt._y2-yt._y0),yt._x2+yt._k*(yt._x1-It),yt._y2+yt._k*(yt._y1-Xt),yt._x2,yt._y2)}function qe(yt,It){this._context=yt,this._k=(1-It)/6}qe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ye(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1,this._line?this._context.lineTo(yt,It):this._context.moveTo(yt,It);break;case 1:this._point=2,this._x1=yt,this._y1=It;break;case 2:this._point=3;default:ye(this,yt,It)}this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var hn=function yt(It){function Xt(At){return new qe(At,It)}return Xt.tension=function(At){return yt(+At)},Xt}(0);function yn(yt,It){this._context=yt,this._k=(1-It)/6}yn.prototype={areaStart:on,areaEnd:on,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1,this._x3=yt,this._y3=It;break;case 1:this._point=2,this._context.moveTo(this._x4=yt,this._y4=It);break;case 2:this._point=3,this._x5=yt,this._y5=It;break;default:ye(this,yt,It)}this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var Nn=function yt(It){function Xt(At){return new yn(At,It)}return Xt.tension=function(At){return yt(+At)},Xt}(0);function mn(yt,It){this._context=yt,this._k=(1-It)/6}mn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ye(this,yt,It)}this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var Mn=function yt(It){function Xt(At){return new mn(At,It)}return Xt.tension=function(At){return yt(+At)},Xt}(0);function Kn(yt,It,Xt){var At=yt._x1,Yt=yt._y1,ae=yt._x2,he=yt._y2;if(yt._l01_a>1e-12){var de=2*yt._l01_2a+3*yt._l01_a*yt._l12_a+yt._l12_2a,ke=3*yt._l01_a*(yt._l01_a+yt._l12_a);At=(At*de-yt._x0*yt._l12_2a+yt._x2*yt._l01_2a)/ke,Yt=(Yt*de-yt._y0*yt._l12_2a+yt._y2*yt._l01_2a)/ke}if(yt._l23_a>1e-12){var Ke=2*yt._l23_2a+3*yt._l23_a*yt._l12_a+yt._l12_2a,He=3*yt._l23_a*(yt._l23_a+yt._l12_a);ae=(ae*Ke+yt._x1*yt._l23_2a-It*yt._l12_2a)/He,he=(he*Ke+yt._y1*yt._l23_2a-Xt*yt._l12_2a)/He}yt._context.bezierCurveTo(At,Yt,ae,he,yt._x2,yt._y2)}function fr(yt,It){this._context=yt,this._alpha=It}fr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){if(yt=+yt,It=+It,this._point){var Xt=this._x2-yt,At=this._y2-It;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Xt*Xt+At*At,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(yt,It):this._context.moveTo(yt,It);break;case 1:this._point=2;break;case 2:this._point=3;default:Kn(this,yt,It)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var ge=function yt(It){function Xt(At){return It?new fr(At,It):new qe(At,0)}return Xt.alpha=function(At){return yt(+At)},Xt}(.5);function Ie(yt,It){this._context=yt,this._alpha=It}Ie.prototype={areaStart:on,areaEnd:on,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(yt,It){if(yt=+yt,It=+It,this._point){var Xt=this._x2-yt,At=this._y2-It;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Xt*Xt+At*At,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=yt,this._y3=It;break;case 1:this._point=2,this._context.moveTo(this._x4=yt,this._y4=It);break;case 2:this._point=3,this._x5=yt,this._y5=It;break;default:Kn(this,yt,It)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var Ge=function yt(It){function Xt(At){return It?new Ie(At,It):new yn(At,0)}return Xt.alpha=function(At){return yt(+At)},Xt}(.5);function ve(yt,It){this._context=yt,this._alpha=It}ve.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(yt,It){if(yt=+yt,It=+It,this._point){var Xt=this._x2-yt,At=this._y2-It;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Xt*Xt+At*At,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Kn(this,yt,It)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=yt,this._y0=this._y1,this._y1=this._y2,this._y2=It}};var Le=function yt(It){function Xt(At){return It?new ve(At,It):new mn(At,0)}return Xt.alpha=function(At){return yt(+At)},Xt}(.5);function Ue(yt){this._context=yt}Ue.prototype={areaStart:on,areaEnd:on,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(yt,It){yt=+yt,It=+It,this._point?this._context.lineTo(yt,It):(this._point=1,this._context.moveTo(yt,It))}};var Oe=function(yt){return new Ue(yt)};function De(yt){return yt<0?-1:1}function Ze(yt,It,Xt){var At=yt._x1-yt._x0,Yt=It-yt._x1,ae=(yt._y1-yt._y0)/(At||Yt<0&&-0),he=(Xt-yt._y1)/(Yt||At<0&&-0),de=(ae*Yt+he*At)/(At+Yt);return(De(ae)+De(he))*Math.min(Math.abs(ae),Math.abs(he),.5*Math.abs(de))||0}function Sn(yt,It){var Xt=yt._x1-yt._x0;return Xt?(3*(yt._y1-yt._y0)/Xt-It)/2:It}function Me(yt,It,Xt){var At=yt._x0,Yt=yt._y0,ae=yt._x1,he=yt._y1,de=(ae-At)/3;yt._context.bezierCurveTo(At+de,Yt+de*It,ae-de,he-de*Xt,ae,he)}function en(yt){this._context=yt}function xn(yt){this._context=new Te(yt)}function Te(yt){this._context=yt}function bn(yt){return new en(yt)}function nn(yt){return new xn(yt)}function fn(yt){this._context=yt}function wn(yt){var It,Xt,At=yt.length-1,Yt=new Array(At),ae=new Array(At),he=new Array(At);for(Yt[0]=0,ae[0]=2,he[0]=yt[0]+2*yt[1],It=1;It=0;--It)Yt[It]=(he[It]-Yt[It+1])/ae[It];for(ae[At-1]=(yt[At]+Yt[At-1])/2,It=0;It=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(yt,It){switch(yt=+yt,It=+It,this._point){case 0:this._point=1,this._line?this._context.lineTo(yt,It):this._context.moveTo(yt,It);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,It),this._context.lineTo(yt,It);else{var Xt=this._x*(1-this._t)+yt*this._t;this._context.lineTo(Xt,this._y),this._context.lineTo(Xt,It)}}this._x=yt,this._y=It}};var Jn=function(yt){return new cr(yt,.5)};function dr(yt){return new cr(yt,0)}function gr(yt){return new cr(yt,1)}var nr=function(yt,It){if((Yt=yt.length)>1)for(var Xt,At,Yt,ae=1,he=yt[It[0]],de=he.length;ae=0;)Xt[It]=It;return Xt};function Lr(yt,It){return yt[It]}var sr=function(){var yt=K([]),It=Nr,Xt=nr,At=Lr;function Yt(ae){var he,de,ke=yt.apply(this,arguments),Ke=ae.length,He=ke.length,rn=new Array(He);for(he=0;he0){for(var Xt,At,Yt,ae=0,he=yt[0].length;ae0)for(var Xt,At,Yt,ae,he,de,ke=0,Ke=yt[It[0]].length;ke0?(At[0]=ae,At[1]=ae+=Yt):Yt<0?(At[1]=he,At[0]=he+=Yt):(At[0]=0,At[1]=Yt)},fi=function(yt,It){if((Xt=yt.length)>0){for(var Xt,At=0,Yt=yt[It[0]],ae=Yt.length;At0&&(At=(Xt=yt[It[0]]).length)>0){for(var Xt,At,Yt,ae=0,he=1;heae&&(ae=It,At=Xt);return At}var Ui=function(yt){var It=yt.map(ee);return Nr(yt).sort(function(Xt,At){return It[Xt]-It[At]})};function ee(yt){for(var It,Xt=0,At=-1,Yt=yt.length;++At=0&&Kt._call.call(null,Jt),Kt=Kt._next;--B})()}finally{B=0,function(){for(var Jt,Kt,te=_t,Ot=1/0;te;)te._call?(Ot>te._time&&(Ot=te._time),Jt=te,te=te._next):(Kt=te._next,te._next=null,te=Jt?Jt._next=Kt:_t=Kt);m=Jt,s(Ot)}(),q=0}}function M(){var Jt=tt.now(),Kt=Jt-J;Kt>1e3&&(Z-=Kt,J=Jt)}function s(Jt){B||(et&&(et=clearTimeout(et)),Jt-q>24?(Jt<1/0&&(et=setTimeout(L,Jt-tt.now()-Z)),K&&(K=clearInterval(K))):(K||(J=tt.now(),K=setInterval(M,1e3)),B=1,H(L)))}U.prototype=d.prototype={constructor:U,restart:function(Jt,Kt,te){if(typeof Jt!="function")throw new TypeError("callback is not a function");te=(te==null?X():+te)+(Kt==null?0:+Kt),this._next||m===this||(m?m._next=this:_t=this,m=this),this._call=Jt,this._time=te,s()},stop:function(){this._call&&(this._call=null,this._time=1/0,s())}};var _=function(Jt,Kt,te){var Ot=new U;return Kt=Kt==null?0:+Kt,Ot.restart(function(Bt){Ot.stop(),Jt(Bt+Kt)},Kt,te),Ot},w=Object(R.a)("start","end","cancel","interrupt"),o=[],u=function(Jt,Kt,te,Ot,Bt,Ut){var zt=Jt.__transition;if(zt){if(te in zt)return}else Jt.__transition={};(function(ce,we,ye){var qe,hn=ce.__transition;function yn(Mn){var Kn,fr,ge,Ie;if(ye.state!==1)return mn();for(Kn in hn)if((Ie=hn[Kn]).name===ye.name){if(Ie.state===3)return _(yn);Ie.state===4?(Ie.state=6,Ie.timer.stop(),Ie.on.call("interrupt",ce,ce.__data__,Ie.index,Ie.group),delete hn[Kn]):+Kn0)throw new Error("too late; already scheduled");return te}function E(Jt,Kt){var te=S(Jt,Kt);if(te.state>3)throw new Error("too late; already running");return te}function S(Jt,Kt){var te=Jt.__transition;if(!te||!(te=te[Kt]))throw new Error("transition not found");return te}var v=function(Jt,Kt){var te,Ot,Bt,Ut=Jt.__transition,zt=!0;if(Ut){for(Bt in Kt=Kt==null?null:Kt+"",Ut)(te=Ut[Bt]).name===Kt?(Ot=te.state>2&&te.state<5,te.state=6,te.timer.stop(),te.on.call(Ot?"interrupt":"cancel",Jt,Jt.__data__,te.index,te.group),delete Ut[Bt]):zt=!1;zt&&delete Jt.__transition}},g=j(76),x=j(20);function p(Jt,Kt){var te,Ot;return function(){var Bt=E(this,Jt),Ut=Bt.tween;if(Ut!==te){for(var zt=0,ce=(Ot=te=Ut).length;zt=0&&(ce=ce.slice(0,we)),!ce||ce==="start"})}(Kt)?C:E;return function(){var zt=Ut(this,Jt),ce=zt.on;ce!==Ot&&(Bt=(Ot=ce).copy()).on(Kt,te),zt.on=Bt}}var xt=j(19),Ct=j(33),Tt=y.b.prototype.constructor,Nt=j(35);function gt(Jt){return function(){this.style.removeProperty(Jt)}}function wt(Jt,Kt,te){return function(Ot){this.style.setProperty(Jt,Kt.call(this,Ot),te)}}function Rt(Jt,Kt,te){var Ot,Bt;function Ut(){var zt=Kt.apply(this,arguments);return zt!==Bt&&(Ot=(Bt=zt)&&wt(Jt,zt,te)),Ot}return Ut._value=Kt,Ut}function jt(Jt){return function(Kt){this.textContent=Jt.call(this,Kt)}}function Zt(Jt){var Kt,te;function Ot(){var Bt=Jt.apply(this,arguments);return Bt!==te&&(Kt=(te=Bt)&&jt(Bt)),Kt}return Ot._value=Jt,Ot}var ne=0;function Wt(Jt,Kt,te,Ot){this._groups=Jt,this._parents=Kt,this._name=te,this._id=Ot}function le(Jt){return Object(y.b)().transition(Jt)}function fe(){return++ne}var xe=y.b.prototype;Wt.prototype=le.prototype={constructor:Wt,select:function(Jt){var Kt=this._name,te=this._id;typeof Jt!="function"&&(Jt=Object(xt.a)(Jt));for(var Ot=this._groups,Bt=Ot.length,Ut=new Array(Bt),zt=0;zt1&&te.name===Kt)return new Wt([[Jt]],tn,Kt,+Ot)}return null};j.d(ht,"transition",function(){return le}),j.d(ht,"active",function(){return on}),j.d(ht,"interrupt",function(){return v})},,function(ue,ht,j){"use strict";var _t,m,y,R,B=j(6),et=180/Math.PI,K={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},J=function(H,X,F,U,d,L){var M,s,_;return(M=Math.sqrt(H*H+X*X))&&(H/=M,X/=M),(_=H*F+X*U)&&(F-=H*_,U-=X*_),(s=Math.sqrt(F*F+U*U))&&(F/=s,U/=s,_/=s),H*U180?o+=360:o-w>180&&(w+=360),C.push({i:u.push(d(u)+"rotate(",null,U)-2,x:Object(B.a)(w,o)})):o&&u.push(d(u)+"rotate("+o+U)}(L.rotate,M.rotate,s,_),function(w,o,u,C){w!==o?C.push({i:u.push(d(u)+"skewX(",null,U)-2,x:Object(B.a)(w,o)}):o&&u.push(d(u)+"skewX("+o+U)}(L.skewX,M.skewX,s,_),function(w,o,u,C,E,S){if(w!==u||o!==C){var v=E.push(d(E)+"scale(",null,",",null,")");S.push({i:v-4,x:Object(B.a)(w,u)},{i:v-2,x:Object(B.a)(o,C)})}else u===1&&C===1||E.push(d(E)+"scale("+u+","+C+")")}(L.scaleX,L.scaleY,M.scaleX,M.scaleY,s,_),L=M=null,function(w){for(var o,u=-1,C=_.length;++u1&&arguments[1]!==void 0?arguments[1]:12,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Arial",X=document.createElement("canvas"),F=X.getContext("2d");return F.font=tt+"px "+H,F.measureText(Z).width},wrapText:function(Z,tt,H,X){var F=y.select(X),U=F.text().split(/\s+/).reverse(),d=void 0,L=[],M=0,s=R*et,_=F.attr("y"),w=parseFloat(F.attr("dy")),o=tt*K,u=F.text(null).append("tspan").attr("x",Z).attr("y",_-5).attr("dy",w+"em").classed(J,!0).style("font-size",tt+"px");for(u.text(U.pop()),u=F.append("tspan").classed(q,!0).attr("x",Z).attr("y",_+B).attr("dy",++M*s+w+"em").style("font-size",o+"px");d=U.pop();)L.push(d),u.text(L.join(" ")),u.node()&&u.node().getComputedTextLength()>H-50&&(L.pop(),u.text(L.join(" ")),L=[d],u=F.append("tspan").classed(q,!0).attr("x",Z).attr("y",_+B).attr("dy",++M*s+w+"em").text(d).style("font-size",o+"px"))},wrapTextWithEllipses:function(Z,tt){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,F=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1.2;Z.each(function(){var U,d,L,M,s,_,w;for(U=(Z=y.select(this)).text().split(/\s+/).reverse(),L=[],M=0,s=Z.attr("y"),_=parseFloat(Z.attr("dy")),w=Z.text(null).append("tspan").attr("x",H).attr("y",s).attr("dy",_+"em");d=U.pop();)if(L.push(d),w.text(L.join(" ")),w.node()&&w.node().getComputedTextLength()>tt){if(L.pop(),w.text(L.join(" ")),!(M2&&arguments[2]!==void 0?arguments[2]:0;Ct.each(function(){var gt,wt,Rt,jt,Zt,ne,Wt;for(gt=(Ct=K.select(this)).text().split(/\s+/).reverse(),Rt=[],jt=0,Zt=Ct.attr("y"),ne=parseFloat(Ct.attr("dy")),Wt=Ct.text(null).append("tspan").attr("x",Nt).attr("y",Zt).attr("dy",ne+"em");wt=gt.pop();)Rt.push(wt),Wt.text(Rt.join(" ")),F(Rt.join(" "),16,"Karla, sans-serif")>Tt&&(Rt.pop(),Wt.text(Rt.join(" ")),jt<2&&(Rt=[wt],Wt=Ct.append("tspan").attr("x",Nt).attr("y",Zt).attr("dy",1.2*++jt+ne+"em").text(wt)))})}function pt(Ct){var Tt=Ct[Q];mt.length?Tt=function(Nt){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mt;return gt.map(function(wt){return Nt.filter(function(Rt){return Rt.name===wt})[0]})}(Tt):Tt.length&&Tt[0].name&&(Tt=function(Nt){return Nt.map(function(gt){return gt}).sort(function(gt,wt){return gt.name>wt.name?1:gt.name===wt.name?0:-1})}(Tt)),E.selectAll("text").remove(),E.selectAll("circle").remove(),it(Ct),v=48,x=37,g=0,Tt.forEach(W)}function xt(Ct,Tt,Nt){pt(Ct),lt(0,Tt,Nt)}return D.axisTimeCombinations=q,D.dateFormat=function(Ct){return arguments.length?(nt=Ct,this):nt||st},D.dateCustomFormat=function(Ct){return arguments.length?(dt=Ct,this):dt},D.dateLabel=function(Ct){return arguments.length?(z=Ct,this):z},D.hide=function(){return ot.style("visibility","hidden"),this},D.locale=function(Ct){return arguments.length?(rt=Ct,this):rt},D.nameLabel=function(Ct){return arguments.length?(k=Ct,this):k},D.numberFormat=function(Ct){return arguments.length?(Et=Ct,this):Et},D.valueFormatter=function(Ct){return arguments.length?(Mt=Ct,this):Mt},D.shouldShowDateInTitle=function(Ct){return arguments.length?(_=Ct,this):_},D.show=function(){return ot.style("visibility","visible"),this},D.title=function(Ct){return arguments.length?(s=Ct,this):s},D.tooltipOffset=function(Ct){return arguments.length?(o=Ct,this):o},D.topicsOrder=function(Ct){return arguments.length?(mt=Ct,this):mt},D.topicLabel=function(Ct){return arguments.length?(Q=Ct,this):Q},D.update=function(Ct,Tt,Nt){var gt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return b=Tt,xt(Ct,Nt,gt),this},D.valueLabel=function(Ct){return arguments.length?(T=Ct,this):T},D}}.call(ht,j,ht,ue))===void 0||(ue.exports=_t)}])})},3224:(We,ue,ht)=>{"use strict";ht.r(ue),ht.d(ue,{FormatSpecifier:()=>nm,active:()=>gy,arc:()=>vC,area:()=>xC,areaRadial:()=>o2,ascending:()=>d.V_,autoType:()=>Hp,axisBottom:()=>f,axisLeft:()=>b,axisRight:()=>l,axisTop:()=>p,bisect:()=>d.h1,bisectLeft:()=>d.ah,bisectRight:()=>d.Jj,bisector:()=>d.yl,blob:()=>Ag,brush:()=>lg,brushSelection:()=>Ls,brushX:()=>yy,brushY:()=>Jl,buffer:()=>Oy,chord:()=>Lp,clientPoint:()=>In,cluster:()=>$5,color:()=>fo,contourDensity:()=>Rx,contours:()=>vc,create:()=>lA,creator:()=>dr,cross:()=>d.$A,csv:()=>jl,csvFormat:()=>Ey,csvFormatBody:()=>Cy,csvFormatRow:()=>xa,csvFormatRows:()=>Fs,csvFormatValue:()=>bc,csvParse:()=>Rl,csvParseRows:()=>Bs,cubehelix:()=>Pl,curveBasis:()=>TC,curveBasisClosed:()=>PA,curveBasisOpen:()=>OA,curveBundle:()=>NA,curveCardinal:()=>DA,curveCardinalClosed:()=>oO,curveCardinalOpen:()=>RA,curveCatmullRom:()=>OC,curveCatmullRomClosed:()=>LA,curveCatmullRomOpen:()=>IA,curveLinear:()=>x1,curveLinearClosed:()=>jA,curveMonotoneX:()=>BA,curveMonotoneY:()=>FA,curveNatural:()=>zA,curveStep:()=>zC,curveStepAfter:()=>HC,curveStepBefore:()=>UC,customEvent:()=>Xt,descending:()=>d.rG,deviation:()=>d.KS,dispatch:()=>dt,drag:()=>Sy,dragDisable:()=>zn,dragEnable:()=>pr,dsv:()=>Dy,dsvFormat:()=>oa,easeBack:()=>Ll,easeBackIn:()=>Py,easeBackInOut:()=>Ll,easeBackOut:()=>Ja,easeBounce:()=>lh,easeBounceIn:()=>Ss,easeBounceInOut:()=>Fx,easeBounceOut:()=>lh,easeCircle:()=>sh,easeCircleIn:()=>Sg,easeCircleInOut:()=>sh,easeCircleOut:()=>Cd,easeCubic:()=>Za,easeCubicIn:()=>Au,easeCubicInOut:()=>Za,easeCubicOut:()=>Ia,easeElastic:()=>kg,easeElasticIn:()=>au,easeElasticInOut:()=>su,easeElasticOut:()=>kg,easeExp:()=>Ga,easeExpIn:()=>_g,easeExpInOut:()=>Ga,easeExpOut:()=>wc,easeLinear:()=>bf,easePoly:()=>Wp,easePolyIn:()=>Sd,easePolyInOut:()=>Wp,easePolyOut:()=>wg,easeQuad:()=>wf,easeQuadIn:()=>Vp,easeQuadInOut:()=>wf,easeQuadOut:()=>Uu,easeSin:()=>Ed,easeSinIn:()=>Ty,easeSinInOut:()=>Ed,easeSinOut:()=>ky,entries:()=>ja,event:()=>_r,extent:()=>d.Xx,forceCenter:()=>ch,forceCollide:()=>Ry,forceLink:()=>Og,forceManyBody:()=>Ux,forceRadial:()=>Hx,forceSimulation:()=>Ng,forceX:()=>jy,forceY:()=>By,format:()=>dh,formatDefaultLocale:()=>rm,formatLocale:()=>Cf,formatPrefix:()=>Od,formatSpecifier:()=>Wu,geoAlbers:()=>f3,geoAlbersUsa:()=>Nb,geoArea:()=>Hy,geoAzimuthalEqualArea:()=>uS,geoAzimuthalEqualAreaRaw:()=>lS,geoAzimuthalEquidistant:()=>d3,geoAzimuthalEquidistantRaw:()=>Kg,geoBounds:()=>Cs,geoCentroid:()=>VT,geoCircle:()=>WT,geoClipAntimeridian:()=>nv,geoClipCircle:()=>GT,geoClipExtent:()=>$T,geoClipRectangle:()=>rv,geoConicConformal:()=>p3,geoConicConformalRaw:()=>cS,geoConicEqualArea:()=>xv,geoConicEqualAreaRaw:()=>oS,geoConicEquidistant:()=>m3,geoConicEquidistantRaw:()=>wv,geoContains:()=>t3,geoDistance:()=>av,geoEqualEarth:()=>dS,geoEqualEarthRaw:()=>fS,geoEquirectangular:()=>hS,geoEquirectangularRaw:()=>bv,geoGnomonic:()=>y3,geoGnomonicRaw:()=>Jg,geoGraticule:()=>Y_,geoGraticule10:()=>e3,geoIdentity:()=>pS,geoInterpolate:()=>n3,geoLength:()=>Ug,geoMercator:()=>Y5,geoMercatorRaw:()=>Zg,geoNaturalEarth1:()=>gS,geoNaturalEarth1Raw:()=>mS,geoOrthographic:()=>v3,geoOrthographicRaw:()=>t0,geoPath:()=>s3,geoProjection:()=>wh,geoProjectionMutator:()=>yv,geoRotation:()=>N_,geoStereographic:()=>G5,geoStereographicRaw:()=>Rb,geoStream:()=>Wr,geoTransform:()=>gv,geoTransverseMercator:()=>Lb,geoTransverseMercatorRaw:()=>Ev,gray:()=>Jo,hcl:()=>gc,hierarchy:()=>ES,histogram:()=>d.JW,hsl:()=>ha,html:()=>wa,image:()=>Oa,interpolate:()=>cn,interpolateArray:()=>ac,interpolateBasis:()=>Eu,interpolateBasisClosed:()=>ql,interpolateBlues:()=>Jk,interpolateBrBG:()=>Ic,interpolateBuGn:()=>cl,interpolateBuPu:()=>S0,interpolateCividis:()=>lC,interpolateCool:()=>nA,interpolateCubehelix:()=>$3,interpolateCubehelixDefault:()=>eA,interpolateCubehelixLong:()=>l0,interpolateDate:()=>sc,interpolateDiscrete:()=>LS,interpolateGnBu:()=>E0,interpolateGreens:()=>sC,interpolateGreys:()=>rO,interpolateHcl:()=>G3,interpolateHclLong:()=>X3,interpolateHsl:()=>V3,interpolateHslLong:()=>W3,interpolateHue:()=>IS,interpolateInferno:()=>sA,interpolateLab:()=>Y3,interpolateMagma:()=>fC,interpolateNumber:()=>gs,interpolateNumberArray:()=>$h,interpolateObject:()=>Yc,interpolateOrRd:()=>QE,interpolateOranges:()=>Zw,interpolatePRGn:()=>Ww,interpolatePiYG:()=>Yw,interpolatePlasma:()=>g1,interpolatePuBu:()=>JE,interpolatePuBuGn:()=>Gk,interpolatePuOr:()=>Yk,interpolatePuRd:()=>Xk,interpolatePurples:()=>tA,interpolateRainbow:()=>cC,interpolateRdBu:()=>h1,interpolateRdGy:()=>w0,interpolateRdPu:()=>$k,interpolateRdYlBu:()=>qE,interpolateRdYlGn:()=>_0,interpolateReds:()=>Bc,interpolateRgb:()=>Mu,interpolateRgbBasis:()=>qf,interpolateRgbBasisClosed:()=>Wc,interpolateRound:()=>Qb,interpolateSinebow:()=>iA,interpolateSpectral:()=>mu,interpolateString:()=>$e,interpolateTransformCss:()=>wp,interpolateTransformSvg:()=>Qm,interpolateTurbo:()=>oA,interpolateViridis:()=>aA,interpolateWarm:()=>uC,interpolateYlGn:()=>Kk,interpolateYlGnBu:()=>qk,interpolateYlOrBr:()=>Zk,interpolateYlOrRd:()=>Qk,interpolateZoom:()=>Nv,interrupt:()=>Tu,interval:()=>qC,isoFormat:()=>$A,isoParse:()=>k1,json:()=>ts,keys:()=>Bu,lab:()=>ia,lch:()=>Jc,line:()=>r2,lineRadial:()=>bC,linkHorizontal:()=>SA,linkRadial:()=>EA,linkVertical:()=>wC,local:()=>pC,map:()=>eu,matcher:()=>ot,max:()=>d.T9,mean:()=>d.i2,median:()=>d.JZ,merge:()=>d.Am,min:()=>d.jk,mouse:()=>Tr,namespace:()=>tn,namespaces:()=>Ye,nest:()=>Bp,now:()=>Zh,pack:()=>N3,packEnclose:()=>kS,packSiblings:()=>Gb,pairs:()=>d.AS,partition:()=>D3,path:()=>Lu,permute:()=>d.Ny,pie:()=>gA,piecewise:()=>q3,pointRadial:()=>Pm,polygonArea:()=>_h,polygonCentroid:()=>Z3,polygonContains:()=>jS,polygonHull:()=>Eh,polygonLength:()=>eO,precisionFixed:()=>Yx,precisionPrefix:()=>im,precisionRound:()=>Gx,quadtree:()=>Na,quantile:()=>d.YV,quantize:()=>K3,radialArea:()=>o2,radialLine:()=>bC,randomBates:()=>BS,randomExponential:()=>ek,randomIrwinHall:()=>tk,randomLogNormal:()=>J3,randomNormal:()=>ew,randomUniform:()=>Q3,range:()=>d.y1,rgb:()=>ao,ribbon:()=>fg,scaleBand:()=>nw,scaleDiverging:()=>VE,scaleDivergingLog:()=>Bw,scaleDivergingPow:()=>Fw,scaleDivergingSqrt:()=>zw,scaleDivergingSymlog:()=>WE,scaleIdentity:()=>u0,scaleImplicit:()=>Mh,scaleLinear:()=>US,scaleLog:()=>hw,scaleOrdinal:()=>_m,scalePoint:()=>rw,scalePow:()=>Fv,scaleQuantile:()=>lk,scaleQuantize:()=>$S,scaleSequential:()=>zE,scaleSequentialLog:()=>Lw,scaleSequentialPow:()=>jw,scaleSequentialQuantile:()=>HE,scaleSequentialSqrt:()=>UE,scaleSequentialSymlog:()=>Iw,scaleSqrt:()=>XS,scaleSymlog:()=>WS,scaleThreshold:()=>Th,scaleTime:()=>a1,scaleUtc:()=>Rw,scan:()=>d.SQ,schemeAccent:()=>pu,schemeBlues:()=>aC,schemeBrBG:()=>GE,schemeBuGn:()=>Yl,schemeBuPu:()=>f1,schemeCategory10:()=>qd,schemeDark2:()=>Uw,schemeGnBu:()=>Zd,schemeGreens:()=>$w,schemeGreys:()=>qw,schemeOrRd:()=>ZE,schemeOranges:()=>Qd,schemePRGn:()=>Oh,schemePaired:()=>Kd,schemePastel1:()=>u1,schemePastel2:()=>Mm,schemePiYG:()=>jc,schemePuBu:()=>Xw,schemePuBuGn:()=>km,schemePuOr:()=>XE,schemePuRd:()=>tC,schemePurples:()=>C0,schemeRdBu:()=>c1,schemeRdGy:()=>Gw,schemeRdPu:()=>eC,schemeRdYlBu:()=>$E,schemeRdYlGn:()=>KE,schemeReds:()=>Kw,schemeSet1:()=>Hw,schemeSet2:()=>YE,schemeSet3:()=>Tm,schemeSpectral:()=>Vs,schemeTableau10:()=>Vw,schemeYlGn:()=>rC,schemeYlGnBu:()=>nC,schemeYlOrBr:()=>iC,schemeYlOrRd:()=>oC,select:()=>rn,selectAll:()=>mC,selection:()=>He,selector:()=>Et,selectorAll:()=>Y,set:()=>ju,shuffle:()=>d.k4,stack:()=>VC,stackOffsetDiverging:()=>VA,stackOffsetExpand:()=>HA,stackOffsetNone:()=>Lf,stackOffsetSilhouette:()=>WA,stackOffsetWiggle:()=>WC,stackOrderAppearance:()=>g2,stackOrderAscending:()=>y2,stackOrderDescending:()=>XA,stackOrderInsideOut:()=>YC,stackOrderNone:()=>Dh,stackOrderReverse:()=>v2,stratify:()=>K5,style:()=>hn,sum:()=>d.cz,svg:()=>Xp,symbol:()=>AA,symbolCircle:()=>Om,symbolCross:()=>_1,symbolDiamond:()=>E1,symbolSquare:()=>gu,symbolStar:()=>SC,symbolTriangle:()=>EC,symbolWye:()=>CC,symbols:()=>MC,text:()=>Gp,thresholdFreedmanDiaconis:()=>d.c3,thresholdScott:()=>d.Ft,thresholdSturges:()=>d.zr,tickFormat:()=>aw,tickIncrement:()=>d.lq,tickStep:()=>d.sG,ticks:()=>d.Zc,timeDay:()=>Xv,timeDays:()=>eE,timeFormat:()=>Ow,timeFormatDefaultLocale:()=>$d,timeFormatLocale:()=>uE,timeFriday:()=>QS,timeFridays:()=>Ah,timeHour:()=>nE,timeHours:()=>hk,timeInterval:()=>es,timeMillisecond:()=>qv,timeMilliseconds:()=>ns,timeMinute:()=>fk,timeMinutes:()=>Sa,timeMonday:()=>f0,timeMondays:()=>ck,timeMonth:()=>dw,timeMonths:()=>pw,timeParse:()=>Nw,timeSaturday:()=>JS,timeSaturdays:()=>hu,timeSecond:()=>$v,timeSeconds:()=>xw,timeSunday:()=>h0,timeSundays:()=>Yv,timeThursday:()=>Vd,timeThursdays:()=>yw,timeTuesday:()=>Wv,timeTuesdays:()=>tE,timeWednesday:()=>mw,timeWednesdays:()=>gw,timeWeek:()=>h0,timeWeeks:()=>Yv,timeYear:()=>Af,timeYears:()=>uk,timeout:()=>tf,timer:()=>Zf,timerFlush:()=>lc,touch:()=>yr,touches:()=>Jw,transition:()=>fc,transpose:()=>d.mg,tree:()=>Yi,treemap:()=>a0,treemapBinary:()=>F3,treemapDice:()=>r0,treemapResquarify:()=>Zb,treemapSlice:()=>Kb,treemapSliceDice:()=>pi,treemapSquarify:()=>Pv,tsv:()=>no,tsvFormat:()=>My,tsvFormatBody:()=>ih,tsvFormatRow:()=>ba,tsvFormatRows:()=>xf,tsvFormatValue:()=>Up,tsvParse:()=>_d,tsvParseRows:()=>xg,utcDay:()=>Zv,utcDays:()=>dk,utcFormat:()=>g0,utcFriday:()=>aE,utcFridays:()=>Ju,utcHour:()=>jE,utcHours:()=>Vk,utcMillisecond:()=>qv,utcMilliseconds:()=>ns,utcMinute:()=>FE,utcMinutes:()=>Wk,utcMonday:()=>p0,utcMondays:()=>ww,utcMonth:()=>LE,utcMonths:()=>IE,utcParse:()=>r1,utcSaturday:()=>sE,utcSaturdays:()=>fu,utcSecond:()=>$v,utcSeconds:()=>xw,utcSunday:()=>d0,utcSundays:()=>bw,utcThursday:()=>Of,utcThursdays:()=>ul,utcTuesday:()=>iE,utcTuesdays:()=>Kv,utcWednesday:()=>oE,utcWednesdays:()=>lE,utcWeek:()=>d0,utcWeeks:()=>bw,utcYear:()=>Gd,utcYears:()=>pk,values:()=>ru,variance:()=>d.GV,version:()=>_t,voronoi:()=>sP,window:()=>zt,xml:()=>uh,zip:()=>d.yU,zoom:()=>fP,zoomIdentity:()=>F1,zoomTransform:()=>rM});var j="d3",_t="5.16.0",m="Data-Driven Documents",y=null,R="https://d3js.org",B="BSD-3-Clause",et={name:"Mike Bostock",url:"https://bost.ocks.org/mike"},K="dist/d3.node.js",J="dist/d3.min.js",q="dist/d3.min.js",Z="index.js",tt={type:"git",url:"https://github.com/d3/d3.git"},H=null,X={pretest:"rimraf dist && mkdir dist && json2module package.json > dist/package.js && rollup -c",test:"tape 'test/**/*-test.js'",prepublishOnly:"yarn test",postpublish:'git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3/dist/d3.js d3.v5.js && cp ../d3/dist/d3.min.js d3.v5.min.js && git add d3.v5.js d3.v5.min.js && git commit -m "d3 ${npm_package_version}" && git push && cd - && cd ../d3-bower && git pull && cp ../d3/LICENSE ../d3/README.md ../d3/dist/d3.js ../d3/dist/d3.min.js . && git add -- LICENSE README.md d3.js d3.min.js && git commit -m "${npm_package_version}" && git tag -am "${npm_package_version}" v${npm_package_version} && git push && git push --tags && cd - && zip -j dist/d3.zip -- LICENSE README.md API.md CHANGES.md dist/d3.js dist/d3.min.js'},F={json2module:"0.0",rimraf:"2",rollup:"1","rollup-plugin-ascii":"0.0","rollup-plugin-node-resolve":"3","rollup-plugin-terser":"5",tape:"4"},U={"d3-array":"1","d3-axis":"1","d3-brush":"1","d3-chord":"1","d3-collection":"1","d3-color":"1","d3-contour":"1","d3-dispatch":"1","d3-drag":"1","d3-dsv":"1","d3-ease":"1","d3-fetch":"1","d3-force":"1","d3-format":"1","d3-geo":"1","d3-hierarchy":"1","d3-interpolate":"1","d3-path":"1","d3-polygon":"1","d3-quadtree":"1","d3-random":"1","d3-scale":"2","d3-scale-chromatic":"1","d3-selection":"1","d3-shape":"1","d3-time":"1","d3-time-format":"2","d3-timer":"1","d3-transition":"1","d3-voronoi":"1","d3-zoom":"1"},d=ht(9685),L=Array.prototype.slice;function M(r){return r}var s=1,_=2,w=3,o=4,u=1e-6;function C(r){return"translate("+(r+.5)+",0)"}function E(r){return"translate(0,"+(r+.5)+")"}function S(r){return function(a){return+r(a)}}function v(r){var a=Math.max(0,r.bandwidth()-1)/2;return r.round()&&(a=Math.round(a)),function(A){return+r(A)+a}}function g(){return!this.__axis}function x(r,a){var A=[],V=null,ut=null,bt=6,Pt=6,Dt=3,Ft=r===s||r===o?-1:1,Vt=r===o||r===_?"x":"y",$t=r===s||r===w?C:E;function ie(Qt){var _e=V==null?a.ticks?a.ticks.apply(a,A):a.domain():V,Ne=ut==null?a.tickFormat?a.tickFormat.apply(a,A):M:ut,Pe=Math.max(bt,0)+Dt,je=a.range(),ze=+je[0]+.5,ln=+je[je.length-1]+.5,Je=(a.bandwidth?v:S)(a.copy()),sn=Qt.selection?Qt.selection():Qt,Pn=sn.selectAll(".domain").data([null]),Un=sn.selectAll(".tick").data(_e,a).order(),jn=Un.exit(),vr=Un.enter().append("g").attr("class","tick"),Qn=Un.select("line"),or=Un.select("text");Pn=Pn.merge(Pn.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Un=Un.merge(vr),Qn=Qn.merge(vr.append("line").attr("stroke","currentColor").attr(Vt+"2",Ft*bt)),or=or.merge(vr.append("text").attr("fill","currentColor").attr(Vt,Ft*Pe).attr("dy",r===s?"0em":r===w?"0.71em":"0.32em")),Qt!==sn&&(Pn=Pn.transition(Qt),Un=Un.transition(Qt),Qn=Qn.transition(Qt),or=or.transition(Qt),jn=jn.transition(Qt).attr("opacity",u).attr("transform",function(tr){return isFinite(tr=Je(tr))?$t(tr):this.getAttribute("transform")}),vr.attr("opacity",u).attr("transform",function(tr){var un=this.parentNode.__axis;return $t(un&&isFinite(un=un(tr))?un:Je(tr))})),jn.remove(),Pn.attr("d",r===o||r==_?Pt?"M"+Ft*Pt+","+ze+"H0.5V"+ln+"H"+Ft*Pt:"M0.5,"+ze+"V"+ln:Pt?"M"+ze+","+Ft*Pt+"V0.5H"+ln+"V"+Ft*Pt:"M"+ze+",0.5H"+ln),Un.attr("opacity",1).attr("transform",function(tr){return $t(Je(tr))}),Qn.attr(Vt+"2",Ft*bt),or.attr(Vt,Ft*Pe).text(Ne),sn.filter(g).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",r===_?"start":r===o?"end":"middle"),sn.each(function(){this.__axis=Je})}return ie.scale=function(Qt){return arguments.length?(a=Qt,ie):a},ie.ticks=function(){return A=L.call(arguments),ie},ie.tickArguments=function(Qt){return arguments.length?(A=Qt==null?[]:L.call(Qt),ie):A.slice()},ie.tickValues=function(Qt){return arguments.length?(V=Qt==null?null:L.call(Qt),ie):V&&V.slice()},ie.tickFormat=function(Qt){return arguments.length?(ut=Qt,ie):ut},ie.tickSize=function(Qt){return arguments.length?(bt=Pt=+Qt,ie):bt},ie.tickSizeInner=function(Qt){return arguments.length?(bt=+Qt,ie):bt},ie.tickSizeOuter=function(Qt){return arguments.length?(Pt=+Qt,ie):Pt},ie.tickPadding=function(Qt){return arguments.length?(Dt=+Qt,ie):Dt},ie}function p(r){return x(s,r)}function l(r){return x(_,r)}function f(r){return x(w,r)}function b(r){return x(o,r)}var z={value:function(){}};function T(){for(var r=0,a=arguments.length,A={},V;r=0&&(V=A.slice(ut+1),A=A.slice(0,ut)),A&&!a.hasOwnProperty(A))throw new Error("unknown type: "+A);return{type:A,name:V}})}k.prototype=T.prototype={constructor:k,on:function(r,a){var A=this._,V=Q(r+"",A),ut,bt=-1,Pt=V.length;if(arguments.length<2){for(;++bt0)for(var A=new Array(ut),V=0,ut,bt;V=Je&&(Je=ln+1);!(Pn=je[Je])&&++Je=0;)(Pt=V[ut])&&(bt&&Pt.compareDocumentPosition(bt)^4&&bt.parentNode.insertBefore(Pt,bt),bt=Pt);return this}function Rt(r){r||(r=jt);function a(ie,Qt){return ie&&Qt?r(ie.__data__,Qt.__data__):!ie-!Qt}for(var A=this._groups,V=A.length,ut=new Array(V),bt=0;bta?1:r>=a?0:NaN}function Zt(){var r=arguments[0];return arguments[0]=this,r.apply(null,arguments),this}function ne(){var r=new Array(this.size()),a=-1;return this.each(function(){r[++a]=this}),r}function Wt(){for(var r=this._groups,a=0,A=r.length;a=0&&(a=r.slice(0,A))!=="xmlns"&&(r=r.slice(A+1)),Ye.hasOwnProperty(a)?{space:Ye[a],local:r}:r}function on(r){return function(){this.removeAttribute(r)}}function Jt(r){return function(){this.removeAttributeNS(r.space,r.local)}}function Kt(r,a){return function(){this.setAttribute(r,a)}}function te(r,a){return function(){this.setAttributeNS(r.space,r.local,a)}}function Ot(r,a){return function(){var A=a.apply(this,arguments);A==null?this.removeAttribute(r):this.setAttribute(r,A)}}function Bt(r,a){return function(){var A=a.apply(this,arguments);A==null?this.removeAttributeNS(r.space,r.local):this.setAttributeNS(r.space,r.local,A)}}function Ut(r,a){var A=tn(r);if(arguments.length<2){var V=this.node();return A.local?V.getAttributeNS(A.space,A.local):V.getAttribute(A)}return this.each((a==null?A.local?Jt:on:typeof a=="function"?A.local?Bt:Ot:A.local?te:Kt)(A,a))}function zt(r){return r.ownerDocument&&r.ownerDocument.defaultView||r.document&&r||r.defaultView}function ce(r){return function(){this.style.removeProperty(r)}}function we(r,a,A){return function(){this.style.setProperty(r,a,A)}}function ye(r,a,A){return function(){var V=a.apply(this,arguments);V==null?this.style.removeProperty(r):this.style.setProperty(r,V,A)}}function qe(r,a,A){return arguments.length>1?this.each((a==null?ce:typeof a=="function"?ye:we)(r,a,A==null?"":A)):hn(this.node(),r)}function hn(r,a){return r.style.getPropertyValue(a)||zt(r).getComputedStyle(r,null).getPropertyValue(a)}function yn(r){return function(){delete this[r]}}function Nn(r,a){return function(){this[r]=a}}function mn(r,a){return function(){var A=a.apply(this,arguments);A==null?delete this[r]:this[r]=A}}function Mn(r,a){return arguments.length>1?this.each((a==null?yn:typeof a=="function"?mn:Nn)(r,a)):this.node()[r]}function Kn(r){return r.trim().split(/^|\s+/)}function fr(r){return r.classList||new ge(r)}function ge(r){this._node=r,this._names=Kn(r.getAttribute("class")||"")}ge.prototype={add:function(r){var a=this._names.indexOf(r);a<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var a=this._names.indexOf(r);a>=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};function Ie(r,a){for(var A=fr(r),V=-1,ut=a.length;++V=0&&(A=a.slice(V+1),a=a.slice(0,V)),{type:a,name:A}})}function Qe(r){return function(){var a=this.__on;if(a){for(var A=0,V=-1,ut=a.length,bt;A>8&15|a>>4&240,a>>4&15|a&240,(a&15)<<4|a&15,1):A===8?wo(a>>24&255,a>>16&255,a>>8&255,(a&255)/255):A===4?wo(a>>12&15|a>>8&240,a>>8&15|a>>4&240,a>>4&15|a&240,((a&15)<<4|a&15)/255):null):(a=Pi.exec(r))?new Mi(a[1],a[2],a[3],1):(a=yi.exec(r))?new Mi(a[1]*255/100,a[2]*255/100,a[3]*255/100,1):(a=Oi.exec(r))?wo(a[1],a[2],a[3],a[4]):(a=Li.exec(r))?wo(a[1]*255/100,a[2]*255/100,a[3]*255/100,a[4]):(a=Ni.exec(r))?yo(a[1],a[2]/100,a[3]/100,1):(a=Vi.exec(r))?yo(a[1],a[2]/100,a[3]/100,a[4]):eo.hasOwnProperty(r)?ro(eo[r]):r==="transparent"?new Mi(NaN,NaN,NaN,0):null}function ro(r){return new Mi(r>>16&255,r>>8&255,r&255,1)}function wo(r,a,A,V){return V<=0&&(r=a=A=NaN),new Mi(r,a,A,V)}function Go(r){return r instanceof lr||(r=fo(r)),r?(r=r.rgb(),new Mi(r.r,r.g,r.b,r.opacity)):new Mi}function ao(r,a,A,V){return arguments.length===1?Go(r):new Mi(r,a,A,V==null?1:V)}function Mi(r,a,A,V){this.r=+r,this.g=+a,this.b=+A,this.opacity=+V}ir(Mi,ao,Xn(lr,{brighter:function(r){return r=r==null?wr:Math.pow(wr,r),new Mi(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=r==null?Cr:Math.pow(Cr,r),new Mi(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ea,formatHex:ea,formatRgb:na,toString:na}));function ea(){return"#"+Co(this.r)+Co(this.g)+Co(this.b)}function na(){var r=this.opacity;return r=isNaN(r)?1:Math.max(0,Math.min(1,r)),(r===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(r===1?")":", "+r+")")}function Co(r){return r=Math.max(0,Math.min(255,Math.round(r)||0)),(r<16?"0":"")+r.toString(16)}function yo(r,a,A,V){return V<=0?r=a=A=NaN:A<=0||A>=1?r=a=NaN:a<=0&&(r=NaN),new Ta(r,a,A,V)}function Zo(r){if(r instanceof Ta)return new Ta(r.h,r.s,r.l,r.opacity);if(r instanceof lr||(r=fo(r)),!r)return new Ta;if(r instanceof Ta)return r;r=r.rgb();var a=r.r/255,A=r.g/255,V=r.b/255,ut=Math.min(a,A,V),bt=Math.max(a,A,V),Pt=NaN,Dt=bt-ut,Ft=(bt+ut)/2;return Dt?(a===bt?Pt=(A-V)/Dt+(A0&&Ft<1?0:Pt,new Ta(Pt,Dt,Ft,r.opacity)}function ha(r,a,A,V){return arguments.length===1?Zo(r):new Ta(r,a,A,V==null?1:V)}function Ta(r,a,A,V){this.h=+r,this.s=+a,this.l=+A,this.opacity=+V}ir(Ta,ha,Xn(lr,{brighter:function(r){return r=r==null?wr:Math.pow(wr,r),new Ta(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=r==null?Cr:Math.pow(Cr,r),new Ta(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+(this.h<0)*360,a=isNaN(r)||isNaN(this.s)?0:this.s,A=this.l,V=A+(A<.5?A:1-A)*a,ut=2*A-V;return new Mi(Su(r>=240?r-240:r+120,ut,V),Su(r,ut,V),Su(r<120?r+240:r-120,ut,V),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var r=this.opacity;return r=isNaN(r)?1:Math.max(0,Math.min(1,r)),(r===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(r===1?")":", "+r+")")}}));function Su(r,a,A){return(r<60?a+(A-a)*r/60:r<180?A:r<240?a+(A-a)*(240-r)/60:a)*255}function _l(r,a,A,V,ut){var bt=r*r,Pt=bt*r;return((1-3*r+3*bt-Pt)*a+(4-6*bt+3*Pt)*A+(1+3*r+3*bt-3*Pt)*V+Pt*ut)/6}function Eu(r){var a=r.length-1;return function(A){var V=A<=0?A=0:A>=1?(A=1,a-1):Math.floor(A*a),ut=r[V],bt=r[V+1],Pt=V>0?r[V-1]:2*ut-bt,Dt=V180||A<-180?A-360*Math.round(A/360):A):Cu(isNaN(r)?a:r)}function os(r){return(r=+r)==1?ra:function(a,A){return A-a?pp(a,A,r):Cu(isNaN(a)?A:a)}}function ra(r,a){var A=a-r;return A?Xh(r,A):Cu(isNaN(r)?a:r)}const Mu=function r(a){var A=os(a);function V(ut,bt){var Pt=A((ut=ao(ut)).r,(bt=ao(bt)).r),Dt=A(ut.g,bt.g),Ft=A(ut.b,bt.b),Vt=ra(ut.opacity,bt.opacity);return function($t){return ut.r=Pt($t),ut.g=Dt($t),ut.b=Ft($t),ut.opacity=Vt($t),ut+""}}return V.gamma=r,V}(1);function $f(r){return function(a){var A=a.length,V=new Array(A),ut=new Array(A),bt=new Array(A),Pt,Dt;for(Pt=0;PtA&&(bt=a.slice(A,bt),Dt[Pt]?Dt[Pt]+=bt:Dt[++Pt]=bt),(V=V[0])===(ut=ut[0])?Dt[Pt]?Dt[Pt]+=ut:Dt[++Pt]=ut:(Dt[++Pt]=null,Ft.push({i:Pt,x:gs(V,ut)})),A=Kf.lastIndex;return A=0&&r._call.call(null,a),r=r._next;--hi}function Jh(){as=(Va=La.now())+Kl,hi=Si=0;try{lc()}finally{hi=0,gp(),as=0}}function mp(){var r=La.now(),a=r-Va;a>Mo&&(Kl-=a,Va=r)}function gp(){for(var r,a=ka,A,V=1/0;a;)a._call?(V>a._time&&(V=a._time),r=a,a=a._next):(A=a._next,a._next=null,a=r?r._next=A:ka=A);_o=r,Ym(V)}function Ym(r){if(!hi){Si&&(Si=clearTimeout(Si));var a=r-as;a>24?(r<1/0&&(Si=setTimeout(Jh,r-La.now()-Kl)),wi&&(wi=clearInterval(wi))):(wi||(Va=La.now(),wi=setInterval(mp,Mo)),hi=1,ry(Jh))}}function tf(r,a,A){var V=new Qh;return a=a==null?0:+a,V.restart(function(ut){V.stop(),r(ut+a)},a,A),V}var Gm=dt("start","end","cancel","interrupt"),Xm=[],iy=0,$m=1,yp=2,qm=3,vx=4,vp=5,xp=6;function Qf(r,a,A,V,ut,bt){var Pt=r.__transition;if(!Pt)r.__transition={};else if(A in Pt)return;xx(r,A,{name:a,index:V,group:ut,on:Gm,tween:Xm,time:bt.time,delay:bt.delay,duration:bt.duration,ease:bt.ease,timer:null,state:iy})}function ys(r,a){var A=Aa(r,a);if(A.state>iy)throw new Error("too late; already scheduled");return A}function Xs(r,a){var A=Aa(r,a);if(A.state>qm)throw new Error("too late; already running");return A}function Aa(r,a){var A=r.__transition;if(!A||!(A=A[a]))throw new Error("transition not found");return A}function xx(r,a,A){var V=r.__transition,ut;V[a]=A,A.timer=Zf(bt,0,A.time);function bt(Vt){A.state=$m,A.timer.restart(Pt,A.delay,A.time),A.delay<=Vt&&Pt(Vt-A.delay)}function Pt(Vt){var $t,ie,Qt,_e;if(A.state!==$m)return Ft();for($t in V)if(_e=V[$t],_e.name===A.name){if(_e.state===qm)return tf(Pt);_e.state===vx?(_e.state=xp,_e.timer.stop(),_e.on.call("interrupt",r,r.__data__,_e.index,_e.group),delete V[$t]):+$typ&&V.state180?$t+=360:$t-Vt>180&&(Vt+=360),Qt.push({i:ie.push(ut(ie)+"rotate(",null,V)-2,x:gs(Vt,$t)})):$t&&ie.push(ut(ie)+"rotate("+$t+V)}function Dt(Vt,$t,ie,Qt){Vt!==$t?Qt.push({i:ie.push(ut(ie)+"skewX(",null,V)-2,x:gs(Vt,$t)}):$t&&ie.push(ut(ie)+"skewX("+$t+V)}function Ft(Vt,$t,ie,Qt,_e,Ne){if(Vt!==ie||$t!==Qt){var Pe=_e.push(ut(_e)+"scale(",null,",",null,")");Ne.push({i:Pe-4,x:gs(Vt,ie)},{i:Pe-2,x:gs($t,Qt)})}else(ie!==1||Qt!==1)&&_e.push(ut(_e)+"scale("+ie+","+Qt+")")}return function(Vt,$t){var ie=[],Qt=[];return Vt=r(Vt),$t=r($t),bt(Vt.translateX,Vt.translateY,$t.translateX,$t.translateY,ie,Qt),Pt(Vt.rotate,$t.rotate,ie,Qt),Dt(Vt.skewX,$t.skewX,ie,Qt),Ft(Vt.scaleX,Vt.scaleY,$t.scaleX,$t.scaleY,ie,Qt),Vt=$t=null,function(_e){for(var Ne=-1,Pe=Qt.length,je;++Ne=0&&(a=a.slice(0,A)),!a||a==="start"})}function fy(r,a,A){var V,ut,bt=Tx(a)?ys:Xs;return function(){var Pt=bt(this,r),Dt=Pt.on;Dt!==V&&(ut=(V=Dt).copy()).on(a,A),Pt.on=ut}}function _p(r,a){var A=this._id;return arguments.length<2?Aa(this.node(),A).on.on(r):this.each(fy(A,r,a))}function ad(r){return function(){var a=this.parentNode;for(var A in this.__transition)if(+A!==r)return;a&&a.removeChild(this)}}function Sp(){return this.on("end.remove",ad(this._id))}function Ep(r){var a=this._name,A=this._id;typeof r!="function"&&(r=Et(r));for(var V=this._groups,ut=V.length,bt=new Array(ut),Pt=0;Pt$m&&V.name===a)return new ss([[r]],Pp,a,+ut)}return null}function Op(r){return function(){return r}}function ud(r,a,A){this.target=r,this.type=a,this.selection=A}function Np(){_r.stopImmediatePropagation()}function Ml(){_r.preventDefault(),_r.stopImmediatePropagation()}var cd={name:"drag"},hd={name:"space"},Gc={name:"handle"},cf={name:"center"};function $s(r){return[+r[0],+r[1]]}function Ou(r){return[$s(r[0]),$s(r[1])]}function dc(r){return function(a){return yr(a,_r.touches,r)}}var Xc={name:"x",handles:["w","e"].map(Kc),input:function(r,a){return r==null?null:[[+r[0],a[0][1]],[+r[1],a[1][1]]]},output:function(r){return r&&[r[0][0],r[1][0]]}},$c={name:"y",handles:["n","s"].map(Kc),input:function(r,a){return r==null?null:[[a[0][0],+r[0]],[a[1][0],+r[1]]]},output:function(r){return r&&[r[0][1],r[1][1]]}},qs={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Kc),input:function(r){return r==null?null:Ou(r)},output:function(r){return r}},fa={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},pc={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Tl={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Nu={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},qc={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Kc(r){return{type:r}}function ag(){return!_r.ctrlKey&&!_r.button}function sg(){var r=this.ownerSVGElement||this;return r.hasAttribute("viewBox")?(r=r.viewBox.baseVal,[[r.x,r.y],[r.x+r.width,r.y+r.height]]):[[0,0],[r.width.baseVal.value,r.height.baseVal.value]]}function xs(){return navigator.maxTouchPoints||"ontouchstart"in this}function Wa(r){for(;!r.__brush;)if(!(r=r.parentNode))return;return r.__brush}function Lo(r){return r[0][0]===r[1][0]||r[0][1]===r[1][1]}function Ls(r){var a=r.__brush;return a?a.dim.output(a.selection):null}function yy(){return Dp(Xc)}function Jl(){return Dp($c)}function lg(){return Dp(qs)}function Dp(r){var a=sg,A=ag,V=xs,ut=!0,bt=dt("start","brush","end"),Pt=6,Dt;function Ft(je){var ze=je.property("__brush",Pe).selectAll(".overlay").data([Kc("overlay")]);ze.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",fa.overlay).merge(ze).each(function(){var Je=Wa(this).extent;rn(this).attr("x",Je[0][0]).attr("y",Je[0][1]).attr("width",Je[1][0]-Je[0][0]).attr("height",Je[1][1]-Je[0][1])}),je.selectAll(".selection").data([Kc("selection")]).enter().append("rect").attr("class","selection").attr("cursor",fa.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var ln=je.selectAll(".handle").data(r.handles,function(Je){return Je.type});ln.exit().remove(),ln.enter().append("rect").attr("class",function(Je){return"handle handle--"+Je.type}).attr("cursor",function(Je){return fa[Je.type]}),je.each(Vt).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",Qt).filter(V).on("touchstart.brush",Qt).on("touchmove.brush",_e).on("touchend.brush touchcancel.brush",Ne).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}Ft.move=function(je,ze){je.selection?je.on("start.brush",function(){$t(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){$t(this,arguments).end()}).tween("brush",function(){var ln=this,Je=ln.__brush,sn=$t(ln,arguments),Pn=Je.selection,Un=r.input(typeof ze=="function"?ze.apply(this,arguments):ze,Je.extent),jn=cn(Pn,Un);function vr(Qn){Je.selection=Qn===1&&Un===null?null:jn(Qn),Vt.call(ln),sn.brush()}return Pn!==null&&Un!==null?vr:vr(1)}):je.each(function(){var ln=this,Je=arguments,sn=ln.__brush,Pn=r.input(typeof ze=="function"?ze.apply(ln,Je):ze,sn.extent),Un=$t(ln,Je).beforestart();Tu(ln),sn.selection=Pn===null?null:Pn,Vt.call(ln),Un.start().brush().end()})},Ft.clear=function(je){Ft.move(je,null)};function Vt(){var je=rn(this),ze=Wa(this).selection;ze?(je.selectAll(".selection").style("display",null).attr("x",ze[0][0]).attr("y",ze[0][1]).attr("width",ze[1][0]-ze[0][0]).attr("height",ze[1][1]-ze[0][1]),je.selectAll(".handle").style("display",null).attr("x",function(ln){return ln.type[ln.type.length-1]==="e"?ze[1][0]-Pt/2:ze[0][0]-Pt/2}).attr("y",function(ln){return ln.type[0]==="s"?ze[1][1]-Pt/2:ze[0][1]-Pt/2}).attr("width",function(ln){return ln.type==="n"||ln.type==="s"?ze[1][0]-ze[0][0]+Pt:Pt}).attr("height",function(ln){return ln.type==="e"||ln.type==="w"?ze[1][1]-ze[0][1]+Pt:Pt})):je.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function $t(je,ze,ln){var Je=je.__brush.emitter;return Je&&(!ln||!Je.clean)?Je:new ie(je,ze,ln)}function ie(je,ze,ln){this.that=je,this.args=ze,this.state=je.__brush,this.active=0,this.clean=ln}ie.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return--this.active===0&&(delete this.state.emitter,this.emit("end")),this},emit:function(je){Xt(new ud(Ft,je,r.output(this.state.selection)),bt.apply,bt,[je,this.that,this.args])}};function Qt(){if(Dt&&!_r.touches||!A.apply(this,arguments))return;var je=this,ze=_r.target.__data__.type,ln=(ut&&_r.metaKey?ze="overlay":ze)==="selection"?cd:ut&&_r.altKey?cf:Gc,Je=r===$c?null:Nu[ze],sn=r===Xc?null:qc[ze],Pn=Wa(je),Un=Pn.extent,jn=Pn.selection,vr=Un[0][0],Qn,or,tr=Un[0][1],un,Wn,xr=Un[1][0],Hn,br,Zr=Un[1][1],Vr,oi,Di=0,Bi=0,Ko,No=Je&&sn&&ut&&_r.shiftKey,mo,ma,Gl=_r.touches?dc(_r.changedTouches[0].identifier):Tr,rc=Gl(je),Ws=rc,Gr=$t(je,arguments,!0).beforestart();ze==="overlay"?(jn&&(Ko=!0),Pn.selection=jn=[[Qn=r===$c?vr:rc[0],un=r===Xc?tr:rc[1]],[Hn=r===$c?xr:Qn,Vr=r===Xc?Zr:un]]):(Qn=jn[0][0],un=jn[0][1],Hn=jn[1][0],Vr=jn[1][1]),or=Qn,Wn=un,br=Hn,oi=Vr;var zi=rn(je).attr("pointer-events","none"),qi=zi.selectAll(".overlay").attr("cursor",fa[ze]);if(_r.touches)Gr.moved=ps,Gr.ended=Ps;else{var Dr=rn(_r.view).on("mousemove.brush",ps,!0).on("mouseup.brush",Ps,!0);ut&&Dr.on("keydown.brush",Ys,!0).on("keyup.brush",Lh,!0),zn(_r.view)}Np(),Tu(je),Vt.call(je),Gr.start();function ps(){var Os=Gl(je);No&&!mo&&!ma&&(Math.abs(Os[0]-Ws[0])>Math.abs(Os[1]-Ws[1])?ma=!0:mo=!0),Ws=Os,Ko=!0,Ml(),Zi()}function Zi(){var Os;switch(Di=Ws[0]-rc[0],Bi=Ws[1]-rc[1],ln){case hd:case cd:{Je&&(Di=Math.max(vr-Qn,Math.min(xr-Hn,Di)),or=Qn+Di,br=Hn+Di),sn&&(Bi=Math.max(tr-un,Math.min(Zr-Vr,Bi)),Wn=un+Bi,oi=Vr+Bi);break}case Gc:{Je<0?(Di=Math.max(vr-Qn,Math.min(xr-Qn,Di)),or=Qn+Di,br=Hn):Je>0&&(Di=Math.max(vr-Hn,Math.min(xr-Hn,Di)),or=Qn,br=Hn+Di),sn<0?(Bi=Math.max(tr-un,Math.min(Zr-un,Bi)),Wn=un+Bi,oi=Vr):sn>0&&(Bi=Math.max(tr-Vr,Math.min(Zr-Vr,Bi)),Wn=un,oi=Vr+Bi);break}case cf:{Je&&(or=Math.max(vr,Math.min(xr,Qn-Di*Je)),br=Math.max(vr,Math.min(xr,Hn+Di*Je))),sn&&(Wn=Math.max(tr,Math.min(Zr,un-Bi*sn)),oi=Math.max(tr,Math.min(Zr,Vr+Bi*sn)));break}}br0&&(Qn=or-Di),sn<0?Vr=oi-Bi:sn>0&&(un=Wn-Bi),ln=hd,qi.attr("cursor",fa.selection),Zi());break}default:return}Ml()}function Lh(){switch(_r.keyCode){case 16:{No&&(mo=ma=No=!1,Zi());break}case 18:{ln===cf&&(Je<0?Hn=br:Je>0&&(Qn=or),sn<0?Vr=oi:sn>0&&(un=Wn),ln=Gc,Zi());break}case 32:{ln===hd&&(_r.altKey?(Je&&(Hn=br-Di*Je,Qn=or+Di*Je),sn&&(Vr=oi-Bi*sn,un=Wn+Bi*sn),ln=cf):(Je<0?Hn=br:Je>0&&(Qn=or),sn<0?Vr=oi:sn>0&&(un=Wn),ln=Gc),qi.attr("cursor",fa[ze]),Zi());break}default:return}Ml()}}function _e(){$t(this,arguments).moved()}function Ne(){$t(this,arguments).ended()}function Pe(){var je=this.__brush||{selection:null};return je.extent=Ou(a.apply(this,arguments)),je.dim=r,je}return Ft.extent=function(je){return arguments.length?(a=typeof je=="function"?je:Op(Ou(je)),Ft):a},Ft.filter=function(je){return arguments.length?(A=typeof je=="function"?je:Op(!!je),Ft):A},Ft.touchable=function(je){return arguments.length?(V=typeof je=="function"?je:Op(!!je),Ft):V},Ft.handleSize=function(je){return arguments.length?(Pt=+je,Ft):Pt},Ft.keyModifiers=function(je){return arguments.length?(ut=!!je,Ft):ut},Ft.on=function(){var je=bt.on.apply(bt,arguments);return je===bt?Ft:je},Ft}var ug=Math.cos,fd=Math.sin,cg=Math.PI,Du=cg/2,hg=cg*2,Ax=Math.max;function Rp(r){return function(a,A){return r(a.source.value+a.target.value,A.source.value+A.target.value)}}function Lp(){var r=0,a=null,A=null,V=null;function ut(bt){var Pt=bt.length,Dt=[],Ft=(0,d.y1)(Pt),Vt=[],$t=[],ie=$t.groups=new Array(Pt),Qt=new Array(Pt*Pt),_e,Ne,Pe,je,ze,ln;for(_e=0,ze=-1;++zetu)if(!(Math.abs($t*Dt-Ft*Vt)>tu)||!ut)this._+="L"+(this._x1=r)+","+(this._y1=a);else{var Qt=A-bt,_e=V-Pt,Ne=Dt*Dt+Ft*Ft,Pe=Qt*Qt+_e*_e,je=Math.sqrt(Ne),ze=Math.sqrt(ie),ln=ut*Math.tan((Ru-Math.acos((Ne+ie-Pe)/(2*je*ze)))/2),Je=ln/ze,sn=ln/je;Math.abs(Je-1)>tu&&(this._+="L"+(r+Je*Vt)+","+(a+Je*$t)),this._+="A"+ut+","+ut+",0,0,"+ +($t*Qt>Vt*_e)+","+(this._x1=r+sn*Dt)+","+(this._y1=a+sn*Ft)}},arc:function(r,a,A,V,ut,bt){r=+r,a=+a,A=+A,bt=!!bt;var Pt=A*Math.cos(V),Dt=A*Math.sin(V),Ft=r+Pt,Vt=a+Dt,$t=1^bt,ie=bt?V-ut:ut-V;if(A<0)throw new Error("negative radius: "+A);this._x1===null?this._+="M"+Ft+","+Vt:(Math.abs(this._x1-Ft)>tu||Math.abs(this._y1-Vt)>tu)&&(this._+="L"+Ft+","+Vt),A&&(ie<0&&(ie=ie%dd+dd),ie>Ip?this._+="A"+A+","+A+",0,1,"+$t+","+(r-Pt)+","+(a-Dt)+"A"+A+","+A+",0,1,"+$t+","+(this._x1=Ft)+","+(this._y1=Vt):ie>tu&&(this._+="A"+A+","+A+",0,"+ +(ie>=Ru)+","+$t+","+(this._x1=r+A*Math.cos(ut))+","+(this._y1=a+A*Math.sin(ut))))},rect:function(r,a,A,V){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+a)+"h"+ +A+"v"+ +V+"h"+-A+"Z"},toString:function(){return this._}};const Lu=jp;function Gn(r){return r.source}function xy(r){return r.target}function ff(r){return r.radius}function Ks(r){return r.startAngle}function Zc(r){return r.endAngle}function fg(){var r=Gn,a=xy,A=ff,V=Ks,ut=Zc,bt=null;function Pt(){var Dt,Ft=vy.call(arguments),Vt=r.apply(this,Ft),$t=a.apply(this,Ft),ie=+A.apply(this,(Ft[0]=Vt,Ft)),Qt=V.apply(this,Ft)-Du,_e=ut.apply(this,Ft)-Du,Ne=ie*ug(Qt),Pe=ie*fd(Qt),je=+A.apply(this,(Ft[0]=$t,Ft)),ze=V.apply(this,Ft)-Du,ln=ut.apply(this,Ft)-Du;if(bt||(bt=Dt=Lu()),bt.moveTo(Ne,Pe),bt.arc(0,0,ie,Qt,_e),(Qt!==ze||_e!==ln)&&(bt.quadraticCurveTo(0,0,je*ug(ze),je*fd(ze)),bt.arc(0,0,je,ze,ln)),bt.quadraticCurveTo(0,0,Ne,Pe),bt.closePath(),Dt)return bt=null,Dt+""||null}return Pt.radius=function(Dt){return arguments.length?(A=typeof Dt=="function"?Dt:hf(+Dt),Pt):A},Pt.startAngle=function(Dt){return arguments.length?(V=typeof Dt=="function"?Dt:hf(+Dt),Pt):V},Pt.endAngle=function(Dt){return arguments.length?(ut=typeof Dt=="function"?Dt:hf(+Dt),Pt):ut},Pt.source=function(Dt){return arguments.length?(r=Dt,Pt):r},Pt.target=function(Dt){return arguments.length?(a=Dt,Pt):a},Pt.context=function(Dt){return arguments.length?(bt=Dt==null?null:Dt,Pt):bt},Pt}var Ar="$";function Zs(){}Zs.prototype=Iu.prototype={constructor:Zs,has:function(r){return Ar+r in this},get:function(r){return this[Ar+r]},set:function(r,a){return this[Ar+r]=a,this},remove:function(r){var a=Ar+r;return a in this&&delete this[a]},clear:function(){for(var r in this)r[0]===Ar&&delete this[r]},keys:function(){var r=[];for(var a in this)a[0]===Ar&&r.push(a.slice(1));return r},values:function(){var r=[];for(var a in this)a[0]===Ar&&r.push(this[a]);return r},entries:function(){var r=[];for(var a in this)a[0]===Ar&&r.push({key:a.slice(1),value:this[a]});return r},size:function(){var r=0;for(var a in this)a[0]===Ar&&++r;return r},empty:function(){for(var r in this)if(r[0]===Ar)return!1;return!0},each:function(r){for(var a in this)a[0]===Ar&&r(this[a],a.slice(1),this)}};function Iu(r,a){var A=new Zs;if(r instanceof Zs)r.each(function(Dt,Ft){A.set(Ft,Dt)});else if(Array.isArray(r)){var V=-1,ut=r.length,bt;if(a==null)for(;++V=r.length)return A!=null&&Dt.sort(A),V!=null?V(Dt):Dt;for(var ie=-1,Qt=Dt.length,_e=r[Ft++],Ne,Pe,je=eu(),ze,ln=Vt();++ier.length)return Dt;var Vt,$t=a[Ft-1];return V!=null&&Ft>=r.length?Vt=Dt.entries():(Vt=[],Dt.each(function(ie,Qt){Vt.push({key:Qt,values:Pt(ie,Ft)})})),$t!=null?Vt.sort(function(ie,Qt){return $t(ie.key,Qt.key)}):Vt}return ut={object:function(Dt){return bt(Dt,0,Po,Qa)},map:function(Dt){return bt(Dt,0,pd,df)},entries:function(Dt){return Pt(bt(Dt,0,pd,df),0)},key:function(Dt){return r.push(Dt),ut},sortKeys:function(Dt){return a[r.length-1]=Dt,ut},sortValues:function(Dt){return A=Dt,ut},rollup:function(Dt){return V=Dt,ut}}}function Po(){return{}}function Qa(r,a,A){r[a]=A}function pd(){return eu()}function df(r,a,A){r.set(a,A)}function pf(){}var Qc=eu.prototype;pf.prototype=nu.prototype={constructor:pf,has:Qc.has,add:function(r){return r+="",this[Ar+r]=r,this},remove:Qc.remove,clear:Qc.clear,values:Qc.keys,size:Qc.size,empty:Qc.empty,each:Qc.each};function nu(r,a){var A=new pf;if(r instanceof pf)r.each(function(bt){A.add(bt)});else if(r){var V=-1,ut=r.length;if(a==null)for(;++Vgf?Math.pow(r,.3333333333333333):r/bs+kl}function Wi(r){return r>da?r*r*r:bs*(r-kl)}function Io(r){return 255*(r<=.0031308?12.92*r:1.055*Math.pow(r,.4166666666666667)-.055)}function Is(r){return(r/=255)<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function po(r){if(r instanceof js)return new js(r.h,r.c,r.l,r.opacity);if(r instanceof Oo||(r=Fu(r)),r.a===0&&r.b===0)return new js(NaN,0V!=_e>V&&A<(Qt-Vt)*(V-$t)/(_e-$t)+Vt&&(ut=-ut)}return ut}function Pa(r,a,A){var V;return wy(r,a,A)&&dg(r[V=+(r[0]===a[0])],A[V],a[V])}function wy(r,a,A){return(a[0]-r[0])*(A[1]-r[1])===(A[0]-r[0])*(a[1]-r[1])}function dg(r,a,A){return r<=a&&a<=A||A<=a&&a<=r}function zp(){}var Nl=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function vc(){var r=1,a=1,A=d.zr,V=Ft;function ut(Vt){var $t=A(Vt);if(Array.isArray($t))$t=$t.slice().sort(xd);else{var ie=(0,d.Xx)(Vt),Qt=ie[0],_e=ie[1];$t=(0,d.sG)(Qt,_e,$t),$t=(0,d.y1)(Math.floor(Qt/$t)*$t,Math.floor(_e/$t)*$t,$t)}return $t.map(function(Ne){return bt(Vt,Ne)})}function bt(Vt,$t){var ie=[],Qt=[];return Pt(Vt,$t,function(_e){V(_e,Vt,$t),bd(_e)>0?ie.push([_e]):Qt.push(_e)}),Qt.forEach(function(_e){for(var Ne=0,Pe=ie.length,je;Ne=$t,Nl[ze<<1].forEach(sn);++Ne=$t,Nl[je|ze<<1].forEach(sn);for(Nl[ze<<0].forEach(sn);++Pe=$t,ln=Vt[Pe*r]>=$t,Nl[ze<<1|ln<<2].forEach(sn);++Ne=$t,Je=ln,ln=Vt[Pe*r+Ne+1]>=$t,Nl[je|ze<<1|ln<<2|Je<<3].forEach(sn);Nl[ze|ln<<3].forEach(sn)}for(Ne=-1,ln=Vt[Pe*r]>=$t,Nl[ln<<2].forEach(sn);++Ne=$t,Nl[ln<<2|Je<<3].forEach(sn);Nl[ln<<3].forEach(sn);function sn(Pn){var Un=[Pn[0][0]+Ne,Pn[0][1]+Pe],jn=[Pn[1][0]+Ne,Pn[1][1]+Pe],vr=Dt(Un),Qn=Dt(jn),or,tr;(or=_e[vr])?(tr=Qt[Qn])?(delete _e[or.end],delete Qt[tr.start],or===tr?(or.ring.push(jn),ie(or.ring)):Qt[or.start]=_e[tr.end]={start:or.start,end:tr.end,ring:or.ring.concat(tr.ring)}):(delete _e[or.end],or.ring.push(jn),_e[or.end=Qn]=or):(or=Qt[Qn])?(tr=_e[vr])?(delete Qt[or.start],delete _e[tr.end],or===tr?(or.ring.push(jn),ie(or.ring)):Qt[tr.start]=_e[or.end]={start:tr.start,end:or.end,ring:tr.ring.concat(or.ring)}):(delete Qt[or.start],or.ring.unshift(Un),Qt[or.start=vr]=or):Qt[vr]=_e[Qn]={start:vr,end:Qn,ring:[Un,jn]}}}function Dt(Vt){return Vt[0]*2+Vt[1]*(r+1)*4}function Ft(Vt,$t,ie){Vt.forEach(function(Qt){var _e=Qt[0],Ne=Qt[1],Pe=_e|0,je=Ne|0,ze,ln=$t[je*r+Pe];_e>0&&_e0&&Ne0)||!(ie>0))throw new Error("invalid size");return r=$t,a=ie,ut},ut.thresholds=function(Vt){return arguments.length?(A=typeof Vt=="function"?Vt:Array.isArray(Vt)?Ol(vd.call(Vt)):Ol(Vt),ut):A},ut.smooth=function(Vt){return arguments.length?(V=Vt?Ft:zp,ut):V===Ft},ut}function nh(r,a,A){for(var V=r.width,ut=r.height,bt=(A<<1)+1,Pt=0;Pt=A&&(Dt>=bt&&(Ft-=r.data[Dt-bt+Pt*V]),a.data[Dt-A+Pt*V]=Ft/Math.min(Dt+1,V-1+bt-Dt,bt))}function pg(r,a,A){for(var V=r.width,ut=r.height,bt=(A<<1)+1,Pt=0;Pt=A&&(Dt>=bt&&(Ft-=r.data[Pt+(Dt-bt)*V]),a.data[Pt+(Dt-A)*V]=Ft/Math.min(Dt+1,ut-1+bt-Dt,bt))}function Nx(r){return r[0]}function _y(r){return r[1]}function Dx(){return 1}function Rx(){var r=Nx,a=_y,A=Dx,V=960,ut=500,bt=20,Pt=2,Dt=bt*3,Ft=V+Dt*2>>Pt,Vt=ut+Dt*2>>Pt,$t=Ol(20);function ie(ze){var ln=new Float32Array(Ft*Vt),Je=new Float32Array(Ft*Vt);ze.forEach(function(Un,jn,vr){var Qn=+r(Un,jn,vr)+Dt>>Pt,or=+a(Un,jn,vr)+Dt>>Pt,tr=+A(Un,jn,vr);Qn>=0&&Qn=0&&or>Pt),pg({width:Ft,height:Vt,data:Je},{width:Ft,height:Vt,data:ln},bt>>Pt),nh({width:Ft,height:Vt,data:ln},{width:Ft,height:Vt,data:Je},bt>>Pt),pg({width:Ft,height:Vt,data:Je},{width:Ft,height:Vt,data:ln},bt>>Pt),nh({width:Ft,height:Vt,data:ln},{width:Ft,height:Vt,data:Je},bt>>Pt),pg({width:Ft,height:Vt,data:Je},{width:Ft,height:Vt,data:ln},bt>>Pt);var sn=$t(ln);if(!Array.isArray(sn)){var Pn=(0,d.T9)(ln);sn=(0,d.sG)(0,Pn,sn),sn=(0,d.y1)(0,Math.floor(Pn/sn)*sn,sn),sn.shift()}return vc().thresholds(sn).size([Ft,Vt])(ln).map(Qt)}function Qt(ze){return ze.value*=Math.pow(2,-2*Pt),ze.coordinates.forEach(_e),ze}function _e(ze){ze.forEach(Ne)}function Ne(ze){ze.forEach(Pe)}function Pe(ze){ze[0]=ze[0]*Math.pow(2,Pt)-Dt,ze[1]=ze[1]*Math.pow(2,Pt)-Dt}function je(){return Dt=bt*3,Ft=V+Dt*2>>Pt,Vt=ut+Dt*2>>Pt,ie}return ie.x=function(ze){return arguments.length?(r=typeof ze=="function"?ze:Ol(+ze),ie):r},ie.y=function(ze){return arguments.length?(a=typeof ze=="function"?ze:Ol(+ze),ie):a},ie.weight=function(ze){return arguments.length?(A=typeof ze=="function"?ze:Ol(+ze),ie):A},ie.size=function(ze){if(!arguments.length)return[V,ut];var ln=Math.ceil(ze[0]),Je=Math.ceil(ze[1]);if(!(ln>=0)&&!(ln>=0))throw new Error("invalid size");return V=ln,ut=Je,je()},ie.cellSize=function(ze){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return Pt=Math.floor(Math.log(ze)/Math.LN2),je()},ie.thresholds=function(ze){return arguments.length?($t=typeof ze=="function"?ze:Array.isArray(ze)?Ol(vd.call(ze)):Ol(ze),ie):$t},ie.bandwidth=function(ze){if(!arguments.length)return Math.sqrt(bt*(bt+1));if(!((ze=+ze)>=0))throw new Error("invalid bandwidth");return bt=Math.round((Math.sqrt(4*ze*ze+1)-1)/2),je()},ie}function rh(r){return function(){return r}}function mg(r,a,A,V,ut,bt,Pt,Dt,Ft,Vt){this.target=r,this.type=a,this.subject=A,this.identifier=V,this.active=ut,this.x=bt,this.y=Pt,this.dx=Dt,this.dy=Ft,this._=Vt}mg.prototype.on=function(){var r=this._.on.apply(this._,arguments);return r===this._?this:r};function Lx(){return!_r.ctrlKey&&!_r.button}function gg(){return this.parentNode}function Ix(r){return r==null?{x:_r.x,y:_r.y}:r}function jx(){return navigator.maxTouchPoints||"ontouchstart"in this}function Sy(){var r=Lx,a=gg,A=Ix,V=jx,ut={},bt=dt("start","drag","end"),Pt=0,Dt,Ft,Vt,$t,ie=0;function Qt(sn){sn.on("mousedown.drag",_e).filter(V).on("touchstart.drag",je).on("touchmove.drag",ze).on("touchend.drag touchcancel.drag",ln).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function _e(){if(!($t||!r.apply(this,arguments))){var sn=Je("mouse",a.apply(this,arguments),Tr,this,arguments);sn&&(rn(_r.view).on("mousemove.drag",Ne,!0).on("mouseup.drag",Pe,!0),zn(_r.view),En(),Vt=!1,Dt=_r.clientX,Ft=_r.clientY,sn("start"))}}function Ne(){if(Ln(),!Vt){var sn=_r.clientX-Dt,Pn=_r.clientY-Ft;Vt=sn*sn+Pn*Pn>ie}ut.mouse("drag")}function Pe(){rn(_r.view).on("mousemove.drag mouseup.drag",null),pr(_r.view,Vt),Ln(),ut.mouse("end")}function je(){if(r.apply(this,arguments)){var sn=_r.changedTouches,Pn=a.apply(this,arguments),Un=sn.length,jn,vr;for(jn=0;jn9999?"+"+va(r,6):va(r,4)}function b_(r){var a=r.getUTCHours(),A=r.getUTCMinutes(),V=r.getUTCSeconds(),ut=r.getUTCMilliseconds();return isNaN(r)?"Invalid Date":Ki(r.getUTCFullYear(),4)+"-"+va(r.getUTCMonth()+1,2)+"-"+va(r.getUTCDate(),2)+(ut?"T"+va(a,2)+":"+va(A,2)+":"+va(V,2)+"."+va(ut,3)+"Z":V?"T"+va(a,2)+":"+va(A,2)+":"+va(V,2)+"Z":A||a?"T"+va(a,2)+":"+va(A,2)+"Z":"")}function oa(r){var a=new RegExp('["'+r+` +\r]`),A=r.charCodeAt(0);function V(ie,Qt){var _e,Ne,Pe=ut(ie,function(je,ze){if(_e)return _e(je,ze-1);Ne=je,_e=Qt?vg(je,Qt):yg(je)});return Pe.columns=Ne||[],Pe}function ut(ie,Qt){var _e=[],Ne=ie.length,Pe=0,je=0,ze,ln=Ne<=0,Je=!1;ie.charCodeAt(Ne-1)===vf&&--Ne,ie.charCodeAt(Ne-1)===wd&&--Ne;function sn(){if(ln)return xc;if(Je)return Je=!1,Dl;var Un,jn=Pe,vr;if(ie.charCodeAt(jn)===yf){for(;Pe++=Ne?ln=!0:(vr=ie.charCodeAt(Pe++))===vf?Je=!0:vr===wd&&(Je=!0,ie.charCodeAt(Pe)===vf&&++Pe),ie.slice(jn+1,Un-1).replace(/""/g,'"')}for(;Pe=(ie=(Dt+Vt)/2))?Dt=ie:Vt=ie,(Be=A>=(Qt=(Ft+$t)/2))?Ft=Qt:$t=Qt,ut=bt,!(bt=bt[He=Be<<1|Pe]))return ut[He]=Pt,r;if(we=+r._x.call(null,bt.data),Ne=+r._y.call(null,bt.data),a===we&&A===Ne)return Pt.next=bt,ut?ut[He]=Pt:r._root=Pt,r;do ut=ut?ut[He]=new Array(4):r._root=new Array(4),(Pe=a>=(ie=(Dt+Vt)/2))?Dt=ie:Vt=ie,(Be=A>=(Qt=(Ft+$t)/2))?Ft=Qt:$t=Qt;while((He=Be<<1|Pe)===(ln=(Ne>=Qt)<<1|we>=ie));return ut[ln]=bt,ut[He]=Pt,r}function Bg(r){var a,A,V=r.length,ut,bt,Pt=new Array(V),Dt=new Array(V),Ft=1/0,Vt=1/0,$t=-1/0,ie=-1/0;for(A=0;A$t&&($t=ut),btie&&(ie=bt));if(Ft>$t||Vt>ie)return this;for(this.cover(Ft,Vt).cover($t,ie),A=0;Ar||r>=ut||V>a||a>=bt;)switch(Vt=(a$t||(Dt=Ne.y0)>ie||(Ft=Ne.x1)=He)<<1|r>=Be)&&(Ne=Qt[Qt.length-1],Qt[Qt.length-1]=Qt[Qt.length-1-Pe],Qt[Qt.length-1-Pe]=Ne)}else{var ln=r-+this._x.call(null,we.data),Je=a-+this._y.call(null,we.data),sn=ln*ln+Je*Je;if(sn=(Qt=(Pt+Ft)/2))?Pt=Qt:Ft=Qt,(Pe=ie>=(we=(Dt+Vt)/2))?Dt=we:Vt=we,a=A,!(A=A[Be=Pe<<1|Ne]))return this;if(!A.length)break;(a[Be+1&3]||a[Be+2&3]||a[Be+3&3])&&(V=a,He=Be)}for(;A.data!==r;)if(ut=A,!(A=A.next))return this;return(bt=A.next)&&delete A.next,ut?(bt?ut.next=bt:delete ut.next,this):a?(bt?a[Be]=bt:delete a[Be],(A=a[0]||a[1]||a[2]||a[3])&&A===(a[3]||a[2]||a[1]||a[0])&&!A.length&&(V?V[He]=A:this._root=A),this):(this._root=bt,this)}function Bu(r){for(var a=0,A=r.length;aie.index){var lr=Qt-Fn.x-Fn.vx,Xn=we-Fn.y-Fn.vy,un=lr*lr+Xn*Xn;unQt+nr||knwe+nr||VnFt.r&&(Ft.r=Ft[Vt].r)}function Dt(){if(a){var Ft,Vt=a.length,$t;for(A=new Array(Vt),Ft=0;Ft1?(Pe==null?Dt.remove(Ne):Dt.set(Ne,we(Pe)),a):Dt.get(Ne)},find:function(Ne,Pe,Be){var He=0,ln=r.length,Je,sn,kn,Vn,Fn;for(Be==null?Be=1/0:Be*=Be,He=0;He1?(Vt.on(Ne,Pe),a):Vt.on(Ne)}}}function jx(){var r,a,A,V=na(-30),ut,bt=1,Pt=1/0,Dt=.81;function Ft(Qt){var we,Ne=r.length,Pe=ra(r,Tl,Ky).visitAfter($t);for(A=Qt,we=0;we=Pt)return;(Qt.data!==a||Qt.next)&&(Be===0&&(Be=Ml(),Je+=Be*Be),He===0&&(He=Ml(),Je+=He*He),Je=1e21?r.toLocaleString("en").replace(/,/g,""):r.toString(10)}function fm(r,a){if((A=(r=a?r.toExponential(a-1):r.toExponential()).indexOf("e"))<0)return null;var A,V=r.slice(0,A);return[V.length>1?V[0]+V.slice(2):V,+r.slice(A+1)]}function kl(r){return r=fm(Math.abs(r)),r?r[1]:NaN}function Qy(r,a){return function(A,V){for(var ut=A.length,bt=[],Pt=0,Dt=r[0],Ft=0;ut>0&&Dt>0&&(Ft+Dt+1>V&&(Dt=Math.max(1,V-Ft)),bt.push(A.substring(ut-=Dt,ut+Dt)),!((Ft+=Dt+1)>V));)Dt=r[Pt=(Pt+1)%r.length];return bt.reverse().join(a)}}function ha(r){return function(a){return a.replace(/[0-9]/g,function(A){return r[+A]})}}var Fu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bf(r){if(!(a=Fu.exec(r)))throw new Error("invalid format: "+r);var a;return new dm({fill:a[1],align:a[2],sign:a[3],symbol:a[4],zero:a[5],width:a[6],comma:a[7],precision:a[8]&&a[8].slice(1),trim:a[9],type:a[10]})}bf.prototype=dm.prototype;function dm(r){this.fill=r.fill===void 0?" ":r.fill+"",this.align=r.align===void 0?">":r.align+"",this.sign=r.sign===void 0?"-":r.sign+"",this.symbol=r.symbol===void 0?"":r.symbol+"",this.zero=!!r.zero,this.width=r.width===void 0?void 0:+r.width,this.comma=!!r.comma,this.precision=r.precision===void 0?void 0:+r.precision,this.trim=!!r.trim,this.type=r.type===void 0?"":r.type+""}dm.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Fx(r){t:for(var a=r.length,A=1,V=-1,ut;A0&&(V=0);break}return V>0?r.slice(0,V)+r.slice(ut+1):r}var Wg;function Jy(r,a){var A=fm(r,a);if(!A)return r+"";var V=A[0],ut=A[1],bt=ut-(Wg=Math.max(-8,Math.min(8,Math.floor(ut/3)))*3)+1,Pt=V.length;return bt===Pt?V:bt>Pt?V+new Array(bt-Pt+1).join("0"):bt>0?V.slice(0,bt)+"."+V.slice(bt):"0."+new Array(1-bt).join("0")+fm(r,Math.max(0,a+bt-1))[0]}function jd(r,a){var A=fm(r,a);if(!A)return r+"";var V=A[0],ut=A[1];return ut<0?"0."+new Array(-ut).join("0")+V:V.length>ut+1?V.slice(0,ut+1)+"."+V.slice(ut+1):V+new Array(ut-V.length+2).join("0")}const Vs={"%":function(r,a){return(r*100).toFixed(a)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:xf,e:function(r,a){return r.toExponential(a)},f:function(r,a){return r.toFixed(a)},g:function(r,a){return r.toPrecision(a)},o:function(r){return Math.round(r).toString(8)},p:function(r,a){return jd(r*100,a)},r:jd,s:Jy,X:function(r){return Math.round(r).toString(16).toUpperCase()},x:function(r){return Math.round(r).toString(16)}};function pm(r){return r}var tv=Array.prototype.map,zu=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Bd(r){var a=r.grouping===void 0||r.thousands===void 0?pm:Qy(tv.call(r.grouping,Number),r.thousands+""),A=r.currency===void 0?"":r.currency[0]+"",V=r.currency===void 0?"":r.currency[1]+"",ut=r.decimal===void 0?".":r.decimal+"",bt=r.numerals===void 0?pm:ha(tv.call(r.numerals,String)),Pt=r.percent===void 0?"%":r.percent+"",Dt=r.minus===void 0?"-":r.minus+"",Ft=r.nan===void 0?"NaN":r.nan+"";function Vt(ie){ie=bf(ie);var Qt=ie.fill,we=ie.align,Ne=ie.sign,Pe=ie.symbol,Be=ie.zero,He=ie.width,ln=ie.comma,Je=ie.precision,sn=ie.trim,kn=ie.type;kn==="n"?(ln=!0,kn="g"):Vs[kn]||(Je===void 0&&(Je=12),sn=!0,kn="g"),(Be||Qt==="0"&&we==="=")&&(Be=!0,Qt="0",we="=");var Vn=Pe==="$"?A:Pe==="#"&&/[boxX]/.test(kn)?"0"+kn.toLowerCase():"",Fn=Pe==="$"?V:/[%p]/.test(kn)?Pt:"",vr=Vs[kn],nr=/[defgprs%]/.test(kn);Je=Je===void 0?6:/[gprs]/.test(kn)?Math.max(1,Math.min(21,Je)):Math.max(0,Math.min(20,Je));function lr(Xn){var un=Vn,Bn=Fn,br,Hn,xr;if(kn==="c")Bn=vr(Xn)+Bn,Xn="";else{Xn=+Xn;var Zr=Xn<0||1/Xn<0;if(Xn=isNaN(Xn)?Ft:vr(Math.abs(Xn),Je),sn&&(Xn=Fx(Xn)),Zr&&+Xn==0&&Ne!=="+"&&(Zr=!1),un=(Zr?Ne==="("?Ne:Dt:Ne==="-"||Ne==="("?"":Ne)+un,Bn=(kn==="s"?zu[8+Wg/3]:"")+Bn+(Zr&&Ne==="("?")":""),nr){for(br=-1,Hn=Xn.length;++brxr||xr>57){Bn=(xr===46?ut+Xn.slice(br+1):Xn.slice(br))+Bn,Xn=Xn.slice(0,br);break}}}ln&&!Be&&(Xn=a(Xn,1/0));var jr=un.length+Xn.length+Bn.length,oi=jr>1)+un+Xn+Bn+oi.slice(jr);break;default:Xn=oi+un+Xn+Bn;break}return bt(Xn)}return lr.toString=function(){return ie+""},lr}function $t(ie,Qt){var we=Vt((ie=bf(ie),ie.type="f",ie)),Ne=Math.max(-8,Math.min(8,Math.floor(kl(Qt)/3)))*3,Pe=Math.pow(10,-Ne),Be=zu[8+Ne/3];return function(He){return we(Pe*He)+Be}}return{format:Vt,formatPrefix:$t}}var xo,ol,Al;sh({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function sh(r){return xo=Bd(r),ol=xo.format,Al=xo.formatPrefix,xo}function Yg(r){return Math.max(0,-kl(Math.abs(r)))}function Fd(r,a){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(kl(a)/3)))*3-kl(Math.abs(r)))}function ev(r,a){return r=Math.abs(r),a=Math.abs(a)-r,Math.max(0,kl(a)-kl(r))+1}function Uu(){return new zd}function zd(){this.reset()}zd.prototype={constructor:zd,reset:function(){this.s=this.t=0},add:function(r){Ud(wf,r,this.t),Ud(this,wf.s,this.s),this.s?this.t+=wf.t:this.s=wf.t},valueOf:function(){return this.s}};var wf=new zd;function Ud(r,a,A){var V=r.s=a+A,ut=V-a,bt=V-ut;r.t=a-bt+(A-ut)}var fi=1e-6,Hd=1e-12,Hi=Math.PI,ia=Hi/2,_f=Hi/4,Ca=Hi*2,Co=180/Hi,ii=Hi/180,Yi=Math.abs,Hu=Math.atan,Fa=Math.atan2,ei=Math.cos,Os=Math.ceil,Cc=Math.exp,mm=Math.floor,h=Math.log,O=Math.pow,ct=Math.sin,Lt=Math.sign||function(r){return r>0?1:r<0?-1:0},Gt=Math.sqrt,se=Math.tan;function Fe(r){return r>1?0:r<-1?Hi:Math.acos(r)}function dn(r){return r>1?ia:r<-1?-ia:Math.asin(r)}function Tn(r){return(r=ct(r/2))*r}function zn(){}function _r(r,a){r&&Er.hasOwnProperty(r.type)&&Er[r.type](r,a)}var kr={Feature:function(r,a){_r(r.geometry,a)},FeatureCollection:function(r,a){for(var A=r.features,V=-1,ut=A.length;++V=0?1:-1,ut=V*A,bt=ei(a),Pt=ct(a),Dt=gi*Pt,Ft=ti*bt+Dt*ei(ut),Vt=Dt*V*ct(ut);ta.add(Fa(Vt,Ft)),Lr=r,ti=bt,gi=Pt}function zx(r){return Wn.reset(),Wr(r,Qr),Wn*2}function Ux(r){return[Fa(r[1],r[0]),dn(r[2])]}function Ma(r){var a=r[0],A=r[1],V=ei(A);return[V*ei(a),V*ct(a),ct(A)]}function Hx(r,a){return r[0]*a[0]+r[1]*a[1]+r[2]*a[2]}function Vd(r,a){return[r[1]*a[2]-r[2]*a[1],r[2]*a[0]-r[0]*a[2],r[0]*a[1]-r[1]*a[0]]}function Vx(r,a){r[0]+=a[0],r[1]+=a[1],r[2]+=a[2]}function nv(r,a){return[r[0]*a,r[1]*a,r[2]*a]}function rv(r){var a=Gt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]);r[0]/=a,r[1]/=a,r[2]/=a}var xa,za,Wo,al,Sf,x_,gm,ym,Ua=Uu(),Wd,lh,Mc={point:Yd,lineStart:Gd,lineEnd:Wx,polygonStart:function(){Mc.point=Yx,Mc.lineStart=DT,Mc.lineEnd=Gg,Ua.reset(),Qr.polygonStart()},polygonEnd:function(){Qr.polygonEnd(),Mc.point=Yd,Mc.lineStart=Gd,Mc.lineEnd=Wx,ta<0?(xa=-(Wo=180),za=-(al=90)):Ua>fi?al=90:Ua<-fi&&(za=-90),lh[0]=xa,lh[1]=Wo},sphere:function(){xa=-(Wo=180),za=-(al=90)}};function Yd(r,a){Wd.push(lh=[xa=r,Wo=r]),aal&&(al=a)}function iv(r,a){var A=Ma([r*ii,a*ii]);if(ym){var V=Vd(ym,A),ut=[V[1],-V[0],0],bt=Vd(ut,V);rv(bt),bt=Ux(bt);var Pt=r-Sf,Dt=Pt>0?1:-1,Ft=bt[0]*Co*Dt,Vt,$t=Yi(Pt)>180;$t^(Dt*Sfal&&(al=Vt)):(Ft=(Ft+360)%360-180,$t^(Dt*Sfal&&(al=a))),$t?rWs(xa,Wo)&&(Wo=r):Ws(r,Wo)>Ws(xa,Wo)&&(xa=r):Wo>=xa?(rWo&&(Wo=r)):r>Sf?Ws(xa,r)>Ws(xa,Wo)&&(Wo=r):Ws(r,Wo)>Ws(xa,Wo)&&(xa=r)}else Wd.push(lh=[xa=r,Wo=r]);aal&&(al=a),ym=A,Sf=r}function Gd(){Mc.point=iv}function Wx(){lh[0]=xa,lh[1]=Wo,Mc.point=Yd,ym=null}function Yx(r,a){if(ym){var A=r-Sf;Ua.add(Yi(A)>180?A+(A>0?360:-360):A)}else x_=r,gm=a;Qr.point(r,a),iv(r,a)}function DT(){Qr.lineStart()}function Gg(){Yx(x_,gm),Qr.lineEnd(),Yi(Ua)>fi&&(xa=-(Wo=180)),lh[0]=xa,lh[1]=Wo,ym=null}function Ws(r,a){return(a-=r)<0?a+360:a}function RT(r,a){return r[0]-a[0]}function ov(r,a){return r[0]<=r[1]?r[0]<=a&&a<=r[1]:aWs(V[0],V[1])&&(V[1]=ut[1]),Ws(ut[0],V[1])>Ws(V[0],V[1])&&(V[0]=ut[0])):bt.push(V=ut);for(Pt=-1/0,A=bt.length-1,a=0,V=bt[A];a<=A;V=ut,++a)ut=bt[a],(Dt=Ws(V[1],ut[0]))>Pt&&(Pt=Dt,xa=ut[0],Wo=V[1])}return Wd=lh=null,xa===1/0||za===1/0?[[NaN,NaN],[NaN,NaN]]:[[xa,za],[Wo,al]]}var vm,Xg,$g,Ja,uh,qg,av,sv,Gx,Kg,Xx,b_,Ys,Ns,Gs,Xs,Wu={sphere:zn,point:$x,lineStart:w_,lineEnd:S_,polygonStart:function(){Wu.lineStart=IT,Wu.lineEnd=E_},polygonEnd:function(){Wu.lineStart=w_,Wu.lineEnd=S_}};function $x(r,a){r*=ii,a*=ii;var A=ei(a);Zg(A*ei(r),A*ct(r),ct(a))}function Zg(r,a,A){++vm,$g+=(r-$g)/vm,Ja+=(a-Ja)/vm,uh+=(A-uh)/vm}function w_(){Wu.point=LT}function LT(r,a){r*=ii,a*=ii;var A=ei(a);Ns=A*ei(r),Gs=A*ct(r),Xs=ct(a),Wu.point=__,Zg(Ns,Gs,Xs)}function __(r,a){r*=ii,a*=ii;var A=ei(a),V=A*ei(r),ut=A*ct(r),bt=ct(a),Pt=Fa(Gt((Pt=Gs*bt-Xs*ut)*Pt+(Pt=Xs*V-Ns*bt)*Pt+(Pt=Ns*ut-Gs*V)*Pt),Ns*V+Gs*ut+Xs*bt);Xg+=Pt,qg+=Pt*(Ns+(Ns=V)),av+=Pt*(Gs+(Gs=ut)),sv+=Pt*(Xs+(Xs=bt)),Zg(Ns,Gs,Xs)}function S_(){Wu.point=$x}function IT(){Wu.point=jT}function E_(){C_(b_,Ys),Wu.point=$x}function jT(r,a){b_=r,Ys=a,r*=ii,a*=ii,Wu.point=C_;var A=ei(a);Ns=A*ei(r),Gs=A*ct(r),Xs=ct(a),Zg(Ns,Gs,Xs)}function C_(r,a){r*=ii,a*=ii;var A=ei(a),V=A*ei(r),ut=A*ct(r),bt=ct(a),Pt=Gs*bt-Xs*ut,Dt=Xs*V-Ns*bt,Ft=Ns*ut-Gs*V,Vt=Gt(Pt*Pt+Dt*Dt+Ft*Ft),$t=dn(Vt),ie=Vt&&-$t/Vt;Gx+=ie*Pt,Kg+=ie*Dt,Xx+=ie*Ft,Xg+=$t,qg+=$t*(Ns+(Ns=V)),av+=$t*(Gs+(Gs=ut)),sv+=$t*(Xs+(Xs=bt)),Zg(Ns,Gs,Xs)}function BT(r){vm=Xg=$g=Ja=uh=qg=av=sv=Gx=Kg=Xx=0,Wr(r,Wu);var a=Gx,A=Kg,V=Xx,ut=a*a+A*A+V*V;return utHi?r+Math.round(-r/Ca)*Ca:r,a]}uv.invert=uv;function qx(r,a,A){return(r%=Ca)?a||A?lv(Qg(r),T_(a,A)):Qg(r):a||A?T_(a,A):uv}function M_(r){return function(a,A){return a+=r,[a>Hi?a-Ca:a<-Hi?a+Ca:a,A]}}function Qg(r){var a=M_(r);return a.invert=M_(-r),a}function T_(r,a){var A=ei(r),V=ct(r),ut=ei(a),bt=ct(a);function Pt(Dt,Ft){var Vt=ei(Ft),$t=ei(Dt)*Vt,ie=ct(Dt)*Vt,Qt=ct(Ft),we=Qt*A+$t*V;return[Fa(ie*ut-we*bt,$t*A-Qt*V),dn(we*ut+ie*bt)]}return Pt.invert=function(Dt,Ft){var Vt=ei(Ft),$t=ei(Dt)*Vt,ie=ct(Dt)*Vt,Qt=ct(Ft),we=Qt*ut-ie*bt;return[Fa(ie*ut+Qt*bt,$t*A+we*V),dn(we*A-$t*V)]},Pt}function k_(r){r=qx(r[0]*ii,r[1]*ii,r.length>2?r[2]*ii:0);function a(A){return A=r(A[0]*ii,A[1]*ii),A[0]*=Co,A[1]*=Co,A}return a.invert=function(A){return A=r.invert(A[0]*ii,A[1]*ii),A[0]*=Co,A[1]*=Co,A},a}function Kx(r,a,A,V,ut,bt){if(A){var Pt=ei(a),Dt=ct(a),Ft=V*A;ut==null?(ut=a+V*Ca,bt=a-Ft/2):(ut=Zx(Pt,ut),bt=Zx(Pt,bt),(V>0?utbt)&&(ut+=V*Ca));for(var Vt,$t=ut;V>0?$t>bt:$t1&&r.push(r.pop().concat(r.shift()))},result:function(){var A=r;return r=[],a=null,A}}}function cv(r,a){return Yi(r[0]-a[0])=0;--Dt)ut.point((ie=$t[Dt])[0],ie[1]);else V(Qt.x,Qt.p.x,-1,ut);Qt=Qt.p}Qt=Qt.o,$t=Qt.z,we=!we}while(!Qt.v);ut.lineEnd()}}}function N_(r){if(a=r.length){for(var a,A=0,V=r[0],ut;++A=0?1:-1,nr=vr*Fn,lr=nr>Hi,Xn=Pe*kn;if(Qx.add(Fa(Xn*vr*ct(nr),Be*Vn+Xn*ei(nr))),Pt+=lr?Fn+vr*Ca:Fn,lr^we>=A^Je>=A){var un=Vd(Ma(Qt),Ma(ln));rv(un);var Bn=Vd(bt,un);rv(Bn);var br=(lr^Fn>=0?-1:1)*dn(Bn[2]);(V>br||V===br&&(un[0]||un[1]))&&(Dt+=lr^Fn>=0?1:-1)}}return(Pt<-fi||Pt0){for(Ft||(ut.polygonStart(),Ft=!0),ut.lineStart(),Vn=0;Vn1&&sn&2&&kn.push(kn.pop().concat(kn.shift())),$t.push(kn.filter(L_))}}return Qt}}function L_(r){return r.length>1}function Xd(r,a){return((r=r.x)[0]<0?r[1]-ia-fi:ia-r[1])-((a=a.x)[0]<0?a[1]-ia-fi:ia-a[1])}const bm=R_(function(){return!0},Jg,R5,[-Hi,-ia]);function Jg(r){var a=NaN,A=NaN,V=NaN,ut;return{lineStart:function(){r.lineStart(),ut=1},point:function(bt,Pt){var Dt=bt>0?Hi:-Hi,Ft=Yi(bt-a);Yi(Ft-Hi)0?ia:-ia),r.point(V,A),r.lineEnd(),r.lineStart(),r.point(Dt,A),r.point(bt,A),ut=0):V!==Dt&&Ft>=Hi&&(Yi(a-V)fi?Hu((ct(a)*(bt=ei(V))*ct(A)-ct(V)*(ut=ei(a))*ct(r))/(ut*bt*Pt)):(a+V)/2}function R5(r,a,A,V){var ut;if(r==null)ut=A*ia,V.point(-Hi,ut),V.point(0,ut),V.point(Hi,ut),V.point(Hi,0),V.point(Hi,-ut),V.point(0,-ut),V.point(-Hi,-ut),V.point(-Hi,0),V.point(-Hi,ut);else if(Yi(r[0]-a[0])>fi){var bt=r[0]0,ut=Yi(a)>fi;function bt($t,ie,Qt,we){Kx(we,r,A,Qt,$t,ie)}function Pt($t,ie){return ei($t)*ei(ie)>a}function Dt($t){var ie,Qt,we,Ne,Pe;return{lineStart:function(){Ne=we=!1,Pe=1},point:function(Be,He){var ln=[Be,He],Je,sn=Pt(Be,He),kn=V?sn?0:Vt(Be,He):sn?Vt(Be+(Be<0?Hi:-Hi),He):0;if(!ie&&(Ne=we=sn)&&$t.lineStart(),sn!==we&&(Je=Ft(ie,ln),(!Je||cv(ie,Je)||cv(ln,Je))&&(ln[2]=1)),sn!==we)Pe=0,sn?($t.lineStart(),Je=Ft(ln,ie),$t.point(Je[0],Je[1])):(Je=Ft(ie,ln),$t.point(Je[0],Je[1],2),$t.lineEnd()),ie=Je;else if(ut&&ie&&V^sn){var Vn;!(kn&Qt)&&(Vn=Ft(ln,ie,!0))&&(Pe=0,V?($t.lineStart(),$t.point(Vn[0][0],Vn[0][1]),$t.point(Vn[1][0],Vn[1][1]),$t.lineEnd()):($t.point(Vn[1][0],Vn[1][1]),$t.lineEnd(),$t.lineStart(),$t.point(Vn[0][0],Vn[0][1],3)))}sn&&(!ie||!cv(ie,ln))&&$t.point(ln[0],ln[1]),ie=ln,we=sn,Qt=kn},lineEnd:function(){we&&$t.lineEnd(),ie=null},clean:function(){return Pe|(Ne&&we)<<1}}}function Ft($t,ie,Qt){var we=Ma($t),Ne=Ma(ie),Pe=[1,0,0],Be=Vd(we,Ne),He=Hx(Be,Be),ln=Be[0],Je=He-ln*ln;if(!Je)return!Qt&&$t;var sn=a*He/Je,kn=-a*ln/Je,Vn=Vd(Pe,Be),Fn=nv(Pe,sn),vr=nv(Be,kn);Vx(Fn,vr);var nr=Vn,lr=Hx(Fn,nr),Xn=Hx(nr,nr),un=lr*lr-Xn*(Hx(Fn,Fn)-1);if(!(un<0)){var Bn=Gt(un),br=nv(nr,(-lr-Bn)/Xn);if(Vx(br,Fn),br=Ux(br),!Qt)return br;var Hn=$t[0],xr=ie[0],Zr=$t[1],jr=ie[1],oi;xr0^br[1]<(Yi(br[0]-Hn)Hi^(Hn<=br[0]&&br[0]<=xr)){var Bo=nv(nr,(-lr+Bn)/Xn);return Vx(Bo,Fn),[br,Ux(Bo)]}}}function Vt($t,ie){var Qt=V?r:Hi-r,we=0;return $t<-Qt?we|=1:$t>Qt&&(we|=2),ie<-Qt?we|=4:ie>Qt&&(we|=8),we}return R_(Pt,Dt,bt,V?[0,-r]:[-Hi,r-Hi])}function j_(r,a,A,V,ut,bt){var Pt=r[0],Dt=r[1],Ft=a[0],Vt=a[1],$t=0,ie=1,Qt=Ft-Pt,we=Vt-Dt,Ne;if(Ne=A-Pt,!(!Qt&&Ne>0)){if(Ne/=Qt,Qt<0){if(Ne<$t)return;Ne0){if(Ne>ie)return;Ne>$t&&($t=Ne)}if(Ne=ut-Pt,!(!Qt&&Ne<0)){if(Ne/=Qt,Qt<0){if(Ne>ie)return;Ne>$t&&($t=Ne)}else if(Qt>0){if(Ne<$t)return;Ne0)){if(Ne/=we,we<0){if(Ne<$t)return;Ne0){if(Ne>ie)return;Ne>$t&&($t=Ne)}if(Ne=bt-Dt,!(!we&&Ne<0)){if(Ne/=we,we<0){if(Ne>ie)return;Ne>$t&&($t=Ne)}else if(we>0){if(Ne<$t)return;Ne0&&(r[0]=Pt+$t*Qt,r[1]=Dt+$t*we),ie<1&&(a[0]=Pt+ie*Qt,a[1]=Dt+ie*we),!0}}}}}var wm=1e9,dv=-wm;function tb(r,a,A,V){function ut(Vt,$t){return r<=Vt&&Vt<=A&&a<=$t&&$t<=V}function bt(Vt,$t,ie,Qt){var we=0,Ne=0;if(Vt==null||(we=Pt(Vt,ie))!==(Ne=Pt($t,ie))||Ft(Vt,$t)<0^ie>0)do Qt.point(we===0||we===3?r:A,we>1?V:a);while((we=(we+ie+4)%4)!==Ne);else Qt.point($t[0],$t[1])}function Pt(Vt,$t){return Yi(Vt[0]-r)0?0:3:Yi(Vt[0]-A)0?2:1:Yi(Vt[1]-a)0?1:0:$t>0?3:2}function Dt(Vt,$t){return Ft(Vt.x,$t.x)}function Ft(Vt,$t){var ie=Pt(Vt,1),Qt=Pt($t,1);return ie!==Qt?ie-Qt:ie===0?$t[1]-Vt[1]:ie===1?Vt[0]-$t[0]:ie===2?Vt[1]-$t[1]:$t[0]-Vt[0]}return function(Vt){var $t=Vt,ie=P_(),Qt,we,Ne,Pe,Be,He,ln,Je,sn,kn,Vn,Fn={point:vr,lineStart:un,lineEnd:Bn,polygonStart:lr,polygonEnd:Xn};function vr(Hn,xr){ut(Hn,xr)&&$t.point(Hn,xr)}function nr(){for(var Hn=0,xr=0,Zr=we.length;xrV&&(lo-mo)*(V-Bo)>(Ha-Bo)*(r-mo)&&++Hn:Ha<=V&&(lo-mo)*(V-Bo)<(Ha-Bo)*(r-mo)&&--Hn;return Hn}function lr(){$t=ie,Qt=[],we=[],Vn=!0}function Xn(){var Hn=nr(),xr=Vn&&Hn,Zr=(Qt=(0,d.Am)(Qt)).length;(xr||Zr)&&(Vt.polygonStart(),xr&&(Vt.lineStart(),bt(null,null,1,Vt),Vt.lineEnd()),Zr&&O_(Qt,Dt,Hn,bt,Vt),Vt.polygonEnd()),$t=Vt,Qt=we=Ne=null}function un(){Fn.point=br,we&&we.push(Ne=[]),kn=!0,sn=!1,ln=Je=NaN}function Bn(){Qt&&(br(Pe,Be),He&&sn&&ie.rejoin(),Qt.push(ie.result())),Fn.point=vr,sn&&$t.lineEnd()}function br(Hn,xr){var Zr=ut(Hn,xr);if(we&&Ne.push([Hn,xr]),kn)Pe=Hn,Be=xr,He=Zr,kn=!1,Zr&&($t.lineStart(),$t.point(Hn,xr));else if(Zr&&sn)$t.point(Hn,xr);else{var jr=[ln=Math.max(dv,Math.min(wm,ln)),Je=Math.max(dv,Math.min(wm,Je))],oi=[Hn=Math.max(dv,Math.min(wm,Hn)),xr=Math.max(dv,Math.min(wm,xr))];j_(jr,oi,r,a,A,V)?(sn||($t.lineStart(),$t.point(jr[0],jr[1])),$t.point(oi[0],oi[1]),Zr||$t.lineEnd(),Vn=!1):Zr&&($t.lineStart(),$t.point(Hn,xr),Vn=!1)}ln=Hn,Je=xr,sn=Zr}return Fn}}function FT(){var r=0,a=0,A=960,V=500,ut,bt,Pt;return Pt={stream:function(Dt){return ut&&bt===Dt?ut:ut=tb(r,a,A,V)(bt=Dt)},extent:function(Dt){return arguments.length?(r=+Dt[0][0],a=+Dt[0][1],A=+Dt[1][0],V=+Dt[1][1],ut=bt=null,Pt):[[r,a],[A,V]]}}}var eb=Uu(),pv,mv,gv,_m={sphere:zn,point:zn,lineStart:zT,lineEnd:zn,polygonStart:zn,polygonEnd:zn};function zT(){_m.point=HT,_m.lineEnd=UT}function UT(){_m.point=_m.lineEnd=zn}function HT(r,a){r*=ii,a*=ii,pv=r,mv=ct(a),gv=ei(a),_m.point=VT}function VT(r,a){r*=ii,a*=ii;var A=ct(a),V=ei(a),ut=Yi(r-pv),bt=ei(ut),Pt=ct(ut),Dt=V*Pt,Ft=gv*A-mv*V*bt,Vt=mv*A+gv*V*bt;eb.add(Fa(Gt(Dt*Dt+Ft*Ft),Vt)),pv=r,mv=A,gv=V}function B_(r){return eb.reset(),Wr(r,_m),+eb}var nb=[null,null],WT={type:"LineString",coordinates:nb};function yv(r,a){return nb[0]=r,nb[1]=a,B_(WT)}var t0={Feature:function(r,a){return vv(r.geometry,a)},FeatureCollection:function(r,a){for(var A=r.features,V=-1,ut=A.length;++V0&&(ut=yv(r[bt],r[bt-1]),ut>0&&A<=ut&&V<=ut&&(A+V-ut)*(1-Math.pow((A-V)/ut,2))fi}).map(Qt)).concat((0,d.y1)(Os(bt/Vt)*Vt,ut,Vt).filter(function(Je){return Yi(Je%ie)>fi}).map(we))}return He.lines=function(){return ln().map(function(Je){return{type:"LineString",coordinates:Je}})},He.outline=function(){return{type:"Polygon",coordinates:[Ne(V).concat(Pe(Pt).slice(1),Ne(A).reverse().slice(1),Pe(Dt).reverse().slice(1))]}},He.extent=function(Je){return arguments.length?He.extentMajor(Je).extentMinor(Je):He.extentMinor()},He.extentMajor=function(Je){return arguments.length?(V=+Je[0][0],A=+Je[1][0],Dt=+Je[0][1],Pt=+Je[1][1],V>A&&(Je=V,V=A,A=Je),Dt>Pt&&(Je=Dt,Dt=Pt,Pt=Je),He.precision(Be)):[[V,Dt],[A,Pt]]},He.extentMinor=function(Je){return arguments.length?(a=+Je[0][0],r=+Je[1][0],bt=+Je[0][1],ut=+Je[1][1],a>r&&(Je=a,a=r,r=Je),bt>ut&&(Je=bt,bt=ut,ut=Je),He.precision(Be)):[[a,bt],[r,ut]]},He.step=function(Je){return arguments.length?He.stepMajor(Je).stepMinor(Je):He.stepMinor()},He.stepMajor=function(Je){return arguments.length?($t=+Je[0],ie=+Je[1],He):[$t,ie]},He.stepMinor=function(Je){return arguments.length?(Ft=+Je[0],Vt=+Je[1],He):[Ft,Vt]},He.precision=function(Je){return arguments.length?(Be=+Je,Qt=xv(bt,ut,90),we=bv(a,r,Be),Ne=xv(Dt,Pt,90),Pe=bv(V,A,Be),He):Be},He.extentMajor([[-180,-90+fi],[180,90-fi]]).extentMinor([[-180,-80-fi],[180,80+fi]])}function GT(){return W_()()}function Y_(r,a){var A=r[0]*ii,V=r[1]*ii,ut=a[0]*ii,bt=a[1]*ii,Pt=ei(V),Dt=ct(V),Ft=ei(bt),Vt=ct(bt),$t=Pt*ei(A),ie=Pt*ct(A),Qt=Ft*ei(ut),we=Ft*ct(ut),Ne=2*dn(Gt(Tn(bt-V)+Pt*Ft*Tn(ut-A))),Pe=ct(Ne),Be=Ne?function(He){var ln=ct(He*=Ne)/Pe,Je=ct(Ne-He)/Pe,sn=Je*$t+ln*Qt,kn=Je*ie+ln*we,Vn=Je*Dt+ln*Vt;return[Fa(kn,sn)*Co,Fa(Vn,Gt(sn*sn+kn*kn))*Co]}:function(){return[A*Co,V*Co]};return Be.distance=Ne,Be}function e0(r){return r}var ib=Uu(),ob=Uu(),G_,XT,wv,ab,Ef={point:zn,lineStart:zn,lineEnd:zn,polygonStart:function(){Ef.lineStart=$T,Ef.lineEnd=$_},polygonEnd:function(){Ef.lineStart=Ef.lineEnd=Ef.point=zn,ib.add(Yi(ob)),ob.reset()},result:function(){var r=ib/2;return ib.reset(),r}};function $T(){Ef.point=qT}function qT(r,a){Ef.point=X_,G_=wv=r,XT=ab=a}function X_(r,a){ob.add(ab*r-wv*a),wv=r,ab=a}function $_(){X_(G_,XT)}const q_=Ef;var Sm=1/0,_v=Sm,Em=-Sm,Sv=Em,KT={point:K_,lineStart:zn,lineEnd:zn,polygonStart:zn,polygonEnd:zn,result:function(){var r=[[Sm,_v],[Em,Sv]];return Em=Sv=-(_v=Sm=1/0),r}};function K_(r,a){rEm&&(Em=r),a<_v&&(_v=a),a>Sv&&(Sv=a)}const n0=KT;var sb=0,Ev=0,Cm=0,Cv=0,Mv=0,Mm=0,lb=0,ub=0,r0=0,cb,ch,Yu,Tc,tu={point:Cf,lineStart:hb,lineEnd:Z_,polygonStart:function(){tu.lineStart=QT,tu.lineEnd=db},polygonEnd:function(){tu.point=Cf,tu.lineStart=hb,tu.lineEnd=Z_},result:function(){var r=r0?[lb/r0,ub/r0]:Mm?[Cv/Mm,Mv/Mm]:Cm?[sb/Cm,Ev/Cm]:[NaN,NaN];return sb=Ev=Cm=Cv=Mv=Mm=lb=ub=r0=0,r}};function Cf(r,a){sb+=r,Ev+=a,++Cm}function hb(){tu.point=fb}function fb(r,a){tu.point=ZT,Cf(Yu=r,Tc=a)}function ZT(r,a){var A=r-Yu,V=a-Tc,ut=Gt(A*A+V*V);Cv+=ut*(Yu+r)/2,Mv+=ut*(Tc+a)/2,Mm+=ut,Cf(Yu=r,Tc=a)}function Z_(){tu.point=Cf}function QT(){tu.point=L5}function db(){pb(cb,ch)}function L5(r,a){tu.point=pb,Cf(cb=Yu=r,ch=Tc=a)}function pb(r,a){var A=r-Yu,V=a-Tc,ut=Gt(A*A+V*V);Cv+=ut*(Yu+r)/2,Mv+=ut*(Tc+a)/2,Mm+=ut,ut=Tc*r-Yu*a,lb+=ut*(Yu+r),ub+=ut*(Tc+a),r0+=ut*3,Cf(Yu=r,Tc=a)}const Q_=tu;function J_(r){this._context=r}J_.prototype={_radius:4.5,pointRadius:function(r){return this._radius=r,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(r,a){switch(this._point){case 0:{this._context.moveTo(r,a),this._point=1;break}case 1:{this._context.lineTo(r,a);break}default:{this._context.moveTo(r+this._radius,a),this._context.arc(r,a,this._radius,0,Ca);break}}},result:zn};var i0=Uu(),mb,tS,gb,fa,Pl,o0={point:zn,lineStart:function(){o0.point=eS},lineEnd:function(){mb&&nS(tS,gb),o0.point=zn},polygonStart:function(){mb=!0},polygonEnd:function(){mb=null},result:function(){var r=+i0;return i0.reset(),r}};function eS(r,a){o0.point=nS,tS=fa=r,gb=Pl=a}function nS(r,a){fa-=r,Pl-=a,i0.add(Gt(fa*fa+Pl*Pl)),fa=r,Pl=a}const yb=o0;function Tv(){this._string=[]}Tv.prototype={_radius:4.5,_circle:kv(4.5),pointRadius:function(r){return(r=+r)!==this._radius&&(this._radius=r,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(r,a){switch(this._point){case 0:{this._string.push("M",r,",",a),this._point=1;break}case 1:{this._string.push("L",r,",",a);break}default:{this._circle==null&&(this._circle=kv(this._radius)),this._string.push("M",r,",",a,this._circle);break}}},result:function(){if(this._string.length){var r=this._string.join("");return this._string=[],r}else return null}};function kv(r){return"m0,"+r+"a"+r+","+r+" 0 1,1 0,"+-2*r+"a"+r+","+r+" 0 1,1 0,"+2*r+"z"}function rS(r,a){var A=4.5,V,ut;function bt(Pt){return Pt&&(typeof A=="function"&&ut.pointRadius(+A.apply(this,arguments)),Wr(Pt,V(ut))),ut.result()}return bt.area=function(Pt){return Wr(Pt,V(q_)),q_.result()},bt.measure=function(Pt){return Wr(Pt,V(yb)),yb.result()},bt.bounds=function(Pt){return Wr(Pt,V(n0)),n0.result()},bt.centroid=function(Pt){return Wr(Pt,V(Q_)),Q_.result()},bt.projection=function(Pt){return arguments.length?(V=Pt==null?(r=null,e0):(r=Pt).stream,bt):r},bt.context=function(Pt){return arguments.length?(ut=Pt==null?(a=null,new Tv):new J_(a=Pt),typeof A!="function"&&ut.pointRadius(A),bt):a},bt.pointRadius=function(Pt){return arguments.length?(A=typeof Pt=="function"?Pt:(ut.pointRadius(+Pt),+Pt),bt):A},bt.projection(r).context(a)}function iS(r){return{stream:Tm(r)}}function Tm(r){return function(a){var A=new Av;for(var V in r)A[V]=r[V];return A.stream=a,A}}function Av(){}Av.prototype={constructor:Av,point:function(r,a){this.stream.point(r,a)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function vb(r,a,A){var V=r.clipExtent&&r.clipExtent();return r.scale(150).translate([0,0]),V!=null&&r.clipExtent(null),Wr(A,r.stream(n0)),a(n0.result()),V!=null&&r.clipExtent(V),r}function $d(r,a,A){return vb(r,function(V){var ut=a[1][0]-a[0][0],bt=a[1][1]-a[0][1],Pt=Math.min(ut/(V[1][0]-V[0][0]),bt/(V[1][1]-V[0][1])),Dt=+a[0][0]+(ut-Pt*(V[1][0]+V[0][0]))/2,Ft=+a[0][1]+(bt-Pt*(V[1][1]+V[0][1]))/2;r.scale(150*Pt).translate([Dt,Ft])},A)}function xb(r,a,A){return $d(r,[[0,0],a],A)}function a0(r,a,A){return vb(r,function(V){var ut=+a,bt=ut/(V[1][0]-V[0][0]),Pt=(ut-bt*(V[1][0]+V[0][0]))/2,Dt=-bt*V[0][1];r.scale(150*bt).translate([Pt,Dt])},A)}function s0(r,a,A){return vb(r,function(V){var ut=+a,bt=ut/(V[1][1]-V[0][1]),Pt=-bt*V[0][0],Dt=(ut-bt*(V[1][1]+V[0][1]))/2;r.scale(150*bt).translate([Pt,Dt])},A)}var Pv=16,JT=ei(30*ii);function oS(r,a){return+a?t3(r,a):l0(r)}function l0(r){return Tm({point:function(a,A){a=r(a,A),this.stream.point(a[0],a[1])}})}function t3(r,a){function A(V,ut,bt,Pt,Dt,Ft,Vt,$t,ie,Qt,we,Ne,Pe,Be){var He=Vt-V,ln=$t-ut,Je=He*He+ln*ln;if(Je>4*a&&Pe--){var sn=Pt+Qt,kn=Dt+we,Vn=Ft+Ne,Fn=Gt(sn*sn+kn*kn+Vn*Vn),vr=dn(Vn/=Fn),nr=Yi(Yi(Vn)-1)a||Yi((He*Bn+ln*br)/Je-.5)>.3||Pt*Qt+Dt*we+Ft*Ne2?Hn[2]%360*ii:0,Bn()):[Dt*Co,Ft*Co,Vt*Co]},Xn.angle=function(Hn){return arguments.length?(ie=Hn%360*ii,Bn()):ie*Co},Xn.reflectX=function(Hn){return arguments.length?(Qt=Hn?-1:1,Bn()):Qt<0},Xn.reflectY=function(Hn){return arguments.length?(we=Hn?-1:1,Bn()):we<0},Xn.precision=function(Hn){return arguments.length?(Vn=oS(Fn,kn=Hn*Hn),br()):Gt(kn)},Xn.fitExtent=function(Hn,xr){return $d(Xn,Hn,xr)},Xn.fitSize=function(Hn,xr){return xb(Xn,Hn,xr)},Xn.fitWidth=function(Hn,xr){return a0(Xn,Hn,xr)},Xn.fitHeight=function(Hn,xr){return s0(Xn,Hn,xr)};function Bn(){var Hn=aS(A,0,0,Qt,we,ie).apply(null,a(bt,Pt)),xr=(ie?aS:r3)(A,V-Hn[0],ut-Hn[1],Qt,we,ie);return $t=qx(Dt,Ft,Vt),Fn=lv(a,xr),vr=lv($t,Fn),Vn=oS(Fn,kn),br()}function br(){return nr=lr=null,Xn}return function(){return a=r.apply(this,arguments),Xn.invert=a.invert&&un,Bn()}}function bb(r){var a=0,A=Hi/3,V=u0(r),ut=V(a,A);return ut.parallels=function(bt){return arguments.length?V(a=bt[0]*ii,A=bt[1]*ii):[a*Co,A*Co]},ut}function sS(r){var a=ei(r);function A(V,ut){return[V*a,ct(ut)/a]}return A.invert=function(V,ut){return[V/a,dn(ut*a)]},A}function i3(r,a){var A=ct(r),V=(A+ct(a))/2;if(Yi(V)=.12&&Be<.234&&Pe>=-.425&&Pe<-.214?ut:Be>=.166&&Be<.234&&Pe>=-.214&&Pe<-.115?Pt:A).invert(Qt)},$t.stream=function(Qt){return r&&a===Qt?r:r=_b([A.stream(a=Qt),ut.stream(Qt),Pt.stream(Qt)])},$t.precision=function(Qt){return arguments.length?(A.precision(Qt),ut.precision(Qt),Pt.precision(Qt),ie()):A.precision()},$t.scale=function(Qt){return arguments.length?(A.scale(Qt),ut.scale(Qt*.35),Pt.scale(Qt),$t.translate(A.translate())):A.scale()},$t.translate=function(Qt){if(!arguments.length)return A.translate();var we=A.scale(),Ne=+Qt[0],Pe=+Qt[1];return V=A.translate(Qt).clipExtent([[Ne-.455*we,Pe-.238*we],[Ne+.455*we,Pe+.238*we]]).stream(Vt),bt=ut.translate([Ne-.307*we,Pe+.201*we]).clipExtent([[Ne-.425*we+fi,Pe+.12*we+fi],[Ne-.214*we-fi,Pe+.234*we-fi]]).stream(Vt),Dt=Pt.translate([Ne-.205*we,Pe+.212*we]).clipExtent([[Ne-.214*we+fi,Pe+.166*we+fi],[Ne-.115*we-fi,Pe+.234*we-fi]]).stream(Vt),ie()},$t.fitExtent=function(Qt,we){return $d($t,Qt,we)},$t.fitSize=function(Qt,we){return xb($t,Qt,we)},$t.fitWidth=function(Qt,we){return a0($t,Qt,we)},$t.fitHeight=function(Qt,we){return s0($t,Qt,we)};function ie(){return r=a=null,$t}return $t.scale(1070)}function lS(r){return function(a,A){var V=ei(a),ut=ei(A),bt=r(V*ut);return[bt*ut*ct(a),bt*ct(A)]}}function Ov(r){return function(a,A){var V=Gt(a*a+A*A),ut=r(V),bt=ct(ut),Pt=ei(ut);return[Fa(a*bt,V*Pt),dn(V&&A*bt/V)]}}var Nv=lS(function(r){return Gt(2/(1+r))});Nv.invert=Ov(function(r){return 2*dn(r/2)});function Sb(){return Gu(Nv).scale(124.75).clipAngle(179.999)}var Eb=lS(function(r){return(r=Fe(r))&&r/ct(r)});Eb.invert=Ov(function(r){return r});function a3(){return Gu(Eb).scale(79.4188).clipAngle(179.999)}function Dv(r,a){return[r,h(se((ia+a)/2))]}Dv.invert=function(r,a){return[r,2*Hu(Cc(a))-ia]};function uS(){return Rv(Dv).scale(961/Ca)}function Rv(r){var a=Gu(r),A=a.center,V=a.scale,ut=a.translate,bt=a.clipExtent,Pt=null,Dt,Ft,Vt;a.scale=function(ie){return arguments.length?(V(ie),$t()):V()},a.translate=function(ie){return arguments.length?(ut(ie),$t()):ut()},a.center=function(ie){return arguments.length?(A(ie),$t()):A()},a.clipExtent=function(ie){return arguments.length?(ie==null?Pt=Dt=Ft=Vt=null:(Pt=+ie[0][0],Dt=+ie[0][1],Ft=+ie[1][0],Vt=+ie[1][1]),$t()):Pt==null?null:[[Pt,Dt],[Ft,Vt]]};function $t(){var ie=Hi*V(),Qt=a(k_(a.rotate()).invert([0,0]));return bt(Pt==null?[[Qt[0]-ie,Qt[1]-ie],[Qt[0]+ie,Qt[1]+ie]]:r===Dv?[[Math.max(Qt[0]-ie,Pt),Dt],[Math.min(Qt[0]+ie,Ft),Vt]]:[[Pt,Math.max(Qt[1]-ie,Dt)],[Ft,Math.min(Qt[1]+ie,Vt)]])}return $t()}function Lv(r){return se((ia+r)/2)}function cS(r,a){var A=ei(r),V=r===a?ct(r):h(A/ei(a))/h(Lv(a)/Lv(r)),ut=A*O(Lv(r),V)/V;if(!V)return Dv;function bt(Pt,Dt){ut>0?Dt<-ia+fi&&(Dt=-ia+fi):Dt>ia-fi&&(Dt=ia-fi);var Ft=ut/O(Lv(Dt),V);return[Ft*ct(V*Pt),ut-Ft*ei(V*Pt)]}return bt.invert=function(Pt,Dt){var Ft=ut-Dt,Vt=Lt(V)*Gt(Pt*Pt+Ft*Ft),$t=Fa(Pt,Yi(Ft))*Lt(Ft);return Ft*V<0&&($t-=Hi*Lt(Pt)*Lt(Ft)),[$t/V,2*Hu(O(ut/Vt,1/V))-ia]},bt}function I5(){return bb(cS).scale(109.5).parallels([30,30])}function km(r,a){return[r,a]}km.invert=km;function Cb(){return Gu(km).scale(152.63)}function hS(r,a){var A=ei(r),V=r===a?ct(r):(A-ei(a))/(a-r),ut=A/V+r;if(Yi(V)fi&&--V>0);return[r/(.8707+(bt=A*A)*(-.131979+bt*(-.013791+bt*bt*bt*(.003971-.001529*bt)))),A]};function kb(){return Gu(Fv).scale(175.295)}function Ab(r,a){return[ei(a)*ct(r),ct(a)]}Ab.invert=Ov(dn);function fS(){return Gu(Ab).scale(249.5).clipAngle(90+fi)}function dS(r,a){var A=ei(a),V=1+ei(r)*A;return[A*ct(r)/V,ct(a)/V]}dS.invert=Ov(function(r){return 2*Hu(r)});function pS(){return Gu(dS).scale(250).clipAngle(142)}function f0(r,a){return[h(se((ia+a)/2)),-r]}f0.invert=function(r,a){return[-a,2*Hu(Cc(r))-ia]};function u3(){var r=Rv(f0),a=r.center,A=r.rotate;return r.center=function(V){return arguments.length?a([-V[1],V[0]]):(V=a(),[V[1],-V[0]])},r.rotate=function(V){return arguments.length?A([V[0],V[1],V.length>2?V[2]+90:90]):(V=A(),[V[0],V[1],V[2]-90])},A([0,0,90]).scale(159.155)}function c3(r,a){return r.parent===a.parent?1:2}function F5(r){return r.reduce(mS,0)/r.length}function mS(r,a){return r+a.x}function Pb(r){return 1+r.reduce(h3,0)}function h3(r,a){return Math.max(r,a.y)}function f3(r){for(var a;a=r.children;)r=a[0];return r}function z5(r){for(var a;a=r.children;)r=a[a.length-1];return r}function gS(){var r=c3,a=1,A=1,V=!1;function ut(bt){var Pt,Dt=0;bt.eachAfter(function(Qt){var we=Qt.children;we?(Qt.x=F5(we),Qt.y=Pb(we)):(Qt.x=Pt?Dt+=r(Qt,Pt):0,Qt.y=0,Pt=Qt)});var Ft=f3(bt),Vt=z5(bt),$t=Ft.x-r(Ft,Vt)/2,ie=Vt.x+r(Vt,Ft)/2;return bt.eachAfter(V?function(Qt){Qt.x=(Qt.x-bt.x)*a,Qt.y=(bt.y-Qt.y)*A}:function(Qt){Qt.x=(Qt.x-$t)/(ie-$t)*a,Qt.y=(1-(bt.y?Qt.y/bt.y:1))*A})}return ut.separation=function(bt){return arguments.length?(r=bt,ut):r},ut.size=function(bt){return arguments.length?(V=!1,a=+bt[0],A=+bt[1],ut):V?null:[a,A]},ut.nodeSize=function(bt){return arguments.length?(V=!0,a=+bt[0],A=+bt[1],ut):V?[a,A]:null},ut}function Ob(r){var a=0,A=r.children,V=A&&A.length;if(!V)a=1;else for(;--V>=0;)a+=A[V].value;r.value=a}function d3(){return this.eachAfter(Ob)}function p3(r){var a=this,A,V=[a],ut,bt,Pt;do for(A=V.reverse(),V=[];a=A.pop();)if(r(a),ut=a.children,ut)for(bt=0,Pt=ut.length;bt=0;--ut)A.push(V[ut]);return this}function yS(r){for(var a=this,A=[a],V=[],ut,bt,Pt;a=A.pop();)if(V.push(a),ut=a.children,ut)for(bt=0,Pt=ut.length;bt=0;)A+=V[ut].value;a.value=A})}function xS(r){return this.eachBefore(function(a){a.children&&a.children.sort(r)})}function bS(r){for(var a=this,A=wS(a,r),V=[a];a!==A;)a=a.parent,V.push(a);for(var ut=V.length;r!==A;)V.splice(ut,0,r),r=r.parent;return V}function wS(r,a){if(r===a)return r;var A=r.ancestors(),V=a.ancestors(),ut=null;for(r=A.pop(),a=V.pop();r===a;)ut=r,r=A.pop(),a=V.pop();return ut}function Nb(){for(var r=this,a=[r];r=r.parent;)a.push(r);return a}function m3(){var r=[];return this.each(function(a){r.push(a)}),r}function g3(){var r=[];return this.eachBefore(function(a){a.children||r.push(a)}),r}function H5(){var r=this,a=[];return r.each(function(A){A!==r&&a.push({source:A.parent,target:A})}),a}function zv(r,a){var A=new Kd(r),V=+r.value&&(A.value=r.value),ut,bt=[A],Pt,Dt,Ft,Vt;for(a==null&&(a=y3);ut=bt.pop();)if(V&&(ut.value=+ut.data.value),(Dt=a(ut.data))&&(Vt=Dt.length))for(ut.children=new Array(Vt),Ft=Vt-1;Ft>=0;--Ft)bt.push(Pt=ut.children[Ft]=new Kd(Dt[Ft])),Pt.parent=ut,Pt.depth=ut.depth+1;return A.eachBefore(x3)}function Db(){return zv(this).eachBefore(v3)}function y3(r){return r.children}function v3(r){r.data=r.data.data}function x3(r){var a=0;do r.height=a;while((r=r.parent)&&r.height<++a)}function Kd(r){this.data=r,this.depth=this.height=0,this.parent=null}Kd.prototype=zv.prototype={constructor:Kd,count:d3,each:p3,eachAfter:yS,eachBefore:U5,sum:vS,sort:xS,path:bS,ancestors:Nb,descendants:m3,leaves:g3,links:H5,copy:Db};var Rb=Array.prototype.slice;function b3(r){for(var a=r.length,A,V;a;)V=Math.random()*a--|0,A=r[a],r[a]=r[V],r[V]=A;return r}function _S(r){for(var a=0,A=(r=b3(Rb.call(r))).length,V=[],ut,bt;a0&&A*A>V*V+ut*ut}function Lb(r,a){for(var A=0;AFt?(ut=(Vt+Ft-bt)/(2*Vt),Dt=Math.sqrt(Math.max(0,Ft/Vt-ut*ut)),A.x=r.x-ut*V-Dt*Pt,A.y=r.y-ut*Pt+Dt*V):(ut=(Vt+bt-Ft)/(2*Vt),Dt=Math.sqrt(Math.max(0,bt/Vt-ut*ut)),A.x=a.x+ut*V-Dt*Pt,A.y=a.y+ut*Pt+Dt*V)):(A.x=a.x+A.r,A.y=a.y)}function ES(r,a){var A=r.r+a.r-1e-6,V=a.x-r.x,ut=a.y-r.y;return A>0&&A*A>V*V+ut*ut}function _3(r){var a=r._,A=r.next._,V=a.r+A.r,ut=(a.x*A.r+A.x*a.r)/V,bt=(a.y*A.r+A.y*a.r)/V;return ut*ut+bt*bt}function p0(r){this._=r,this.next=null,this.previous=null}function Vv(r){if(!(ut=r.length))return 0;var a,A,V,ut,bt,Pt,Dt,Ft,Vt,$t,ie;if(a=r[0],a.x=0,a.y=0,!(ut>1))return a.r;if(A=r[1],a.x=-A.r,A.x=a.r,A.y=0,!(ut>2))return a.r+A.r;SS(A,a,V=r[2]),a=new p0(a),A=new p0(A),V=new p0(V),a.next=V.previous=A,A.next=a.previous=V,V.next=A.previous=a;t:for(Dt=3;Dt0)throw new Error("cycle");return Dt}return A.id=function(V){return arguments.length?(r=Ib(V),A):r},A.parentId=function(V){return arguments.length?(a=Ib(V),A):a},A}function Fb(r,a){return r.parent===a.parent?1:2}function zb(r){var a=r.children;return a?a[0]:r.t}function Ub(r){var a=r.children;return a?a[a.length-1]:r.t}function X5(r,a,A){var V=A/(a.i-r.i);a.c-=V,a.s+=A,r.c+=V,a.z+=A,a.m+=A}function kS(r){for(var a=0,A=0,V=r.children,ut=V.length,bt;--ut>=0;)bt=V[ut],bt.z+=a,bt.m+=a,a+=bt.s+(A+=bt.c)}function Hb(r,a,A){return r.a.parent===a.parent?r.a:A}function Gv(r,a){this._=r,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=a}Gv.prototype=Object.create(Kd.prototype);function A3(r){for(var a=new Gv(r,0),A,V=[a],ut,bt,Pt,Dt;A=V.pop();)if(bt=A._.children)for(A.children=new Array(Dt=bt.length),Pt=Dt-1;Pt>=0;--Pt)V.push(ut=A.children[Pt]=new Gv(bt[Pt],Pt)),ut.parent=A;return(a.parent=new Gv(null,0)).children=[a],a}function $5(){var r=Fb,a=1,A=1,V=null;function ut(Vt){var $t=A3(Vt);if($t.eachAfter(bt),$t.parent.m=-$t.z,$t.eachBefore(Pt),V)Vt.eachBefore(Ft);else{var ie=Vt,Qt=Vt,we=Vt;Vt.eachBefore(function(ln){ln.xQt.x&&(Qt=ln),ln.depth>we.depth&&(we=ln)});var Ne=ie===Qt?1:r(ie,Qt)/2,Pe=Ne-ie.x,Be=a/(Qt.x+Ne+Pe),He=A/(we.depth||1);Vt.eachBefore(function(ln){ln.x=(ln.x+Pe)*Be,ln.y=ln.depth*He})}return Vt}function bt(Vt){var $t=Vt.children,ie=Vt.parent.children,Qt=Vt.i?ie[Vt.i-1]:null;if($t){kS(Vt);var we=($t[0].z+$t[$t.length-1].z)/2;Qt?(Vt.z=Qt.z+r(Vt._,Qt._),Vt.m=Vt.z-we):Vt.z=we}else Qt&&(Vt.z=Qt.z+r(Vt._,Qt._));Vt.parent.A=Dt(Vt,Qt,Vt.parent.A||ie[0])}function Pt(Vt){Vt._.x=Vt.z+Vt.parent.m,Vt.m+=Vt.parent.m}function Dt(Vt,$t,ie){if($t){for(var Qt=Vt,we=Vt,Ne=$t,Pe=Qt.parent.children[0],Be=Qt.m,He=we.m,ln=Ne.m,Je=Pe.m,sn;Ne=Ub(Ne),Qt=zb(Qt),Ne&&Qt;)Pe=zb(Pe),we=Ub(we),we.a=Vt,sn=Ne.z+ln-Qt.z-Be+r(Ne._,Qt._),sn>0&&(X5(Hb(Ne,Vt,ie),Vt,sn),Be+=sn,He+=sn),ln+=Ne.m,Be+=Qt.m,Je+=Pe.m,He+=we.m;Ne&&!Ub(we)&&(we.t=Ne,we.m+=ln-He),Qt&&!zb(Pe)&&(Pe.t=Qt,Pe.m+=Be-Je,ie=Vt)}return ie}function Ft(Vt){Vt.x*=a,Vt.y=Vt.depth*A}return ut.separation=function(Vt){return arguments.length?(r=Vt,ut):r},ut.size=function(Vt){return arguments.length?(V=!1,a=+Vt[0],A=+Vt[1],ut):V?null:[a,A]},ut.nodeSize=function(Vt){return arguments.length?(V=!0,a=+Vt[0],A=+Vt[1],ut):V?[a,A]:null},ut}function Yo(r,a,A,V,ut){for(var bt=r.children,Pt,Dt=-1,Ft=bt.length,Vt=r.value&&(ut-A)/r.value;++Dtln&&(ln=Vt),Vn=Be*Be*kn,Je=Math.max(ln/Vn,Vn/He),Je>sn){Be-=Vt;break}sn=Je}Pt.push(Ft={value:Be,dice:we1?V:1)},A}(Vb);function q5(){var r=Vi,a=!1,A=1,V=1,ut=[0],bt=Mf,Pt=Mf,Dt=Mf,Ft=Mf,Vt=Mf;function $t(Qt){return Qt.x0=Qt.y0=0,Qt.x1=A,Qt.y1=V,Qt.eachBefore(ie),ut=[0],a&&Qt.eachBefore(CS),Qt}function ie(Qt){var we=ut[Qt.depth],Ne=Qt.x0+we,Pe=Qt.y0+we,Be=Qt.x1-we,He=Qt.y1-we;Be=Qt-1){var ln=bt[ie];ln.x0=Ne,ln.y0=Pe,ln.x1=Be,ln.y1=He;return}for(var Je=Vt[ie],sn=we/2+Je,kn=ie+1,Vn=Qt-1;kn>>1;Vt[Fn]He-Pe){var lr=(Ne*nr+Be*vr)/we;$t(ie,kn,vr,Ne,Pe,lr,He),$t(kn,Qt,nr,lr,Pe,Be,He)}else{var Xn=(Pe*nr+He*vr)/we;$t(ie,kn,vr,Ne,Pe,Be,Xn),$t(kn,Qt,nr,Ne,Xn,Be,He)}}}function Pn(r,a,A,V,ut){(r.depth&1?Yo:m0)(r,a,A,V,ut)}const Wb=function r(a){function A(V,ut,bt,Pt,Dt){if((Ft=V._squarify)&&Ft.ratio===a)for(var Ft,Vt,$t,ie,Qt=-1,we,Ne=Ft.length,Pe=V.value;++Qt1?V:1)},A}(Vb);function g0(r){var a=r.length;return function(A){return r[Math.max(0,Math.min(a-1,Math.floor(A*a)))]}}function P3(r,a){var A=Hc(+r,+a);return function(V){var ut=A(V);return ut-360*Math.floor(ut/360)}}function di(r,a){return r=+r,a=+a,function(A){return Math.round(r*(1-A)+a*A)}}var Zd=Math.SQRT2,Xv=2,Yb=4,PS=1e-12;function hh(r){return((r=Math.exp(r))+1/r)/2}function OS(r){return((r=Math.exp(r))-1/r)/2}function K5(r){return((r=Math.exp(2*r))-1)/(r+1)}function O3(r,a){var A=r[0],V=r[1],ut=r[2],bt=a[0],Pt=a[1],Dt=a[2],Ft=bt-A,Vt=Pt-V,$t=Ft*Ft+Vt*Vt,ie,Qt;if($t1&&B3(r[A[V-2]],r[A[V-1]],r[ut])<=0;)--V;A[V++]=ut}return A.slice(0,V)}function z3(r){if((A=r.length)<3)return null;var a,A,V=new Array(A),ut=new Array(A);for(a=0;a=0;--a)Vt.push(r[V[bt[a]][2]]);for(a=+Dt;abt!=Dt>bt&&ut<(Pt-Ft)*(bt-Vt)/(Dt-Vt)+Ft&&($t=!$t),Pt=Ft,Dt=Vt;return $t}function Q5(r){for(var a=-1,A=r.length,V=r[A-1],ut,bt,Pt=V[0],Dt=V[1],Ft=0;++a1);return V+ut*Dt*Math.sqrt(-2*Math.log(Pt)/Pt)}}return A.source=r,A}(Ol),J5=function r(a){function A(){var V=$b.source(a).apply(this,arguments);return function(){return Math.exp(V())}}return A.source=r,A}(Ol),qb=function r(a){function A(V){return function(){for(var ut=0,bt=0;btA&&(V=a,a=A,A=V),function(ut){return Math.max(a,Math.min(A,ut))}}function IS(r,a,A){var V=r[0],ut=r[1],bt=a[0],Pt=a[1];return ut2?tw:IS,Ft=Vt=null,ie}function ie(Qt){return isNaN(Qt=+Qt)?bt:(Ft||(Ft=Dt(r.map(V),a,A)))(V(Pt(Qt)))}return ie.invert=function(Qt){return Pt(ut((Vt||(Vt=Dt(a,r.map(V),As)))(Qt)))},ie.domain=function(Qt){return arguments.length?(r=qv.call(Qt,Zb),Pt===ts||(Pt=Jb(r)),$t()):r.slice()},ie.range=function(Qt){return arguments.length?(a=Qd.call(Qt),$t()):a.slice()},ie.rangeRound=function(Qt){return a=Qd.call(Qt),A=di,$t()},ie.clamp=function(Qt){return arguments.length?(Pt=Qt?Jb(r):ts,ie):Pt!==ts},ie.interpolate=function(Qt){return arguments.length?(A=Qt,$t()):A},ie.unknown=function(Qt){return arguments.length?(bt=Qt,ie):bt},function(Qt,we){return V=Qt,ut=we,$t()}}function jS(r,a){return Jv()(r,a)}function BS(r,a,A,V){var ut=(0,d.sG)(r,a,A),bt;switch(V=bf(V==null?",f":V),V.type){case"s":{var Pt=Math.max(Math.abs(r),Math.abs(a));return V.precision==null&&!isNaN(bt=Fd(ut,Pt))&&(V.precision=bt),Al(V,Pt)}case"":case"e":case"g":case"p":case"r":{V.precision==null&&!isNaN(bt=ev(ut,Math.max(Math.abs(r),Math.abs(a))))&&(V.precision=bt-(V.type==="e"));break}case"f":case"%":{V.precision==null&&!isNaN(bt=Yg(ut))&&(V.precision=bt-(V.type==="%")*2);break}}return ol(V)}function Af(r){var a=r.domain;return r.ticks=function(A){var V=a();return(0,d.Zc)(V[0],V[V.length-1],A==null?10:A)},r.tickFormat=function(A,V){var ut=a();return BS(ut[0],ut[ut.length-1],A==null?10:A,V)},r.nice=function(A){A==null&&(A=10);var V=a(),ut=0,bt=V.length-1,Pt=V[ut],Dt=V[bt],Ft;return Dt0?(Pt=Math.floor(Pt/Ft)*Ft,Dt=Math.ceil(Dt/Ft)*Ft,Ft=(0,d.lq)(Pt,Dt,A)):Ft<0&&(Pt=Math.ceil(Pt*Ft)/Ft,Dt=Math.floor(Dt*Ft)/Ft,Ft=(0,d.lq)(Pt,Dt,A)),Ft>0?(V[ut]=Math.floor(Pt/Ft)*Ft,V[bt]=Math.ceil(Dt/Ft)*Ft,a(V)):Ft<0&&(V[ut]=Math.ceil(Pt*Ft)/Ft,V[bt]=Math.floor(Dt*Ft)/Ft,a(V)),r},r}function FS(){var r=jS(ts,ts);return r.copy=function(){return b0(r,FS())},Xu.apply(r,arguments),Af(r)}function zS(r){var a;function A(V){return isNaN(V=+V)?a:V}return A.invert=A,A.domain=A.range=function(V){return arguments.length?(r=qv.call(V,Zb),A):r.slice()},A.unknown=function(V){return arguments.length?(a=V,A):a},A.copy=function(){return zS(r).unknown(a)},r=arguments.length?qv.call(r,Zb):[0,1],Af(A)}function ew(r,a){r=r.slice();var A=0,V=r.length-1,ut=r[A],bt=r[V],Pt;return bt0){for(;Qt$t)break;ln.push(Be)}}else for(;Qt=1;--Pe)if(Be=Ne*Pe,!(Be$t)break;ln.push(Be)}}else ln=(0,d.Zc)(Qt,we,Math.min(we-Qt,He)).map(bt);return ie?ln.reverse():ln},a.tickFormat=function(Dt,Ft){if(Ft==null&&(Ft=V===10?".0e":","),typeof Ft!="function"&&(Ft=ol(Ft)),Dt===1/0)return Ft;Dt==null&&(Dt=10);var Vt=Math.max(1,V*Dt/a.ticks().length);return function($t){var ie=$t/bt(Math.round(ut($t)));return ie*V0?A[Dt-1]:r[0],Dt=A?[V[A-1],a]:[V[Vt-1],V[Vt]]},Pt.unknown=function(Ft){return arguments.length&&(bt=Ft),Pt},Pt.thresholds=function(){return V.slice()},Pt.copy=function(){return ep().domain([r,a]).range(ut).unknown(bt)},Xu.apply(Af(Pt),arguments)}function cw(){var r=[.5],a=[0,1],A,V=1;function ut(bt){return bt<=bt?a[(0,d.h1)(r,bt,0,V)]:A}return ut.domain=function(bt){return arguments.length?(r=Qd.call(bt),V=Math.min(r.length,a.length-1),ut):r.slice()},ut.range=function(bt){return arguments.length?(a=Qd.call(bt),V=Math.min(r.length,a.length-1),ut):a.slice()},ut.invertExtent=function(bt){var Pt=a.indexOf(bt);return[r[Pt-1],r[Pt]]},ut.unknown=function(bt){return arguments.length?(A=bt,ut):A},ut.copy=function(){return cw().domain(r).range(a).unknown(A)},Xu.apply(ut,arguments)}var i1=new Date,GS=new Date;function es(r,a,A,V){function ut(bt){return r(bt=arguments.length===0?new Date:new Date(+bt)),bt}return ut.floor=function(bt){return r(bt=new Date(+bt)),bt},ut.ceil=function(bt){return r(bt=new Date(bt-1)),a(bt,1),r(bt),bt},ut.round=function(bt){var Pt=ut(bt),Dt=ut.ceil(bt);return bt-Pt0))return Ft;do Ft.push(Vt=new Date(+bt)),a(bt,Dt),r(bt);while(Vt=Pt)for(;r(Pt),!bt(Pt);)Pt.setTime(Pt-1)},function(Pt,Dt){if(Pt>=Pt)if(Dt<0)for(;++Dt<=0;)for(;a(Pt,-1),!bt(Pt););else for(;--Dt>=0;)for(;a(Pt,1),!bt(Pt););})},A&&(ut.count=function(bt,Pt){return i1.setTime(+bt),GS.setTime(+Pt),r(i1),r(GS),Math.floor(A(i1,GS))},ut.every=function(bt){return bt=Math.floor(bt),!isFinite(bt)||!(bt>0)?null:bt>1?ut.filter(V?function(Pt){return V(Pt)%bt===0}:function(Pt){return ut.count(0,Pt)%bt===0}):ut}),ut}var Ac=es(function(r){r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,a){r.setFullYear(r.getFullYear()+a)},function(r,a){return a.getFullYear()-r.getFullYear()},function(r){return r.getFullYear()});Ac.every=function(r){return!isFinite(r=Math.floor(r))||!(r>0)?null:es(function(a){a.setFullYear(Math.floor(a.getFullYear()/r)*r),a.setMonth(0,1),a.setHours(0,0,0,0)},function(a,A){a.setFullYear(a.getFullYear()+A*r)})};const Pf=Ac;var tO=Ac.range,Y3=es(function(r){r.setDate(1),r.setHours(0,0,0,0)},function(r,a){r.setMonth(r.getMonth()+a)},function(r,a){return a.getMonth()-r.getMonth()+(a.getFullYear()-r.getFullYear())*12},function(r){return r.getMonth()});const hw=Y3;var XS=Y3.range,o1=1e3,np=6e4,_0=36e5,a1=864e5,$S=6048e5;function dh(r){return es(function(a){a.setDate(a.getDate()-(a.getDay()+7-r)%7),a.setHours(0,0,0,0)},function(a,A){a.setDate(a.getDate()+A*7)},function(a,A){return(A-a-(A.getTimezoneOffset()-a.getTimezoneOffset())*np)/$S})}var S0=dh(0),E0=dh(1),Of=dh(2),Nf=dh(3),rp=dh(4),qS=dh(5),s1=dh(6),fw=S0.range,G3=E0.range,X3=Of.range,$3=Nf.range,dw=rp.range,q3=qS.range,KS=s1.range,l1=es(function(r){r.setHours(0,0,0,0)},function(r,a){r.setDate(r.getDate()+a)},function(r,a){return(a-r-(a.getTimezoneOffset()-r.getTimezoneOffset())*np)/a1},function(r){return r.getDate()-1});const Nm=l1;var ph=l1.range,Nl=es(function(r){r.setTime(r-r.getMilliseconds()-r.getSeconds()*o1-r.getMinutes()*np)},function(r,a){r.setTime(+r+a*_0)},function(r,a){return(a-r)/_0},function(r){return r.getHours()});const u1=Nl;var K3=Nl.range,pw=es(function(r){r.setTime(r-r.getMilliseconds()-r.getSeconds()*o1)},function(r,a){r.setTime(+r+a*np)},function(r,a){return(a-r)/np},function(r){return r.getMinutes()});const mw=pw;var Z3=pw.range,ZS=es(function(r){r.setTime(r-r.getMilliseconds())},function(r,a){r.setTime(+r+a*o1)},function(r,a){return(a-r)/o1},function(r){return r.getUTCSeconds()});const c1=ZS;var Q3=ZS.range,oa=es(function(){},function(r,a){r.setTime(+r+a)},function(r,a){return a-r});oa.every=function(r){return r=Math.floor(r),!isFinite(r)||!(r>0)?null:r>1?es(function(a){a.setTime(Math.floor(a/r)*r)},function(a,A){a.setTime(+a+A*r)},function(a,A){return(A-a)/r}):oa};const mh=oa;var QS=oa.range;function Df(r){return es(function(a){a.setUTCDate(a.getUTCDate()-(a.getUTCDay()+7-r)%7),a.setUTCHours(0,0,0,0)},function(a,A){a.setUTCDate(a.getUTCDate()+A*7)},function(a,A){return(A-a)/$S})}var pi=Df(0),C0=Df(1),cs=Df(2),JS=Df(3),ip=Df(4),tE=Df(5),eE=Df(6),nE=pi.range,rE=C0.range,J3=cs.range,tk=JS.range,iE=ip.range,gw=tE.range,h1=eE.range,yw=es(function(r){r.setUTCHours(0,0,0,0)},function(r,a){r.setUTCDate(r.getUTCDate()+a)},function(r,a){return(a-r)/a1},function(r){return r.getUTCDate()-1});const Es=yw;var Pc=yw.range,sl=es(function(r){r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,a){r.setUTCFullYear(r.getUTCFullYear()+a)},function(r,a){return a.getUTCFullYear()-r.getUTCFullYear()},function(r){return r.getUTCFullYear()});sl.every=function(r){return!isFinite(r=Math.floor(r))||!(r>0)?null:es(function(a){a.setUTCFullYear(Math.floor(a.getUTCFullYear()/r)*r),a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},function(a,A){a.setUTCFullYear(a.getUTCFullYear()+A*r)})};const Oc=sl;var ek=sl.range;function vw(r){if(0<=r.y&&r.y<100){var a=new Date(-1,r.m,r.d,r.H,r.M,r.S,r.L);return a.setFullYear(r.y),a}return new Date(r.y,r.m,r.d,r.H,r.M,r.S,r.L)}function eu(r){if(0<=r.y&&r.y<100){var a=new Date(Date.UTC(-1,r.m,r.d,r.H,r.M,r.S,r.L));return a.setUTCFullYear(r.y),a}return new Date(Date.UTC(r.y,r.m,r.d,r.H,r.M,r.S,r.L))}function M0(r,a,A){return{y:r,m:a,d:A,H:0,M:0,S:0,L:0}}function oE(r){var a=r.dateTime,A=r.date,V=r.time,ut=r.periods,bt=r.days,Pt=r.shortDays,Dt=r.months,Ft=r.shortMonths,Vt=Rf(ut),$t=T0(ut),ie=Rf(bt),Qt=T0(bt),we=Rf(Pt),Ne=T0(Pt),Pe=Rf(Dt),Be=T0(Dt),He=Rf(Ft),ln=T0(Ft),Je={a:Zr,A:jr,b:oi,B:Ri,c:null,d:dE,e:dE,f:mE,g:xE,G:wE,H:uk,I:ck,j:hk,L:pE,m:fk,M:dk,p:Li,q:mo,Q:Tw,s:kw,S:pk,u:gE,U:mk,V:Ew,w:Cw,W:vE,x:null,X:null,y:gk,Y:bE,Z:yk,"%":Mw},sn={a:Bo,A:lo,b:Ha,B:au,c:null,d:_E,e:_E,f:bk,g:TE,G:kE,H:SE,I:Nc,j:vk,L:xk,m:wk,M:_k,p:su,q:qu,Q:Tw,s:kw,S:Sk,u:Ek,U:EE,V:Dm,w:Ck,W:Mk,x:null,X:null,y:ME,Y:Tk,Z:nO,"%":Mw},kn={a:lr,A:Xn,b:un,B:Bn,c:br,d:lE,e:lE,f:hE,g:_w,G:sE,H:cE,I:cE,j:uE,L:Cs,m:Sw,M:ak,p:nr,q:ok,Q:fE,s:f1,S:sk,u:bw,U:Dl,V:eO,w:xw,W:ww,x:Hn,X:xr,y:_w,Y:sE,Z:ik,"%":lk};Je.x=Vn(A,Je),Je.X=Vn(V,Je),Je.c=Vn(a,Je),sn.x=Vn(A,sn),sn.X=Vn(V,sn),sn.c=Vn(a,sn);function Vn(Yr,ji){return function(qi){var Pr=[],hs=-1,uo=0,Ds=Yr.length,Rs,wh,rs;for(qi instanceof Date||(qi=new Date(+qi));++hs53)return null;"w"in Pr||(Pr.w=1),"Z"in Pr?(uo=eu(M0(Pr.y,0,1)),Ds=uo.getUTCDay(),uo=Ds>4||Ds===0?C0.ceil(uo):C0(uo),uo=Es.offset(uo,(Pr.V-1)*7),Pr.y=uo.getUTCFullYear(),Pr.m=uo.getUTCMonth(),Pr.d=uo.getUTCDate()+(Pr.w+6)%7):(uo=vw(M0(Pr.y,0,1)),Ds=uo.getDay(),uo=Ds>4||Ds===0?E0.ceil(uo):E0(uo),uo=Nm.offset(uo,(Pr.V-1)*7),Pr.y=uo.getFullYear(),Pr.m=uo.getMonth(),Pr.d=uo.getDate()+(Pr.w+6)%7)}else("W"in Pr||"U"in Pr)&&("w"in Pr||(Pr.w="u"in Pr?Pr.u%7:"W"in Pr?1:0),Ds="Z"in Pr?eu(M0(Pr.y,0,1)).getUTCDay():vw(M0(Pr.y,0,1)).getDay(),Pr.m=0,Pr.d="W"in Pr?(Pr.w+6)%7+Pr.W*7-(Ds+5)%7:Pr.w+Pr.U*7-(Ds+6)%7);return"Z"in Pr?(Pr.H+=Pr.Z/100|0,Pr.M+=Pr.Z%100,eu(Pr)):vw(Pr)}}function vr(Yr,ji,qi,Pr){for(var hs=0,uo=ji.length,Ds=qi.length,Rs,wh;hs=Ds)return-1;if(Rs=ji.charCodeAt(hs++),Rs===37){if(Rs=ji.charAt(hs++),wh=kn[Rs in aE?ji.charAt(hs++):Rs],!wh||(Pr=wh(Yr,qi,Pr))<0)return-1}else if(Rs!=qi.charCodeAt(Pr++))return-1}return Pr}function nr(Yr,ji,qi){var Pr=Vt.exec(ji.slice(qi));return Pr?(Yr.p=$t[Pr[0].toLowerCase()],qi+Pr[0].length):-1}function lr(Yr,ji,qi){var Pr=we.exec(ji.slice(qi));return Pr?(Yr.w=Ne[Pr[0].toLowerCase()],qi+Pr[0].length):-1}function Xn(Yr,ji,qi){var Pr=ie.exec(ji.slice(qi));return Pr?(Yr.w=Qt[Pr[0].toLowerCase()],qi+Pr[0].length):-1}function un(Yr,ji,qi){var Pr=He.exec(ji.slice(qi));return Pr?(Yr.m=ln[Pr[0].toLowerCase()],qi+Pr[0].length):-1}function Bn(Yr,ji,qi){var Pr=Pe.exec(ji.slice(qi));return Pr?(Yr.m=Be[Pr[0].toLowerCase()],qi+Pr[0].length):-1}function br(Yr,ji,qi){return vr(Yr,a,ji,qi)}function Hn(Yr,ji,qi){return vr(Yr,A,ji,qi)}function xr(Yr,ji,qi){return vr(Yr,V,ji,qi)}function Zr(Yr){return Pt[Yr.getDay()]}function jr(Yr){return bt[Yr.getDay()]}function oi(Yr){return Ft[Yr.getMonth()]}function Ri(Yr){return Dt[Yr.getMonth()]}function Li(Yr){return ut[+(Yr.getHours()>=12)]}function mo(Yr){return 1+~~(Yr.getMonth()/3)}function Bo(Yr){return Pt[Yr.getUTCDay()]}function lo(Yr){return bt[Yr.getUTCDay()]}function Ha(Yr){return Ft[Yr.getUTCMonth()]}function au(Yr){return Dt[Yr.getUTCMonth()]}function su(Yr){return ut[+(Yr.getUTCHours()>=12)]}function qu(Yr){return 1+~~(Yr.getUTCMonth()/3)}return{format:function(Yr){var ji=Vn(Yr+="",Je);return ji.toString=function(){return Yr},ji},parse:function(Yr){var ji=Fn(Yr+="",!1);return ji.toString=function(){return Yr},ji},utcFormat:function(Yr){var ji=Vn(Yr+="",sn);return ji.toString=function(){return Yr},ji},utcParse:function(Yr){var ji=Fn(Yr+="",!0);return ji.toString=function(){return Yr},ji}}}var aE={"-":"",_:" ",0:"0"},Ta=/^\s*\d+/,op=/^%/,nk=/[\\^$*+?|[\]().{}]/g;function bo(r,a,A){var V=r<0?"-":"",ut=(V?-r:r)+"",bt=ut.length;return V+(bt68?1900:2e3),A+V[0].length):-1}function ik(r,a,A){var V=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(a.slice(A,A+6));return V?(r.Z=V[1]?0:-(V[2]+(V[3]||"00")),A+V[0].length):-1}function ok(r,a,A){var V=Ta.exec(a.slice(A,A+1));return V?(r.q=V[0]*3-3,A+V[0].length):-1}function Sw(r,a,A){var V=Ta.exec(a.slice(A,A+2));return V?(r.m=V[0]-1,A+V[0].length):-1}function lE(r,a,A){var V=Ta.exec(a.slice(A,A+2));return V?(r.d=+V[0],A+V[0].length):-1}function uE(r,a,A){var V=Ta.exec(a.slice(A,A+3));return V?(r.m=0,r.d=+V[0],A+V[0].length):-1}function cE(r,a,A){var V=Ta.exec(a.slice(A,A+2));return V?(r.H=+V[0],A+V[0].length):-1}function ak(r,a,A){var V=Ta.exec(a.slice(A,A+2));return V?(r.M=+V[0],A+V[0].length):-1}function sk(r,a,A){var V=Ta.exec(a.slice(A,A+2));return V?(r.S=+V[0],A+V[0].length):-1}function Cs(r,a,A){var V=Ta.exec(a.slice(A,A+3));return V?(r.L=+V[0],A+V[0].length):-1}function hE(r,a,A){var V=Ta.exec(a.slice(A,A+6));return V?(r.L=Math.floor(V[0]/1e3),A+V[0].length):-1}function lk(r,a,A){var V=op.exec(a.slice(A,A+1));return V?A+V[0].length:-1}function fE(r,a,A){var V=Ta.exec(a.slice(A));return V?(r.Q=+V[0],A+V[0].length):-1}function f1(r,a,A){var V=Ta.exec(a.slice(A));return V?(r.s=+V[0],A+V[0].length):-1}function dE(r,a){return bo(r.getDate(),a,2)}function uk(r,a){return bo(r.getHours(),a,2)}function ck(r,a){return bo(r.getHours()%12||12,a,2)}function hk(r,a){return bo(1+Nm.count(Pf(r),r),a,3)}function pE(r,a){return bo(r.getMilliseconds(),a,3)}function mE(r,a){return pE(r,a)+"000"}function fk(r,a){return bo(r.getMonth()+1,a,2)}function dk(r,a){return bo(r.getMinutes(),a,2)}function pk(r,a){return bo(r.getSeconds(),a,2)}function gE(r){var a=r.getDay();return a===0?7:a}function mk(r,a){return bo(S0.count(Pf(r)-1,r),a,2)}function yE(r){var a=r.getDay();return a>=4||a===0?rp(r):rp.ceil(r)}function Ew(r,a){return r=yE(r),bo(rp.count(Pf(r),r)+(Pf(r).getDay()===4),a,2)}function Cw(r){return r.getDay()}function vE(r,a){return bo(E0.count(Pf(r)-1,r),a,2)}function gk(r,a){return bo(r.getFullYear()%100,a,2)}function xE(r,a){return r=yE(r),bo(r.getFullYear()%100,a,2)}function bE(r,a){return bo(r.getFullYear()%1e4,a,4)}function wE(r,a){var A=r.getDay();return r=A>=4||A===0?rp(r):rp.ceil(r),bo(r.getFullYear()%1e4,a,4)}function yk(r){var a=r.getTimezoneOffset();return(a>0?"-":(a*=-1,"+"))+bo(a/60|0,"0",2)+bo(a%60,"0",2)}function _E(r,a){return bo(r.getUTCDate(),a,2)}function SE(r,a){return bo(r.getUTCHours(),a,2)}function Nc(r,a){return bo(r.getUTCHours()%12||12,a,2)}function vk(r,a){return bo(1+Es.count(Oc(r),r),a,3)}function xk(r,a){return bo(r.getUTCMilliseconds(),a,3)}function bk(r,a){return xk(r,a)+"000"}function wk(r,a){return bo(r.getUTCMonth()+1,a,2)}function _k(r,a){return bo(r.getUTCMinutes(),a,2)}function Sk(r,a){return bo(r.getUTCSeconds(),a,2)}function Ek(r){var a=r.getUTCDay();return a===0?7:a}function EE(r,a){return bo(pi.count(Oc(r)-1,r),a,2)}function CE(r){var a=r.getUTCDay();return a>=4||a===0?ip(r):ip.ceil(r)}function Dm(r,a){return r=CE(r),bo(ip.count(Oc(r),r)+(Oc(r).getUTCDay()===4),a,2)}function Ck(r){return r.getUTCDay()}function Mk(r,a){return bo(C0.count(Oc(r)-1,r),a,2)}function ME(r,a){return bo(r.getUTCFullYear()%100,a,2)}function TE(r,a){return r=CE(r),bo(r.getUTCFullYear()%100,a,2)}function Tk(r,a){return bo(r.getUTCFullYear()%1e4,a,4)}function kE(r,a){var A=r.getUTCDay();return r=A>=4||A===0?ip(r):ip.ceil(r),bo(r.getUTCFullYear()%1e4,a,4)}function nO(){return"+0000"}function Mw(){return"%"}function Tw(r){return+r}function kw(r){return Math.floor(+r/1e3)}var Ki,k0,Aw,A0,Lf;AE({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function AE(r){return Ki=oE(r),k0=Ki.format,Aw=Ki.parse,A0=Ki.utcFormat,Lf=Ki.utcParse,Ki}var Rm=1e3,Lm=Rm*60,Im=Lm*60,Dc=Im*24,kk=Dc*7,PE=Dc*30,Pw=Dc*365;function Ak(r){return new Date(r)}function Pk(r){return r instanceof Date?+r:+new Date(+r)}function d1(r,a,A,V,ut,bt,Pt,Dt,Ft){var Vt=jS(ts,ts),$t=Vt.invert,ie=Vt.domain,Qt=Ft(".%L"),we=Ft(":%S"),Ne=Ft("%I:%M"),Pe=Ft("%I %p"),Be=Ft("%a %d"),He=Ft("%b %d"),ln=Ft("%B"),Je=Ft("%Y"),sn=[[Pt,1,Rm],[Pt,5,5*Rm],[Pt,15,15*Rm],[Pt,30,30*Rm],[bt,1,Lm],[bt,5,5*Lm],[bt,15,15*Lm],[bt,30,30*Lm],[ut,1,Im],[ut,3,3*Im],[ut,6,6*Im],[ut,12,12*Im],[V,1,Dc],[V,2,2*Dc],[A,1,kk],[a,1,PE],[a,3,3*PE],[r,1,Pw]];function kn(Fn){return(Pt(Fn)1)&&(r-=Math.floor(r));var a=Math.abs(r-.5);return B0.h=360*r-100,B0.s=1.5-1.5*a,B0.l=.8-.9*a,B0+""}var F0=oo(),Kk=Math.PI/3,Zk=Math.PI*2/3;function tC(r){var a;return r=(.5-r)*Math.PI,F0.r=255*(a=Math.sin(r))*a,F0.g=255*(a=Math.sin(r+Kk))*a,F0.b=255*(a=Math.sin(r+Zk))*a,F0+""}function Qk(r){return r=Math.max(0,Math.min(1,r)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+r*(1172.33-r*(10793.56-r*(33300.12-r*(38394.49-r*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+r*(557.33+r*(1225.33-r*(3574.96-r*(1073.77+r*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+r*(3211.1-r*(15327.97-r*(27814-r*(22569.18-r*6838.66)))))))+")"}function z0(r){var a=r.length;return function(A){return r[Math.max(0,Math.min(a-1,Math.floor(A*a)))]}}const Jk=z0(zi("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var tA=z0(zi("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),eA=z0(zi("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),nA=z0(zi("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function rA(r){return rn(dr(r).call(document.documentElement))}var eC=0;function nC(){return new Um}function Um(){this._="@"+(++eC).toString(36)}Um.prototype=nC.prototype={constructor:Um,get:function(r){for(var a=this._;!(a in r);)if(!(r=r.parentNode))return;return r[a]},set:function(r,a){return r[this._]=a},remove:function(r){return this._ in r&&delete r[this._]},toString:function(){return this._}};function iA(r){return typeof r=="string"?new ke([document.querySelectorAll(r)],[document.documentElement]):new ke([r==null?[]:r],pe)}function rC(r,a){a==null&&(a=Zn().touches);for(var A=0,V=a?a.length:0,ut=new Array(V);A1?0:r<-1?xh:Math.acos(r)}function oC(r){return r>=1?U0:r<=-1?-U0:Math.asin(r)}function sA(r){return r.innerRadius}function aC(r){return r.outerRadius}function lA(r){return r.startAngle}function H0(r){return r.endAngle}function uA(r){return r&&r.padAngle}function cA(r,a,A,V,ut,bt,Pt,Dt){var Ft=A-r,Vt=V-a,$t=Pt-ut,ie=Dt-bt,Qt=ie*Ft-$t*Vt;if(!(Qt*Qtbr*br+Hn*Hn&&(vr=lr,nr=Xn),{cx:vr,cy:nr,x01:-$t,y01:-ie,x11:vr*(ut/kn-1),y11:nr*(ut/kn-1)}}function hA(){var r=sA,a=aC,A=$i(0),V=null,ut=lA,bt=H0,Pt=uA,Dt=null;function Ft(){var Vt,$t,ie=+r.apply(this,arguments),Qt=+a.apply(this,arguments),we=ut.apply(this,arguments)-U0,Ne=bt.apply(this,arguments)-U0,Pe=iC(Ne-we),Be=Ne>we;if(Dt||(Dt=Vt=Tu()),QtTs))Dt.moveTo(0,0);else if(Pe>iu-Ts)Dt.moveTo(Qt*vh(we),Qt*jc(we)),Dt.arc(0,0,Qt,we,Ne,!Be),ie>Ts&&(Dt.moveTo(ie*vh(Ne),ie*jc(Ne)),Dt.arc(0,0,ie,Ne,we,Be));else{var He=we,ln=Ne,Je=we,sn=Ne,kn=Pe,Vn=Pe,Fn=Pt.apply(this,arguments)/2,vr=Fn>Ts&&(V?+V.apply(this,arguments):Hm(ie*ie+Qt*Qt)),nr=w1(iC(Qt-ie)/2,+A.apply(this,arguments)),lr=nr,Xn=nr,un,Bn;if(vr>Ts){var br=oC(vr/ie*jc(Fn)),Hn=oC(vr/Qt*jc(Fn));(kn-=br*2)>Ts?(br*=Be?1:-1,Je+=br,sn-=br):(kn=0,Je=sn=(we+Ne)/2),(Vn-=Hn*2)>Ts?(Hn*=Be?1:-1,He+=Hn,ln-=Hn):(Vn=0,He=ln=(we+Ne)/2)}var xr=Qt*vh(He),Zr=Qt*jc(He),jr=ie*vh(sn),oi=ie*jc(sn);if(nr>Ts){var Ri=Qt*vh(ln),Li=Qt*jc(ln),mo=ie*vh(Je),Bo=ie*jc(Je),lo;if(PeTs?Xn>Ts?(un=V0(mo,Bo,xr,Zr,Qt,Xn,Be),Bn=V0(Ri,Li,jr,oi,Qt,Xn,Be),Dt.moveTo(un.cx+un.x01,un.cy+un.y01),XnTs)||!(kn>Ts)?Dt.lineTo(jr,oi):lr>Ts?(un=V0(jr,oi,Ri,Li,ie,-lr,Be),Bn=V0(xr,Zr,mo,Bo,ie,-lr,Be),Dt.lineTo(un.cx+un.x01,un.cy+un.y01),lr=Qt;--we)Dt.point(ln[we],Je[we]);Dt.lineEnd(),Dt.areaEnd()}Be&&(ln[ie]=+r(Pe,ie,$t),Je[ie]=+A(Pe,ie,$t),Dt.point(a?+a(Pe,ie,$t):ln[ie],V?+V(Pe,ie,$t):Je[ie]))}if(He)return Dt=null,He+""||null}function Vt(){return C1().defined(ut).curve(Pt).context(bt)}return Ft.x=function($t){return arguments.length?(r=typeof $t=="function"?$t:$i(+$t),a=null,Ft):r},Ft.x0=function($t){return arguments.length?(r=typeof $t=="function"?$t:$i(+$t),Ft):r},Ft.x1=function($t){return arguments.length?(a=$t==null?null:typeof $t=="function"?$t:$i(+$t),Ft):a},Ft.y=function($t){return arguments.length?(A=typeof $t=="function"?$t:$i(+$t),V=null,Ft):A},Ft.y0=function($t){return arguments.length?(A=typeof $t=="function"?$t:$i(+$t),Ft):A},Ft.y1=function($t){return arguments.length?(V=$t==null?null:typeof $t=="function"?$t:$i(+$t),Ft):V},Ft.lineX0=Ft.lineY0=function(){return Vt().x(r).y(A)},Ft.lineY1=function(){return Vt().x(r).y(V)},Ft.lineX1=function(){return Vt().x(a).y(A)},Ft.defined=function($t){return arguments.length?(ut=typeof $t=="function"?$t:$i(!!$t),Ft):ut},Ft.curve=function($t){return arguments.length?(Pt=$t,bt!=null&&(Dt=Pt(bt)),Ft):Pt},Ft.context=function($t){return arguments.length?($t==null?bt=Dt=null:Dt=Pt(bt=$t),Ft):bt},Ft}function uC(r,a){return ar?1:a>=r?0:NaN}function fA(r){return r}function dA(){var r=fA,a=uC,A=null,V=$i(0),ut=$i(iu),bt=$i(0);function Pt(Dt){var Ft,Vt=Dt.length,$t,ie,Qt=0,we=new Array(Vt),Ne=new Array(Vt),Pe=+V.apply(this,arguments),Be=Math.min(iu,Math.max(-iu,ut.apply(this,arguments)-Pe)),He,ln=Math.min(Math.abs(Be)/Vt,bt.apply(this,arguments)),Je=ln*(Be<0?-1:1),sn;for(Ft=0;Ft0&&(Qt+=sn);for(a!=null?we.sort(function(kn,Vn){return a(Ne[kn],Ne[Vn])}):A!=null&&we.sort(function(kn,Vn){return A(Dt[kn],Dt[Vn])}),Ft=0,ie=Qt?(Be-Vt*Je)/Qt:0;Ft0?sn*ie:0)+Je,Ne[$t]={data:Dt[$t],index:Ft,value:sn,startAngle:Pe,endAngle:He,padAngle:ln};return Ne}return Pt.value=function(Dt){return arguments.length?(r=typeof Dt=="function"?Dt:$i(+Dt),Pt):r},Pt.sortValues=function(Dt){return arguments.length?(a=Dt,A=null,Pt):a},Pt.sort=function(Dt){return arguments.length?(A=Dt,a=null,Pt):A},Pt.startAngle=function(Dt){return arguments.length?(V=typeof Dt=="function"?Dt:$i(+Dt),Pt):V},Pt.endAngle=function(Dt){return arguments.length?(ut=typeof Dt=="function"?Dt:$i(+Dt),Pt):ut},Pt.padAngle=function(Dt){return arguments.length?(bt=typeof Dt=="function"?Dt:$i(+Dt),Pt):bt},Pt}var cC=fC(_1);function hC(r){this._curve=r}hC.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(r,a){this._curve.point(a*Math.sin(r),a*-Math.cos(r))}};function fC(r){function a(A){return new hC(r(A))}return a._curve=r,a}function W0(r){var a=r.curve;return r.angle=r.x,delete r.x,r.radius=r.y,delete r.y,r.curve=function(A){return arguments.length?a(fC(A)):a()._curve},r}function pA(){return W0(C1().curve(cC))}function Xw(){var r=lC().curve(cC),a=r.curve,A=r.lineX0,V=r.lineX1,ut=r.lineY0,bt=r.lineY1;return r.angle=r.x,delete r.x,r.startAngle=r.x0,delete r.x0,r.endAngle=r.x1,delete r.x1,r.radius=r.y,delete r.y,r.innerRadius=r.y0,delete r.y0,r.outerRadius=r.y1,delete r.y1,r.lineStartAngle=function(){return W0(A())},delete r.lineX0,r.lineEndAngle=function(){return W0(V())},delete r.lineX1,r.lineInnerRadius=function(){return W0(ut())},delete r.lineY0,r.lineOuterRadius=function(){return W0(bt())},delete r.lineY1,r.curve=function(Pt){return arguments.length?a(fC(Pt)):a()._curve},r}function Vm(r,a){return[(a=+a)*Math.cos(r-=Math.PI/2),a*Math.sin(r)]}var $w=Array.prototype.slice;function mA(r){return r.source}function dC(r){return r.target}function M1(r){var a=mA,A=dC,V=S1,ut=E1,bt=null;function Pt(){var Dt,Ft=$w.call(arguments),Vt=a.apply(this,Ft),$t=A.apply(this,Ft);if(bt||(bt=Dt=Tu()),r(bt,+V.apply(this,(Ft[0]=Vt,Ft)),+ut.apply(this,Ft),+V.apply(this,(Ft[0]=$t,Ft)),+ut.apply(this,Ft)),Dt)return bt=null,Dt+""||null}return Pt.source=function(Dt){return arguments.length?(a=Dt,Pt):a},Pt.target=function(Dt){return arguments.length?(A=Dt,Pt):A},Pt.x=function(Dt){return arguments.length?(V=typeof Dt=="function"?Dt:$i(+Dt),Pt):V},Pt.y=function(Dt){return arguments.length?(ut=typeof Dt=="function"?Dt:$i(+Dt),Pt):ut},Pt.context=function(Dt){return arguments.length?(bt=Dt==null?null:Dt,Pt):bt},Pt}function gA(r,a,A,V,ut){r.moveTo(a,A),r.bezierCurveTo(a=(a+V)/2,A,a,ut,V,ut)}function yA(r,a,A,V,ut){r.moveTo(a,A),r.bezierCurveTo(a,A=(A+ut)/2,V,A,V,ut)}function vA(r,a,A,V,ut){var bt=Vm(a,A),Pt=Vm(a,A=(A+ut)/2),Dt=Vm(V,A),Ft=Vm(V,ut);r.moveTo(bt[0],bt[1]),r.bezierCurveTo(Pt[0],Pt[1],Dt[0],Dt[1],Ft[0],Ft[1])}function xA(){return M1(gA)}function bA(){return M1(yA)}function wA(){var r=M1(vA);return r.angle=r.x,delete r.x,r.radius=r.y,delete r.y,r}const qw={draw:function(r,a){var A=Math.sqrt(a/xh);r.moveTo(A,0),r.arc(0,0,A,0,iu)}},pC={draw:function(r,a){var A=Math.sqrt(a/5)/2;r.moveTo(-3*A,-A),r.lineTo(-A,-A),r.lineTo(-A,-3*A),r.lineTo(A,-3*A),r.lineTo(A,-A),r.lineTo(3*A,-A),r.lineTo(3*A,A),r.lineTo(A,A),r.lineTo(A,3*A),r.lineTo(-A,3*A),r.lineTo(-A,A),r.lineTo(-3*A,A),r.closePath()}};var Kw=Math.sqrt(1/3),_A=Kw*2;const Y0={draw:function(r,a){var A=Math.sqrt(a/_A),V=A*Kw;r.moveTo(0,-A),r.lineTo(V,0),r.lineTo(0,A),r.lineTo(-V,0),r.closePath()}};var Zw=.8908130915292852,T1=Math.sin(xh/10)/Math.sin(7*xh/10),Qw=Math.sin(iu/10)*T1,Jw=-Math.cos(iu/10)*T1;const mC={draw:function(r,a){var A=Math.sqrt(a*Zw),V=Qw*A,ut=Jw*A;r.moveTo(0,-A),r.lineTo(V,ut);for(var bt=1;bt<5;++bt){var Pt=iu*bt/5,Dt=Math.cos(Pt),Ft=Math.sin(Pt);r.lineTo(Ft*A,-Dt*A),r.lineTo(Dt*V-Ft*ut,Ft*V+Dt*ut)}r.closePath()}},gC={draw:function(r,a){var A=Math.sqrt(a),V=-A/2;r.rect(V,V,A,A)}};var t2=Math.sqrt(3);const yC={draw:function(r,a){var A=-Math.sqrt(a/(t2*3));r.moveTo(0,A*2),r.lineTo(-t2*A,-A),r.lineTo(t2*A,-A),r.closePath()}};var ou=-.5,ka=Math.sqrt(3)/2,e2=1/Math.sqrt(12),SA=(e2/2+1)*3;const bh={draw:function(r,a){var A=Math.sqrt(a/SA),V=A/2,ut=A*e2,bt=V,Pt=A*e2+A,Dt=-bt,Ft=Pt;r.moveTo(V,ut),r.lineTo(bt,Pt),r.lineTo(Dt,Ft),r.lineTo(ou*V-ka*ut,ka*V+ou*ut),r.lineTo(ou*bt-ka*Pt,ka*bt+ou*Pt),r.lineTo(ou*Dt-ka*Ft,ka*Dt+ou*Ft),r.lineTo(ou*V+ka*ut,ou*ut-ka*V),r.lineTo(ou*bt+ka*Pt,ou*Pt-ka*bt),r.lineTo(ou*Dt+ka*Ft,ou*Ft-ka*Dt),r.closePath()}};var G0=[qw,pC,Y0,gC,mC,yC,bh];function EA(){var r=$i(qw),a=$i(64),A=null;function V(){var ut;if(A||(A=ut=Tu()),r.apply(this,arguments).draw(A,+a.apply(this,arguments)),ut)return A=null,ut+""||null}return V.type=function(ut){return arguments.length?(r=typeof ut=="function"?ut:$i(ut),V):r},V.size=function(ut){return arguments.length?(a=typeof ut=="function"?ut:$i(+ut),V):a},V.context=function(ut){return arguments.length?(A=ut==null?null:ut,V):A},V}function Bf(){}function k1(r,a,A){r._context.bezierCurveTo((2*r._x0+r._x1)/3,(2*r._y0+r._y1)/3,(r._x0+2*r._x1)/3,(r._y0+2*r._y1)/3,(r._x0+4*r._x1+a)/6,(r._y0+4*r._y1+A)/6)}function X0(r){this._context=r}X0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:k1(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(r,a){switch(r=+r,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:k1(this,r,a);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=a}};function CA(r){return new X0(r)}function vC(r){this._context=r}vC.prototype={areaStart:Bf,areaEnd:Bf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(r,a){switch(r=+r,a=+a,this._point){case 0:this._point=1,this._x2=r,this._y2=a;break;case 1:this._point=2,this._x3=r,this._y3=a;break;case 2:this._point=3,this._x4=r,this._y4=a,this._context.moveTo((this._x0+4*this._x1+r)/6,(this._y0+4*this._y1+a)/6);break;default:k1(this,r,a);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=a}};function xC(r){return new vC(r)}function bC(r){this._context=r}bC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(r,a){switch(r=+r,a=+a,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var A=(this._x0+4*this._x1+r)/6,V=(this._y0+4*this._y1+a)/6;this._line?this._context.lineTo(A,V):this._context.moveTo(A,V);break;case 3:this._point=4;default:k1(this,r,a);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=a}};function wC(r){return new bC(r)}function _C(r,a){this._basis=new X0(r),this._beta=a}_C.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var r=this._x,a=this._y,A=r.length-1;if(A>0)for(var V=r[0],ut=a[0],bt=r[A]-V,Pt=a[A]-ut,Dt=-1,Ft;++Dt<=A;)Ft=Dt/A,this._basis.point(this._beta*r[Dt]+(1-this._beta)*(V+Ft*bt),this._beta*a[Dt]+(1-this._beta)*(ut+Ft*Pt));this._x=this._y=null,this._basis.lineEnd()},point:function(r,a){this._x.push(+r),this._y.push(+a)}};const MA=function r(a){function A(V){return a===1?new X0(V):new _C(V,a)}return A.beta=function(V){return r(+V)},A}(.85);function A1(r,a,A){r._context.bezierCurveTo(r._x1+r._k*(r._x2-r._x0),r._y1+r._k*(r._y2-r._y0),r._x2+r._k*(r._x1-a),r._y2+r._k*(r._y1-A),r._x2,r._y2)}function n2(r,a){this._context=r,this._k=(1-a)/6}n2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:A1(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(r,a){switch(r=+r,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 1:this._point=2,this._x1=r,this._y1=a;break;case 2:this._point=3;default:A1(this,r,a);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const TA=function r(a){function A(V){return new n2(V,a)}return A.tension=function(V){return r(+V)},A}(0);function r2(r,a){this._context=r,this._k=(1-a)/6}r2.prototype={areaStart:Bf,areaEnd:Bf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(r,a){switch(r=+r,a=+a,this._point){case 0:this._point=1,this._x3=r,this._y3=a;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=a);break;case 2:this._point=3,this._x5=r,this._y5=a;break;default:A1(this,r,a);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const SC=function r(a){function A(V){return new r2(V,a)}return A.tension=function(V){return r(+V)},A}(0);function P1(r,a){this._context=r,this._k=(1-a)/6}P1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(r,a){switch(r=+r,a=+a,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:A1(this,r,a);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const kA=function r(a){function A(V){return new P1(V,a)}return A.tension=function(V){return r(+V)},A}(0);function O1(r,a,A){var V=r._x1,ut=r._y1,bt=r._x2,Pt=r._y2;if(r._l01_a>Ts){var Dt=2*r._l01_2a+3*r._l01_a*r._l12_a+r._l12_2a,Ft=3*r._l01_a*(r._l01_a+r._l12_a);V=(V*Dt-r._x0*r._l12_2a+r._x2*r._l01_2a)/Ft,ut=(ut*Dt-r._y0*r._l12_2a+r._y2*r._l01_2a)/Ft}if(r._l23_a>Ts){var Vt=2*r._l23_2a+3*r._l23_a*r._l12_a+r._l12_2a,$t=3*r._l23_a*(r._l23_a+r._l12_a);bt=(bt*Vt+r._x1*r._l23_2a-a*r._l12_2a)/$t,Pt=(Pt*Vt+r._y1*r._l23_2a-A*r._l12_2a)/$t}r._context.bezierCurveTo(V,ut,bt,Pt,r._x2,r._y2)}function AA(r,a){this._context=r,this._alpha=a}AA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(r,a){if(r=+r,a=+a,this._point){var A=this._x2-r,V=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(A*A+V*V,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 1:this._point=2;break;case 2:this._point=3;default:O1(this,r,a);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const PA=function r(a){function A(V){return a?new AA(V,a):new n2(V,0)}return A.alpha=function(V){return r(+V)},A}(.5);function EC(r,a){this._context=r,this._alpha=a}EC.prototype={areaStart:Bf,areaEnd:Bf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(r,a){if(r=+r,a=+a,this._point){var A=this._x2-r,V=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(A*A+V*V,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=r,this._y3=a;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=a);break;case 2:this._point=3,this._x5=r,this._y5=a;break;default:O1(this,r,a);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const OA=function r(a){function A(V){return a?new EC(V,a):new r2(V,0)}return A.alpha=function(V){return r(+V)},A}(.5);function i2(r,a){this._context=r,this._alpha=a}i2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(r,a){if(r=+r,a=+a,this._point){var A=this._x2-r,V=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(A*A+V*V,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:O1(this,r,a);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const CC=function r(a){function A(V){return a?new i2(V,a):new P1(V,0)}return A.alpha=function(V){return r(+V)},A}(.5);function MC(r){this._context=r}MC.prototype={areaStart:Bf,areaEnd:Bf,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(r,a){r=+r,a=+a,this._point?this._context.lineTo(r,a):(this._point=1,this._context.moveTo(r,a))}};function NA(r){return new MC(r)}function TC(r){return r<0?-1:1}function kC(r,a,A){var V=r._x1-r._x0,ut=a-r._x1,bt=(r._y1-r._y0)/(V||ut<0&&-0),Pt=(A-r._y1)/(ut||V<0&&-0),Dt=(bt*ut+Pt*V)/(V+ut);return(TC(bt)+TC(Pt))*Math.min(Math.abs(bt),Math.abs(Pt),.5*Math.abs(Dt))||0}function $0(r,a){var A=r._x1-r._x0;return A?(3*(r._y1-r._y0)/A-a)/2:a}function o2(r,a,A){var V=r._x0,ut=r._y0,bt=r._x1,Pt=r._y1,Dt=(bt-V)/3;r._context.bezierCurveTo(V+Dt,ut+Dt*a,bt-Dt,Pt-Dt*A,bt,Pt)}function N1(r){this._context=r}N1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:o2(this,this._t0,$0(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(r,a){var A=NaN;if(r=+r,a=+a,!(r===this._x1&&a===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 1:this._point=2;break;case 2:this._point=3,o2(this,$0(this,A=kC(this,r,a)),A);break;default:o2(this,this._t0,A=kC(this,r,a));break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=a,this._t0=A}}};function AC(r){this._context=new a2(r)}(AC.prototype=Object.create(N1.prototype)).point=function(r,a){N1.prototype.point.call(this,a,r)};function a2(r){this._context=r}a2.prototype={moveTo:function(r,a){this._context.moveTo(a,r)},closePath:function(){this._context.closePath()},lineTo:function(r,a){this._context.lineTo(a,r)},bezierCurveTo:function(r,a,A,V,ut,bt){this._context.bezierCurveTo(a,r,V,A,bt,ut)}};function DA(r){return new N1(r)}function PC(r){return new AC(r)}function OC(r){this._context=r}OC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var r=this._x,a=this._y,A=r.length;if(A)if(this._line?this._context.lineTo(r[0],a[0]):this._context.moveTo(r[0],a[0]),A===2)this._context.lineTo(r[1],a[1]);else for(var V=NC(r),ut=NC(a),bt=0,Pt=1;Pt=0;--a)ut[a]=(Pt[a]-ut[a+1])/bt[a];for(bt[A-1]=(r[A]+ut[A-1])/2,a=0;a=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(r,a){switch(r=+r,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,a),this._context.lineTo(r,a);else{var A=this._x*(1-this._t)+r*this._t;this._context.lineTo(A,this._y),this._context.lineTo(A,a)}break}}this._x=r,this._y=a}};function LA(r){return new D1(r,.5)}function IA(r){return new D1(r,0)}function jA(r){return new D1(r,1)}function up(r,a){if((Pt=r.length)>1)for(var A=1,V,ut,bt=r[a[0]],Pt,Dt=bt.length;A=0;)A[a]=a;return A}function DC(r,a){return r[a]}function RC(){var r=$i([]),a=cp,A=up,V=DC;function ut(bt){var Pt=r.apply(this,arguments),Dt,Ft=bt.length,Vt=Pt.length,$t=new Array(Vt),ie;for(Dt=0;Dt0){for(var A,V,ut=0,bt=r[0].length,Pt;ut0)for(var A,V=0,ut,bt,Pt,Dt,Ft,Vt=r[a[0]].length;V0?(ut[0]=Pt,ut[1]=Pt+=bt):bt<0?(ut[1]=Dt,ut[0]=Dt+=bt):(ut[0]=0,ut[1]=bt)}function BA(r,a){if((ut=r.length)>0){for(var A=0,V=r[a[0]],ut,bt=V.length;A0)||!((bt=(ut=r[a[0]]).length)>0))){for(var A=0,V=1,ut,bt,Pt;Vbt&&(bt=ut,A=a);return A}function jC(r){var a=r.map(l2);return cp(r).sort(function(A,V){return a[A]-a[V]})}function l2(r){for(var a=0,A=-1,V=r.length,ut;++A0)){if(Pe/=we,we<0){if(Pe0){if(Pe>Qt)return;Pe>ie&&(ie=Pe)}if(Pe=V-Dt,!(!we&&Pe<0)){if(Pe/=we,we<0){if(Pe>Qt)return;Pe>ie&&(ie=Pe)}else if(we>0){if(Pe0)){if(Pe/=Ne,Ne<0){if(Pe0){if(Pe>Qt)return;Pe>ie&&(ie=Pe)}if(Pe=ut-Ft,!(!Ne&&Pe<0)){if(Pe/=Ne,Ne<0){if(Pe>Qt)return;Pe>ie&&(ie=Pe)}else if(Ne>0){if(Pe0)&&!(Qt<1)||(ie>0&&(r[0]=[Dt+ie*we,Ft+ie*Ne]),Qt<1&&(r[1]=[Dt+Qt*we,Ft+Qt*Ne])),!0}}}}}function XA(r,a,A,V,ut){var bt=r[1];if(bt)return!0;var Pt=r[0],Dt=r.left,Ft=r.right,Vt=Dt[0],$t=Dt[1],ie=Ft[0],Qt=Ft[1],we=(Vt+ie)/2,Ne=($t+Qt)/2,Pe,Be;if(Qt===$t){if(we=V)return;if(Vt>ie){if(!Pt)Pt=[we,A];else if(Pt[1]>=ut)return;bt=[we,ut]}else{if(!Pt)Pt=[we,ut];else if(Pt[1]1)if(Vt>ie){if(!Pt)Pt=[(A-Be)/Pe,A];else if(Pt[1]>=ut)return;bt=[(ut-Be)/Pe,ut]}else{if(!Pt)Pt=[(ut-Be)/Pe,ut];else if(Pt[1]=V)return;bt=[V,Pe*V+Be]}else{if(!Pt)Pt=[V,Pe*V+Be];else if(Pt[0]jo||Math.abs(bt[0][1]-bt[1][1])>jo))&&delete ns[ut]}function qA(r){return Il[r.index]={site:r,halfedges:[]}}function KA(r,a){var A=r.site,V=a.left,ut=a.right;return A===ut&&(ut=V,V=A),ut?Math.atan2(ut[1]-V[1],ut[0]-V[0]):(A===V?(V=a[1],ut=a[0]):(V=a[0],ut=a[1]),Math.atan2(V[0]-ut[0],ut[1]-V[1]))}function YC(r,a){return a[+(a.left!==r.site)]}function ZA(r,a){return a[+(a.left===r.site)]}function h2(){for(var r=0,a=Il.length,A,V,ut,bt;rjo||Math.abs(Be-we)>jo)&&(Vt.splice(Ft,0,ns.push(ul(Dt,Ne,Math.abs(Pe-r)jo?[r,Math.abs(Qt-r)jo?[Math.abs(we-V)jo?[A,Math.abs(Qt-A)jo?[Math.abs(we-a)=-z1)){var we=Ft*Ft+Vt*Vt,Ne=$t*$t+ie*ie,Pe=(ie*we-Vt*Ne)/Qt,Be=(Ft*Ne-$t*we)/Qt,He=XC.pop()||new d2;He.arc=r,He.site=ut,He.x=Pe+Pt,He.y=(He.cy=Be+Dt)+Math.sqrt(Pe*Pe+Be*Be),r.circle=He;for(var ln=null,Je=Z0._;Je;)if(He.yjo)Dt=Dt.L;else if(Pt=a-KC(Dt,A),Pt>jo){if(!Dt.R){V=Dt;break}Dt=Dt.R}else{bt>-jo?(V=Dt.P,ut=Dt):Pt>-jo?(V=Dt,ut=Dt.N):V=ut=Dt;break}qA(r);var Ft=Bc(r);if(Ff.insert(V,Ft),!(!V&&!ut)){if(V===ut){fp(V),ut=Bc(V.site),Ff.insert(Ft,ut),Ft.edge=ut.edge=Wm(V.site,Ft.site),hp(V),hp(ut);return}if(!ut){Ft.edge=Wm(V.site,Ft.site);return}fp(V),fp(ut);var Vt=V.site,$t=Vt[0],ie=Vt[1],Qt=r[0]-$t,we=r[1]-ie,Ne=ut.site,Pe=Ne[0]-$t,Be=Ne[1]-ie,He=2*(Qt*Be-we*Pe),ln=Qt*Qt+we*we,Je=Pe*Pe+Be*Be,sn=[(Be*ln-we*Je)/He+$t,(Qt*Je-Pe*ln)/He+ie];B1(ut.edge,Vt,Ne,sn),Ft.edge=Wm(Vt,r,null,sn),ut.edge=Wm(r,Ne,null,sn),hp(V),hp(ut)}}function qC(r,a){var A=r.site,V=A[0],ut=A[1],bt=ut-a;if(!bt)return V;var Pt=r.P;if(!Pt)return-1/0;A=Pt.site;var Dt=A[0],Ft=A[1],Vt=Ft-a;if(!Vt)return Dt;var $t=Dt-V,ie=1/bt-1/Vt,Qt=$t/Vt;return ie?(-Qt+Math.sqrt(Qt*Qt-2*ie*($t*$t/(-2*Vt)-Ft+Vt/2+ut-bt/2)))/ie+V:(V+Dt)/2}function KC(r,a){var A=r.N;if(A)return qC(A,a);var V=r.site;return V[1]===a?V[0]:1/0}var jo=1e-6,z1=1e-12,Ff,Il,Z0,ns;function JA(r,a,A){return(r[0]-A[0])*(a[1]-r[1])-(r[0]-a[0])*(A[1]-r[1])}function ZC(r,a){return a[1]-r[1]||a[0]-r[0]}function g2(r,a){var A=r.sort(ZC).pop(),V,ut,bt;for(ns=[],Il=new Array(r.length),Ff=new WC,Z0=new WC;;)if(bt=f2,A&&(!bt||A[1]=Pt)return null;var Ft=r-Dt.site[0],Vt=a-Dt.site[1],$t=Ft*Ft+Vt*Vt;do Dt=V.cells[ut=bt],bt=null,Dt.halfedges.forEach(function(ie){var Qt=V.edges[ie],we=Qt.left;if(!((we===Dt.site||!we)&&!(we=Qt.right))){var Ne=r-we[0],Pe=a-we[1],Be=Ne*Ne+Pe*Pe;Be<$t&&($t=Be,bt=we.index)}});while(bt!==null);return V._found=ut,A==null||$t<=A*A?Dt.site:null}};function QC(){var r=YA,a=L1,A=null;function V(ut){return new g2(ut.map(function(bt,Pt){var Dt=[Math.round(r(bt,Pt,ut)/jo)*jo,Math.round(a(bt,Pt,ut)/jo)*jo];return Dt.index=Pt,Dt.data=bt,Dt}),A)}return V.polygons=function(ut){return V(ut).polygons()},V.links=function(ut){return V(ut).links()},V.triangles=function(ut){return V(ut).triangles()},V.x=function(ut){return arguments.length?(r=typeof ut=="function"?ut:VC(+ut),V):r},V.y=function(ut){return arguments.length?(a=typeof ut=="function"?ut:VC(+ut),V):a},V.extent=function(ut){return arguments.length?(A=ut==null?null:[[+ut[0][0],+ut[0][1]],[+ut[1][0],+ut[1][1]]],V):A&&[[A[0][0],A[0][1]],[A[1][0],A[1][1]]]},V.size=function(ut){return arguments.length?(A=ut==null?null:[[0,0],[+ut[0],+ut[1]]],V):A&&[A[1][0]-A[0][0],A[1][1]-A[0][1]]},V}function zf(r){return function(){return r}}function tP(r,a,A){this.target=r,this.type=a,this.transform=A}function $u(r,a,A){this.k=r,this.x=a,this.y=A}$u.prototype={constructor:$u,scale:function(r){return r===1?this:new $u(this.k*r,this.x,this.y)},translate:function(r,a){return r===0&a===0?this:new $u(this.k,this.x+this.k*r,this.y+this.k*a)},apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},applyX:function(r){return r*this.k+this.x},applyY:function(r){return r*this.k+this.y},invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},invertX:function(r){return(r-this.x)/this.k},invertY:function(r){return(r-this.y)/this.k},rescaleX:function(r){return r.copy().domain(r.range().map(this.invertX,this).map(r.invert,r))},rescaleY:function(r){return r.copy().domain(r.range().map(this.invertY,this).map(r.invert,r))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var U1=new $u(1,0,0);JC.prototype=$u.prototype;function JC(r){for(;!r.__zoom;)if(!(r=r.parentNode))return U1;return r.__zoom}function y2(){Sr.stopImmediatePropagation()}function Q0(){Sr.preventDefault(),Sr.stopImmediatePropagation()}function eP(){return!Sr.ctrlKey&&!Sr.button}function nP(){var r=this;return r instanceof SVGElement?(r=r.ownerSVGElement||r,r.hasAttribute("viewBox")?(r=r.viewBox.baseVal,[[r.x,r.y],[r.x+r.width,r.y+r.height]]):[[0,0],[r.width.baseVal.value,r.height.baseVal.value]]):[[0,0],[r.clientWidth,r.clientHeight]]}function J0(){return this.__zoom||U1}function rP(){return-Sr.deltaY*(Sr.deltaMode===1?.05:Sr.deltaMode?1:.002)}function H1(){return navigator.maxTouchPoints||"ontouchstart"in this}function iP(r,a,A){var V=r.invertX(a[0][0])-A[0][0],ut=r.invertX(a[1][0])-A[1][0],bt=r.invertY(a[0][1])-A[0][1],Pt=r.invertY(a[1][1])-A[1][1];return r.translate(ut>V?(V+ut)/2:Math.min(0,V)||Math.max(0,ut),Pt>bt?(bt+Pt)/2:Math.min(0,bt)||Math.max(0,Pt))}function ty(){var r=eP,a=nP,A=iP,V=rP,ut=H1,bt=[0,1/0],Pt=[[-1/0,-1/0],[1/0,1/0]],Dt=250,Ft=O3,Vt=dt("start","zoom","end"),$t,ie,Qt=500,we=150,Ne=0;function Pe(un){un.property("__zoom",J0).on("wheel.zoom",Vn).on("mousedown.zoom",Fn).on("dblclick.zoom",vr).filter(ut).on("touchstart.zoom",nr).on("touchmove.zoom",lr).on("touchend.zoom touchcancel.zoom",Xn).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}Pe.transform=function(un,Bn,br){var Hn=un.selection?un.selection():un;Hn.property("__zoom",J0),un!==Hn?Je(un,Bn,br):Hn.interrupt().each(function(){sn(this,arguments).start().zoom(null,typeof Bn=="function"?Bn.apply(this,arguments):Bn).end()})},Pe.scaleBy=function(un,Bn,br){Pe.scaleTo(un,function(){var Hn=this.__zoom.k,xr=typeof Bn=="function"?Bn.apply(this,arguments):Bn;return Hn*xr},br)},Pe.scaleTo=function(un,Bn,br){Pe.transform(un,function(){var Hn=a.apply(this,arguments),xr=this.__zoom,Zr=br==null?ln(Hn):typeof br=="function"?br.apply(this,arguments):br,jr=xr.invert(Zr),oi=typeof Bn=="function"?Bn.apply(this,arguments):Bn;return A(He(Be(xr,oi),Zr,jr),Hn,Pt)},br)},Pe.translateBy=function(un,Bn,br){Pe.transform(un,function(){return A(this.__zoom.translate(typeof Bn=="function"?Bn.apply(this,arguments):Bn,typeof br=="function"?br.apply(this,arguments):br),a.apply(this,arguments),Pt)})},Pe.translateTo=function(un,Bn,br,Hn){Pe.transform(un,function(){var xr=a.apply(this,arguments),Zr=this.__zoom,jr=Hn==null?ln(xr):typeof Hn=="function"?Hn.apply(this,arguments):Hn;return A(U1.translate(jr[0],jr[1]).scale(Zr.k).translate(typeof Bn=="function"?-Bn.apply(this,arguments):-Bn,typeof br=="function"?-br.apply(this,arguments):-br),xr,Pt)},Hn)};function Be(un,Bn){return Bn=Math.max(bt[0],Math.min(bt[1],Bn)),Bn===un.k?un:new $u(Bn,un.x,un.y)}function He(un,Bn,br){var Hn=Bn[0]-br[0]*un.k,xr=Bn[1]-br[1]*un.k;return Hn===un.x&&xr===un.y?un:new $u(un.k,Hn,xr)}function ln(un){return[(+un[0][0]+ +un[1][0])/2,(+un[0][1]+ +un[1][1])/2]}function Je(un,Bn,br){un.on("start.zoom",function(){sn(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){sn(this,arguments).end()}).tween("zoom",function(){var Hn=this,xr=arguments,Zr=sn(Hn,xr),jr=a.apply(Hn,xr),oi=br==null?ln(jr):typeof br=="function"?br.apply(Hn,xr):br,Ri=Math.max(jr[1][0]-jr[0][0],jr[1][1]-jr[0][1]),Li=Hn.__zoom,mo=typeof Bn=="function"?Bn.apply(Hn,xr):Bn,Bo=Ft(Li.invert(oi).concat(Ri/Li.k),mo.invert(oi).concat(Ri/mo.k));return function(lo){if(lo===1)lo=mo;else{var Ha=Bo(lo),au=Ri/Ha[2];lo=new $u(au,oi[0]-Ha[0]*au,oi[1]-Ha[1]*au)}Zr.zoom(null,lo)}})}function sn(un,Bn,br){return!br&&un.__zooming||new kn(un,Bn)}function kn(un,Bn){this.that=un,this.args=Bn,this.active=0,this.extent=a.apply(un,Bn),this.taps=0}kn.prototype={start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(un,Bn){return this.mouse&&un!=="mouse"&&(this.mouse[1]=Bn.invert(this.mouse[0])),this.touch0&&un!=="touch"&&(this.touch0[1]=Bn.invert(this.touch0[0])),this.touch1&&un!=="touch"&&(this.touch1[1]=Bn.invert(this.touch1[0])),this.that.__zoom=Bn,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(un){Xt(new tP(Pe,un,this.that.__zoom),Vt.apply,Vt,[un,this.that,this.args])}};function Vn(){if(!r.apply(this,arguments))return;var un=sn(this,arguments),Bn=this.__zoom,br=Math.max(bt[0],Math.min(bt[1],Bn.k*Math.pow(2,V.apply(this,arguments)))),Hn=Tr(this);if(un.wheel)(un.mouse[0][0]!==Hn[0]||un.mouse[0][1]!==Hn[1])&&(un.mouse[1]=Bn.invert(un.mouse[0]=Hn)),clearTimeout(un.wheel);else{if(Bn.k===br)return;un.mouse=[Hn,Bn.invert(Hn)],vu(this),un.start()}Q0(),un.wheel=setTimeout(xr,we),un.zoom("mouse",A(He(Be(Bn,br),un.mouse[0],un.mouse[1]),un.extent,Pt));function xr(){un.wheel=null,un.end()}}function Fn(){if(ie||!r.apply(this,arguments))return;var un=sn(this,arguments,!0),Bn=rn(Sr.view).on("mousemove.zoom",Zr,!0).on("mouseup.zoom",jr,!0),br=Tr(this),Hn=Sr.clientX,xr=Sr.clientY;Un(Sr.view),y2(),un.mouse=[br,this.__zoom.invert(br)],vu(this),un.start();function Zr(){if(Q0(),!un.moved){var oi=Sr.clientX-Hn,Ri=Sr.clientY-xr;un.moved=oi*oi+Ri*Ri>Ne}un.zoom("mouse",A(He(un.that.__zoom,un.mouse[0]=Tr(un.that),un.mouse[1]),un.extent,Pt))}function jr(){Bn.on("mousemove.zoom mouseup.zoom",null),pr(Sr.view,un.moved),Q0(),un.end()}}function vr(){if(r.apply(this,arguments)){var un=this.__zoom,Bn=Tr(this),br=un.invert(Bn),Hn=un.k*(Sr.shiftKey?.5:2),xr=A(He(Be(un,Hn),Bn,br),a.apply(this,arguments),Pt);Q0(),Dt>0?rn(this).transition().duration(Dt).call(Je,xr,Bn):rn(this).call(Pe.transform,xr)}}function nr(){if(r.apply(this,arguments)){var un=Sr.touches,Bn=un.length,br=sn(this,arguments,Sr.changedTouches.length===Bn),Hn,xr,Zr,jr;for(y2(),xr=0;xr{"use strict";ht.d(ue,{V_:()=>z,h1:()=>et,ah:()=>j,Jj:()=>R,yl:()=>_t,$A:()=>q,rG:()=>Z,KS:()=>X,Xx:()=>B,JW:()=>g,T9:()=>f,i2:()=>b,JZ:()=>F,Am:()=>T,jk:()=>k,AS:()=>K,Ny:()=>Q,YV:()=>x,y1:()=>w,SQ:()=>st,k4:()=>nt,cz:()=>dt,c3:()=>p,Ft:()=>l,zr:()=>v,lq:()=>E,sG:()=>S,Zc:()=>C,mg:()=>mt,GV:()=>H,yU:()=>Mt});function z(I,Y){return IY?1:I>=Y?0:NaN}function _t(I){return I.length===1&&(I=m(I)),{left:function(Y,rt,ot,D){for(ot==null&&(ot=0),D==null&&(D=Y.length);ot>>1;I(Y[P],rt)<0?ot=P+1:D=P}return ot},right:function(Y,rt,ot,D){for(ot==null&&(ot=0),D==null&&(D=Y.length);ot>>1;I(Y[P],rt)>0?D=P:ot=P+1}return ot}}}function m(I){return function(Y,rt){return z(I(Y),rt)}}var y=_t(z),R=y.right,j=y.left;const et=R;function K(I,Y){Y==null&&(Y=J);for(var rt=0,ot=I.length-1,D=I[0],P=new Array(ot<0?0:ot);rtI?1:Y>=I?0:NaN}function tt(I){return I===null?NaN:+I}function H(I,Y){var rt=I.length,ot=0,D=-1,P=0,W,lt,it=0;if(Y==null)for(;++D1)return it/(ot-1)}function X(I,Y){var rt=H(I,Y);return rt&&Math.sqrt(rt)}function B(I,Y){var rt=I.length,ot=-1,D,P,W;if(Y==null){for(;++ot=D)for(P=W=D;++otD&&(P=D),W=D)for(P=W=D;++otD&&(P=D),W0)return[I];if((ot=Y0)for(I=Math.ceil(I/lt),Y=Math.floor(Y/lt),W=new Array(P=Math.ceil(Y-I+1));++D=0?(P>=_?10:P>=o?5:P>=u?2:1)*Math.pow(10,D):-Math.pow(10,-D)/(P>=_?10:P>=o?5:P>=u?2:1)}function S(I,Y,rt){var ot=Math.abs(Y-I)/Math.max(0,rt),D=Math.pow(10,Math.floor(Math.log(ot)/Math.LN10)),P=ot/D;return P>=_?D*=10:P>=o?D*=5:P>=u&&(D*=2),Yxt;)Ct.pop(),--Tt;var Nt=new Array(Tt+1),gt;for(P=0;P<=Tt;++P)gt=Nt[P]=[],gt.x0=P>0?Ct[P-1]:pt,gt.x1=P=1)return+rt(I[ot-1],ot-1,I);var ot,D=(ot-1)*Y,P=Math.floor(D),W=+rt(I[P],P,I),lt=+rt(I[P+1],P+1,I);return W+(lt-W)*(D-P)}}function p(I,Y,rt){return I=L.call(I,tt).sort(z),Math.ceil((rt-Y)/(2*(x(I,.75)-x(I,.25))*Math.pow(I.length,-.3333333333333333)))}function l(I,Y,rt){return Math.ceil((rt-Y)/(3.5*X(I)*Math.pow(I.length,-.3333333333333333)))}function f(I,Y){var rt=I.length,ot=-1,D,P;if(Y==null){for(;++ot=D)for(P=D;++otP&&(P=D)}else for(;++ot=D)for(P=D;++otP&&(P=D);return P}function b(I,Y){var rt=I.length,ot=rt,D=-1,P,W=0;if(Y==null)for(;++D=0;)for(W=I[Y],rt=W.length;--rt>=0;)P[--D]=W[rt];return P}function k(I,Y){var rt=I.length,ot=-1,D,P;if(Y==null){for(;++ot=D)for(P=D;++otD&&(P=D)}else for(;++ot=D)for(P=D;++otD&&(P=D);return P}function Q(I,Y){for(var rt=Y.length,ot=new Array(rt);rt--;)ot[rt]=I[Y[rt]];return ot}function st(I,Y){if(rt=I.length){var rt,ot=0,D=0,P,W=I[D];for(Y==null&&(Y=z);++ot=v?S:""+Array(v+1-x.length).join(g)+S},d={s:U,z:function(S){var v=-S.utcOffset(),g=Math.abs(v),x=Math.floor(g/60),p=g%60;return(v<=0?"+":"-")+U(x,2,"0")+":"+U(p,2,"0")},m:function S(v,g){if(v.date()1)return S(f[0])}else{var b=v.name;M[b]=v,p=b}return!x&&p&&(L=p),p||!x&&L},o=function(S,v){if(w(S))return S.clone();var g=typeof v=="object"?v:{};return g.date=S,g.args=arguments,new C(g)},u=d;u.l=_,u.i=w,u.w=function(S,v){return o(S,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var C=function(){function S(g){this.$L=_(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[s]=!0}var v=S.prototype;return v.parse=function(g){this.$d=function(x){var p=x.date,l=x.utc;if(p===null)return new Date(NaN);if(u.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var f=p.match(H);if(f){var b=f[2]-1||0,F=(f[7]||"0").substring(0,3);return l?new Date(Date.UTC(f[1],b,f[3]||1,f[4]||0,f[5]||0,f[6]||0,F)):new Date(f[1],b,f[3]||1,f[4]||0,f[5]||0,f[6]||0,F)}}return new Date(p)}(g),this.init()},v.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},v.$utils=function(){return u},v.isValid=function(){return this.$d.toString()!==tt},v.isSame=function(g,x){var p=o(g);return this.startOf(x)<=p&&p<=this.endOf(x)},v.isAfter=function(g,x){return o(g)68?1900:2e3)},et=function(H){return function(X){this[H]=+X}},K=[/[+-]\d\d:?(\d\d)?|Z/,function(H){(this.zone||(this.zone={})).offset=function(X){if(!X||X==="Z")return 0;var B=X.match(/([+-]|\d\d)/g),U=60*B[1]+(+B[2]||0);return U===0?0:B[0]==="+"?-U:U}(H)}],J=function(H){var X=R[H];return X&&(X.indexOf?X:X.s.concat(X.f))},q=function(H,X){var B,U=R.meridiem;if(U){for(var d=1;d<=24;d+=1)if(H.indexOf(U(d,0,X))>-1){B=d>12;break}}else B=H===(X?"pm":"PM");return B},Z={A:[y,function(H){this.afternoon=q(H,!1)}],a:[y,function(H){this.afternoon=q(H,!0)}],Q:[z,function(H){this.month=3*(H-1)+1}],S:[z,function(H){this.milliseconds=100*+H}],SS:[_t,function(H){this.milliseconds=10*+H}],SSS:[/\d{3}/,function(H){this.milliseconds=+H}],s:[m,et("seconds")],ss:[m,et("seconds")],m:[m,et("minutes")],mm:[m,et("minutes")],H:[m,et("hours")],h:[m,et("hours")],HH:[m,et("hours")],hh:[m,et("hours")],D:[m,et("day")],DD:[_t,et("day")],Do:[y,function(H){var X=R.ordinal,B=H.match(/\d+/);if(this.day=B[0],X)for(var U=1;U<=31;U+=1)X(U).replace(/\[|\]/g,"")===H&&(this.day=U)}],w:[m,et("week")],ww:[_t,et("week")],M:[m,et("month")],MM:[_t,et("month")],MMM:[y,function(H){var X=J("months"),B=(J("monthsShort")||X.map(function(U){return U.slice(0,3)})).indexOf(H)+1;if(B<1)throw new Error;this.month=B%12||B}],MMMM:[y,function(H){var X=J("months").indexOf(H)+1;if(X<1)throw new Error;this.month=X%12||X}],Y:[/[+-]?\d+/,et("year")],YY:[_t,function(H){this.year=j(H)}],YYYY:[/\d{4}/,et("year")],Z:K,ZZ:K};function tt(H){var X,B;X=H,B=R&&R.formats;for(var U=(H=X.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(o,u,C){var E=C&&C.toUpperCase();return u||B[C]||ue[C]||B[E].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,v,g){return v||g.slice(1)})})).match(ht),d=U.length,L=0;L-1)return new Date((p==="X"?1e3:1)*x);var b=tt(p)(x),F=b.year,T=b.month,k=b.day,Q=b.hours,st=b.minutes,nt=b.seconds,dt=b.milliseconds,mt=b.zone,Et=b.week,Mt=new Date,I=k||(F||T?1:Mt.getDate()),Y=F||Mt.getFullYear(),rt=0;F&&!T||(rt=T>0?T-1:Mt.getMonth());var ot,D=Q||0,P=st||0,W=nt||0,lt=dt||0;return mt?new Date(Date.UTC(Y,rt,I,D,P,W,lt+60*mt.offset*1e3)):l?new Date(Date.UTC(Y,rt,I,D,P,W,lt)):(ot=new Date(Y,rt,I,D,P,W,lt),Et&&(ot=f(ot).week(Et).toDate()),ot)}catch(it){return new Date("")}}(M,_,s,B),this.init(),E&&E!==!0&&(this.$L=this.locale(E).$L),C&&M!=this.format(_)&&(this.$d=new Date("")),R={}}else if(_ instanceof Array)for(var S=_.length,v=1;v<=S;v+=1){w[1]=_[v-1];var g=B.apply(this,w);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}v===S&&(this.$d=new Date(""))}else d.call(this,L)}}})},9050:function(We){(function(ue,ht){We.exports=ht()})(this,function(){"use strict";return function(ue,ht,z){ht.prototype.isBetween=function(_t,m,y,R){var j=z(_t),et=z(m),K=(R=R||"()")[0]==="(",J=R[1]===")";return(K?this.isAfter(j,y):!this.isBefore(j,y))&&(J?this.isBefore(et,y):!this.isAfter(et,y))||(K?this.isBefore(j,y):!this.isAfter(j,y))&&(J?this.isAfter(et,y):!this.isBefore(et,y))}}})},2976:function(We){(function(ue,ht){We.exports=ht()})(this,function(){"use strict";var ue={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(ht,z,_t){var m=z.prototype,y=m.format;_t.en.formats=ue,m.format=function(R){R===void 0&&(R="YYYY-MM-DDTHH:mm:ssZ");var j=this.$locale().formats,et=function(K,J){return K.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(q,Z,tt){var H=tt&&tt.toUpperCase();return Z||J[tt]||ue[tt]||J[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(X,B,U){return B||U.slice(1)})})}(R,j===void 0?{}:j);return y.call(this,et)}}})},1398:function(We){(function(ue,ht){We.exports=ht()})(this,function(){"use strict";var ue="month",ht="quarter";return function(z,_t){var m=_t.prototype;m.quarter=function(j){return this.$utils().u(j)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(j-1))};var y=m.add;m.add=function(j,et){return j=Number(j),this.$utils().p(et)===ht?this.add(3*j,ue):y.bind(this)(j,et)};var R=m.startOf;m.startOf=function(j,et){var K=this.$utils(),J=!!K.u(et)||et;if(K.p(j)===ht){var q=this.quarter()-1;return J?this.month(3*q).startOf(ue).startOf("day"):this.month(3*q+2).endOf(ue).endOf("day")}return R.bind(this)(j,et)}}})},4843:function(We){(function(ue,ht){We.exports=ht()})(this,function(){"use strict";var ue={year:0,month:1,day:2,hour:3,minute:4,second:5},ht={};return function(z,_t,m){var y,R=function(J,q,Z){Z===void 0&&(Z={});var tt=new Date(J),H=function(X,B){B===void 0&&(B={});var U=B.timeZoneName||"short",d=X+"|"+U,L=ht[d];return L||(L=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:X,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:U}),ht[d]=L),L}(q,Z);return H.formatToParts(tt)},j=function(J,q){for(var Z=R(J,q),tt=[],H=0;H=0&&(tt[d]=parseInt(U,10))}var L=tt[3],M=L===24?0:L,s=tt[0]+"-"+tt[1]+"-"+tt[2]+" "+M+":"+tt[4]+":"+tt[5]+":000",w=+J;return(m.utc(s).valueOf()-(w-=w%1e3))/6e4},et=_t.prototype;et.tz=function(J,q){J===void 0&&(J=y);var Z,tt=this.utcOffset(),H=this.toDate(),X=H.toLocaleString("en-US",{timeZone:J}),B=Math.round((H-new Date(X))/1e3/60),U=15*-Math.round(H.getTimezoneOffset()/15)-B;if(!Number(U))Z=this.utcOffset(0,q);else if(Z=m(X,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(U,!0),q){var d=Z.utcOffset();Z=Z.add(tt-d,"minute")}return Z.$x.$timezone=J,Z},et.offsetName=function(J){var q=this.$x.$timezone||m.tz.guess(),Z=R(this.valueOf(),q,{timeZoneName:J}).find(function(tt){return tt.type.toLowerCase()==="timezonename"});return Z&&Z.value};var K=et.startOf;et.startOf=function(J,q){if(!this.$x||!this.$x.$timezone)return K.call(this,J,q);var Z=m(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return K.call(Z,J,q).tz(this.$x.$timezone,!0)},m.tz=function(J,q,Z){var tt=Z&&q,H=Z||q||y,X=j(+m(),H);if(typeof J!="string")return m(J).tz(H);var B=function(M,s,w){var _=M-60*s*1e3,o=j(_,w);if(s===o)return[_,s];var u=j(_-=60*(o-s)*1e3,w);return o===u?[_,o]:[M-60*Math.min(o,u)*1e3,Math.max(o,u)]}(m.utc(J,tt).valueOf(),X,H),U=B[0],d=B[1],L=m(U).utcOffset(d);return L.$x.$timezone=H,L},m.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},m.tz.setDefault=function(J){y=J}}})},4112:function(We){(function(ue,ht){We.exports=ht()})(this,function(){"use strict";var ue="minute",ht=/[+-]\d\d(?::?\d\d)?/g,z=/([+-]|\d\d)/g;return function(_t,m,y){var R=m.prototype;y.utc=function(tt){var H={date:tt,utc:!0,args:arguments};return new m(H)},R.utc=function(tt){var H=y(this.toDate(),{locale:this.$L,utc:!0});return tt?H.add(this.utcOffset(),ue):H},R.local=function(){return y(this.toDate(),{locale:this.$L,utc:!1})};var j=R.parse;R.parse=function(tt){tt.utc&&(this.$u=!0),this.$utils().u(tt.$offset)||(this.$offset=tt.$offset),j.call(this,tt)};var et=R.init;R.init=function(){if(this.$u){var tt=this.$d;this.$y=tt.getUTCFullYear(),this.$M=tt.getUTCMonth(),this.$D=tt.getUTCDate(),this.$W=tt.getUTCDay(),this.$H=tt.getUTCHours(),this.$m=tt.getUTCMinutes(),this.$s=tt.getUTCSeconds(),this.$ms=tt.getUTCMilliseconds()}else et.call(this)};var K=R.utcOffset;R.utcOffset=function(tt,H){var X=this.$utils().u;if(X(tt))return this.$u?0:X(this.$offset)?K.call(this):this.$offset;if(typeof tt=="string"&&(tt=function(L){L===void 0&&(L="");var M=L.match(ht);if(!M)return null;var s=(""+M[0]).match(z)||["-",0,0],w=s[0],_=60*+s[1]+ +s[2];return _===0?0:w==="+"?_:-_}(tt),tt===null))return this;var B=Math.abs(tt)<=16?60*tt:tt,U=this;if(H)return U.$offset=B,U.$u=tt===0,U;if(tt!==0){var d=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(U=this.local().add(B+d,ue)).$offset=B,U.$x.$localOffset=d}else U=this.utc();return U};var J=R.format;R.format=function(tt){var H=tt||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return J.call(this,H)},R.valueOf=function(){var tt=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*tt},R.isUTC=function(){return!!this.$u},R.toISOString=function(){return this.toDate().toISOString()},R.toString=function(){return this.toDate().toUTCString()};var q=R.toDate;R.toDate=function(tt){return tt==="s"&&this.$offset?y(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():q.call(this)};var Z=R.diff;R.diff=function(tt,H,X){if(tt&&this.$u===tt.$u)return Z.call(this,tt,H,X);var B=this.local(),U=y(tt).local();return Z.call(B,U,H,X)}}})},2713:(We,ue,ht)=>{var z;/*! +`)}function Vt(ie){return ie.map($t).join(r)}function $t(ie){return ie==null?"":ie instanceof Date?b_(ie):a.test(ie+="")?'"'+ie.replace(/"/g,'""')+'"':ie}return{parse:V,parseRows:ut,format:Pt,formatBody:Dt,formatRows:Ft,formatRow:Vt,formatValue:$t}}var _s=oa(","),Rl=_s.parse,Bs=_s.parseRows,Ey=_s.format,Cy=_s.formatBody,Fs=_s.formatRows,xa=_s.formatRow,bc=_s.formatValue,tl=oa(" "),_d=tl.parse,xg=tl.parseRows,My=tl.format,ih=tl.formatBody,xf=tl.formatRows,ba=tl.formatRow,Up=tl.formatValue;function Hp(r){for(var a in r){var A=r[a].trim(),V,ut;if(!A)A=null;else if(A==="true")A=!0;else if(A==="false")A=!1;else if(A==="NaN")A=NaN;else if(!isNaN(V=+A))A=V;else if(ut=A.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/))bg&&ut[4]&&!ut[7]&&(A=A.replace(/-/g,"/").replace(/T/," ")),A=new Date(A);else continue;r[a]=A}return r}var bg=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function bf(r){return+r}function Vp(r){return r*r}function Uu(r){return r*(2-r)}function wf(r){return((r*=2)<=1?r*r:--r*(2-r)+1)/2}var oh=3,Sd=function r(a){a=+a;function A(V){return Math.pow(V,a)}return A.exponent=r,A}(oh),wg=function r(a){a=+a;function A(V){return 1-Math.pow(1-V,a)}return A.exponent=r,A}(oh),Wp=function r(a){a=+a;function A(V){return((V*=2)<=1?Math.pow(V,a):2-Math.pow(2-V,a))/2}return A.exponent=r,A}(oh),ah=Math.PI,el=ah/2;function Ty(r){return+r==1?1:1-Math.cos(r*el)}function ky(r){return Math.sin(r*el)}function Ed(r){return(1-Math.cos(ah*r))/2}function nl(r){return(Math.pow(2,-10*r)-.0009765625)*1.0009775171065494}function _g(r){return nl(1-+r)}function wc(r){return 1-nl(r)}function Ga(r){return((r*=2)<=1?nl(1-r):2-nl(r-1))/2}function Sg(r){return 1-Math.sqrt(1-r*r)}function Cd(r){return Math.sqrt(1- --r*r)}function sh(r){return((r*=2)<=1?1-Math.sqrt(1-r*r):Math.sqrt(1-(r-=2)*r)+1)/2}var Ba=4/11,Ay=6/11,Hr=8/11,_c=3/4,Eg=9/11,_f=10/11,Bx=15/16,Sf=21/22,Cg=63/64,Md=1/Ba/Ba;function Ss(r){return 1-lh(1-r)}function lh(r){return(r=+r)=(ie=(Dt+Vt)/2))?Dt=ie:Vt=ie,(je=A>=(Qt=(Ft+$t)/2))?Ft=Qt:$t=Qt,ut=bt,!(bt=bt[ze=je<<1|Pe]))return ut[ze]=Pt,r;if(_e=+r._x.call(null,bt.data),Ne=+r._y.call(null,bt.data),a===_e&&A===Ne)return Pt.next=bt,ut?ut[ze]=Pt:r._root=Pt,r;do ut=ut?ut[ze]=new Array(4):r._root=new Array(4),(Pe=a>=(ie=(Dt+Vt)/2))?Dt=ie:Vt=ie,(je=A>=(Qt=(Ft+$t)/2))?Ft=Qt:$t=Qt;while((ze=je<<1|Pe)===(ln=(Ne>=Qt)<<1|_e>=ie));return ut[ln]=bt,ut[ze]=Pt,r}function Pg(r){var a,A,V=r.length,ut,bt,Pt=new Array(V),Dt=new Array(V),Ft=1/0,Vt=1/0,$t=-1/0,ie=-1/0;for(A=0;A$t&&($t=ut),btie&&(ie=bt));if(Ft>$t||Vt>ie)return this;for(this.cover(Ft,Vt).cover($t,ie),A=0;Ar||r>=ut||V>a||a>=bt;)switch(Vt=(a$t||(Dt=Ne.y0)>ie||(Ft=Ne.x1)=ze)<<1|r>=je)&&(Ne=Qt[Qt.length-1],Qt[Qt.length-1]=Qt[Qt.length-1-Pe],Qt[Qt.length-1-Pe]=Ne)}else{var ln=r-+this._x.call(null,_e.data),Je=a-+this._y.call(null,_e.data),sn=ln*ln+Je*Je;if(sn=(Qt=(Pt+Ft)/2))?Pt=Qt:Ft=Qt,(Pe=ie>=(_e=(Dt+Vt)/2))?Dt=_e:Vt=_e,a=A,!(A=A[je=Pe<<1|Ne]))return this;if(!A.length)break;(a[je+1&3]||a[je+2&3]||a[je+3&3])&&(V=a,ze=je)}for(;A.data!==r;)if(ut=A,!(A=A.next))return this;return(bt=A.next)&&delete A.next,ut?(bt?ut.next=bt:delete ut.next,this):a?(bt?a[je]=bt:delete a[je],(A=a[0]||a[1]||a[2]||a[3])&&A===(a[3]||a[2]||a[1]||a[0])&&!A.length&&(V?V[ze]=A:this._root=A),this):(this._root=bt,this)}function Hu(r){for(var a=0,A=r.length;aie.index){var or=Qt-jn.x-jn.vx,tr=_e-jn.y-jn.vy,un=or*or+tr*tr;unQt+Qn||Pn_e+Qn||Un<_e-Qn}}function Pt(Ft){if(Ft.data)return Ft.r=A[Ft.data.index];for(var Vt=Ft.r=0;Vt<4;++Vt)Ft[Vt]&&Ft[Vt].r>Ft.r&&(Ft.r=Ft[Vt].r)}function Dt(){if(a){var Ft,Vt=a.length,$t;for(A=new Array(Vt),Ft=0;Ft1?(Pe==null?Dt.remove(Ne):Dt.set(Ne,_e(Pe)),a):Dt.get(Ne)},find:function(Ne,Pe,je){var ze=0,ln=r.length,Je,sn,Pn,Un,jn;for(je==null?je=1/0:je*=je,ze=0;ze1?(Vt.on(Ne,Pe),a):Vt.on(Ne)}}}function Ux(){var r,a,A,V=aa(-30),ut,bt=1,Pt=1/0,Dt=.81;function Ft(Qt){var _e,Ne=r.length,Pe=Na(r,fh,Ly).visitAfter($t);for(A=Qt,_e=0;_e=Pt)return;(Qt.data!==a||Qt.next)&&(je===0&&(je=Bl(),Je+=je*je),ze===0&&(ze=Bl(),Je+=ze*ze),Je=1e21?r.toLocaleString("en").replace(/,/g,""):r.toString(10)}function em(r,a){if((A=(r=a?r.toExponential(a-1):r.toExponential()).indexOf("e"))<0)return null;var A,V=r.slice(0,A);return[V.length>1?V[0]+V.slice(2):V,+r.slice(A+1)]}function Ul(r){return r=em(Math.abs(r)),r?r[1]:NaN}function Fy(r,a){return function(A,V){for(var ut=A.length,bt=[],Pt=0,Dt=r[0],Ft=0;ut>0&&Dt>0&&(Ft+Dt+1>V&&(Dt=Math.max(1,V-Ft)),bt.push(A.substring(ut-=Dt,ut+Dt)),!((Ft+=Dt+1)>V));)Dt=r[Pt=(Pt+1)%r.length];return bt.reverse().join(a)}}function sa(r){return function(a){return a.replace(/[0-9]/g,function(A){return r[+A]})}}var Vx=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Wu(r){if(!(a=Vx.exec(r)))throw new Error("invalid format: "+r);var a;return new nm({fill:a[1],align:a[2],sign:a[3],symbol:a[4],zero:a[5],width:a[6],comma:a[7],precision:a[8]&&a[8].slice(1),trim:a[9],type:a[10]})}Wu.prototype=nm.prototype;function nm(r){this.fill=r.fill===void 0?" ":r.fill+"",this.align=r.align===void 0?">":r.align+"",this.sign=r.sign===void 0?"-":r.sign+"",this.symbol=r.symbol===void 0?"":r.symbol+"",this.zero=!!r.zero,this.width=r.width===void 0?void 0:+r.width,this.comma=!!r.comma,this.precision=r.precision===void 0?void 0:+r.precision,this.trim=!!r.trim,this.type=r.type===void 0?"":r.type+""}nm.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Wx(r){t:for(var a=r.length,A=1,V=-1,ut;A0&&(V=0);break}return V>0?r.slice(0,V)+r.slice(ut+1):r}var Dg;function zy(r,a){var A=em(r,a);if(!A)return r+"";var V=A[0],ut=A[1],bt=ut-(Dg=Math.max(-8,Math.min(8,Math.floor(ut/3)))*3)+1,Pt=V.length;return bt===Pt?V:bt>Pt?V+new Array(bt-Pt+1).join("0"):bt>0?V.slice(0,bt)+"."+V.slice(bt):"0."+new Array(1-bt).join("0")+em(r,Math.max(0,a+bt-1))[0]}function Uy(r,a){var A=em(r,a);if(!A)return r+"";var V=A[0],ut=A[1];return ut<0?"0."+new Array(-ut).join("0")+V:V.length>ut+1?V.slice(0,ut+1)+"."+V.slice(ut+1):V+new Array(ut-V.length+2).join("0")}const io={"%":function(r,a){return(r*100).toFixed(a)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:cs,e:function(r,a){return r.toExponential(a)},f:function(r,a){return r.toFixed(a)},g:function(r,a){return r.toPrecision(a)},o:function(r){return Math.round(r).toString(8)},p:function(r,a){return Uy(r*100,a)},r:Uy,s:zy,X:function(r){return Math.round(r).toString(16).toUpperCase()},x:function(r){return Math.round(r).toString(16)}};function Yu(r){return r}var Cc=Array.prototype.map,ol=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Cf(r){var a=r.grouping===void 0||r.thousands===void 0?Yu:Fy(Cc.call(r.grouping,Number),r.thousands+""),A=r.currency===void 0?"":r.currency[0]+"",V=r.currency===void 0?"":r.currency[1]+"",ut=r.decimal===void 0?".":r.decimal+"",bt=r.numerals===void 0?Yu:sa(Cc.call(r.numerals,String)),Pt=r.percent===void 0?"%":r.percent+"",Dt=r.minus===void 0?"-":r.minus+"",Ft=r.nan===void 0?"NaN":r.nan+"";function Vt(ie){ie=Wu(ie);var Qt=ie.fill,_e=ie.align,Ne=ie.sign,Pe=ie.symbol,je=ie.zero,ze=ie.width,ln=ie.comma,Je=ie.precision,sn=ie.trim,Pn=ie.type;Pn==="n"?(ln=!0,Pn="g"):io[Pn]||(Je===void 0&&(Je=12),sn=!0,Pn="g"),(je||Qt==="0"&&_e==="=")&&(je=!0,Qt="0",_e="=");var Un=Pe==="$"?A:Pe==="#"&&/[boxX]/.test(Pn)?"0"+Pn.toLowerCase():"",jn=Pe==="$"?V:/[%p]/.test(Pn)?Pt:"",vr=io[Pn],Qn=/[defgprs%]/.test(Pn);Je=Je===void 0?6:/[gprs]/.test(Pn)?Math.max(1,Math.min(21,Je)):Math.max(0,Math.min(20,Je));function or(tr){var un=Un,Wn=jn,xr,Hn,br;if(Pn==="c")Wn=vr(tr)+Wn,tr="";else{tr=+tr;var Zr=tr<0||1/tr<0;if(tr=isNaN(tr)?Ft:vr(Math.abs(tr),Je),sn&&(tr=Wx(tr)),Zr&&+tr==0&&Ne!=="+"&&(Zr=!1),un=(Zr?Ne==="("?Ne:Dt:Ne==="-"||Ne==="("?"":Ne)+un,Wn=(Pn==="s"?ol[8+Dg/3]:"")+Wn+(Zr&&Ne==="("?")":""),Qn){for(xr=-1,Hn=tr.length;++xrbr||br>57){Wn=(br===46?ut+tr.slice(xr+1):tr.slice(xr))+Wn,tr=tr.slice(0,xr);break}}}ln&&!je&&(tr=a(tr,1/0));var Vr=un.length+tr.length+Wn.length,oi=Vr>1)+un+tr+Wn+oi.slice(Vr);break;default:tr=oi+un+tr+Wn;break}return bt(tr)}return or.toString=function(){return ie+""},or}function $t(ie,Qt){var _e=Vt((ie=Wu(ie),ie.type="f",ie)),Ne=Math.max(-8,Math.min(8,Math.floor(Ul(Qt)/3)))*3,Pe=Math.pow(10,-Ne),je=ol[8+Ne/3];return function(ze){return _e(Pe*ze)+je}}return{format:Vt,formatPrefix:$t}}var Hl,dh,Od;rm({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function rm(r){return Hl=Cf(r),dh=Hl.format,Od=Hl.formatPrefix,Hl}function Yx(r){return Math.max(0,-Ul(Math.abs(r)))}function im(r,a){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ul(a)/3)))*3-Ul(Math.abs(r)))}function Gx(r,a){return r=Math.abs(r),a=Math.abs(a)-r,Math.max(0,Ul(a)-Ul(r))+1}function Mc(){return new Nd}function Nd(){this.reset()}Nd.prototype={constructor:Nd,reset:function(){this.s=this.t=0},add:function(r){Dd(ph,r,this.t),Dd(this,ph.s,this.s),this.s?this.t+=ph.t:this.s=ph.t},valueOf:function(){return this.s}};var ph=new Nd;function Dd(r,a,A){var V=r.s=a+A,ut=V-a,bt=V-ut;r.t=a-bt+(A-ut)}var li=1e-6,Mf=1e-12,Ii=Math.PI,Fo=Ii/2,Gu=Ii/4,Da=Ii*2,vo=180/Ii,ti=Ii/180,ji=Math.abs,mh=Math.atan,za=Math.atan2,Qr=Math.cos,Xu=Math.ceil,gh=Math.exp,om=Math.floor,h=Math.log,O=Math.pow,ct=Math.sin,Lt=Math.sign||function(r){return r>0?1:r<0?-1:0},Gt=Math.sqrt,se=Math.tan;function Fe(r){return r>1?0:r<-1?Ii:Math.acos(r)}function dn(r){return r>1?Fo:r<-1?-Fo:Math.asin(r)}function Tn(r){return(r=ct(r/2))*r}function Fn(){}function Sr(r,a){r&&Er.hasOwnProperty(r.type)&&Er[r.type](r,a)}var kr={Feature:function(r,a){Sr(r.geometry,a)},FeatureCollection:function(r,a){for(var A=r.features,V=-1,ut=A.length;++V=0?1:-1,ut=V*A,bt=Qr(a),Pt=ct(a),Dt=di*Pt,Ft=ei*bt+Dt*Qr(ut),Vt=Dt*V*ct(ut);ta.add(za(Vt,Ft)),Rr=r,ei=bt,di=Pt}function Hy(r){return Vn.reset(),Wr(r,ni),Vn*2}function Vy(r){return[za(r[1],r[0]),dn(r[2])]}function Rd(r){var a=r[0],A=r[1],V=Qr(A);return[V*Qr(a),V*ct(a),ct(A)]}function Wy(r,a){return r[0]*a[0]+r[1]*a[1]+r[2]*a[2]}function am(r,a){return[r[1]*a[2]-r[2]*a[1],r[2]*a[0]-r[0]*a[2],r[0]*a[1]-r[1]*a[0]]}function kc(r,a){r[0]+=a[0],r[1]+=a[1],r[2]+=a[2]}function yh(r,a){return[r[0]*a,r[1]*a,r[2]*a]}function Rg(r){var a=Gt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]);r[0]/=a,r[1]/=a,r[2]/=a}var la,al,qo,Vl,pa,FT,__,Ld,vh=Mc(),Ac,sl,Pc={point:Yy,lineStart:sm,lineEnd:Gy,polygonStart:function(){Pc.point=E_,Pc.lineStart=Xx,Pc.lineEnd=H5,vh.reset(),ni.polygonStart()},polygonEnd:function(){ni.polygonEnd(),Pc.point=Yy,Pc.lineStart=sm,Pc.lineEnd=Gy,ta<0?(la=-(qo=180),al=-(Vl=90)):vh>li?Vl=90:vh<-li&&(al=-90),sl[0]=la,sl[1]=qo},sphere:function(){la=-(qo=180),al=-(Vl=90)}};function Yy(r,a){Ac.push(sl=[la=r,qo=r]),aVl&&(Vl=a)}function S_(r,a){var A=Rd([r*ti,a*ti]);if(Ld){var V=am(Ld,A),ut=[V[1],-V[0],0],bt=am(ut,V);Rg(bt),bt=Vy(bt);var Pt=r-pa,Dt=Pt>0?1:-1,Ft=bt[0]*vo*Dt,Vt,$t=ji(Pt)>180;$t^(Dt*paVl&&(Vl=Vt)):(Ft=(Ft+360)%360-180,$t^(Dt*paVl&&(Vl=a))),$t?rll(la,qo)&&(qo=r):ll(r,qo)>ll(la,qo)&&(la=r):qo>=la?(rqo&&(qo=r)):r>pa?ll(la,r)>ll(la,qo)&&(qo=r):ll(r,qo)>ll(la,qo)&&(la=r)}else Ac.push(sl=[la=r,qo=r]);aVl&&(Vl=a),Ld=A,pa=r}function sm(){Pc.point=S_}function Gy(){sl[0]=la,sl[1]=qo,Pc.point=Yy,Ld=null}function E_(r,a){if(Ld){var A=r-pa;vh.add(ji(A)>180?A+(A>0?360:-360):A)}else FT=r,__=a;ni.point(r,a),S_(r,a)}function Xx(){ni.lineStart()}function H5(){E_(FT,__),ni.lineEnd(),ji(vh)>li&&(la=-(qo=180)),sl[0]=la,sl[1]=qo,Ld=null}function ll(r,a){return(a-=r)<0?a+360:a}function C_(r,a){return r[0]-a[0]}function $x(r,a){return r[0]<=r[1]?r[0]<=a&&a<=r[1]:all(V[0],V[1])&&(V[1]=ut[1]),ll(ut[0],V[1])>ll(V[0],V[1])&&(V[0]=ut[0])):bt.push(V=ut);for(Pt=-1/0,A=bt.length-1,a=0,V=bt[A];a<=A;V=ut,++a)ut=bt[a],(Dt=ll(V[1],ut[0]))>Pt&&(Pt=Dt,la=ut[0],qo=V[1])}return Ac=sl=null,la===1/0||al===1/0?[[NaN,NaN],[NaN,NaN]]:[[la,al],[qo,Vl]]}var Oc,Lg,Xy,$y,qy,lm,Ky,Zy,Ms,Qy,qx,M_,T_,zs,Us,Hs,$u={sphere:Fn,point:Jy,lineStart:k_,lineEnd:P_,polygonStart:function(){$u.lineStart=UT,$u.lineEnd=HT},polygonEnd:function(){$u.lineStart=k_,$u.lineEnd=P_}};function Jy(r,a){r*=ti,a*=ti;var A=Qr(a);Ig(A*Qr(r),A*ct(r),ct(a))}function Ig(r,a,A){++Oc,Xy+=(r-Xy)/Oc,$y+=(a-$y)/Oc,qy+=(A-qy)/Oc}function k_(){$u.point=A_}function A_(r,a){r*=ti,a*=ti;var A=Qr(a);zs=A*Qr(r),Us=A*ct(r),Hs=ct(a),$u.point=zT,Ig(zs,Us,Hs)}function zT(r,a){r*=ti,a*=ti;var A=Qr(a),V=A*Qr(r),ut=A*ct(r),bt=ct(a),Pt=za(Gt((Pt=Us*bt-Hs*ut)*Pt+(Pt=Hs*V-zs*bt)*Pt+(Pt=zs*ut-Us*V)*Pt),zs*V+Us*ut+Hs*bt);Lg+=Pt,lm+=Pt*(zs+(zs=V)),Ky+=Pt*(Us+(Us=ut)),Zy+=Pt*(Hs+(Hs=bt)),Ig(zs,Us,Hs)}function P_(){$u.point=Jy}function UT(){$u.point=O_}function HT(){Kx(M_,T_),$u.point=Jy}function O_(r,a){M_=r,T_=a,r*=ti,a*=ti,$u.point=Kx;var A=Qr(a);zs=A*Qr(r),Us=A*ct(r),Hs=ct(a),Ig(zs,Us,Hs)}function Kx(r,a){r*=ti,a*=ti;var A=Qr(a),V=A*Qr(r),ut=A*ct(r),bt=ct(a),Pt=Us*bt-Hs*ut,Dt=Hs*V-zs*bt,Ft=zs*ut-Us*V,Vt=Gt(Pt*Pt+Dt*Dt+Ft*Ft),$t=dn(Vt),ie=Vt&&-$t/Vt;Ms+=ie*Pt,Qy+=ie*Dt,qx+=ie*Ft,Lg+=$t,lm+=$t*(zs+(zs=V)),Ky+=$t*(Us+(Us=ut)),Zy+=$t*(Hs+(Hs=bt)),Ig(zs,Us,Hs)}function VT(r){Oc=Lg=Xy=$y=qy=lm=Ky=Zy=Ms=Qy=qx=0,Wr(r,$u);var a=Ms,A=Qy,V=qx,ut=a*a+A*A+V*V;return utIi?r+Math.round(-r/Da)*Da:r,a]}Zx.invert=Zx;function Qx(r,a,A){return(r%=Da)?a||A?cm(tb(r),eb(a,A)):tb(r):a||A?eb(a,A):Zx}function Jx(r){return function(a,A){return a+=r,[a>Ii?a-Da:a<-Ii?a+Da:a,A]}}function tb(r){var a=Jx(r);return a.invert=Jx(-r),a}function eb(r,a){var A=Qr(r),V=ct(r),ut=Qr(a),bt=ct(a);function Pt(Dt,Ft){var Vt=Qr(Ft),$t=Qr(Dt)*Vt,ie=ct(Dt)*Vt,Qt=ct(Ft),_e=Qt*A+$t*V;return[za(ie*ut-_e*bt,$t*A-Qt*V),dn(_e*ut+ie*bt)]}return Pt.invert=function(Dt,Ft){var Vt=Qr(Ft),$t=Qr(Dt)*Vt,ie=ct(Dt)*Vt,Qt=ct(Ft),_e=Qt*ut-ie*bt;return[za(ie*ut+Qt*bt,$t*A+_e*V),dn(_e*A-$t*V)]},Pt}function N_(r){r=Qx(r[0]*ti,r[1]*ti,r.length>2?r[2]*ti:0);function a(A){return A=r(A[0]*ti,A[1]*ti),A[0]*=vo,A[1]*=vo,A}return a.invert=function(A){return A=r.invert(A[0]*ti,A[1]*ti),A[0]*=vo,A[1]*=vo,A},a}function D_(r,a,A,V,ut,bt){if(A){var Pt=Qr(a),Dt=ct(a),Ft=V*A;ut==null?(ut=a+V*Da,bt=a-Ft/2):(ut=R_(Pt,ut),bt=R_(Pt,bt),(V>0?utbt)&&(ut+=V*Da));for(var Vt,$t=ut;V>0?$t>bt:$t1&&r.push(r.pop().concat(r.shift()))},result:function(){var A=r;return r=[],a=null,A}}}function tv(r,a){return ji(r[0]-a[0])=0;--Dt)ut.point((ie=$t[Dt])[0],ie[1]);else V(Qt.x,Qt.p.x,-1,ut);Qt=Qt.p}Qt=Qt.o,$t=Qt.z,_e=!_e}while(!Qt.v);ut.lineEnd()}}}function j_(r){if(a=r.length){for(var a,A=0,V=r[0],ut;++A=0?1:-1,Qn=vr*jn,or=Qn>Ii,tr=Pe*Pn;if(ev.add(za(tr*vr*ct(Qn),je*Un+tr*Qr(Qn))),Pt+=or?jn+vr*Da:jn,or^_e>=A^Je>=A){var un=am(Rd(Qt),Rd(ln));Rg(un);var Wn=am(bt,un);Rg(Wn);var xr=(or^jn>=0?-1:1)*dn(Wn[2]);(V>xr||V===xr&&(un[0]||un[1]))&&(Dt+=or^jn>=0?1:-1)}}return(Pt<-li||Pt0){for(Ft||(ut.polygonStart(),Ft=!0),ut.lineStart(),Un=0;Un1&&sn&2&&Pn.push(Pn.pop().concat(Pn.shift())),$t.push(Pn.filter(B_))}}return Qt}}function B_(r){return r.length>1}function V5(r,a){return((r=r.x)[0]<0?r[1]-Fo-li:Fo-r[1])-((a=a.x)[0]<0?a[1]-Fo-li:Fo-a[1])}const nv=hm(function(){return!0},F_,YT,[-Ii,-Fo]);function F_(r){var a=NaN,A=NaN,V=NaN,ut;return{lineStart:function(){r.lineStart(),ut=1},point:function(bt,Pt){var Dt=bt>0?Ii:-Ii,Ft=ji(bt-a);ji(Ft-Ii)0?Fo:-Fo),r.point(V,A),r.lineEnd(),r.lineStart(),r.point(Dt,A),r.point(bt,A),ut=0):V!==Dt&&Ft>=Ii&&(ji(a-V)li?mh((ct(a)*(bt=Qr(V))*ct(A)-ct(V)*(ut=Qr(a))*ct(r))/(ut*bt*Pt)):(a+V)/2}function YT(r,a,A,V){var ut;if(r==null)ut=A*Fo,V.point(-Ii,ut),V.point(0,ut),V.point(Ii,ut),V.point(Ii,0),V.point(Ii,-ut),V.point(0,-ut),V.point(-Ii,-ut),V.point(-Ii,0),V.point(-Ii,ut);else if(ji(r[0]-a[0])>li){var bt=r[0]0,ut=ji(a)>li;function bt($t,ie,Qt,_e){D_(_e,r,A,Qt,$t,ie)}function Pt($t,ie){return Qr($t)*Qr(ie)>a}function Dt($t){var ie,Qt,_e,Ne,Pe;return{lineStart:function(){Ne=_e=!1,Pe=1},point:function(je,ze){var ln=[je,ze],Je,sn=Pt(je,ze),Pn=V?sn?0:Vt(je,ze):sn?Vt(je+(je<0?Ii:-Ii),ze):0;if(!ie&&(Ne=_e=sn)&&$t.lineStart(),sn!==_e&&(Je=Ft(ie,ln),(!Je||tv(ie,Je)||tv(ln,Je))&&(ln[2]=1)),sn!==_e)Pe=0,sn?($t.lineStart(),Je=Ft(ln,ie),$t.point(Je[0],Je[1])):(Je=Ft(ie,ln),$t.point(Je[0],Je[1],2),$t.lineEnd()),ie=Je;else if(ut&&ie&&V^sn){var Un;!(Pn&Qt)&&(Un=Ft(ln,ie,!0))&&(Pe=0,V?($t.lineStart(),$t.point(Un[0][0],Un[0][1]),$t.point(Un[1][0],Un[1][1]),$t.lineEnd()):($t.point(Un[1][0],Un[1][1]),$t.lineEnd(),$t.lineStart(),$t.point(Un[0][0],Un[0][1],3)))}sn&&(!ie||!tv(ie,ln))&&$t.point(ln[0],ln[1]),ie=ln,_e=sn,Qt=Pn},lineEnd:function(){_e&&$t.lineEnd(),ie=null},clean:function(){return Pe|(Ne&&_e)<<1}}}function Ft($t,ie,Qt){var _e=Rd($t),Ne=Rd(ie),Pe=[1,0,0],je=am(_e,Ne),ze=Wy(je,je),ln=je[0],Je=ze-ln*ln;if(!Je)return!Qt&&$t;var sn=a*ze/Je,Pn=-a*ln/Je,Un=am(Pe,je),jn=yh(Pe,sn),vr=yh(je,Pn);kc(jn,vr);var Qn=Un,or=Wy(jn,Qn),tr=Wy(Qn,Qn),un=or*or-tr*(Wy(jn,jn)-1);if(!(un<0)){var Wn=Gt(un),xr=yh(Qn,(-or-Wn)/tr);if(kc(xr,jn),xr=Vy(xr),!Qt)return xr;var Hn=$t[0],br=ie[0],Zr=$t[1],Vr=ie[1],oi;br0^xr[1]<(ji(xr[0]-Hn)Ii^(Hn<=xr[0]&&xr[0]<=br)){var No=yh(Qn,(-or+Wn)/tr);return kc(No,jn),[xr,Vy(No)]}}}function Vt($t,ie){var Qt=V?r:Ii-r,_e=0;return $t<-Qt?_e|=1:$t>Qt&&(_e|=2),ie<-Qt?_e|=4:ie>Qt&&(_e|=8),_e}return hm(Pt,Dt,bt,V?[0,-r]:[-Ii,r-Ii])}function XT(r,a,A,V,ut,bt){var Pt=r[0],Dt=r[1],Ft=a[0],Vt=a[1],$t=0,ie=1,Qt=Ft-Pt,_e=Vt-Dt,Ne;if(Ne=A-Pt,!(!Qt&&Ne>0)){if(Ne/=Qt,Qt<0){if(Ne<$t)return;Ne0){if(Ne>ie)return;Ne>$t&&($t=Ne)}if(Ne=ut-Pt,!(!Qt&&Ne<0)){if(Ne/=Qt,Qt<0){if(Ne>ie)return;Ne>$t&&($t=Ne)}else if(Qt>0){if(Ne<$t)return;Ne0)){if(Ne/=_e,_e<0){if(Ne<$t)return;Ne0){if(Ne>ie)return;Ne>$t&&($t=Ne)}if(Ne=bt-Dt,!(!_e&&Ne<0)){if(Ne/=_e,_e<0){if(Ne>ie)return;Ne>$t&&($t=Ne)}else if(_e>0){if(Ne<$t)return;Ne0&&(r[0]=Pt+$t*Qt,r[1]=Dt+$t*_e),ie<1&&(a[0]=Pt+ie*Qt,a[1]=Dt+ie*_e),!0}}}}}var Fg=1e9,zg=-Fg;function rv(r,a,A,V){function ut(Vt,$t){return r<=Vt&&Vt<=A&&a<=$t&&$t<=V}function bt(Vt,$t,ie,Qt){var _e=0,Ne=0;if(Vt==null||(_e=Pt(Vt,ie))!==(Ne=Pt($t,ie))||Ft(Vt,$t)<0^ie>0)do Qt.point(_e===0||_e===3?r:A,_e>1?V:a);while((_e=(_e+ie+4)%4)!==Ne);else Qt.point($t[0],$t[1])}function Pt(Vt,$t){return ji(Vt[0]-r)0?0:3:ji(Vt[0]-A)0?2:1:ji(Vt[1]-a)0?1:0:$t>0?3:2}function Dt(Vt,$t){return Ft(Vt.x,$t.x)}function Ft(Vt,$t){var ie=Pt(Vt,1),Qt=Pt($t,1);return ie!==Qt?ie-Qt:ie===0?$t[1]-Vt[1]:ie===1?Vt[0]-$t[0]:ie===2?Vt[1]-$t[1]:$t[0]-Vt[0]}return function(Vt){var $t=Vt,ie=L_(),Qt,_e,Ne,Pe,je,ze,ln,Je,sn,Pn,Un,jn={point:vr,lineStart:un,lineEnd:Wn,polygonStart:or,polygonEnd:tr};function vr(Hn,br){ut(Hn,br)&&$t.point(Hn,br)}function Qn(){for(var Hn=0,br=0,Zr=_e.length;brV&&(mo-Ko)*(V-No)>(ma-No)*(r-Ko)&&++Hn:ma<=V&&(mo-Ko)*(V-No)<(ma-No)*(r-Ko)&&--Hn;return Hn}function or(){$t=ie,Qt=[],_e=[],Un=!0}function tr(){var Hn=Qn(),br=Un&&Hn,Zr=(Qt=(0,d.Am)(Qt)).length;(br||Zr)&&(Vt.polygonStart(),br&&(Vt.lineStart(),bt(null,null,1,Vt),Vt.lineEnd()),Zr&&I_(Qt,Dt,Hn,bt,Vt),Vt.polygonEnd()),$t=Vt,Qt=_e=Ne=null}function un(){jn.point=xr,_e&&_e.push(Ne=[]),Pn=!0,sn=!1,ln=Je=NaN}function Wn(){Qt&&(xr(Pe,je),ze&&sn&&ie.rejoin(),Qt.push(ie.result())),jn.point=vr,sn&&$t.lineEnd()}function xr(Hn,br){var Zr=ut(Hn,br);if(_e&&Ne.push([Hn,br]),Pn)Pe=Hn,je=br,ze=Zr,Pn=!1,Zr&&($t.lineStart(),$t.point(Hn,br));else if(Zr&&sn)$t.point(Hn,br);else{var Vr=[ln=Math.max(zg,Math.min(Fg,ln)),Je=Math.max(zg,Math.min(Fg,Je))],oi=[Hn=Math.max(zg,Math.min(Fg,Hn)),br=Math.max(zg,Math.min(Fg,br))];XT(Vr,oi,r,a,A,V)?(sn||($t.lineStart(),$t.point(Vr[0],Vr[1])),$t.point(oi[0],oi[1]),Zr||$t.lineEnd(),Un=!1):Zr&&($t.lineStart(),$t.point(Hn,br),Un=!1)}ln=Hn,Je=br,sn=Zr}return jn}}function $T(){var r=0,a=0,A=960,V=500,ut,bt,Pt;return Pt={stream:function(Dt){return ut&&bt===Dt?ut:ut=rv(r,a,A,V)(bt=Dt)},extent:function(Dt){return arguments.length?(r=+Dt[0][0],a=+Dt[0][1],A=+Dt[1][0],V=+Dt[1][1],ut=bt=null,Pt):[[r,a],[A,V]]}}}var nb=Mc(),rb,iv,ov,fm={sphere:Fn,point:Fn,lineStart:qT,lineEnd:Fn,polygonStart:Fn,polygonEnd:Fn};function qT(){fm.point=ZT,fm.lineEnd=KT}function KT(){fm.point=fm.lineEnd=Fn}function ZT(r,a){r*=ti,a*=ti,rb=r,iv=ct(a),ov=Qr(a),fm.point=QT}function QT(r,a){r*=ti,a*=ti;var A=ct(a),V=Qr(a),ut=ji(r-rb),bt=Qr(ut),Pt=ct(ut),Dt=V*Pt,Ft=ov*A-iv*V*bt,Vt=iv*A+ov*V*bt;nb.add(za(Gt(Dt*Dt+Ft*Ft),Vt)),rb=r,iv=A,ov=V}function Ug(r){return nb.reset(),Wr(r,fm),+nb}var ib=[null,null],JT={type:"LineString",coordinates:ib};function av(r,a){return ib[0]=r,ib[1]=a,Ug(JT)}var U_={Feature:function(r,a){return sv(r.geometry,a)},FeatureCollection:function(r,a){for(var A=r.features,V=-1,ut=A.length;++V0&&(ut=av(r[bt],r[bt-1]),ut>0&&A<=ut&&V<=ut&&(A+V-ut)*(1-Math.pow((A-V)/ut,2))li}).map(Qt)).concat((0,d.y1)(Xu(bt/Vt)*Vt,ut,Vt).filter(function(Je){return ji(Je%ie)>li}).map(_e))}return ze.lines=function(){return ln().map(function(Je){return{type:"LineString",coordinates:Je}})},ze.outline=function(){return{type:"Polygon",coordinates:[Ne(V).concat(Pe(Pt).slice(1),Ne(A).reverse().slice(1),Pe(Dt).reverse().slice(1))]}},ze.extent=function(Je){return arguments.length?ze.extentMajor(Je).extentMinor(Je):ze.extentMinor()},ze.extentMajor=function(Je){return arguments.length?(V=+Je[0][0],A=+Je[1][0],Dt=+Je[0][1],Pt=+Je[1][1],V>A&&(Je=V,V=A,A=Je),Dt>Pt&&(Je=Dt,Dt=Pt,Pt=Je),ze.precision(je)):[[V,Dt],[A,Pt]]},ze.extentMinor=function(Je){return arguments.length?(a=+Je[0][0],r=+Je[1][0],bt=+Je[0][1],ut=+Je[1][1],a>r&&(Je=a,a=r,r=Je),bt>ut&&(Je=bt,bt=ut,ut=Je),ze.precision(je)):[[a,bt],[r,ut]]},ze.step=function(Je){return arguments.length?ze.stepMajor(Je).stepMinor(Je):ze.stepMinor()},ze.stepMajor=function(Je){return arguments.length?($t=+Je[0],ie=+Je[1],ze):[$t,ie]},ze.stepMinor=function(Je){return arguments.length?(Ft=+Je[0],Vt=+Je[1],ze):[Ft,Vt]},ze.precision=function(Je){return arguments.length?(je=+Je,Qt=lb(bt,ut,90),_e=W_(a,r,je),Ne=lb(Dt,Pt,90),Pe=W_(V,A,je),ze):je},ze.extentMajor([[-180,-90+li],[180,90-li]]).extentMinor([[-180,-80-li],[180,80+li]])}function e3(){return Y_()()}function n3(r,a){var A=r[0]*ti,V=r[1]*ti,ut=a[0]*ti,bt=a[1]*ti,Pt=Qr(V),Dt=ct(V),Ft=Qr(bt),Vt=ct(bt),$t=Pt*Qr(A),ie=Pt*ct(A),Qt=Ft*Qr(ut),_e=Ft*ct(ut),Ne=2*dn(Gt(Tn(bt-V)+Pt*Ft*Tn(ut-A))),Pe=ct(Ne),je=Ne?function(ze){var ln=ct(ze*=Ne)/Pe,Je=ct(Ne-ze)/Pe,sn=Je*$t+ln*Qt,Pn=Je*ie+ln*_e,Un=Je*Dt+ln*Vt;return[za(Pn,sn)*vo,za(Un,Gt(sn*sn+Pn*Pn))*vo]}:function(){return[A*vo,V*vo]};return je.distance=Ne,je}function uv(r){return r}var cv=Mc(),ub=Mc(),G_,X_,cb,hb,bh={point:Fn,lineStart:Fn,lineEnd:Fn,polygonStart:function(){bh.lineStart=r3,bh.lineEnd=q_},polygonEnd:function(){bh.lineStart=bh.lineEnd=bh.point=Fn,cv.add(ji(ub)),ub.reset()},result:function(){var r=cv/2;return cv.reset(),r}};function r3(){bh.point=i3}function i3(r,a){bh.point=$_,G_=cb=r,X_=hb=a}function $_(r,a){ub.add(hb*r-cb*a),cb=r,hb=a}function q_(){$_(G_,X_)}const K_=bh;var dm=1/0,Hg=dm,pm=-dm,hv=pm,Z_={point:Q_,lineStart:Fn,lineEnd:Fn,polygonStart:Fn,polygonEnd:Fn,result:function(){var r=[[dm,Hg],[pm,hv]];return pm=hv=-(Hg=dm=1/0),r}};function Q_(r,a){rpm&&(pm=r),ahv&&(hv=a)}const fv=Z_;var fb=0,db=0,Vg=0,dv=0,pv=0,Id=0,Nc=0,mv=0,Wg=0,pb,mb,qu,uu,Ku={point:jd,lineStart:J_,lineEnd:yb,polygonStart:function(){Ku.lineStart=o3,Ku.lineEnd=a3},polygonEnd:function(){Ku.point=jd,Ku.lineStart=J_,Ku.lineEnd=yb},result:function(){var r=Wg?[Nc/Wg,mv/Wg]:Id?[dv/Id,pv/Id]:Vg?[fb/Vg,db/Vg]:[NaN,NaN];return fb=db=Vg=dv=pv=Id=Nc=mv=Wg=0,r}};function jd(r,a){fb+=r,db+=a,++Vg}function J_(){Ku.point=gb}function gb(r,a){Ku.point=W5,jd(qu=r,uu=a)}function W5(r,a){var A=r-qu,V=a-uu,ut=Gt(A*A+V*V);dv+=ut*(qu+r)/2,pv+=ut*(uu+a)/2,Id+=ut,jd(qu=r,uu=a)}function yb(){Ku.point=jd}function o3(){Ku.point=vb}function a3(){tS(pb,mb)}function vb(r,a){Ku.point=tS,jd(pb=qu=r,mb=uu=a)}function tS(r,a){var A=r-qu,V=a-uu,ut=Gt(A*A+V*V);dv+=ut*(qu+r)/2,pv+=ut*(uu+a)/2,Id+=ut,ut=uu*r-qu*a,Nc+=ut*(qu+r),mv+=ut*(uu+a),Wg+=ut*3,jd(qu=r,uu=a)}const eS=Ku;function xb(r){this._context=r}xb.prototype={_radius:4.5,pointRadius:function(r){return this._radius=r,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(r,a){switch(this._point){case 0:{this._context.moveTo(r,a),this._point=1;break}case 1:{this._context.lineTo(r,a);break}default:{this._context.moveTo(r+this._radius,a),this._context.arc(r,a,this._radius,0,Da);break}}},result:Fn};var _a=Mc(),Zu,bb,wb,Yg,mm,gm={point:Fn,lineStart:function(){gm.point=_b},lineEnd:function(){Zu&&Sb(bb,wb),gm.point=Fn},polygonStart:function(){Zu=!0},polygonEnd:function(){Zu=null},result:function(){var r=+_a;return _a.reset(),r}};function _b(r,a){gm.point=Sb,bb=Yg=r,wb=mm=a}function Sb(r,a){Yg-=r,mm-=a,_a.add(Gt(Yg*Yg+mm*mm)),Yg=r,mm=a}const Eb=gm;function Cb(){this._string=[]}Cb.prototype={_radius:4.5,_circle:Mb(4.5),pointRadius:function(r){return(r=+r)!==this._radius&&(this._radius=r,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(r,a){switch(this._point){case 0:{this._string.push("M",r,",",a),this._point=1;break}case 1:{this._string.push("L",r,",",a);break}default:{this._circle==null&&(this._circle=Mb(this._radius)),this._string.push("M",r,",",a,this._circle);break}}},result:function(){if(this._string.length){var r=this._string.join("");return this._string=[],r}else return null}};function Mb(r){return"m0,"+r+"a"+r+","+r+" 0 1,1 0,"+-2*r+"a"+r+","+r+" 0 1,1 0,"+2*r+"z"}function s3(r,a){var A=4.5,V,ut;function bt(Pt){return Pt&&(typeof A=="function"&&ut.pointRadius(+A.apply(this,arguments)),Wr(Pt,V(ut))),ut.result()}return bt.area=function(Pt){return Wr(Pt,V(K_)),K_.result()},bt.measure=function(Pt){return Wr(Pt,V(Eb)),Eb.result()},bt.bounds=function(Pt){return Wr(Pt,V(fv)),fv.result()},bt.centroid=function(Pt){return Wr(Pt,V(eS)),eS.result()},bt.projection=function(Pt){return arguments.length?(V=Pt==null?(r=null,uv):(r=Pt).stream,bt):r},bt.context=function(Pt){return arguments.length?(ut=Pt==null?(a=null,new Cb):new xb(a=Pt),typeof A!="function"&&ut.pointRadius(A),bt):a},bt.pointRadius=function(Pt){return arguments.length?(A=typeof Pt=="function"?Pt:(ut.pointRadius(+Pt),+Pt),bt):A},bt.projection(r).context(a)}function gv(r){return{stream:Gg(r)}}function Gg(r){return function(a){var A=new Xg;for(var V in r)A[V]=r[V];return A.stream=a,A}}function Xg(){}Xg.prototype={constructor:Xg,point:function(r,a){this.stream.point(r,a)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function $g(r,a,A){var V=r.clipExtent&&r.clipExtent();return r.scale(150).translate([0,0]),V!=null&&r.clipExtent(null),Wr(A,r.stream(fv)),a(fv.result()),V!=null&&r.clipExtent(V),r}function ym(r,a,A){return $g(r,function(V){var ut=a[1][0]-a[0][0],bt=a[1][1]-a[0][1],Pt=Math.min(ut/(V[1][0]-V[0][0]),bt/(V[1][1]-V[0][1])),Dt=+a[0][0]+(ut-Pt*(V[1][0]+V[0][0]))/2,Ft=+a[0][1]+(bt-Pt*(V[1][1]+V[0][1]))/2;r.scale(150*Pt).translate([Dt,Ft])},A)}function Tb(r,a,A){return ym(r,[[0,0],a],A)}function kb(r,a,A){return $g(r,function(V){var ut=+a,bt=ut/(V[1][0]-V[0][0]),Pt=(ut-bt*(V[1][0]+V[0][0]))/2,Dt=-bt*V[0][1];r.scale(150*bt).translate([Pt,Dt])},A)}function Bd(r,a,A){return $g(r,function(V){var ut=+a,bt=ut/(V[1][1]-V[0][1]),Pt=-bt*V[0][0],Dt=(ut-bt*(V[1][1]+V[0][1]))/2;r.scale(150*bt).translate([Pt,Dt])},A)}var nS=16,l3=Qr(30*ti);function rS(r,a){return+a?c3(r,a):u3(r)}function u3(r){return Gg({point:function(a,A){a=r(a,A),this.stream.point(a[0],a[1])}})}function c3(r,a){function A(V,ut,bt,Pt,Dt,Ft,Vt,$t,ie,Qt,_e,Ne,Pe,je){var ze=Vt-V,ln=$t-ut,Je=ze*ze+ln*ln;if(Je>4*a&&Pe--){var sn=Pt+Qt,Pn=Dt+_e,Un=Ft+Ne,jn=Gt(sn*sn+Pn*Pn+Un*Un),vr=dn(Un/=jn),Qn=ji(ji(Un)-1)a||ji((ze*Wn+ln*xr)/Je-.5)>.3||Pt*Qt+Dt*_e+Ft*Ne2?Hn[2]%360*ti:0,Wn()):[Dt*vo,Ft*vo,Vt*vo]},tr.angle=function(Hn){return arguments.length?(ie=Hn%360*ti,Wn()):ie*vo},tr.reflectX=function(Hn){return arguments.length?(Qt=Hn?-1:1,Wn()):Qt<0},tr.reflectY=function(Hn){return arguments.length?(_e=Hn?-1:1,Wn()):_e<0},tr.precision=function(Hn){return arguments.length?(Un=rS(jn,Pn=Hn*Hn),xr()):Gt(Pn)},tr.fitExtent=function(Hn,br){return ym(tr,Hn,br)},tr.fitSize=function(Hn,br){return Tb(tr,Hn,br)},tr.fitWidth=function(Hn,br){return kb(tr,Hn,br)},tr.fitHeight=function(Hn,br){return Bd(tr,Hn,br)};function Wn(){var Hn=Pb(A,0,0,Qt,_e,ie).apply(null,a(bt,Pt)),br=(ie?Pb:h3)(A,V-Hn[0],ut-Hn[1],Qt,_e,ie);return $t=Qx(Dt,Ft,Vt),jn=cm(a,br),vr=cm($t,jn),Un=rS(jn,Pn),xr()}function xr(){return Qn=or=null,tr}return function(){return a=r.apply(this,arguments),tr.invert=a.invert&&un,Wn()}}function vv(r){var a=0,A=Ii/3,V=yv(r),ut=V(a,A);return ut.parallels=function(bt){return arguments.length?V(a=bt[0]*ti,A=bt[1]*ti):[a*vo,A*vo]},ut}function Ob(r){var a=Qr(r);function A(V,ut){return[V*a,ct(ut)/a]}return A.invert=function(V,ut){return[V/a,dn(ut*a)]},A}function oS(r,a){var A=ct(r),V=(A+ct(a))/2;if(ji(V)=.12&&je<.234&&Pe>=-.425&&Pe<-.214?ut:je>=.166&&je<.234&&Pe>=-.214&&Pe<-.115?Pt:A).invert(Qt)},$t.stream=function(Qt){return r&&a===Qt?r:r=aS([A.stream(a=Qt),ut.stream(Qt),Pt.stream(Qt)])},$t.precision=function(Qt){return arguments.length?(A.precision(Qt),ut.precision(Qt),Pt.precision(Qt),ie()):A.precision()},$t.scale=function(Qt){return arguments.length?(A.scale(Qt),ut.scale(Qt*.35),Pt.scale(Qt),$t.translate(A.translate())):A.scale()},$t.translate=function(Qt){if(!arguments.length)return A.translate();var _e=A.scale(),Ne=+Qt[0],Pe=+Qt[1];return V=A.translate(Qt).clipExtent([[Ne-.455*_e,Pe-.238*_e],[Ne+.455*_e,Pe+.238*_e]]).stream(Vt),bt=ut.translate([Ne-.307*_e,Pe+.201*_e]).clipExtent([[Ne-.425*_e+li,Pe+.12*_e+li],[Ne-.214*_e-li,Pe+.234*_e-li]]).stream(Vt),Dt=Pt.translate([Ne-.205*_e,Pe+.212*_e]).clipExtent([[Ne-.214*_e+li,Pe+.166*_e+li],[Ne-.115*_e-li,Pe+.234*_e-li]]).stream(Vt),ie()},$t.fitExtent=function(Qt,_e){return ym($t,Qt,_e)},$t.fitSize=function(Qt,_e){return Tb($t,Qt,_e)},$t.fitWidth=function(Qt,_e){return kb($t,Qt,_e)},$t.fitHeight=function(Qt,_e){return Bd($t,Qt,_e)};function ie(){return r=a=null,$t}return $t.scale(1070)}function sS(r){return function(a,A){var V=Qr(a),ut=Qr(A),bt=r(V*ut);return[bt*ut*ct(a),bt*ct(A)]}}function qg(r){return function(a,A){var V=Gt(a*a+A*A),ut=r(V),bt=ct(ut),Pt=Qr(ut);return[za(a*bt,V*Pt),dn(V&&A*bt/V)]}}var lS=sS(function(r){return Gt(2/(1+r))});lS.invert=qg(function(r){return 2*dn(r/2)});function uS(){return wh(lS).scale(124.75).clipAngle(179.999)}var Kg=sS(function(r){return(r=Fe(r))&&r/ct(r)});Kg.invert=qg(function(r){return r});function d3(){return wh(Kg).scale(79.4188).clipAngle(179.999)}function Zg(r,a){return[r,h(se((Fo+a)/2))]}Zg.invert=function(r,a){return[r,2*mh(gh(a))-Fo]};function Y5(){return Db(Zg).scale(961/Da)}function Db(r){var a=wh(r),A=a.center,V=a.scale,ut=a.translate,bt=a.clipExtent,Pt=null,Dt,Ft,Vt;a.scale=function(ie){return arguments.length?(V(ie),$t()):V()},a.translate=function(ie){return arguments.length?(ut(ie),$t()):ut()},a.center=function(ie){return arguments.length?(A(ie),$t()):A()},a.clipExtent=function(ie){return arguments.length?(ie==null?Pt=Dt=Ft=Vt=null:(Pt=+ie[0][0],Dt=+ie[0][1],Ft=+ie[1][0],Vt=+ie[1][1]),$t()):Pt==null?null:[[Pt,Dt],[Ft,Vt]]};function $t(){var ie=Ii*V(),Qt=a(N_(a.rotate()).invert([0,0]));return bt(Pt==null?[[Qt[0]-ie,Qt[1]-ie],[Qt[0]+ie,Qt[1]+ie]]:r===Zg?[[Math.max(Qt[0]-ie,Pt),Dt],[Math.min(Qt[0]+ie,Ft),Vt]]:[[Pt,Math.max(Qt[1]-ie,Dt)],[Ft,Math.min(Qt[1]+ie,Vt)]])}return $t()}function vm(r){return se((Fo+r)/2)}function cS(r,a){var A=Qr(r),V=r===a?ct(r):h(A/Qr(a))/h(vm(a)/vm(r)),ut=A*O(vm(r),V)/V;if(!V)return Zg;function bt(Pt,Dt){ut>0?Dt<-Fo+li&&(Dt=-Fo+li):Dt>Fo-li&&(Dt=Fo-li);var Ft=ut/O(vm(Dt),V);return[Ft*ct(V*Pt),ut-Ft*Qr(V*Pt)]}return bt.invert=function(Pt,Dt){var Ft=ut-Dt,Vt=Lt(V)*Gt(Pt*Pt+Ft*Ft),$t=za(Pt,ji(Ft))*Lt(Ft);return Ft*V<0&&($t-=Ii*Lt(Pt)*Lt(Ft)),[$t/V,2*mh(O(ut/Vt,1/V))-Fo]},bt}function p3(){return vv(cS).scale(109.5).parallels([30,30])}function bv(r,a){return[r,a]}bv.invert=bv;function hS(){return wh(bv).scale(152.63)}function wv(r,a){var A=Qr(r),V=r===a?ct(r):(A-Qr(a))/(a-r),ut=A/V+r;if(ji(V)li&&--V>0);return[r/(.8707+(bt=A*A)*(-.131979+bt*(-.013791+bt*bt*bt*(.003971-.001529*bt)))),A]};function gS(){return wh(mS).scale(175.295)}function t0(r,a){return[Qr(a)*ct(r),ct(a)]}t0.invert=qg(dn);function v3(){return wh(t0).scale(249.5).clipAngle(90+li)}function Rb(r,a){var A=Qr(a),V=1+Qr(r)*A;return[A*ct(r)/V,ct(a)/V]}Rb.invert=qg(function(r){return 2*mh(r)});function G5(){return wh(Rb).scale(250).clipAngle(142)}function Ev(r,a){return[h(se((Fo+a)/2)),-r]}Ev.invert=function(r,a){return[-a,2*mh(gh(r))-Fo]};function Lb(){var r=Db(Ev),a=r.center,A=r.rotate;return r.center=function(V){return arguments.length?a([-V[1],V[0]]):(V=a(),[V[1],-V[0]])},r.rotate=function(V){return arguments.length?A([V[0],V[1],V.length>2?V[2]+90:90]):(V=A(),[V[0],V[1],V[2]-90])},A([0,0,90]).scale(159.155)}function x3(r,a){return r.parent===a.parent?1:2}function b3(r){return r.reduce(X5,0)/r.length}function X5(r,a){return r+a.x}function yS(r){return 1+r.reduce(Ib,0)}function Ib(r,a){return Math.max(r,a.y)}function w3(r){for(var a;a=r.children;)r=a[0];return r}function _3(r){for(var a;a=r.children;)r=a[a.length-1];return r}function $5(){var r=x3,a=1,A=1,V=!1;function ut(bt){var Pt,Dt=0;bt.eachAfter(function(Qt){var _e=Qt.children;_e?(Qt.x=b3(_e),Qt.y=yS(_e)):(Qt.x=Pt?Dt+=r(Qt,Pt):0,Qt.y=0,Pt=Qt)});var Ft=w3(bt),Vt=_3(bt),$t=Ft.x-r(Ft,Vt)/2,ie=Vt.x+r(Vt,Ft)/2;return bt.eachAfter(V?function(Qt){Qt.x=(Qt.x-bt.x)*a,Qt.y=(bt.y-Qt.y)*A}:function(Qt){Qt.x=(Qt.x-$t)/(ie-$t)*a,Qt.y=(1-(bt.y?Qt.y/bt.y:1))*A})}return ut.separation=function(bt){return arguments.length?(r=bt,ut):r},ut.size=function(bt){return arguments.length?(V=!1,a=+bt[0],A=+bt[1],ut):V?null:[a,A]},ut.nodeSize=function(bt){return arguments.length?(V=!0,a=+bt[0],A=+bt[1],ut):V?[a,A]:null},ut}function vS(r){var a=0,A=r.children,V=A&&A.length;if(!V)a=1;else for(;--V>=0;)a+=A[V].value;r.value=a}function xS(){return this.eachAfter(vS)}function bS(r){var a=this,A,V=[a],ut,bt,Pt;do for(A=V.reverse(),V=[];a=A.pop();)if(r(a),ut=a.children,ut)for(bt=0,Pt=ut.length;bt=0;--ut)A.push(V[ut]);return this}function _S(r){for(var a=this,A=[a],V=[],ut,bt,Pt;a=A.pop();)if(V.push(a),ut=a.children,ut)for(bt=0,Pt=ut.length;bt=0;)A+=V[ut].value;a.value=A})}function S3(r){return this.eachBefore(function(a){a.children&&a.children.sort(r)})}function E3(r){for(var a=this,A=q5(a,r),V=[a];a!==A;)a=a.parent,V.push(a);for(var ut=V.length;r!==A;)V.splice(ut,0,r),r=r.parent;return V}function q5(r,a){if(r===a)return r;var A=r.ancestors(),V=a.ancestors(),ut=null;for(r=A.pop(),a=V.pop();r===a;)ut=r,r=A.pop(),a=V.pop();return ut}function SS(){for(var r=this,a=[r];r=r.parent;)a.push(r);return a}function Bb(){var r=[];return this.each(function(a){r.push(a)}),r}function C3(){var r=[];return this.eachBefore(function(a){a.children||r.push(a)}),r}function M3(){var r=this,a=[];return r.each(function(A){A!==r&&a.push({source:A.parent,target:A})}),a}function ES(r,a){var A=new e0(r),V=+r.value&&(A.value=r.value),ut,bt=[A],Pt,Dt,Ft,Vt;for(a==null&&(a=Fb);ut=bt.pop();)if(V&&(ut.value=+ut.data.value),(Dt=a(ut.data))&&(Vt=Dt.length))for(ut.children=new Array(Vt),Ft=Vt-1;Ft>=0;--Ft)bt.push(Pt=ut.children[Ft]=new e0(Dt[Ft])),Pt.parent=ut,Pt.depth=ut.depth+1;return A.eachBefore(MS)}function CS(){return ES(this).eachBefore(T3)}function Fb(r){return r.children}function T3(r){r.data=r.data.data}function MS(r){var a=0;do r.height=a;while((r=r.parent)&&r.height<++a)}function e0(r){this.data=r,this.depth=this.height=0,this.parent=null}e0.prototype=ES.prototype={constructor:e0,count:xS,each:bS,eachAfter:_S,eachBefore:wS,sum:jb,sort:S3,path:E3,ancestors:SS,descendants:Bb,leaves:C3,links:M3,copy:CS};var TS=Array.prototype.slice;function zb(r){for(var a=r.length,A,V;a;)V=Math.random()*a--|0,A=r[a],r[a]=r[V],r[V]=A;return r}function kS(r){for(var a=0,A=(r=zb(TS.call(r))).length,V=[],ut,bt;a0&&A*A>V*V+ut*ut}function n0(r,a){for(var A=0;AFt?(ut=(Vt+Ft-bt)/(2*Vt),Dt=Math.sqrt(Math.max(0,Ft/Vt-ut*ut)),A.x=r.x-ut*V-Dt*Pt,A.y=r.y-ut*Pt+Dt*V):(ut=(Vt+bt-Ft)/(2*Vt),Dt=Math.sqrt(Math.max(0,bt/Vt-ut*ut)),A.x=a.x+ut*V-Dt*Pt,A.y=a.y+ut*Pt+Dt*V)):(A.x=a.x+A.r,A.y=a.y)}function AS(r,a){var A=r.r+a.r-1e-6,V=a.x-r.x,ut=a.y-r.y;return A>0&&A*A>V*V+ut*ut}function PS(r){var a=r._,A=r.next._,V=a.r+A.r,ut=(a.x*A.r+A.x*a.r)/V,bt=(a.y*A.r+A.y*a.r)/V;return ut*ut+bt*bt}function Wb(r){this._=r,this.next=null,this.previous=null}function Yb(r){if(!(ut=r.length))return 0;var a,A,V,ut,bt,Pt,Dt,Ft,Vt,$t,ie;if(a=r[0],a.x=0,a.y=0,!(ut>1))return a.r;if(A=r[1],a.x=-A.r,A.x=a.r,A.y=0,!(ut>2))return a.r+A.r;Mv(A,a,V=r[2]),a=new Wb(a),A=new Wb(A),V=new Wb(V),a.next=V.previous=A,A.next=a.previous=V,V.next=A.previous=a;t:for(Dt=3;Dt0)throw new Error("cycle");return Dt}return A.id=function(V){return arguments.length?(r=Tv(V),A):r},A.parentId=function(V){return arguments.length?(a=Tv(V),A):a},A}function RS(r,a){return r.parent===a.parent?1:2}function i0(r){var a=r.children;return a?a[0]:r.t}function qb(r){var a=r.children;return a?a[a.length-1]:r.t}function j3(r,a,A){var V=A/(a.i-r.i);a.c-=V,a.s+=A,r.c+=V,a.z+=A,a.m+=A}function Z5(r){for(var a=0,A=0,V=r.children,ut=V.length,bt;--ut>=0;)bt=V[ut],bt.z+=a,bt.m+=a,a+=bt.s+(A+=bt.c)}function ua(r,a,A){return r.a.parent===a.parent?r.a:A}function o0(r,a){this._=r,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=a}o0.prototype=Object.create(e0.prototype);function B3(r){for(var a=new o0(r,0),A,V=[a],ut,bt,Pt,Dt;A=V.pop();)if(bt=A._.children)for(A.children=new Array(Dt=bt.length),Pt=Dt-1;Pt>=0;--Pt)V.push(ut=A.children[Pt]=new o0(bt[Pt],Pt)),ut.parent=A;return(a.parent=new o0(null,0)).children=[a],a}function Yi(){var r=RS,a=1,A=1,V=null;function ut(Vt){var $t=B3(Vt);if($t.eachAfter(bt),$t.parent.m=-$t.z,$t.eachBefore(Pt),V)Vt.eachBefore(Ft);else{var ie=Vt,Qt=Vt,_e=Vt;Vt.eachBefore(function(ln){ln.xQt.x&&(Qt=ln),ln.depth>_e.depth&&(_e=ln)});var Ne=ie===Qt?1:r(ie,Qt)/2,Pe=Ne-ie.x,je=a/(Qt.x+Ne+Pe),ze=A/(_e.depth||1);Vt.eachBefore(function(ln){ln.x=(ln.x+Pe)*je,ln.y=ln.depth*ze})}return Vt}function bt(Vt){var $t=Vt.children,ie=Vt.parent.children,Qt=Vt.i?ie[Vt.i-1]:null;if($t){Z5(Vt);var _e=($t[0].z+$t[$t.length-1].z)/2;Qt?(Vt.z=Qt.z+r(Vt._,Qt._),Vt.m=Vt.z-_e):Vt.z=_e}else Qt&&(Vt.z=Qt.z+r(Vt._,Qt._));Vt.parent.A=Dt(Vt,Qt,Vt.parent.A||ie[0])}function Pt(Vt){Vt._.x=Vt.z+Vt.parent.m,Vt.m+=Vt.parent.m}function Dt(Vt,$t,ie){if($t){for(var Qt=Vt,_e=Vt,Ne=$t,Pe=Qt.parent.children[0],je=Qt.m,ze=_e.m,ln=Ne.m,Je=Pe.m,sn;Ne=qb(Ne),Qt=i0(Qt),Ne&&Qt;)Pe=i0(Pe),_e=qb(_e),_e.a=Vt,sn=Ne.z+ln-Qt.z-je+r(Ne._,Qt._),sn>0&&(j3(ua(Ne,Vt,ie),Vt,sn),je+=sn,ze+=sn),ln+=Ne.m,je+=Qt.m,Je+=Pe.m,ze+=_e.m;Ne&&!qb(_e)&&(_e.t=Ne,_e.m+=ln-ze),Qt&&!i0(Pe)&&(Pe.t=Qt,Pe.m+=je-Je,ie=Vt)}return ie}function Ft(Vt){Vt.x*=a,Vt.y=Vt.depth*A}return ut.separation=function(Vt){return arguments.length?(r=Vt,ut):r},ut.size=function(Vt){return arguments.length?(V=!1,a=+Vt[0],A=+Vt[1],ut):V?null:[a,A]},ut.nodeSize=function(Vt){return arguments.length?(V=!0,a=+Vt[0],A=+Vt[1],ut):V?[a,A]:null},ut}function Kb(r,a,A,V,ut){for(var bt=r.children,Pt,Dt=-1,Ft=bt.length,Vt=r.value&&(ut-A)/r.value;++Dtln&&(ln=Vt),Un=je*je*Pn,Je=Math.max(ln/Un,Un/ze),Je>sn){je-=Vt;break}sn=Je}Pt.push(Ft={value:je,dice:_e1?V:1)},A}(gi);function a0(){var r=Pv,a=!1,A=1,V=1,ut=[0],bt=bm,Pt=bm,Dt=bm,Ft=bm,Vt=bm;function $t(Qt){return Qt.x0=Qt.y0=0,Qt.x1=A,Qt.y1=V,Qt.eachBefore(ie),ut=[0],a&&Qt.eachBefore(kv),Qt}function ie(Qt){var _e=ut[Qt.depth],Ne=Qt.x0+_e,Pe=Qt.y0+_e,je=Qt.x1-_e,ze=Qt.y1-_e;je=Qt-1){var ln=bt[ie];ln.x0=Ne,ln.y0=Pe,ln.x1=je,ln.y1=ze;return}for(var Je=Vt[ie],sn=_e/2+Je,Pn=ie+1,Un=Qt-1;Pn>>1;Vt[jn]ze-Pe){var or=(Ne*Qn+je*vr)/_e;$t(ie,Pn,vr,Ne,Pe,or,ze),$t(Pn,Qt,Qn,or,Pe,je,ze)}else{var tr=(Pe*Qn+ze*vr)/_e;$t(ie,Pn,vr,Ne,Pe,je,tr),$t(Pn,Qt,Qn,Ne,tr,je,ze)}}}function pi(r,a,A,V,ut){(r.depth&1?Kb:r0)(r,a,A,V,ut)}const Zb=function r(a){function A(V,ut,bt,Pt,Dt){if((Ft=V._squarify)&&Ft.ratio===a)for(var Ft,Vt,$t,ie,Qt=-1,_e,Ne=Ft.length,Pe=V.value;++Qt1?V:1)},A}(gi);function LS(r){var a=r.length;return function(A){return r[Math.max(0,Math.min(a-1,Math.floor(A*a)))]}}function IS(r,a){var A=Vc(+r,+a);return function(V){var ut=A(V);return ut-360*Math.floor(ut/360)}}function Qb(r,a){return r=+r,a=+a,function(A){return Math.round(r*(1-A)+a*A)}}var cu=Math.SQRT2,Ov=2,z3=4,Q5=1e-12;function Jb(r){return((r=Math.exp(r))+1/r)/2}function U3(r){return((r=Math.exp(r))-1/r)/2}function s0(r){return((r=Math.exp(2*r))-1)/(r+1)}function Nv(r,a){var A=r[0],V=r[1],ut=r[2],bt=a[0],Pt=a[1],Dt=a[2],Ft=bt-A,Vt=Pt-V,$t=Ft*Ft+Vt*Vt,ie,Qt;if($t1&&J5(r[A[V-2]],r[A[V-1]],r[ut])<=0;)--V;A[V++]=ut}return A.slice(0,V)}function Eh(r){if((A=r.length)<3)return null;var a,A,V=new Array(A),ut=new Array(A);for(a=0;a=0;--a)Vt.push(r[V[bt[a]][2]]);for(a=+Dt;abt!=Dt>bt&&ut<(Pt-Ft)*(bt-Vt)/(Dt-Vt)+Ft&&($t=!$t),Pt=Ft,Dt=Vt;return $t}function eO(r){for(var a=-1,A=r.length,V=r[A-1],ut,bt,Pt=V[0],Dt=V[1],Ft=0;++a1);return V+ut*Dt*Math.sqrt(-2*Math.log(Pt)/Pt)}}return A.source=r,A}(Ud),J3=function r(a){function A(){var V=ew.source(a).apply(this,arguments);return function(){return Math.exp(V())}}return A.source=r,A}(Ud),tk=function r(a){function A(V){return function(){for(var ut=0,bt=0;btA&&(V=a,a=A,A=V),function(ut){return Math.max(a,Math.min(A,ut))}}function rk(r,a,A){var V=r[0],ut=r[1],bt=a[0],Pt=a[1];return ut2?ik:rk,Ft=Vt=null,ie}function ie(Qt){return isNaN(Qt=+Qt)?bt:(Ft||(Ft=Dt(r.map(V),a,A)))(V(Pt(Qt)))}return ie.invert=function(Qt){return Pt(ut((Vt||(Vt=Dt(a,r.map(V),gs)))(Qt)))},ie.domain=function(Qt){return arguments.length?(r=Tf.call(Qt,Rv),Pt===Ka||(Pt=FS(r)),$t()):r.slice()},ie.range=function(Qt){return arguments.length?(a=Ch.call(Qt),$t()):a.slice()},ie.rangeRound=function(Qt){return a=Ch.call(Qt),A=Qb,$t()},ie.clamp=function(Qt){return arguments.length?(Pt=Qt?FS(r):Ka,ie):Pt!==Ka},ie.interpolate=function(Qt){return arguments.length?(A=Qt,$t()):A},ie.unknown=function(Qt){return arguments.length?(bt=Qt,ie):bt},function(Qt,_e){return V=Qt,ut=_e,$t()}}function zS(r,a){return Lv()(r,a)}function aw(r,a,A,V){var ut=(0,d.sG)(r,a,A),bt;switch(V=Wu(V==null?",f":V),V.type){case"s":{var Pt=Math.max(Math.abs(r),Math.abs(a));return V.precision==null&&!isNaN(bt=im(ut,Pt))&&(V.precision=bt),Od(V,Pt)}case"":case"e":case"g":case"p":case"r":{V.precision==null&&!isNaN(bt=Gx(ut,Math.max(Math.abs(r),Math.abs(a))))&&(V.precision=bt-(V.type==="e"));break}case"f":case"%":{V.precision==null&&!isNaN(bt=Yx(ut))&&(V.precision=bt-(V.type==="%")*2);break}}return dh(V)}function Hd(r){var a=r.domain;return r.ticks=function(A){var V=a();return(0,d.Zc)(V[0],V[V.length-1],A==null?10:A)},r.tickFormat=function(A,V){var ut=a();return aw(ut[0],ut[ut.length-1],A==null?10:A,V)},r.nice=function(A){A==null&&(A=10);var V=a(),ut=0,bt=V.length-1,Pt=V[ut],Dt=V[bt],Ft;return Dt0?(Pt=Math.floor(Pt/Ft)*Ft,Dt=Math.ceil(Dt/Ft)*Ft,Ft=(0,d.lq)(Pt,Dt,A)):Ft<0&&(Pt=Math.ceil(Pt*Ft)/Ft,Dt=Math.floor(Dt*Ft)/Ft,Ft=(0,d.lq)(Pt,Dt,A)),Ft>0?(V[ut]=Math.floor(Pt/Ft)*Ft,V[bt]=Math.ceil(Dt/Ft)*Ft,a(V)):Ft<0&&(V[ut]=Math.ceil(Pt*Ft)/Ft,V[bt]=Math.floor(Dt*Ft)/Ft,a(V)),r},r}function US(){var r=zS(Ka,Ka);return r.copy=function(){return Em(r,US())},Qu.apply(r,arguments),Hd(r)}function u0(r){var a;function A(V){return isNaN(V=+V)?a:V}return A.invert=A,A.domain=A.range=function(V){return arguments.length?(r=Tf.call(V,Rv),A):r.slice()},A.unknown=function(V){return arguments.length?(a=V,A):a},A.copy=function(){return u0(r).unknown(a)},r=arguments.length?Tf.call(r,Rv):[0,1],Hd(A)}function sw(r,a){r=r.slice();var A=0,V=r.length-1,ut=r[A],bt=r[V],Pt;return bt0){for(;Qt<_e;++Qt)for(Pe=1,Ne=bt(Qt);Pe$t)break;ln.push(je)}}else for(;Qt<_e;++Qt)for(Pe=V-1,Ne=bt(Qt);Pe>=1;--Pe)if(je=Ne*Pe,!(je$t)break;ln.push(je)}}else ln=(0,d.Zc)(Qt,_e,Math.min(_e-Qt,ze)).map(bt);return ie?ln.reverse():ln},a.tickFormat=function(Dt,Ft){if(Ft==null&&(Ft=V===10?".0e":","),typeof Ft!="function"&&(Ft=dh(Ft)),Dt===1/0)return Ft;Dt==null&&(Dt=10);var Vt=Math.max(1,V*Dt/a.ticks().length);return function($t){var ie=$t/bt(Math.round(ut($t)));return ie*V0?A[Dt-1]:r[0],Dt=A?[V[A-1],a]:[V[Vt-1],V[Vt]]},Pt.unknown=function(Ft){return arguments.length&&(bt=Ft),Pt},Pt.thresholds=function(){return V.slice()},Pt.copy=function(){return $S().domain([r,a]).range(ut).unknown(bt)},Qu.apply(Hd(Pt),arguments)}function Th(){var r=[.5],a=[0,1],A,V=1;function ut(bt){return bt<=bt?a[(0,d.h1)(r,bt,0,V)]:A}return ut.domain=function(bt){return arguments.length?(r=Ch.call(bt),V=Math.min(r.length,a.length-1),ut):r.slice()},ut.range=function(bt){return arguments.length?(a=Ch.call(bt),V=Math.min(r.length,a.length-1),ut):a.slice()},ut.invertExtent=function(bt){var Pt=a.indexOf(bt);return[r[Pt-1],r[Pt]]},ut.unknown=function(bt){return arguments.length?(A=bt,ut):A},ut.copy=function(){return Th().domain(r).range(a).unknown(A)},Qu.apply(ut,arguments)}var zv=new Date,qS=new Date;function es(r,a,A,V){function ut(bt){return r(bt=arguments.length===0?new Date:new Date(+bt)),bt}return ut.floor=function(bt){return r(bt=new Date(+bt)),bt},ut.ceil=function(bt){return r(bt=new Date(bt-1)),a(bt,1),r(bt),bt},ut.round=function(bt){var Pt=ut(bt),Dt=ut.ceil(bt);return bt-Pt0))return Ft;do Ft.push(Vt=new Date(+bt)),a(bt,Dt),r(bt);while(Vt=Pt)for(;r(Pt),!bt(Pt);)Pt.setTime(Pt-1)},function(Pt,Dt){if(Pt>=Pt)if(Dt<0)for(;++Dt<=0;)for(;a(Pt,-1),!bt(Pt););else for(;--Dt>=0;)for(;a(Pt,1),!bt(Pt););})},A&&(ut.count=function(bt,Pt){return zv.setTime(+bt),qS.setTime(+Pt),r(zv),r(qS),Math.floor(A(zv,qS))},ut.every=function(bt){return bt=Math.floor(bt),!isFinite(bt)||!(bt>0)?null:bt>1?ut.filter(V?function(Pt){return V(Pt)%bt===0}:function(Pt){return ut.count(0,Pt)%bt===0}):ut}),ut}var Uv=es(function(r){r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,a){r.setFullYear(r.getFullYear()+a)},function(r,a){return a.getFullYear()-r.getFullYear()},function(r){return r.getFullYear()});Uv.every=function(r){return!isFinite(r=Math.floor(r))||!(r>0)?null:es(function(a){a.setFullYear(Math.floor(a.getFullYear()/r)*r),a.setMonth(0,1),a.setHours(0,0,0,0)},function(a,A){a.setFullYear(a.getFullYear()+A*r)})};const Af=Uv;var uk=Uv.range,KS=es(function(r){r.setDate(1),r.setHours(0,0,0,0)},function(r,a){r.setMonth(r.getMonth()+a)},function(r,a){return a.getMonth()-r.getMonth()+(a.getFullYear()-r.getFullYear())*12},function(r){return r.getMonth()});const dw=KS;var pw=KS.range,Hv=1e3,kh=6e4,Vv=36e5,ZS=864e5,Pf=6048e5;function Wl(r){return es(function(a){a.setDate(a.getDate()-(a.getDay()+7-r)%7),a.setHours(0,0,0,0)},function(a,A){a.setDate(a.getDate()+A*7)},function(a,A){return(A-a-(A.getTimezoneOffset()-a.getTimezoneOffset())*kh)/Pf})}var h0=Wl(0),f0=Wl(1),Wv=Wl(2),mw=Wl(3),Vd=Wl(4),QS=Wl(5),JS=Wl(6),Yv=h0.range,ck=f0.range,tE=Wv.range,gw=mw.range,yw=Vd.range,Ah=QS.range,hu=JS.range,Gv=es(function(r){r.setHours(0,0,0,0)},function(r,a){r.setDate(r.getDate()+a)},function(r,a){return(a-r-(a.getTimezoneOffset()-r.getTimezoneOffset())*kh)/ZS},function(r){return r.getDate()-1});const Xv=Gv;var eE=Gv.range,vw=es(function(r){r.setTime(r-r.getMilliseconds()-r.getSeconds()*Hv-r.getMinutes()*kh)},function(r,a){r.setTime(+r+a*Vv)},function(r,a){return(a-r)/Vv},function(r){return r.getHours()});const nE=vw;var hk=vw.range,rE=es(function(r){r.setTime(r-r.getMilliseconds()-r.getSeconds()*Hv)},function(r,a){r.setTime(+r+a*kh)},function(r,a){return(a-r)/kh},function(r){return r.getMinutes()});const fk=rE;var Sa=rE.range,Wd=es(function(r){r.setTime(r-r.getMilliseconds())},function(r,a){r.setTime(+r+a*Hv)},function(r,a){return(a-r)/Hv},function(r){return r.getUTCSeconds()});const $v=Wd;var xw=Wd.range,mi=es(function(){},function(r,a){r.setTime(+r+a)},function(r,a){return a-r});mi.every=function(r){return r=Math.floor(r),!isFinite(r)||!(r>0)?null:r>1?es(function(a){a.setTime(Math.floor(a/r)*r)},function(a,A){a.setTime(+a+A*r)},function(a,A){return(A-a)/r}):mi};const qv=mi;var ns=mi.range;function Yd(r){return es(function(a){a.setUTCDate(a.getUTCDate()-(a.getUTCDay()+7-r)%7),a.setUTCHours(0,0,0,0)},function(a,A){a.setUTCDate(a.getUTCDate()+A*7)},function(a,A){return(A-a)/Pf})}var d0=Yd(0),p0=Yd(1),iE=Yd(2),oE=Yd(3),Of=Yd(4),aE=Yd(5),sE=Yd(6),bw=d0.range,ww=p0.range,Kv=iE.range,lE=oE.range,ul=Of.range,Ju=aE.range,fu=sE.range,m0=es(function(r){r.setUTCHours(0,0,0,0)},function(r,a){r.setUTCDate(r.getUTCDate()+a)},function(r,a){return(a-r)/ZS},function(r){return r.getUTCDate()-1});const Zv=m0;var dk=m0.range,du=es(function(r){r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,a){r.setUTCFullYear(r.getUTCFullYear()+a)},function(r,a){return a.getUTCFullYear()-r.getUTCFullYear()},function(r){return r.getUTCFullYear()});du.every=function(r){return!isFinite(r=Math.floor(r))||!(r>0)?null:es(function(a){a.setUTCFullYear(Math.floor(a.getUTCFullYear()/r)*r),a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},function(a,A){a.setUTCFullYear(a.getUTCFullYear()+A*r)})};const Gd=du;var pk=du.range;function _w(r){if(0<=r.y&&r.y<100){var a=new Date(-1,r.m,r.d,r.H,r.M,r.S,r.L);return a.setFullYear(r.y),a}return new Date(r.y,r.m,r.d,r.H,r.M,r.S,r.L)}function Xd(r){if(0<=r.y&&r.y<100){var a=new Date(Date.UTC(-1,r.m,r.d,r.H,r.M,r.S,r.L));return a.setUTCFullYear(r.y),a}return new Date(Date.UTC(r.y,r.m,r.d,r.H,r.M,r.S,r.L))}function tc(r,a,A){return{y:r,m:a,d:A,H:0,M:0,S:0,L:0}}function uE(r){var a=r.dateTime,A=r.date,V=r.time,ut=r.periods,bt=r.days,Pt=r.shortDays,Dt=r.months,Ft=r.shortMonths,Vt=hs(ut),$t=Jv(ut),ie=hs(bt),Qt=Jv(bt),_e=hs(Pt),Ne=Jv(Pt),Pe=hs(Dt),je=Jv(Dt),ze=hs(Ft),ln=Jv(Ft),Je={a:Zr,A:Vr,b:oi,B:Di,c:null,d:gE,e:gE,f:xE,g:Ok,G:Rc,H:yE,I:Mk,j:Tk,L:vE,m:kk,M:Ak,p:Bi,q:Ko,Q:Aw,s:Pw,S:Mw,u:Tw,U:bE,V:_E,w:SE,W:EE,x:null,X:null,y:Pk,Y:CE,Z:Nk,"%":n1},sn={a:No,A:mo,b:ma,B:Gl,c:null,d:Dk,e:Dk,f:jk,g:PE,G:NE,H:Rk,I:Lk,j:Ik,L:ME,m:TE,M:Bk,p:rc,q:Ws,Q:Aw,s:Pw,S:Cm,u:Fk,U:zk,V:kE,w:Uk,W:AE,x:null,X:null,y:nO,Y:OE,Z:xo,"%":n1},Pn={a:or,A:tr,b:un,B:Wn,c:xr,d:pE,e:pE,f:_k,g:fE,G:t1,H:Cw,I:Cw,j:fs,L:e1,m:bk,M:wk,p:Qn,q:xk,Q:Ek,s:Ck,S:mE,u:gk,U:hE,V:yk,w:Ew,W:vk,x:Hn,X:br,y:fE,Y:t1,Z:dE,"%":Sk};Je.x=Un(A,Je),Je.X=Un(V,Je),Je.c=Un(a,Je),sn.x=Un(A,sn),sn.X=Un(V,sn),sn.c=Un(a,sn);function Un(Gr,zi){return function(qi){var Dr=[],ps=-1,Zi=0,Ps=Gr.length,Ys,Lh,Os;for(qi instanceof Date||(qi=new Date(+qi));++ps53)return null;"w"in Dr||(Dr.w=1),"Z"in Dr?(Zi=Xd(tc(Dr.y,0,1)),Ps=Zi.getUTCDay(),Zi=Ps>4||Ps===0?p0.ceil(Zi):p0(Zi),Zi=Zv.offset(Zi,(Dr.V-1)*7),Dr.y=Zi.getUTCFullYear(),Dr.m=Zi.getUTCMonth(),Dr.d=Zi.getUTCDate()+(Dr.w+6)%7):(Zi=_w(tc(Dr.y,0,1)),Ps=Zi.getDay(),Zi=Ps>4||Ps===0?f0.ceil(Zi):f0(Zi),Zi=Xv.offset(Zi,(Dr.V-1)*7),Dr.y=Zi.getFullYear(),Dr.m=Zi.getMonth(),Dr.d=Zi.getDate()+(Dr.w+6)%7)}else("W"in Dr||"U"in Dr)&&("w"in Dr||(Dr.w="u"in Dr?Dr.u%7:"W"in Dr?1:0),Ps="Z"in Dr?Xd(tc(Dr.y,0,1)).getUTCDay():_w(tc(Dr.y,0,1)).getDay(),Dr.m=0,Dr.d="W"in Dr?(Dr.w+6)%7+Dr.W*7-(Ps+5)%7:Dr.w+Dr.U*7-(Ps+6)%7);return"Z"in Dr?(Dr.H+=Dr.Z/100|0,Dr.M+=Dr.Z%100,Xd(Dr)):_w(Dr)}}function vr(Gr,zi,qi,Dr){for(var ps=0,Zi=zi.length,Ps=qi.length,Ys,Lh;ps=Ps)return-1;if(Ys=zi.charCodeAt(ps++),Ys===37){if(Ys=zi.charAt(ps++),Lh=Pn[Ys in cE?zi.charAt(ps++):Ys],!Lh||(Dr=Lh(Gr,qi,Dr))<0)return-1}else if(Ys!=qi.charCodeAt(Dr++))return-1}return Dr}function Qn(Gr,zi,qi){var Dr=Vt.exec(zi.slice(qi));return Dr?(Gr.p=$t[Dr[0].toLowerCase()],qi+Dr[0].length):-1}function or(Gr,zi,qi){var Dr=_e.exec(zi.slice(qi));return Dr?(Gr.w=Ne[Dr[0].toLowerCase()],qi+Dr[0].length):-1}function tr(Gr,zi,qi){var Dr=ie.exec(zi.slice(qi));return Dr?(Gr.w=Qt[Dr[0].toLowerCase()],qi+Dr[0].length):-1}function un(Gr,zi,qi){var Dr=ze.exec(zi.slice(qi));return Dr?(Gr.m=ln[Dr[0].toLowerCase()],qi+Dr[0].length):-1}function Wn(Gr,zi,qi){var Dr=Pe.exec(zi.slice(qi));return Dr?(Gr.m=je[Dr[0].toLowerCase()],qi+Dr[0].length):-1}function xr(Gr,zi,qi){return vr(Gr,a,zi,qi)}function Hn(Gr,zi,qi){return vr(Gr,A,zi,qi)}function br(Gr,zi,qi){return vr(Gr,V,zi,qi)}function Zr(Gr){return Pt[Gr.getDay()]}function Vr(Gr){return bt[Gr.getDay()]}function oi(Gr){return Ft[Gr.getMonth()]}function Di(Gr){return Dt[Gr.getMonth()]}function Bi(Gr){return ut[+(Gr.getHours()>=12)]}function Ko(Gr){return 1+~~(Gr.getMonth()/3)}function No(Gr){return Pt[Gr.getUTCDay()]}function mo(Gr){return bt[Gr.getUTCDay()]}function ma(Gr){return Ft[Gr.getUTCMonth()]}function Gl(Gr){return Dt[Gr.getUTCMonth()]}function rc(Gr){return ut[+(Gr.getUTCHours()>=12)]}function Ws(Gr){return 1+~~(Gr.getUTCMonth()/3)}return{format:function(Gr){var zi=Un(Gr+="",Je);return zi.toString=function(){return Gr},zi},parse:function(Gr){var zi=jn(Gr+="",!1);return zi.toString=function(){return Gr},zi},utcFormat:function(Gr){var zi=Un(Gr+="",sn);return zi.toString=function(){return Gr},zi},utcParse:function(Gr){var zi=jn(Gr+="",!0);return zi.toString=function(){return Gr},zi}}}var cE={"-":"",_:" ",0:"0"},rs=/^\s*\d+/,Qv=/^%/,mk=/[\\^$*+?|[\]().{}]/g;function lo(r,a,A){var V=r<0?"-":"",ut=(V?-r:r)+"",bt=ut.length;return V+(bt68?1900:2e3),A+V[0].length):-1}function dE(r,a,A){var V=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(a.slice(A,A+6));return V?(r.Z=V[1]?0:-(V[2]+(V[3]||"00")),A+V[0].length):-1}function xk(r,a,A){var V=rs.exec(a.slice(A,A+1));return V?(r.q=V[0]*3-3,A+V[0].length):-1}function bk(r,a,A){var V=rs.exec(a.slice(A,A+2));return V?(r.m=V[0]-1,A+V[0].length):-1}function pE(r,a,A){var V=rs.exec(a.slice(A,A+2));return V?(r.d=+V[0],A+V[0].length):-1}function fs(r,a,A){var V=rs.exec(a.slice(A,A+3));return V?(r.m=0,r.d=+V[0],A+V[0].length):-1}function Cw(r,a,A){var V=rs.exec(a.slice(A,A+2));return V?(r.H=+V[0],A+V[0].length):-1}function wk(r,a,A){var V=rs.exec(a.slice(A,A+2));return V?(r.M=+V[0],A+V[0].length):-1}function mE(r,a,A){var V=rs.exec(a.slice(A,A+2));return V?(r.S=+V[0],A+V[0].length):-1}function e1(r,a,A){var V=rs.exec(a.slice(A,A+3));return V?(r.L=+V[0],A+V[0].length):-1}function _k(r,a,A){var V=rs.exec(a.slice(A,A+6));return V?(r.L=Math.floor(V[0]/1e3),A+V[0].length):-1}function Sk(r,a,A){var V=Qv.exec(a.slice(A,A+1));return V?A+V[0].length:-1}function Ek(r,a,A){var V=rs.exec(a.slice(A));return V?(r.Q=+V[0],A+V[0].length):-1}function Ck(r,a,A){var V=rs.exec(a.slice(A));return V?(r.s=+V[0],A+V[0].length):-1}function gE(r,a){return lo(r.getDate(),a,2)}function yE(r,a){return lo(r.getHours(),a,2)}function Mk(r,a){return lo(r.getHours()%12||12,a,2)}function Tk(r,a){return lo(1+Xv.count(Af(r),r),a,3)}function vE(r,a){return lo(r.getMilliseconds(),a,3)}function xE(r,a){return vE(r,a)+"000"}function kk(r,a){return lo(r.getMonth()+1,a,2)}function Ak(r,a){return lo(r.getMinutes(),a,2)}function Mw(r,a){return lo(r.getSeconds(),a,2)}function Tw(r){var a=r.getDay();return a===0?7:a}function bE(r,a){return lo(h0.count(Af(r)-1,r),a,2)}function wE(r){var a=r.getDay();return a>=4||a===0?Vd(r):Vd.ceil(r)}function _E(r,a){return r=wE(r),lo(Vd.count(Af(r),r)+(Af(r).getDay()===4),a,2)}function SE(r){return r.getDay()}function EE(r,a){return lo(f0.count(Af(r)-1,r),a,2)}function Pk(r,a){return lo(r.getFullYear()%100,a,2)}function Ok(r,a){return r=wE(r),lo(r.getFullYear()%100,a,2)}function CE(r,a){return lo(r.getFullYear()%1e4,a,4)}function Rc(r,a){var A=r.getDay();return r=A>=4||A===0?Vd(r):Vd.ceil(r),lo(r.getFullYear()%1e4,a,4)}function Nk(r){var a=r.getTimezoneOffset();return(a>0?"-":(a*=-1,"+"))+lo(a/60|0,"0",2)+lo(a%60,"0",2)}function Dk(r,a){return lo(r.getUTCDate(),a,2)}function Rk(r,a){return lo(r.getUTCHours(),a,2)}function Lk(r,a){return lo(r.getUTCHours()%12||12,a,2)}function Ik(r,a){return lo(1+Zv.count(Gd(r),r),a,3)}function ME(r,a){return lo(r.getUTCMilliseconds(),a,3)}function jk(r,a){return ME(r,a)+"000"}function TE(r,a){return lo(r.getUTCMonth()+1,a,2)}function Bk(r,a){return lo(r.getUTCMinutes(),a,2)}function Cm(r,a){return lo(r.getUTCSeconds(),a,2)}function Fk(r){var a=r.getUTCDay();return a===0?7:a}function zk(r,a){return lo(d0.count(Gd(r)-1,r),a,2)}function kw(r){var a=r.getUTCDay();return a>=4||a===0?Of(r):Of.ceil(r)}function kE(r,a){return r=kw(r),lo(Of.count(Gd(r),r)+(Gd(r).getUTCDay()===4),a,2)}function Uk(r){return r.getUTCDay()}function AE(r,a){return lo(p0.count(Gd(r)-1,r),a,2)}function nO(r,a){return lo(r.getUTCFullYear()%100,a,2)}function PE(r,a){return r=kw(r),lo(r.getUTCFullYear()%100,a,2)}function OE(r,a){return lo(r.getUTCFullYear()%1e4,a,4)}function NE(r,a){var A=r.getUTCDay();return r=A>=4||A===0?Of(r):Of.ceil(r),lo(r.getUTCFullYear()%1e4,a,4)}function xo(){return"+0000"}function n1(){return"%"}function Aw(r){return+r}function Pw(r){return Math.floor(+r/1e3)}var ec,Ow,Nw,g0,r1;$d({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function $d(r){return ec=uE(r),Ow=ec.format,Nw=ec.parse,g0=ec.utcFormat,r1=ec.utcParse,ec}var y0=1e3,v0=y0*60,x0=v0*60,b0=x0*24,Hk=b0*7,Dw=b0*30,Lc=b0*365;function i1(r){return new Date(r)}function DE(r){return r instanceof Date?+r:+new Date(+r)}function o1(r,a,A,V,ut,bt,Pt,Dt,Ft){var Vt=zS(Ka,Ka),$t=Vt.invert,ie=Vt.domain,Qt=Ft(".%L"),_e=Ft(":%S"),Ne=Ft("%I:%M"),Pe=Ft("%I %p"),je=Ft("%a %d"),ze=Ft("%b %d"),ln=Ft("%B"),Je=Ft("%Y"),sn=[[Pt,1,y0],[Pt,5,5*y0],[Pt,15,15*y0],[Pt,30,30*y0],[bt,1,v0],[bt,5,5*v0],[bt,15,15*v0],[bt,30,30*v0],[ut,1,x0],[ut,3,3*x0],[ut,6,6*x0],[ut,12,12*x0],[V,1,b0],[V,2,2*b0],[A,1,Hk],[a,1,Dw],[a,3,3*Dw],[r,1,Lc]];function Pn(jn){return(Pt(jn)1)&&(r-=Math.floor(r));var a=Math.abs(r-.5);return d1.h=360*r-100,d1.s=1.5-1.5*a,d1.l=.8-.9*a,d1+""}var p1=ao(),hC=Math.PI/3,rA=Math.PI*2/3;function iA(r){var a;return r=(.5-r)*Math.PI,p1.r=255*(a=Math.sin(r))*a,p1.g=255*(a=Math.sin(r+hC))*a,p1.b=255*(a=Math.sin(r+rA))*a,p1+""}function oA(r){return r=Math.max(0,Math.min(1,r)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+r*(1172.33-r*(10793.56-r*(33300.12-r*(38394.49-r*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+r*(557.33+r*(1225.33-r*(3574.96-r*(1073.77+r*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+r*(3211.1-r*(15327.97-r*(27814-r*(22569.18-r*6838.66)))))))+")"}function m1(r){var a=r.length;return function(A){return r[Math.max(0,Math.min(a-1,Math.floor(A*a)))]}}const aA=m1(vi("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var fC=m1(vi("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),sA=m1(vi("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),g1=m1(vi("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function lA(r){return rn(dr(r).call(document.documentElement))}var dC=0;function pC(){return new Qw}function Qw(){this._="@"+(++dC).toString(36)}Qw.prototype=pC.prototype={constructor:Qw,get:function(r){for(var a=this._;!(a in r);)if(!(r=r.parentNode))return;return r[a]},set:function(r,a){return r[this._]=a},remove:function(r){return this._ in r&&delete r[this._]},toString:function(){return this._}};function mC(r){return typeof r=="string"?new ke([document.querySelectorAll(r)],[document.documentElement]):new ke([r==null?[]:r],de)}function Jw(r,a){a==null&&(a=Zn().touches);for(var A=0,V=a?a.length:0,ut=new Array(V);A1?0:r<-1?Df:Math.acos(r)}function Am(r){return r>=1?v1:r<=-1?-v1:Math.asin(r)}function cA(r){return r.innerRadius}function hA(r){return r.outerRadius}function yC(r){return r.startAngle}function fA(r){return r.endAngle}function dA(r){return r&&r.padAngle}function pA(r,a,A,V,ut,bt,Pt,Dt){var Ft=A-r,Vt=V-a,$t=Pt-ut,ie=Dt-bt,Qt=ie*Ft-$t*Vt;if(!(Qt*Qtxr*xr+Hn*Hn&&(vr=or,Qn=tr),{cx:vr,cy:Qn,x01:-$t,y01:-ie,x11:vr*(ut/Pn-1),y11:Qn*(ut/Pn-1)}}function vC(){var r=cA,a=hA,A=$i(0),V=null,ut=yC,bt=fA,Pt=dA,Dt=null;function Ft(){var Vt,$t,ie=+r.apply(this,arguments),Qt=+a.apply(this,arguments),_e=ut.apply(this,arguments)-v1,Ne=bt.apply(this,arguments)-v1,Pe=t2(Ne-_e),je=Ne>_e;if(Dt||(Dt=Vt=Lu()),Qtks))Dt.moveTo(0,0);else if(Pe>Nh-ks)Dt.moveTo(Qt*Jd(_e),Qt*nc(_e)),Dt.arc(0,0,Qt,_e,Ne,!je),ie>ks&&(Dt.moveTo(ie*Jd(Ne),ie*nc(Ne)),Dt.arc(0,0,ie,Ne,_e,je));else{var ze=_e,ln=Ne,Je=_e,sn=Ne,Pn=Pe,Un=Pe,jn=Pt.apply(this,arguments)/2,vr=jn>ks&&(V?+V.apply(this,arguments):Fc(ie*ie+Qt*Qt)),Qn=y1(t2(Qt-ie)/2,+A.apply(this,arguments)),or=Qn,tr=Qn,un,Wn;if(vr>ks){var xr=Am(vr/ie*nc(jn)),Hn=Am(vr/Qt*nc(jn));(Pn-=xr*2)>ks?(xr*=je?1:-1,Je+=xr,sn-=xr):(Pn=0,Je=sn=(_e+Ne)/2),(Un-=Hn*2)>ks?(Hn*=je?1:-1,ze+=Hn,ln-=Hn):(Un=0,ze=ln=(_e+Ne)/2)}var br=Qt*Jd(ze),Zr=Qt*nc(ze),Vr=ie*Jd(sn),oi=ie*nc(sn);if(Qn>ks){var Di=Qt*Jd(ln),Bi=Qt*nc(ln),Ko=ie*Jd(Je),No=ie*nc(Je),mo;if(Peks?tr>ks?(un=M0(Ko,No,br,Zr,Qt,tr,je),Wn=M0(Di,Bi,Vr,oi,Qt,tr,je),Dt.moveTo(un.cx+un.x01,un.cy+un.y01),trks)||!(Pn>ks)?Dt.lineTo(Vr,oi):or>ks?(un=M0(Vr,oi,Di,Bi,ie,-or,je),Wn=M0(br,Zr,Ko,No,ie,-or,je),Dt.lineTo(un.cx+un.x01,un.cy+un.y01),or=Qt;--_e)Dt.point(ln[_e],Je[_e]);Dt.lineEnd(),Dt.areaEnd()}je&&(ln[ie]=+r(Pe,ie,$t),Je[ie]=+A(Pe,ie,$t),Dt.point(a?+a(Pe,ie,$t):ln[ie],V?+V(Pe,ie,$t):Je[ie]))}if(ze)return Dt=null,ze+""||null}function Vt(){return r2().defined(ut).curve(Pt).context(bt)}return Ft.x=function($t){return arguments.length?(r=typeof $t=="function"?$t:$i(+$t),a=null,Ft):r},Ft.x0=function($t){return arguments.length?(r=typeof $t=="function"?$t:$i(+$t),Ft):r},Ft.x1=function($t){return arguments.length?(a=$t==null?null:typeof $t=="function"?$t:$i(+$t),Ft):a},Ft.y=function($t){return arguments.length?(A=typeof $t=="function"?$t:$i(+$t),V=null,Ft):A},Ft.y0=function($t){return arguments.length?(A=typeof $t=="function"?$t:$i(+$t),Ft):A},Ft.y1=function($t){return arguments.length?(V=$t==null?null:typeof $t=="function"?$t:$i(+$t),Ft):V},Ft.lineX0=Ft.lineY0=function(){return Vt().x(r).y(A)},Ft.lineY1=function(){return Vt().x(r).y(V)},Ft.lineX1=function(){return Vt().x(a).y(A)},Ft.defined=function($t){return arguments.length?(ut=typeof $t=="function"?$t:$i(!!$t),Ft):ut},Ft.curve=function($t){return arguments.length?(Pt=$t,bt!=null&&(Dt=Pt(bt)),Ft):Pt},Ft.context=function($t){return arguments.length?($t==null?bt=Dt=null:Dt=Pt(bt=$t),Ft):bt},Ft}function mA(r,a){return ar?1:a>=r?0:NaN}function iO(r){return r}function gA(){var r=iO,a=mA,A=null,V=$i(0),ut=$i(Nh),bt=$i(0);function Pt(Dt){var Ft,Vt=Dt.length,$t,ie,Qt=0,_e=new Array(Vt),Ne=new Array(Vt),Pe=+V.apply(this,arguments),je=Math.min(Nh,Math.max(-Nh,ut.apply(this,arguments)-Pe)),ze,ln=Math.min(Math.abs(je)/Vt,bt.apply(this,arguments)),Je=ln*(je<0?-1:1),sn;for(Ft=0;Ft0&&(Qt+=sn);for(a!=null?_e.sort(function(Pn,Un){return a(Ne[Pn],Ne[Un])}):A!=null&&_e.sort(function(Pn,Un){return A(Dt[Pn],Dt[Un])}),Ft=0,ie=Qt?(je-Vt*Je)/Qt:0;Ft0?sn*ie:0)+Je,Ne[$t]={data:Dt[$t],index:Ft,value:sn,startAngle:Pe,endAngle:ze,padAngle:ln};return Ne}return Pt.value=function(Dt){return arguments.length?(r=typeof Dt=="function"?Dt:$i(+Dt),Pt):r},Pt.sortValues=function(Dt){return arguments.length?(a=Dt,A=null,Pt):a},Pt.sort=function(Dt){return arguments.length?(A=Dt,a=null,Pt):A},Pt.startAngle=function(Dt){return arguments.length?(V=typeof Dt=="function"?Dt:$i(+Dt),Pt):V},Pt.endAngle=function(Dt){return arguments.length?(ut=typeof Dt=="function"?Dt:$i(+Dt),Pt):ut},Pt.padAngle=function(Dt){return arguments.length?(bt=typeof Dt=="function"?Dt:$i(+Dt),Pt):bt},Pt}var yA=w1(x1);function i2(r){this._curve=r}i2.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(r,a){this._curve.point(a*Math.sin(r),a*-Math.cos(r))}};function w1(r){function a(A){return new i2(r(A))}return a._curve=r,a}function T0(r){var a=r.curve;return r.angle=r.x,delete r.x,r.radius=r.y,delete r.y,r.curve=function(A){return arguments.length?a(w1(A)):a()._curve},r}function bC(){return T0(r2().curve(yA))}function o2(){var r=xC().curve(yA),a=r.curve,A=r.lineX0,V=r.lineX1,ut=r.lineY0,bt=r.lineY1;return r.angle=r.x,delete r.x,r.startAngle=r.x0,delete r.x0,r.endAngle=r.x1,delete r.x1,r.radius=r.y,delete r.y,r.innerRadius=r.y0,delete r.y0,r.outerRadius=r.y1,delete r.y1,r.lineStartAngle=function(){return T0(A())},delete r.lineX0,r.lineEndAngle=function(){return T0(V())},delete r.lineX1,r.lineInnerRadius=function(){return T0(ut())},delete r.lineY0,r.lineOuterRadius=function(){return T0(bt())},delete r.lineY1,r.curve=function(Pt){return arguments.length?a(w1(Pt)):a()._curve},r}function Pm(r,a){return[(a=+a)*Math.cos(r-=Math.PI/2),a*Math.sin(r)]}var a2=Array.prototype.slice;function vA(r){return r.source}function xA(r){return r.target}function s2(r){var a=vA,A=xA,V=b1,ut=n2,bt=null;function Pt(){var Dt,Ft=a2.call(arguments),Vt=a.apply(this,Ft),$t=A.apply(this,Ft);if(bt||(bt=Dt=Lu()),r(bt,+V.apply(this,(Ft[0]=Vt,Ft)),+ut.apply(this,Ft),+V.apply(this,(Ft[0]=$t,Ft)),+ut.apply(this,Ft)),Dt)return bt=null,Dt+""||null}return Pt.source=function(Dt){return arguments.length?(a=Dt,Pt):a},Pt.target=function(Dt){return arguments.length?(A=Dt,Pt):A},Pt.x=function(Dt){return arguments.length?(V=typeof Dt=="function"?Dt:$i(+Dt),Pt):V},Pt.y=function(Dt){return arguments.length?(ut=typeof Dt=="function"?Dt:$i(+Dt),Pt):ut},Pt.context=function(Dt){return arguments.length?(bt=Dt==null?null:Dt,Pt):bt},Pt}function bA(r,a,A,V,ut){r.moveTo(a,A),r.bezierCurveTo(a=(a+V)/2,A,a,ut,V,ut)}function wA(r,a,A,V,ut){r.moveTo(a,A),r.bezierCurveTo(a,A=(A+ut)/2,V,A,V,ut)}function _A(r,a,A,V,ut){var bt=Pm(a,A),Pt=Pm(a,A=(A+ut)/2),Dt=Pm(V,A),Ft=Pm(V,ut);r.moveTo(bt[0],bt[1]),r.bezierCurveTo(Pt[0],Pt[1],Dt[0],Dt[1],Ft[0],Ft[1])}function SA(){return s2(bA)}function wC(){return s2(wA)}function EA(){var r=s2(_A);return r.angle=r.x,delete r.x,r.radius=r.y,delete r.y,r}const Om={draw:function(r,a){var A=Math.sqrt(a/Df);r.moveTo(A,0),r.arc(0,0,A,0,Nh)}},_1={draw:function(r,a){var A=Math.sqrt(a/5)/2;r.moveTo(-3*A,-A),r.lineTo(-A,-A),r.lineTo(-A,-3*A),r.lineTo(A,-3*A),r.lineTo(A,-A),r.lineTo(3*A,-A),r.lineTo(3*A,A),r.lineTo(A,A),r.lineTo(A,3*A),r.lineTo(-A,3*A),r.lineTo(-A,A),r.lineTo(-3*A,A),r.closePath()}};var S1=Math.sqrt(1/3),l2=S1*2;const E1={draw:function(r,a){var A=Math.sqrt(a/l2),V=A*S1;r.moveTo(0,-A),r.lineTo(V,0),r.lineTo(0,A),r.lineTo(-V,0),r.closePath()}};var CA=.8908130915292852,_C=Math.sin(Df/10)/Math.sin(7*Df/10),MA=Math.sin(Nh/10)*_C,TA=-Math.cos(Nh/10)*_C;const SC={draw:function(r,a){var A=Math.sqrt(a*CA),V=MA*A,ut=TA*A;r.moveTo(0,-A),r.lineTo(V,ut);for(var bt=1;bt<5;++bt){var Pt=Nh*bt/5,Dt=Math.cos(Pt),Ft=Math.sin(Pt);r.lineTo(Ft*A,-Dt*A),r.lineTo(Dt*V-Ft*ut,Ft*V+Dt*ut)}r.closePath()}},gu={draw:function(r,a){var A=Math.sqrt(a),V=-A/2;r.rect(V,V,A,A)}};var u2=Math.sqrt(3);const EC={draw:function(r,a){var A=-Math.sqrt(a/(u2*3));r.moveTo(0,A*2),r.lineTo(-u2*A,-A),r.lineTo(u2*A,-A),r.closePath()}};var hl=-.5,As=Math.sqrt(3)/2,c2=1/Math.sqrt(12),kA=(c2/2+1)*3;const CC={draw:function(r,a){var A=Math.sqrt(a/kA),V=A/2,ut=A*c2,bt=V,Pt=A*c2+A,Dt=-bt,Ft=Pt;r.moveTo(V,ut),r.lineTo(bt,Pt),r.lineTo(Dt,Ft),r.lineTo(hl*V-As*ut,As*V+hl*ut),r.lineTo(hl*bt-As*Pt,As*bt+hl*Pt),r.lineTo(hl*Dt-As*Ft,As*Dt+hl*Ft),r.lineTo(hl*V+As*ut,hl*ut-As*V),r.lineTo(hl*bt+As*Pt,hl*Pt-As*bt),r.lineTo(hl*Dt+As*Ft,hl*Ft-As*Dt),r.closePath()}};var MC=[Om,_1,E1,gu,SC,EC,CC];function AA(){var r=$i(Om),a=$i(64),A=null;function V(){var ut;if(A||(A=ut=Lu()),r.apply(this,arguments).draw(A,+a.apply(this,arguments)),ut)return A=null,ut+""||null}return V.type=function(ut){return arguments.length?(r=typeof ut=="function"?ut:$i(ut),V):r},V.size=function(ut){return arguments.length?(a=typeof ut=="function"?ut:$i(+ut),V):a},V.context=function(ut){return arguments.length?(A=ut==null?null:ut,V):A},V}function Rf(){}function k0(r,a,A){r._context.bezierCurveTo((2*r._x0+r._x1)/3,(2*r._y0+r._y1)/3,(r._x0+2*r._x1)/3,(r._y0+2*r._y1)/3,(r._x0+4*r._x1+a)/6,(r._y0+4*r._y1+A)/6)}function C1(r){this._context=r}C1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:k0(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(r,a){switch(r=+r,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:k0(this,r,a);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=a}};function TC(r){return new C1(r)}function kC(r){this._context=r}kC.prototype={areaStart:Rf,areaEnd:Rf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(r,a){switch(r=+r,a=+a,this._point){case 0:this._point=1,this._x2=r,this._y2=a;break;case 1:this._point=2,this._x3=r,this._y3=a;break;case 2:this._point=3,this._x4=r,this._y4=a,this._context.moveTo((this._x0+4*this._x1+r)/6,(this._y0+4*this._y1+a)/6);break;default:k0(this,r,a);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=a}};function PA(r){return new kC(r)}function AC(r){this._context=r}AC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(r,a){switch(r=+r,a=+a,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var A=(this._x0+4*this._x1+r)/6,V=(this._y0+4*this._y1+a)/6;this._line?this._context.lineTo(A,V):this._context.moveTo(A,V);break;case 3:this._point=4;default:k0(this,r,a);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=a}};function OA(r){return new AC(r)}function PC(r,a){this._basis=new C1(r),this._beta=a}PC.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var r=this._x,a=this._y,A=r.length-1;if(A>0)for(var V=r[0],ut=a[0],bt=r[A]-V,Pt=a[A]-ut,Dt=-1,Ft;++Dt<=A;)Ft=Dt/A,this._basis.point(this._beta*r[Dt]+(1-this._beta)*(V+Ft*bt),this._beta*a[Dt]+(1-this._beta)*(ut+Ft*Pt));this._x=this._y=null,this._basis.lineEnd()},point:function(r,a){this._x.push(+r),this._y.push(+a)}};const NA=function r(a){function A(V){return a===1?new C1(V):new PC(V,a)}return A.beta=function(V){return r(+V)},A}(.85);function A0(r,a,A){r._context.bezierCurveTo(r._x1+r._k*(r._x2-r._x0),r._y1+r._k*(r._y2-r._y0),r._x2+r._k*(r._x1-a),r._y2+r._k*(r._y1-A),r._x2,r._y2)}function M1(r,a){this._context=r,this._k=(1-a)/6}M1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:A0(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(r,a){switch(r=+r,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 1:this._point=2,this._x1=r,this._y1=a;break;case 2:this._point=3;default:A0(this,r,a);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const DA=function r(a){function A(V){return new M1(V,a)}return A.tension=function(V){return r(+V)},A}(0);function T1(r,a){this._context=r,this._k=(1-a)/6}T1.prototype={areaStart:Rf,areaEnd:Rf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(r,a){switch(r=+r,a=+a,this._point){case 0:this._point=1,this._x3=r,this._y3=a;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=a);break;case 2:this._point=3,this._x5=r,this._y5=a;break;default:A0(this,r,a);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const oO=function r(a){function A(V){return new T1(V,a)}return A.tension=function(V){return r(+V)},A}(0);function h2(r,a){this._context=r,this._k=(1-a)/6}h2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(r,a){switch(r=+r,a=+a,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:A0(this,r,a);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const RA=function r(a){function A(V){return new h2(V,a)}return A.tension=function(V){return r(+V)},A}(0);function f2(r,a,A){var V=r._x1,ut=r._y1,bt=r._x2,Pt=r._y2;if(r._l01_a>ks){var Dt=2*r._l01_2a+3*r._l01_a*r._l12_a+r._l12_2a,Ft=3*r._l01_a*(r._l01_a+r._l12_a);V=(V*Dt-r._x0*r._l12_2a+r._x2*r._l01_2a)/Ft,ut=(ut*Dt-r._y0*r._l12_2a+r._y2*r._l01_2a)/Ft}if(r._l23_a>ks){var Vt=2*r._l23_2a+3*r._l23_a*r._l12_a+r._l12_2a,$t=3*r._l23_a*(r._l23_a+r._l12_a);bt=(bt*Vt+r._x1*r._l23_2a-a*r._l12_2a)/$t,Pt=(Pt*Vt+r._y1*r._l23_2a-A*r._l12_2a)/$t}r._context.bezierCurveTo(V,ut,bt,Pt,r._x2,r._y2)}function d2(r,a){this._context=r,this._alpha=a}d2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(r,a){if(r=+r,a=+a,this._point){var A=this._x2-r,V=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(A*A+V*V,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 1:this._point=2;break;case 2:this._point=3;default:f2(this,r,a);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const OC=function r(a){function A(V){return a?new d2(V,a):new M1(V,0)}return A.alpha=function(V){return r(+V)},A}(.5);function NC(r,a){this._context=r,this._alpha=a}NC.prototype={areaStart:Rf,areaEnd:Rf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(r,a){if(r=+r,a=+a,this._point){var A=this._x2-r,V=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(A*A+V*V,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=r,this._y3=a;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=a);break;case 2:this._point=3,this._x5=r,this._y5=a;break;default:f2(this,r,a);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const LA=function r(a){function A(V){return a?new NC(V,a):new T1(V,0)}return A.alpha=function(V){return r(+V)},A}(.5);function DC(r,a){this._context=r,this._alpha=a}DC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(r,a){if(r=+r,a=+a,this._point){var A=this._x2-r,V=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(A*A+V*V,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:f2(this,r,a);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const IA=function r(a){function A(V){return a?new DC(V,a):new h2(V,0)}return A.alpha=function(V){return r(+V)},A}(.5);function P0(r){this._context=r}P0.prototype={areaStart:Rf,areaEnd:Rf,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(r,a){r=+r,a=+a,this._point?this._context.lineTo(r,a):(this._point=1,this._context.moveTo(r,a))}};function jA(r){return new P0(r)}function RC(r){return r<0?-1:1}function LC(r,a,A){var V=r._x1-r._x0,ut=a-r._x1,bt=(r._y1-r._y0)/(V||ut<0&&-0),Pt=(A-r._y1)/(ut||V<0&&-0),Dt=(bt*ut+Pt*V)/(V+ut);return(RC(bt)+RC(Pt))*Math.min(Math.abs(bt),Math.abs(Pt),.5*Math.abs(Dt))||0}function p2(r,a){var A=r._x1-r._x0;return A?(3*(r._y1-r._y0)/A-a)/2:a}function m2(r,a,A){var V=r._x0,ut=r._y0,bt=r._x1,Pt=r._y1,Dt=(bt-V)/3;r._context.bezierCurveTo(V+Dt,ut+Dt*a,bt-Dt,Pt-Dt*A,bt,Pt)}function O0(r){this._context=r}O0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:m2(this,this._t0,p2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(r,a){var A=NaN;if(r=+r,a=+a,!(r===this._x1&&a===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 1:this._point=2;break;case 2:this._point=3,m2(this,p2(this,A=LC(this,r,a)),A);break;default:m2(this,this._t0,A=LC(this,r,a));break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=a,this._t0=A}}};function IC(r){this._context=new jC(r)}(IC.prototype=Object.create(O0.prototype)).point=function(r,a){O0.prototype.point.call(this,a,r)};function jC(r){this._context=r}jC.prototype={moveTo:function(r,a){this._context.moveTo(a,r)},closePath:function(){this._context.closePath()},lineTo:function(r,a){this._context.lineTo(a,r)},bezierCurveTo:function(r,a,A,V,ut,bt){this._context.bezierCurveTo(a,r,V,A,bt,ut)}};function BA(r){return new O0(r)}function FA(r){return new IC(r)}function BC(r){this._context=r}BC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var r=this._x,a=this._y,A=r.length;if(A)if(this._line?this._context.lineTo(r[0],a[0]):this._context.moveTo(r[0],a[0]),A===2)this._context.lineTo(r[1],a[1]);else for(var V=FC(r),ut=FC(a),bt=0,Pt=1;Pt=0;--a)ut[a]=(Pt[a]-ut[a+1])/bt[a];for(bt[A-1]=(r[A]+ut[A-1])/2,a=0;a=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(r,a){switch(r=+r,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,a),this._context.lineTo(r,a);else{var A=this._x*(1-this._t)+r*this._t;this._context.lineTo(A,this._y),this._context.lineTo(A,a)}break}}this._x=r,this._y=a}};function zC(r){return new N0(r,.5)}function UC(r){return new N0(r,0)}function HC(r){return new N0(r,1)}function Lf(r,a){if((Pt=r.length)>1)for(var A=1,V,ut,bt=r[a[0]],Pt,Dt=bt.length;A=0;)A[a]=a;return A}function UA(r,a){return r[a]}function VC(){var r=$i([]),a=Dh,A=Lf,V=UA;function ut(bt){var Pt=r.apply(this,arguments),Dt,Ft=bt.length,Vt=Pt.length,$t=new Array(Vt),ie;for(Dt=0;Dt0){for(var A,V,ut=0,bt=r[0].length,Pt;ut0)for(var A,V=0,ut,bt,Pt,Dt,Ft,Vt=r[a[0]].length;V0?(ut[0]=Pt,ut[1]=Pt+=bt):bt<0?(ut[1]=Dt,ut[0]=Dt+=bt):(ut[0]=0,ut[1]=bt)}function WA(r,a){if((ut=r.length)>0){for(var A=0,V=r[a[0]],ut,bt=V.length;A0)||!((bt=(ut=r[a[0]]).length)>0))){for(var A=0,V=1,ut,bt,Pt;Vbt&&(bt=ut,A=a);return A}function y2(r){var a=r.map(GA);return Dh(r).sort(function(A,V){return a[A]-a[V]})}function GA(r){for(var a=0,A=-1,V=r.length,ut;++A0)){if(Pe/=_e,_e<0){if(Pe0){if(Pe>Qt)return;Pe>ie&&(ie=Pe)}if(Pe=V-Dt,!(!_e&&Pe<0)){if(Pe/=_e,_e<0){if(Pe>Qt)return;Pe>ie&&(ie=Pe)}else if(_e>0){if(Pe0)){if(Pe/=Ne,Ne<0){if(Pe0){if(Pe>Qt)return;Pe>ie&&(ie=Pe)}if(Pe=ut-Ft,!(!Ne&&Pe<0)){if(Pe/=Ne,Ne<0){if(Pe>Qt)return;Pe>ie&&(ie=Pe)}else if(Ne>0){if(Pe0)&&!(Qt<1)||(ie>0&&(r[0]=[Dt+ie*_e,Ft+ie*Ne]),Qt<1&&(r[1]=[Dt+Qt*_e,Ft+Qt*Ne])),!0}}}}}function tP(r,a,A,V,ut){var bt=r[1];if(bt)return!0;var Pt=r[0],Dt=r.left,Ft=r.right,Vt=Dt[0],$t=Dt[1],ie=Ft[0],Qt=Ft[1],_e=(Vt+ie)/2,Ne=($t+Qt)/2,Pe,je;if(Qt===$t){if(_e=V)return;if(Vt>ie){if(!Pt)Pt=[_e,A];else if(Pt[1]>=ut)return;bt=[_e,ut]}else{if(!Pt)Pt=[_e,ut];else if(Pt[1]1)if(Vt>ie){if(!Pt)Pt=[(A-je)/Pe,A];else if(Pt[1]>=ut)return;bt=[(ut-je)/Pe,ut]}else{if(!Pt)Pt=[(ut-je)/Pe,ut];else if(Pt[1]=V)return;bt=[V,Pe*V+je]}else{if(!Pt)Pt=[V,Pe*V+je];else if(Pt[0]jo||Math.abs(bt[0][1]-bt[1][1])>jo))&&delete ds[ut]}function x2(r){return pl[r.index]={site:r,halfedges:[]}}function JC(r,a){var A=r.site,V=a.left,ut=a.right;return A===ut&&(ut=V,V=A),ut?Math.atan2(ut[1]-V[1],ut[0]-V[0]):(A===V?(V=a[1],ut=a[0]):(V=a[0],ut=a[1]),Math.atan2(V[0]-ut[0],ut[1]-V[1]))}function tM(r,a){return a[+(a.left!==r.site)]}function nP(r,a){return a[+(a.left===r.site)]}function b2(){for(var r=0,a=pl.length,A,V,ut,bt;rjo||Math.abs(je-_e)>jo)&&(Vt.splice(Ft,0,ds.push(R0(Dt,Ne,Math.abs(Pe-r)jo?[r,Math.abs(Qt-r)jo?[Math.abs(_e-V)jo?[A,Math.abs(Qt-A)jo?[Math.abs(_e-a)=-j1)){var _e=Ft*Ft+Vt*Vt,Ne=$t*$t+ie*ie,Pe=(ie*_e-Vt*Ne)/Qt,je=(Ft*Ne-$t*_e)/Qt,ze=w2.pop()||new D1;ze.arc=r,ze.site=ut,ze.x=Pe+Pt,ze.y=(ze.cy=je+Dt)+Math.sqrt(Pe*Pe+je*je),r.circle=ze;for(var ln=null,Je=L0._;Je;)if(ze.yjo)Dt=Dt.L;else if(Pt=a-oP(Dt,A),Pt>jo){if(!Dt.R){V=Dt;break}Dt=Dt.R}else{bt>-jo?(V=Dt.P,ut=Dt):Pt>-jo?(V=Dt,ut=Dt.N):V=ut=Dt;break}x2(r);var Ft=nM(r);if(Rm.insert(V,Ft),!(!V&&!ut)){if(V===ut){Dm(V),ut=nM(V.site),Rm.insert(Ft,ut),Ft.edge=ut.edge=D0(V.site,Ft.site),dl(V),dl(ut);return}if(!ut){Ft.edge=D0(V.site,Ft.site);return}Dm(V),Dm(ut);var Vt=V.site,$t=Vt[0],ie=Vt[1],Qt=r[0]-$t,_e=r[1]-ie,Ne=ut.site,Pe=Ne[0]-$t,je=Ne[1]-ie,ze=2*(Qt*je-_e*Pe),ln=Qt*Qt+_e*_e,Je=Pe*Pe+je*je,sn=[(je*ln-_e*Je)/ze+$t,(Qt*Je-Pe*ln)/ze+ie];O1(ut.edge,Vt,Ne,sn),Ft.edge=D0(Vt,r,null,sn),ut.edge=D0(r,Ne,null,sn),dl(V),dl(ut)}}function I1(r,a){var A=r.site,V=A[0],ut=A[1],bt=ut-a;if(!bt)return V;var Pt=r.P;if(!Pt)return-1/0;A=Pt.site;var Dt=A[0],Ft=A[1],Vt=Ft-a;if(!Vt)return Dt;var $t=Dt-V,ie=1/bt-1/Vt,Qt=$t/Vt;return ie?(-Qt+Math.sqrt(Qt*Qt-2*ie*($t*$t/(-2*Vt)-Ft+Vt/2+ut-bt/2)))/ie+V:(V+Dt)/2}function oP(r,a){var A=r.N;if(A)return I1(A,a);var V=r.site;return V[1]===a?V[0]:1/0}var jo=1e-6,j1=1e-12,Rm,pl,L0,ds;function I0(r,a,A){return(r[0]-A[0])*(a[1]-r[1])-(r[0]-a[0])*(A[1]-r[1])}function aP(r,a){return a[1]-r[1]||a[0]-r[0]}function j0(r,a){var A=r.sort(aP).pop(),V,ut,bt;for(ds=[],pl=new Array(r.length),Rm=new QC,L0=new QC;;)if(bt=N1,A&&(!bt||A[1]=Pt)return null;var Ft=r-Dt.site[0],Vt=a-Dt.site[1],$t=Ft*Ft+Vt*Vt;do Dt=V.cells[ut=bt],bt=null,Dt.halfedges.forEach(function(ie){var Qt=V.edges[ie],_e=Qt.left;if(!((_e===Dt.site||!_e)&&!(_e=Qt.right))){var Ne=r-_e[0],Pe=a-_e[1],je=Ne*Ne+Pe*Pe;je<$t&&($t=je,bt=_e.index)}});while(bt!==null);return V._found=ut,A==null||$t<=A*A?Dt.site:null}};function sP(){var r=ZA,a=QA,A=null;function V(ut){return new j0(ut.map(function(bt,Pt){var Dt=[Math.round(r(bt,Pt,ut)/jo)*jo,Math.round(a(bt,Pt,ut)/jo)*jo];return Dt.index=Pt,Dt.data=bt,Dt}),A)}return V.polygons=function(ut){return V(ut).polygons()},V.links=function(ut){return V(ut).links()},V.triangles=function(ut){return V(ut).triangles()},V.x=function(ut){return arguments.length?(r=typeof ut=="function"?ut:KC(+ut),V):r},V.y=function(ut){return arguments.length?(a=typeof ut=="function"?ut:KC(+ut),V):a},V.extent=function(ut){return arguments.length?(A=ut==null?null:[[+ut[0][0],+ut[0][1]],[+ut[1][0],+ut[1][1]]],V):A&&[[A[0][0],A[0][1]],[A[1][0],A[1][1]]]},V.size=function(ut){return arguments.length?(A=ut==null?null:[[0,0],[+ut[0],+ut[1]]],V):A&&[A[1][0]-A[0][0],A[1][1]-A[0][1]]},V}function B1(r){return function(){return r}}function lP(r,a,A){this.target=r,this.type=a,this.transform=A}function Rh(r,a,A){this.k=r,this.x=a,this.y=A}Rh.prototype={constructor:Rh,scale:function(r){return r===1?this:new Rh(this.k*r,this.x,this.y)},translate:function(r,a){return r===0&a===0?this:new Rh(this.k,this.x+this.k*r,this.y+this.k*a)},apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},applyX:function(r){return r*this.k+this.x},applyY:function(r){return r*this.k+this.y},invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},invertX:function(r){return(r-this.x)/this.k},invertY:function(r){return(r-this.y)/this.k},rescaleX:function(r){return r.copy().domain(r.range().map(this.invertX,this).map(r.invert,r))},rescaleY:function(r){return r.copy().domain(r.range().map(this.invertY,this).map(r.invert,r))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var F1=new Rh(1,0,0);rM.prototype=Rh.prototype;function rM(r){for(;!r.__zoom;)if(!(r=r.parentNode))return F1;return r.__zoom}function Lm(){_r.stopImmediatePropagation()}function B0(){_r.preventDefault(),_r.stopImmediatePropagation()}function z1(){return!_r.ctrlKey&&!_r.button}function uP(){var r=this;return r instanceof SVGElement?(r=r.ownerSVGElement||r,r.hasAttribute("viewBox")?(r=r.viewBox.baseVal,[[r.x,r.y],[r.x+r.width,r.y+r.height]]):[[0,0],[r.width.baseVal.value,r.height.baseVal.value]]):[[0,0],[r.clientWidth,r.clientHeight]]}function Im(){return this.__zoom||F1}function iM(){return-_r.deltaY*(_r.deltaMode===1?.05:_r.deltaMode?1:.002)}function cP(){return navigator.maxTouchPoints||"ontouchstart"in this}function hP(r,a,A){var V=r.invertX(a[0][0])-A[0][0],ut=r.invertX(a[1][0])-A[1][0],bt=r.invertY(a[0][1])-A[0][1],Pt=r.invertY(a[1][1])-A[1][1];return r.translate(ut>V?(V+ut)/2:Math.min(0,V)||Math.max(0,ut),Pt>bt?(bt+Pt)/2:Math.min(0,bt)||Math.max(0,Pt))}function fP(){var r=z1,a=uP,A=hP,V=iM,ut=cP,bt=[0,1/0],Pt=[[-1/0,-1/0],[1/0,1/0]],Dt=250,Ft=Nv,Vt=dt("start","zoom","end"),$t,ie,Qt=500,_e=150,Ne=0;function Pe(un){un.property("__zoom",Im).on("wheel.zoom",Un).on("mousedown.zoom",jn).on("dblclick.zoom",vr).filter(ut).on("touchstart.zoom",Qn).on("touchmove.zoom",or).on("touchend.zoom touchcancel.zoom",tr).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}Pe.transform=function(un,Wn,xr){var Hn=un.selection?un.selection():un;Hn.property("__zoom",Im),un!==Hn?Je(un,Wn,xr):Hn.interrupt().each(function(){sn(this,arguments).start().zoom(null,typeof Wn=="function"?Wn.apply(this,arguments):Wn).end()})},Pe.scaleBy=function(un,Wn,xr){Pe.scaleTo(un,function(){var Hn=this.__zoom.k,br=typeof Wn=="function"?Wn.apply(this,arguments):Wn;return Hn*br},xr)},Pe.scaleTo=function(un,Wn,xr){Pe.transform(un,function(){var Hn=a.apply(this,arguments),br=this.__zoom,Zr=xr==null?ln(Hn):typeof xr=="function"?xr.apply(this,arguments):xr,Vr=br.invert(Zr),oi=typeof Wn=="function"?Wn.apply(this,arguments):Wn;return A(ze(je(br,oi),Zr,Vr),Hn,Pt)},xr)},Pe.translateBy=function(un,Wn,xr){Pe.transform(un,function(){return A(this.__zoom.translate(typeof Wn=="function"?Wn.apply(this,arguments):Wn,typeof xr=="function"?xr.apply(this,arguments):xr),a.apply(this,arguments),Pt)})},Pe.translateTo=function(un,Wn,xr,Hn){Pe.transform(un,function(){var br=a.apply(this,arguments),Zr=this.__zoom,Vr=Hn==null?ln(br):typeof Hn=="function"?Hn.apply(this,arguments):Hn;return A(F1.translate(Vr[0],Vr[1]).scale(Zr.k).translate(typeof Wn=="function"?-Wn.apply(this,arguments):-Wn,typeof xr=="function"?-xr.apply(this,arguments):-xr),br,Pt)},Hn)};function je(un,Wn){return Wn=Math.max(bt[0],Math.min(bt[1],Wn)),Wn===un.k?un:new Rh(Wn,un.x,un.y)}function ze(un,Wn,xr){var Hn=Wn[0]-xr[0]*un.k,br=Wn[1]-xr[1]*un.k;return Hn===un.x&&br===un.y?un:new Rh(un.k,Hn,br)}function ln(un){return[(+un[0][0]+ +un[1][0])/2,(+un[0][1]+ +un[1][1])/2]}function Je(un,Wn,xr){un.on("start.zoom",function(){sn(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){sn(this,arguments).end()}).tween("zoom",function(){var Hn=this,br=arguments,Zr=sn(Hn,br),Vr=a.apply(Hn,br),oi=xr==null?ln(Vr):typeof xr=="function"?xr.apply(Hn,br):xr,Di=Math.max(Vr[1][0]-Vr[0][0],Vr[1][1]-Vr[0][1]),Bi=Hn.__zoom,Ko=typeof Wn=="function"?Wn.apply(Hn,br):Wn,No=Ft(Bi.invert(oi).concat(Di/Bi.k),Ko.invert(oi).concat(Di/Ko.k));return function(mo){if(mo===1)mo=Ko;else{var ma=No(mo),Gl=Di/ma[2];mo=new Rh(Gl,oi[0]-ma[0]*Gl,oi[1]-ma[1]*Gl)}Zr.zoom(null,mo)}})}function sn(un,Wn,xr){return!xr&&un.__zooming||new Pn(un,Wn)}function Pn(un,Wn){this.that=un,this.args=Wn,this.active=0,this.extent=a.apply(un,Wn),this.taps=0}Pn.prototype={start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(un,Wn){return this.mouse&&un!=="mouse"&&(this.mouse[1]=Wn.invert(this.mouse[0])),this.touch0&&un!=="touch"&&(this.touch0[1]=Wn.invert(this.touch0[0])),this.touch1&&un!=="touch"&&(this.touch1[1]=Wn.invert(this.touch1[0])),this.that.__zoom=Wn,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(un){Xt(new lP(Pe,un,this.that.__zoom),Vt.apply,Vt,[un,this.that,this.args])}};function Un(){if(!r.apply(this,arguments))return;var un=sn(this,arguments),Wn=this.__zoom,xr=Math.max(bt[0],Math.min(bt[1],Wn.k*Math.pow(2,V.apply(this,arguments)))),Hn=Tr(this);if(un.wheel)(un.mouse[0][0]!==Hn[0]||un.mouse[0][1]!==Hn[1])&&(un.mouse[1]=Wn.invert(un.mouse[0]=Hn)),clearTimeout(un.wheel);else{if(Wn.k===xr)return;un.mouse=[Hn,Wn.invert(Hn)],Tu(this),un.start()}B0(),un.wheel=setTimeout(br,_e),un.zoom("mouse",A(ze(je(Wn,xr),un.mouse[0],un.mouse[1]),un.extent,Pt));function br(){un.wheel=null,un.end()}}function jn(){if(ie||!r.apply(this,arguments))return;var un=sn(this,arguments,!0),Wn=rn(_r.view).on("mousemove.zoom",Zr,!0).on("mouseup.zoom",Vr,!0),xr=Tr(this),Hn=_r.clientX,br=_r.clientY;zn(_r.view),Lm(),un.mouse=[xr,this.__zoom.invert(xr)],Tu(this),un.start();function Zr(){if(B0(),!un.moved){var oi=_r.clientX-Hn,Di=_r.clientY-br;un.moved=oi*oi+Di*Di>Ne}un.zoom("mouse",A(ze(un.that.__zoom,un.mouse[0]=Tr(un.that),un.mouse[1]),un.extent,Pt))}function Vr(){Wn.on("mousemove.zoom mouseup.zoom",null),pr(_r.view,un.moved),B0(),un.end()}}function vr(){if(r.apply(this,arguments)){var un=this.__zoom,Wn=Tr(this),xr=un.invert(Wn),Hn=un.k*(_r.shiftKey?.5:2),br=A(ze(je(un,Hn),Wn,xr),a.apply(this,arguments),Pt);B0(),Dt>0?rn(this).transition().duration(Dt).call(Je,br,Wn):rn(this).call(Pe.transform,br)}}function Qn(){if(r.apply(this,arguments)){var un=_r.touches,Wn=un.length,xr=sn(this,arguments,_r.changedTouches.length===Wn),Hn,br,Zr,Vr;for(Lm(),br=0;br{"use strict";ht.d(ue,{V_:()=>j,h1:()=>et,ah:()=>B,Jj:()=>R,yl:()=>_t,$A:()=>q,rG:()=>Z,KS:()=>X,Xx:()=>F,JW:()=>g,T9:()=>f,i2:()=>b,JZ:()=>z,Am:()=>T,jk:()=>k,AS:()=>K,Ny:()=>Q,YV:()=>x,y1:()=>_,SQ:()=>st,k4:()=>nt,cz:()=>dt,c3:()=>p,Ft:()=>l,zr:()=>v,lq:()=>E,sG:()=>S,Zc:()=>C,mg:()=>mt,GV:()=>H,yU:()=>Mt});function j(I,Y){return IY?1:I>=Y?0:NaN}function _t(I){return I.length===1&&(I=m(I)),{left:function(Y,rt,ot,D){for(ot==null&&(ot=0),D==null&&(D=Y.length);ot>>1;I(Y[P],rt)<0?ot=P+1:D=P}return ot},right:function(Y,rt,ot,D){for(ot==null&&(ot=0),D==null&&(D=Y.length);ot>>1;I(Y[P],rt)>0?D=P:ot=P+1}return ot}}}function m(I){return function(Y,rt){return j(I(Y),rt)}}var y=_t(j),R=y.right,B=y.left;const et=R;function K(I,Y){Y==null&&(Y=J);for(var rt=0,ot=I.length-1,D=I[0],P=new Array(ot<0?0:ot);rtI?1:Y>=I?0:NaN}function tt(I){return I===null?NaN:+I}function H(I,Y){var rt=I.length,ot=0,D=-1,P=0,W,lt,it=0;if(Y==null)for(;++D1)return it/(ot-1)}function X(I,Y){var rt=H(I,Y);return rt&&Math.sqrt(rt)}function F(I,Y){var rt=I.length,ot=-1,D,P,W;if(Y==null){for(;++ot=D)for(P=W=D;++otD&&(P=D),W=D)for(P=W=D;++otD&&(P=D),W0)return[I];if((ot=Y0)for(I=Math.ceil(I/lt),Y=Math.floor(Y/lt),W=new Array(P=Math.ceil(Y-I+1));++D=0?(P>=w?10:P>=o?5:P>=u?2:1)*Math.pow(10,D):-Math.pow(10,-D)/(P>=w?10:P>=o?5:P>=u?2:1)}function S(I,Y,rt){var ot=Math.abs(Y-I)/Math.max(0,rt),D=Math.pow(10,Math.floor(Math.log(ot)/Math.LN10)),P=ot/D;return P>=w?D*=10:P>=o?D*=5:P>=u&&(D*=2),Yxt;)Ct.pop(),--Tt;var Nt=new Array(Tt+1),gt;for(P=0;P<=Tt;++P)gt=Nt[P]=[],gt.x0=P>0?Ct[P-1]:pt,gt.x1=P=1)return+rt(I[ot-1],ot-1,I);var ot,D=(ot-1)*Y,P=Math.floor(D),W=+rt(I[P],P,I),lt=+rt(I[P+1],P+1,I);return W+(lt-W)*(D-P)}}function p(I,Y,rt){return I=L.call(I,tt).sort(j),Math.ceil((rt-Y)/(2*(x(I,.75)-x(I,.25))*Math.pow(I.length,-.3333333333333333)))}function l(I,Y,rt){return Math.ceil((rt-Y)/(3.5*X(I)*Math.pow(I.length,-.3333333333333333)))}function f(I,Y){var rt=I.length,ot=-1,D,P;if(Y==null){for(;++ot=D)for(P=D;++otP&&(P=D)}else for(;++ot=D)for(P=D;++otP&&(P=D);return P}function b(I,Y){var rt=I.length,ot=rt,D=-1,P,W=0;if(Y==null)for(;++D=0;)for(W=I[Y],rt=W.length;--rt>=0;)P[--D]=W[rt];return P}function k(I,Y){var rt=I.length,ot=-1,D,P;if(Y==null){for(;++ot=D)for(P=D;++otD&&(P=D)}else for(;++ot=D)for(P=D;++otD&&(P=D);return P}function Q(I,Y){for(var rt=Y.length,ot=new Array(rt);rt--;)ot[rt]=I[Y[rt]];return ot}function st(I,Y){if(rt=I.length){var rt,ot=0,D=0,P,W=I[D];for(Y==null&&(Y=j);++ot=v?S:""+Array(v+1-x.length).join(g)+S},d={s:U,z:function(S){var v=-S.utcOffset(),g=Math.abs(v),x=Math.floor(g/60),p=g%60;return(v<=0?"+":"-")+U(x,2,"0")+":"+U(p,2,"0")},m:function S(v,g){if(v.date()1)return S(f[0])}else{var b=v.name;M[b]=v,p=b}return!x&&p&&(L=p),p||!x&&L},o=function(S,v){if(_(S))return S.clone();var g=typeof v=="object"?v:{};return g.date=S,g.args=arguments,new C(g)},u=d;u.l=w,u.i=_,u.w=function(S,v){return o(S,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var C=function(){function S(g){this.$L=w(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[s]=!0}var v=S.prototype;return v.parse=function(g){this.$d=function(x){var p=x.date,l=x.utc;if(p===null)return new Date(NaN);if(u.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var f=p.match(H);if(f){var b=f[2]-1||0,z=(f[7]||"0").substring(0,3);return l?new Date(Date.UTC(f[1],b,f[3]||1,f[4]||0,f[5]||0,f[6]||0,z)):new Date(f[1],b,f[3]||1,f[4]||0,f[5]||0,f[6]||0,z)}}return new Date(p)}(g),this.init()},v.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},v.$utils=function(){return u},v.isValid=function(){return this.$d.toString()!==tt},v.isSame=function(g,x){var p=o(g);return this.startOf(x)<=p&&p<=this.endOf(x)},v.isAfter=function(g,x){return o(g)68?1900:2e3)},et=function(H){return function(X){this[H]=+X}},K=[/[+-]\d\d:?(\d\d)?|Z/,function(H){(this.zone||(this.zone={})).offset=function(X){if(!X||X==="Z")return 0;var F=X.match(/([+-]|\d\d)/g),U=60*F[1]+(+F[2]||0);return U===0?0:F[0]==="+"?-U:U}(H)}],J=function(H){var X=R[H];return X&&(X.indexOf?X:X.s.concat(X.f))},q=function(H,X){var F,U=R.meridiem;if(U){for(var d=1;d<=24;d+=1)if(H.indexOf(U(d,0,X))>-1){F=d>12;break}}else F=H===(X?"pm":"PM");return F},Z={A:[y,function(H){this.afternoon=q(H,!1)}],a:[y,function(H){this.afternoon=q(H,!0)}],Q:[j,function(H){this.month=3*(H-1)+1}],S:[j,function(H){this.milliseconds=100*+H}],SS:[_t,function(H){this.milliseconds=10*+H}],SSS:[/\d{3}/,function(H){this.milliseconds=+H}],s:[m,et("seconds")],ss:[m,et("seconds")],m:[m,et("minutes")],mm:[m,et("minutes")],H:[m,et("hours")],h:[m,et("hours")],HH:[m,et("hours")],hh:[m,et("hours")],D:[m,et("day")],DD:[_t,et("day")],Do:[y,function(H){var X=R.ordinal,F=H.match(/\d+/);if(this.day=F[0],X)for(var U=1;U<=31;U+=1)X(U).replace(/\[|\]/g,"")===H&&(this.day=U)}],w:[m,et("week")],ww:[_t,et("week")],M:[m,et("month")],MM:[_t,et("month")],MMM:[y,function(H){var X=J("months"),F=(J("monthsShort")||X.map(function(U){return U.slice(0,3)})).indexOf(H)+1;if(F<1)throw new Error;this.month=F%12||F}],MMMM:[y,function(H){var X=J("months").indexOf(H)+1;if(X<1)throw new Error;this.month=X%12||X}],Y:[/[+-]?\d+/,et("year")],YY:[_t,function(H){this.year=B(H)}],YYYY:[/\d{4}/,et("year")],Z:K,ZZ:K};function tt(H){var X,F;X=H,F=R&&R.formats;for(var U=(H=X.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(o,u,C){var E=C&&C.toUpperCase();return u||F[C]||ue[C]||F[E].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,v,g){return v||g.slice(1)})})).match(ht),d=U.length,L=0;L-1)return new Date((p==="X"?1e3:1)*x);var b=tt(p)(x),z=b.year,T=b.month,k=b.day,Q=b.hours,st=b.minutes,nt=b.seconds,dt=b.milliseconds,mt=b.zone,Et=b.week,Mt=new Date,I=k||(z||T?1:Mt.getDate()),Y=z||Mt.getFullYear(),rt=0;z&&!T||(rt=T>0?T-1:Mt.getMonth());var ot,D=Q||0,P=st||0,W=nt||0,lt=dt||0;return mt?new Date(Date.UTC(Y,rt,I,D,P,W,lt+60*mt.offset*1e3)):l?new Date(Date.UTC(Y,rt,I,D,P,W,lt)):(ot=new Date(Y,rt,I,D,P,W,lt),Et&&(ot=f(ot).week(Et).toDate()),ot)}catch(it){return new Date("")}}(M,w,s,F),this.init(),E&&E!==!0&&(this.$L=this.locale(E).$L),C&&M!=this.format(w)&&(this.$d=new Date("")),R={}}else if(w instanceof Array)for(var S=w.length,v=1;v<=S;v+=1){_[1]=w[v-1];var g=F.apply(this,_);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}v===S&&(this.$d=new Date(""))}else d.call(this,L)}}})},9050:function(We){(function(ue,ht){We.exports=ht()})(this,function(){"use strict";return function(ue,ht,j){ht.prototype.isBetween=function(_t,m,y,R){var B=j(_t),et=j(m),K=(R=R||"()")[0]==="(",J=R[1]===")";return(K?this.isAfter(B,y):!this.isBefore(B,y))&&(J?this.isBefore(et,y):!this.isAfter(et,y))||(K?this.isBefore(B,y):!this.isAfter(B,y))&&(J?this.isAfter(et,y):!this.isBefore(et,y))}}})},2976:function(We){(function(ue,ht){We.exports=ht()})(this,function(){"use strict";var ue={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(ht,j,_t){var m=j.prototype,y=m.format;_t.en.formats=ue,m.format=function(R){R===void 0&&(R="YYYY-MM-DDTHH:mm:ssZ");var B=this.$locale().formats,et=function(K,J){return K.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(q,Z,tt){var H=tt&&tt.toUpperCase();return Z||J[tt]||ue[tt]||J[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(X,F,U){return F||U.slice(1)})})}(R,B===void 0?{}:B);return y.call(this,et)}}})},1398:function(We){(function(ue,ht){We.exports=ht()})(this,function(){"use strict";var ue="month",ht="quarter";return function(j,_t){var m=_t.prototype;m.quarter=function(B){return this.$utils().u(B)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(B-1))};var y=m.add;m.add=function(B,et){return B=Number(B),this.$utils().p(et)===ht?this.add(3*B,ue):y.bind(this)(B,et)};var R=m.startOf;m.startOf=function(B,et){var K=this.$utils(),J=!!K.u(et)||et;if(K.p(B)===ht){var q=this.quarter()-1;return J?this.month(3*q).startOf(ue).startOf("day"):this.month(3*q+2).endOf(ue).endOf("day")}return R.bind(this)(B,et)}}})},4843:function(We){(function(ue,ht){We.exports=ht()})(this,function(){"use strict";var ue={year:0,month:1,day:2,hour:3,minute:4,second:5},ht={};return function(j,_t,m){var y,R=function(J,q,Z){Z===void 0&&(Z={});var tt=new Date(J),H=function(X,F){F===void 0&&(F={});var U=F.timeZoneName||"short",d=X+"|"+U,L=ht[d];return L||(L=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:X,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:U}),ht[d]=L),L}(q,Z);return H.formatToParts(tt)},B=function(J,q){for(var Z=R(J,q),tt=[],H=0;H=0&&(tt[d]=parseInt(U,10))}var L=tt[3],M=L===24?0:L,s=tt[0]+"-"+tt[1]+"-"+tt[2]+" "+M+":"+tt[4]+":"+tt[5]+":000",_=+J;return(m.utc(s).valueOf()-(_-=_%1e3))/6e4},et=_t.prototype;et.tz=function(J,q){J===void 0&&(J=y);var Z,tt=this.utcOffset(),H=this.toDate(),X=H.toLocaleString("en-US",{timeZone:J}),F=Math.round((H-new Date(X))/1e3/60),U=15*-Math.round(H.getTimezoneOffset()/15)-F;if(!Number(U))Z=this.utcOffset(0,q);else if(Z=m(X,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(U,!0),q){var d=Z.utcOffset();Z=Z.add(tt-d,"minute")}return Z.$x.$timezone=J,Z},et.offsetName=function(J){var q=this.$x.$timezone||m.tz.guess(),Z=R(this.valueOf(),q,{timeZoneName:J}).find(function(tt){return tt.type.toLowerCase()==="timezonename"});return Z&&Z.value};var K=et.startOf;et.startOf=function(J,q){if(!this.$x||!this.$x.$timezone)return K.call(this,J,q);var Z=m(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return K.call(Z,J,q).tz(this.$x.$timezone,!0)},m.tz=function(J,q,Z){var tt=Z&&q,H=Z||q||y,X=B(+m(),H);if(typeof J!="string")return m(J).tz(H);var F=function(M,s,_){var w=M-60*s*1e3,o=B(w,_);if(s===o)return[w,s];var u=B(w-=60*(o-s)*1e3,_);return o===u?[w,o]:[M-60*Math.min(o,u)*1e3,Math.max(o,u)]}(m.utc(J,tt).valueOf(),X,H),U=F[0],d=F[1],L=m(U).utcOffset(d);return L.$x.$timezone=H,L},m.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},m.tz.setDefault=function(J){y=J}}})},4112:function(We){(function(ue,ht){We.exports=ht()})(this,function(){"use strict";var ue="minute",ht=/[+-]\d\d(?::?\d\d)?/g,j=/([+-]|\d\d)/g;return function(_t,m,y){var R=m.prototype;y.utc=function(tt){var H={date:tt,utc:!0,args:arguments};return new m(H)},R.utc=function(tt){var H=y(this.toDate(),{locale:this.$L,utc:!0});return tt?H.add(this.utcOffset(),ue):H},R.local=function(){return y(this.toDate(),{locale:this.$L,utc:!1})};var B=R.parse;R.parse=function(tt){tt.utc&&(this.$u=!0),this.$utils().u(tt.$offset)||(this.$offset=tt.$offset),B.call(this,tt)};var et=R.init;R.init=function(){if(this.$u){var tt=this.$d;this.$y=tt.getUTCFullYear(),this.$M=tt.getUTCMonth(),this.$D=tt.getUTCDate(),this.$W=tt.getUTCDay(),this.$H=tt.getUTCHours(),this.$m=tt.getUTCMinutes(),this.$s=tt.getUTCSeconds(),this.$ms=tt.getUTCMilliseconds()}else et.call(this)};var K=R.utcOffset;R.utcOffset=function(tt,H){var X=this.$utils().u;if(X(tt))return this.$u?0:X(this.$offset)?K.call(this):this.$offset;if(typeof tt=="string"&&(tt=function(L){L===void 0&&(L="");var M=L.match(ht);if(!M)return null;var s=(""+M[0]).match(j)||["-",0,0],_=s[0],w=60*+s[1]+ +s[2];return w===0?0:_==="+"?w:-w}(tt),tt===null))return this;var F=Math.abs(tt)<=16?60*tt:tt,U=this;if(H)return U.$offset=F,U.$u=tt===0,U;if(tt!==0){var d=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(U=this.local().add(F+d,ue)).$offset=F,U.$x.$localOffset=d}else U=this.utc();return U};var J=R.format;R.format=function(tt){var H=tt||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return J.call(this,H)},R.valueOf=function(){var tt=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*tt},R.isUTC=function(){return!!this.$u},R.toISOString=function(){return this.toDate().toISOString()},R.toString=function(){return this.toDate().toUTCString()};var q=R.toDate;R.toDate=function(tt){return tt==="s"&&this.$offset?y(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():q.call(this)};var Z=R.diff;R.diff=function(tt,H,X){if(tt&&this.$u===tt.$u)return Z.call(this,tt,H,X);var F=this.local(),U=y(tt).local();return Z.call(F,U,H,X)}}})},2713:(We,ue,ht)=>{var j;/*! Copyright (c) 2015 Jed Watson. Based on code that is Copyright 2013-2015, Facebook, Inc. All rights reserved. -*/(function(){"use strict";var _t=!!(typeof window!="undefined"&&window.document&&window.document.createElement),m={canUseDOM:_t,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:_t&&!!(window.addEventListener||window.attachEvent),canUseViewport:_t&&!!window.screen};z=function(){return m}.call(ue,ht,ue,We),z!==void 0&&(We.exports=z)})()},5215:We=>{"use strict";We.exports=function ue(ht,z){if(ht===z)return!0;if(ht&&z&&typeof ht=="object"&&typeof z=="object"){if(ht.constructor!==z.constructor)return!1;var _t,m,y;if(Array.isArray(ht)){if(_t=ht.length,_t!=z.length)return!1;for(m=_t;m--!==0;)if(!ue(ht[m],z[m]))return!1;return!0}if(ht.constructor===RegExp)return ht.source===z.source&&ht.flags===z.flags;if(ht.valueOf!==Object.prototype.valueOf)return ht.valueOf()===z.valueOf();if(ht.toString!==Object.prototype.toString)return ht.toString()===z.toString();if(y=Object.keys(ht),_t=y.length,_t!==Object.keys(z).length)return!1;for(m=_t;m--!==0;)if(!Object.prototype.hasOwnProperty.call(z,y[m]))return!1;for(m=_t;m--!==0;){var R=y[m];if(!ue(ht[R],z[R]))return!1}return!0}return ht!==ht&&z!==z}},6193:function(We,ue,ht){var z;(function(_t,m){We.exports?(m.default=m,We.exports=_t&&_t.document?m(_t):m):(z=function(){return m(_t)}.call(ue,ht,ue,We),z!==void 0&&(We.exports=z))})(typeof window!="undefined"?window:this,function(_t){"use strict";var m={};function y(R,j,et,K){!R.hasOwnProperty(j)&&(R[j]=K.apply(null,et),_t&&typeof CustomEvent=="function"&&_t.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:j,module:R[j]}})))}return y(m,"Core/Globals.js",[],function(){var R,j;return(j=R||(R={})).SVG_NS="http://www.w3.org/2000/svg",j.product="Highcharts",j.version="11.4.8",j.win=_t!==void 0?_t:{},j.doc=j.win.document,j.svg=j.doc&&j.doc.createElementNS&&!!j.doc.createElementNS(j.SVG_NS,"svg").createSVGRect,j.userAgent=j.win.navigator&&j.win.navigator.userAgent||"",j.isChrome=j.win.chrome,j.isFirefox=j.userAgent.indexOf("Firefox")!==-1,j.isMS=/(edge|msie|trident)/i.test(j.userAgent)&&!j.win.opera,j.isSafari=!j.isChrome&&j.userAgent.indexOf("Safari")!==-1,j.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(j.userAgent),j.isWebKit=j.userAgent.indexOf("AppleWebKit")!==-1,j.deg2rad=2*Math.PI/360,j.hasBidiBug=j.isFirefox&&4>parseInt(j.userAgent.split("Firefox/")[1],10),j.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],j.noop=function(){},j.supportsPassiveEvents=function(){let et=!1;if(!j.isMS){let K=Object.defineProperty({},"passive",{get:function(){et=!0}});j.win.addEventListener&&j.win.removeEventListener&&(j.win.addEventListener("testPassive",j.noop,K),j.win.removeEventListener("testPassive",j.noop,K))}return et}(),j.charts=[],j.composed=[],j.dateFormats={},j.seriesTypes={},j.symbolSizes={},j.chartCount=0,R}),y(m,"Core/Utilities.js",[m["Core/Globals.js"]],function(R){let j,{charts:et,doc:K,win:J}=R;function q(p,l,f,b){let F=l?"Highcharts error":"Highcharts warning";p===32&&(p=`${F}: Deprecated member`);let T=d(p),k=T?`${F} #${p}: www.highcharts.com/errors/${p}/`:p.toString();if(b!==void 0){let Q="";T&&(k+="?"),S(b,function(st,nt){Q+=` - - ${nt}: ${st}`,T&&(k+=encodeURI(nt)+"="+encodeURI(st))}),k+=Q}g(R,"displayError",{chart:f,code:p,message:k,params:b},function(){if(l)throw Error(k);J.console&&q.messages.indexOf(k)===-1&&console.warn(k)}),q.messages.push(k)}function Z(p,l){return parseInt(p,l||10)}function tt(p){return typeof p=="string"}function H(p){let l=Object.prototype.toString.call(p);return l==="[object Array]"||l==="[object Array Iterator]"}function X(p,l){return!!p&&typeof p=="object"&&(!l||!H(p))}function B(p){return X(p)&&typeof p.nodeType=="number"}function U(p){let l=p&&p.constructor;return!!(X(p,!0)&&!B(p)&&l&&l.name&&l.name!=="Object")}function d(p){return typeof p=="number"&&!isNaN(p)&&p<1/0&&p>-1/0}function L(p){return p!=null}function M(p,l,f){let b,F=tt(l)&&!L(f),T=(k,Q)=>{L(k)?p.setAttribute(Q,k):F?(b=p.getAttribute(Q))||Q!=="class"||(b=p.getAttribute(Q+"Name")):p.removeAttribute(Q)};return tt(l)?T(f,l):S(l,T),b}function s(p){return H(p)?p:[p]}function w(p,l){let f;for(f in p||(p={}),l)p[f]=l[f];return p}function _(){let p=arguments,l=p.length;for(let f=0;f1e14?p:parseFloat(p.toPrecision(l||14))}(q||(q={})).messages=[],Math.easeInOutSine=function(p){return-.5*(Math.cos(Math.PI*p)-1)};let E=Array.prototype.find?function(p,l){return p.find(l)}:function(p,l){let f,b=p.length;for(f=0;fQ.order-st.order),F.forEach(Q=>{Q.fn.call(p,f)===!1&&f.preventDefault()})}b&&!f.defaultPrevented&&b.call(p,f)}S({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(p,l){R[l]=function(f){return q(32,!1,void 0,{[`Highcharts.${l}`]:`use Array.${p}`}),Array.prototype[p].apply(f,[].slice.call(arguments,1))}});let x=function(){let p=Math.random().toString(36).substring(2,9)+"-",l=0;return function(){return"highcharts-"+(j?"":p)+l++}}();return J.jQuery&&(J.jQuery.fn.highcharts=function(){let p=[].slice.call(arguments);if(this[0])return p[0]?(new R[tt(p[0])?p.shift():"Chart"](this[0],p[0],p[1]),this):et[M(this[0],"data-highcharts-chart")]}),{addEvent:function(p,l,f,b={}){let F=typeof p=="function"&&p.prototype||p;Object.hasOwnProperty.call(F,"hcEvents")||(F.hcEvents={});let T=F.hcEvents;R.Point&&p instanceof R.Point&&p.series&&p.series.chart&&(p.series.chart.runTrackerClick=!0);let k=p.addEventListener;k&&k.call(p,l,f,!!R.supportsPassiveEvents&&{passive:b.passive===void 0?l.indexOf("touch")!==-1:b.passive,capture:!1}),T[l]||(T[l]=[]);let Q={fn:f,order:typeof b.order=="number"?b.order:1/0};return T[l].push(Q),T[l].sort((st,nt)=>st.order-nt.order),function(){v(p,l,f)}},arrayMax:function(p){let l=p.length,f=p[0];for(;l--;)p[l]>f&&(f=p[l]);return f},arrayMin:function(p){let l=p.length,f=p[0];for(;l--;)p[l]l?p{let b=l%2/2,F=f?-1:1;return(Math.round(p*F-b)+b)*F},css:o,defined:L,destroyObjectProperties:function(p,l,f){S(p,function(b,F){b!==l&&(b!=null&&b.destroy)&&b.destroy(),(b!=null&&b.destroy||!f)&&delete p[F]})},diffObjects:function(p,l,f,b){let F={};return function T(k,Q,st,nt){let dt=f?Q:k;S(k,function(mt,Et){if(!nt&&b&&b.indexOf(Et)>-1&&Q[Et]){mt=s(mt),st[Et]=[];for(let Mt=0;Mt{if(Q.length>1)for(T=b=Q.length-1;T>0;T--)(F=Q[T]-Q[T-1])<0&&!k?(l==null||l(),l=void 0):F&&(f===void 0||F=k-1&&(k=Math.floor(Q)),Math.max(0,k-(p(l,"padding-left",!0)||0)-(p(l,"padding-right",!0)||0))}if(f==="height")return Math.max(0,Math.min(l.offsetHeight,l.scrollHeight)-(p(l,"padding-top",!0)||0)-(p(l,"padding-bottom",!0)||0));let T=J.getComputedStyle(l,void 0);return T&&(F=T.getPropertyValue(f),_(b,f!=="opacity")&&(F=Z(F))),F},inArray:function(p,l,f){return q(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),l.indexOf(p,f)},insertItem:function(p,l){let f,b=p.options.index,F=l.length;for(f=p.options.isInternal?F:0;f=p))&&(F||!(Q<=(l[T]+(l[T+1]||l[T]))/2)));T++);return C(k*f,-Math.round(Math.log(.001)/Math.LN10))},objectEach:S,offset:function(p){let l=K.documentElement,f=p.parentElement||p.parentNode?p.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:f.top+(J.pageYOffset||l.scrollTop)-(l.clientTop||0),left:f.left+(J.pageXOffset||l.scrollLeft)-(l.clientLeft||0),width:f.width,height:f.height}},pad:function(p,l,f){return Array((l||2)+1-String(p).replace("-","").length).join(f||"0")+p},pick:_,pInt:Z,pushUnique:function(p,l){return 0>p.indexOf(l)&&!!p.push(l)},relativeLength:function(p,l,f){return/%$/.test(p)?l*parseFloat(p)/100+(f||0):parseFloat(p)},removeEvent:v,replaceNested:function(p,...l){let f,b;do for(b of(f=p,l))p=p.replace(b[0],b[1]);while(p!==f);return p},splat:s,stableSort:function(p,l){let f,b,F=p.length;for(b=0;b0?setTimeout(p,l,f):(p.call(0,f),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:x,useSerialIds:function(p){return j=_(p,j)},wrap:function(p,l,f){let b=p[l];p[l]=function(){let F=arguments,T=this;return f.apply(this,[function(){return b.apply(T,arguments.length?arguments:F)}].concat([].slice.call(arguments)))}}}}),y(m,"Core/Chart/ChartDefaults.js",[],function(){return{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,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),y(m,"Core/Color/Palettes.js",[],function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}}),y(m,"Core/Time.js",[m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j){let{win:et}=R,{defined:K,error:J,extend:q,isNumber:Z,isObject:tt,merge:H,objectEach:X,pad:B,pick:U,splat:d,timeUnits:L}=j,M=R.isSafari&&et.Intl&&et.Intl.DateTimeFormat.prototype.formatRange,s=R.isSafari&&et.Intl&&!et.Intl.DateTimeFormat.prototype.formatRange;class w{constructor(o){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=et.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(o)}get(o,u){if(this.variableTimezone||this.timezoneOffset){let C=u.getTime(),E=C-this.getTimezoneOffset(u);u.setTime(E);let S=u["getUTC"+o]();return u.setTime(C),S}return this.useUTC?u["getUTC"+o]():u["get"+o]()}set(o,u,C){if(this.variableTimezone||this.timezoneOffset){if(o==="Milliseconds"||o==="Seconds"||o==="Minutes"&&this.getTimezoneOffset(u)%36e5==0)return u["setUTC"+o](C);let E=this.getTimezoneOffset(u),S=u.getTime()-E;u.setTime(S),u["setUTC"+o](C);let v=this.getTimezoneOffset(u);return S=u.getTime()+v,u.setTime(S)}return this.useUTC||M&&o==="FullYear"?u["setUTC"+o](C):u["set"+o](C)}update(o={}){let u=U(o.useUTC,!0);this.options=o=H(!0,this.options,o),this.Date=o.Date||et.Date||Date,this.useUTC=u,this.timezoneOffset=u&&o.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=u&&!!(o.getTimezoneOffset||o.timezone)}makeTime(o,u,C,E,S,v){let g,x,p;return this.useUTC?(g=this.Date.UTC.apply(0,arguments),x=this.getTimezoneOffset(g),g+=x,x!==(p=this.getTimezoneOffset(g))?g+=p-x:x-36e5!==this.getTimezoneOffset(g-36e5)||s||(g-=36e5)):g=new this.Date(o,u,U(C,1),U(E,0),U(S,0),U(v,0)).getTime(),g}timezoneOffsetFunction(){let o=this,u=this.options,C=u.getTimezoneOffset;return this.useUTC?u.timezone?E=>{try{let S=`shortOffset,${u.timezone||""}`,[v,g,x,p,l=0]=(w.formatCache[S]=w.formatCache[S]||Intl.DateTimeFormat("en",{timeZone:u.timezone,timeZoneName:"shortOffset"})).format(E).split(/(GMT|:)/).map(Number),f=-(36e5*(x+l/60));if(Z(f))return f}catch(S){J(34)}return 0}:this.useUTC&&C?E=>6e4*C(E.valueOf()):()=>6e4*(o.timezoneOffset||0):E=>6e4*new Date(E.toString()).getTimezoneOffset()}dateFormat(o,u,C){if(!K(u)||isNaN(u))return R.defaultOptions.lang&&R.defaultOptions.lang.invalidDate||"";o=U(o,"%Y-%m-%d %H:%M:%S");let E=this,S=new this.Date(u),v=this.get("Hours",S),g=this.get("Day",S),x=this.get("Date",S),p=this.get("Month",S),l=this.get("FullYear",S),f=R.defaultOptions.lang,b=f&&f.weekdays,F=f&&f.shortWeekdays;return X(q({a:F?F[g]:b[g].substr(0,3),A:b[g],d:B(x),e:B(x,2," "),w:g,b:f.shortMonths[p],B:f.months[p],m:B(p+1),o:p+1,y:l.toString().substr(2,2),Y:l,H:B(v),k:v,I:B(v%12||12),l:v%12||12,M:B(this.get("Minutes",S)),p:v<12?"AM":"PM",P:v<12?"am":"pm",S:B(this.get("Seconds",S)),L:B(Math.floor(u%1e3),3)},R.dateFormats),function(T,k){for(;o.indexOf("%"+k)!==-1;)o=o.replace("%"+k,typeof T=="function"?T.call(E,u):T)}),C?o.substr(0,1).toUpperCase()+o.substr(1):o}resolveDTLFormat(o){return tt(o,!0)?o:{main:(o=d(o))[0],from:o[1],to:o[2]}}getTimeTicks(o,u,C,E){let S,v,g,x,p=this,l=p.Date,f=[],b={},F=new l(u),T=o.unitRange,k=o.count||1;if(E=U(E,1),K(u)){p.set("Milliseconds",F,T>=L.second?0:k*Math.floor(p.get("Milliseconds",F)/k)),T>=L.second&&p.set("Seconds",F,T>=L.minute?0:k*Math.floor(p.get("Seconds",F)/k)),T>=L.minute&&p.set("Minutes",F,T>=L.hour?0:k*Math.floor(p.get("Minutes",F)/k)),T>=L.hour&&p.set("Hours",F,T>=L.day?0:k*Math.floor(p.get("Hours",F)/k)),T>=L.day&&p.set("Date",F,T>=L.month?1:Math.max(1,k*Math.floor(p.get("Date",F)/k))),T>=L.month&&(p.set("Month",F,T>=L.year?0:k*Math.floor(p.get("Month",F)/k)),v=p.get("FullYear",F)),T>=L.year&&(v-=v%k,p.set("FullYear",F,v)),T===L.week&&(x=p.get("Day",F),p.set("Date",F,p.get("Date",F)-x+E+(x4*L.month||p.getTimezoneOffset(u)!==p.getTimezoneOffset(C));let dt=F.getTime();for(S=1;dt1?dt=p.makeTime(v,Q,st,nt+S*k):dt+=T*k,S++;f.push(dt),T<=L.hour&&f.length<1e4&&f.forEach(function(mt){mt%18e5==0&&p.dateFormat("%H%M%S%L",mt)==="000000000"&&(b[mt]="day")})}return f.info=q(o,{higherRanks:b,totalRange:T*k}),f}getDateFormat(o,u,C,E){let S=this.dateFormat("%m-%d %H:%M:%S.%L",u),v="01-01 00:00:00.000",g={millisecond:15,second:12,minute:9,hour:6,day:3},x="millisecond",p=x;for(x in L){if(o===L.week&&+this.dateFormat("%w",u)===C&&S.substr(6)===v.substr(6)){x="week";break}if(L[x]>o){x=p;break}if(g[x]&&S.substr(g[x])!==v.substr(g[x]))break;x!=="week"&&(p=x)}return this.resolveDTLFormat(E[x]).main}}return w.formatCache={},w}),y(m,"Core/Defaults.js",[m["Core/Chart/ChartDefaults.js"],m["Core/Globals.js"],m["Core/Color/Palettes.js"],m["Core/Time.js"],m["Core/Utilities.js"]],function(R,j,et,K,J){let{isTouchDevice:q}=j,{fireEvent:Z,merge:tt}=J,H={colors:et.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:R,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",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:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:B=>Math.sqrt(1-Math.pow(B-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:q?25:10,headerFormat:'{point.key}
',pointFormat:'\u25CF {series.name}: {point.y}
',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};H.chart.styledMode=!1;let X=new K(H.time);return{defaultOptions:H,defaultTime:X,getOptions:function(){return H},setOptions:function(B){return Z(j,"setOptions",{options:B}),tt(!0,H,B),(B.time||B.global)&&(j.time?j.time.update(tt(H.global,H.time,B.global,B.time)):j.time=X),H}}}),y(m,"Core/Color/Color.js",[m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j){let{isNumber:et,merge:K,pInt:J}=j;class q{static parse(tt){return tt?new q(tt):q.None}constructor(tt){let H,X,B,U;this.rgba=[NaN,NaN,NaN,NaN],this.input=tt;let d=R.Color;if(d&&d!==q)return new d(tt);if(typeof tt=="object"&&tt.stops!==void 0)this.stops=tt.stops.map(L=>new q(L[1]));else if(typeof tt=="string"){if(this.input=tt=q.names[tt.toLowerCase()]||tt,tt.charAt(0)==="#"){let L=tt.length,M=parseInt(tt.substr(1),16);L===7?X=[(16711680&M)>>16,(65280&M)>>8,255&M,1]:L===4&&(X=[(3840&M)>>4|(3840&M)>>8,(240&M)>>4|240&M,(15&M)<<4|15&M,1])}if(!X)for(B=q.parsers.length;B--&&!X;)(H=(U=q.parsers[B]).regex.exec(tt))&&(X=U.parse(H))}X&&(this.rgba=X)}get(tt){let H=this.input,X=this.rgba;if(typeof H=="object"&&this.stops!==void 0){let B=K(H);return B.stops=[].slice.call(B.stops),this.stops.forEach((U,d)=>{B.stops[d]=[B.stops[d][0],U.get(tt)]}),B}return X&&et(X[0])?tt!=="rgb"&&(tt||X[3]!==1)?tt==="a"?`${X[3]}`:"rgba("+X.join(",")+")":"rgb("+X[0]+","+X[1]+","+X[2]+")":H}brighten(tt){let H=this.rgba;if(this.stops)this.stops.forEach(function(X){X.brighten(tt)});else if(et(tt)&&tt!==0)for(let X=0;X<3;X++)H[X]+=J(255*tt),H[X]<0&&(H[X]=0),H[X]>255&&(H[X]=255);return this}setOpacity(tt){return this.rgba[3]=tt,this}tweenTo(tt,H){let X=this.rgba,B=tt.rgba;if(!et(X[0])||!et(B[0]))return tt.input||"none";let U=B[3]!==1||X[3]!==1;return(U?"rgba(":"rgb(")+Math.round(B[0]+(X[0]-B[0])*(1-H))+","+Math.round(B[1]+(X[1]-B[1])*(1-H))+","+Math.round(B[2]+(X[2]-B[2])*(1-H))+(U?","+(B[3]+(X[3]-B[3])*(1-H)):"")+")"}}return q.names={white:"#ffffff",black:"#000000"},q.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(Z){return[J(Z[1]),J(Z[2]),J(Z[3]),parseFloat(Z[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(Z){return[J(Z[1]),J(Z[2]),J(Z[3]),1]}}],q.None=new q(""),q}),y(m,"Core/Animation/Fx.js",[m["Core/Color/Color.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j,et){let{parse:K}=R,{win:J}=j,{isNumber:q,objectEach:Z}=et;class tt{constructor(X,B,U){this.pos=NaN,this.options=B,this.elem=X,this.prop=U}dSetter(){let X=this.paths,B=X&&X[0],U=X&&X[1],d=this.now||0,L=[];if(d!==1&&B&&U)if(B.length===U.length&&d<1)for(let M=0;M=w+this.startTime?(this.now=this.end,this.pos=1,this.update(),_[this.prop]=!0,U=!0,Z(_,function(o){o!==!0&&(U=!1)}),U&&s&&s.call(M),B=!1):(this.pos=L.easing((d-this.startTime)/w),this.now=this.start+(this.end-this.start)*this.pos,this.update(),B=!0),B}initPath(X,B,U){let d=X.startX,L=X.endX,M=U.slice(),s=X.isArea,w=s?2:1,_=B&&U.length>B.length&&U.hasStackedCliffs,o,u,C,E,S=B&&B.slice();if(!S||_)return[M,M];function v(x,p){for(;x.length{let C=B(u.options.animation);_=Z(L)&&et(L.defer)?s.defer:Math.max(_,C.duration+C.defer),o=Math.min(s.duration,C.duration)}),d.renderer.forExport&&(_=0),{defer:Math.max(0,_-o),duration:Math.min(_,o)}},setAnimation:function(d,L){L.renderer.globalAnimation=X(d,L.options.chart.animation,!0)},stop:U}}),y(m,"Core/Renderer/HTML/AST.js",[m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j){let{SVG_NS:et,win:K}=R,{attr:J,createElement:q,css:Z,error:tt,isFunction:H,isString:X,objectEach:B,splat:U}=j,{trustedTypes:d}=K,L=d&&H(d.createPolicy)&&d.createPolicy("highcharts",{createHTML:_=>_}),M=L?L.createHTML(""):"",s=function(){try{return!!new DOMParser().parseFromString(M,"text/html")}catch(_){return!1}}();class w{static filterUserAttributes(o){return B(o,(u,C)=>{let E=!0;w.allowedAttributes.indexOf(C)===-1&&(E=!1),["background","dynsrc","href","lowsrc","src"].indexOf(C)!==-1&&(E=X(u)&&w.allowedReferences.some(S=>u.indexOf(S)===0)),E||(tt(33,!1,void 0,{"Invalid attribute in config":`${C}`}),delete o[C]),X(u)&&o[C]&&(o[C]=u.replace(/{let E=C.split(":").map(v=>v.trim()),S=E.shift();return S&&E.length&&(u[S.replace(/-([a-z])/g,v=>v[1].toUpperCase())]=E.join(":")),u},{})}static setElementHTML(o,u){o.innerHTML=w.emptyHTML,u&&new w(u).addToDOM(o)}constructor(o){this.nodes=typeof o=="string"?this.parseMarkup(o):o}addToDOM(o){return function u(C,E){let S;return U(C).forEach(function(v){let g,x=v.tagName,p=v.textContent?R.doc.createTextNode(v.textContent):void 0,l=w.bypassHTMLFiltering;if(x)if(x==="#text")g=p;else if(w.allowedTags.indexOf(x)!==-1||l){let f=x==="svg"?et:E.namespaceURI||et,b=R.doc.createElementNS(f,x),F=v.attributes||{};B(v,function(T,k){k!=="tagName"&&k!=="attributes"&&k!=="children"&&k!=="style"&&k!=="textContent"&&(F[k]=T)}),J(b,l?F:w.filterUserAttributes(F)),v.style&&Z(b,v.style),p&&b.appendChild(p),u(v.children||[],b),g=b}else tt(33,!1,void 0,{"Invalid tagName in config":x});g&&E.appendChild(g),S=g}),S}(this.nodes,o)}parseMarkup(o){let u,C=[];if(o=o.trim().replace(/ style=(["'])/g," data-style=$1"),s)u=new DOMParser().parseFromString(L?L.createHTML(o):o,"text/html");else{let S=q("div");S.innerHTML=o,u={body:S}}let E=(S,v)=>{let g=S.nodeName.toLowerCase(),x={tagName:g};g==="#text"&&(x.textContent=S.textContent||"");let p=S.attributes;if(p){let l={};[].forEach.call(p,f=>{f.name==="data-style"?x.style=w.parseStyle(f.value):l[f.name]=f.value}),x.attributes=l}if(S.childNodes.length){let l=[];[].forEach.call(S.childNodes,f=>{E(f,l)}),l.length&&(x.children=l)}v.push(x)};return[].forEach.call(u.body.childNodes,S=>E(S,C)),C}}return w.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","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","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","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],w.allowedReferences=["https://","http://","mailto:","/","../","./","#"],w.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","feOffset","feMerge","feMergeNode","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","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],w.emptyHTML=M,w.bypassHTMLFiltering=!1,w}),y(m,"Core/Templating.js",[m["Core/Defaults.js"],m["Core/Utilities.js"]],function(R,j){let{defaultOptions:et,defaultTime:K}=R,{extend:J,getNestedProperty:q,isArray:Z,isNumber:tt,isObject:H,pick:X,pInt:B}=j,U={add:(M,s)=>M+s,divide:(M,s)=>s!==0?M/s:"",eq:(M,s)=>M==s,each:function(M){let s=arguments[arguments.length-1];return!!Z(M)&&M.map((w,_)=>d(s.body,J(H(w)?w:{"@this":w},{"@index":_,"@first":_===0,"@last":_===M.length-1}))).join("")},ge:(M,s)=>M>=s,gt:(M,s)=>M>s,if:M=>!!M,le:(M,s)=>M<=s,lt:(M,s)=>MM*s,ne:(M,s)=>M!=s,subtract:(M,s)=>M-s,unless:M=>!M};function d(M="",s,w){let _=/\{([\w\:\.\,;\-\/<>%@"'’= #\(\)]+)\}/g,o=/\(([\w\:\.\,;\-\/<>%@"'= ]+)\)/g,u=[],C=/f$/,E=/\.(\d)/,S=et.lang,v=w&&w.time||K,g=w&&w.numberFormatter||L,x=(F="")=>{let T;return F==="true"||F!=="false"&&((T=Number(F)).toString()===F?T:q(F,s))},p,l,f=0,b;for(;(p=_.exec(M))!==null;){let F=o.exec(p[1]);F&&(p=F,b=!0),l&&l.isBlock||(l={ctx:s,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 T=p[1].split(" ")[0].replace("#","");U[T]&&(l.isBlock&&T===l.fn&&f++,l.fn||(l.fn=T));let k=p[1]==="else";if(l.isBlock&&l.fn&&(p[1]===`/${l.fn}`||k))if(f)!k&&f--;else{let Q=l.startInner,st=M.substr(Q,p.index-Q);l.body===void 0?(l.body=st,l.startInner=p.index+p[0].length):l.elseBody=st,l.find+=st+p[0],k||(u.push(l),l=void 0)}else l.isBlock||u.push(l);if(F&&!(l!=null&&l.isBlock))break}return u.forEach(F=>{let T,k,{body:Q,elseBody:st,expression:nt,fn:dt}=F;if(dt){let mt=[F],Et=nt.split(" ");for(k=U[dt].length;k--;)mt.unshift(x(Et[k+1]));T=U[dt].apply(s,mt),F.isBlock&&typeof T=="boolean"&&(T=d(T?Q:st,s,w))}else{let mt=nt.split(":");if(T=x(mt.shift()||""),mt.length&&typeof T=="number"){let Et=mt.join(":");if(C.test(Et)){let Mt=parseInt((Et.match(E)||["","-1"])[1],10);T!==null&&(T=g(T,Mt,S.decimalPoint,Et.indexOf(",")>-1?S.thousandsSep:""))}else T=v.dateFormat(Et,T)}}M=M.replace(F.find,X(T,""))}),b?d(M,s,w):M}function L(M,s,w,_){let o,u;M=+M||0,s=+s;let C=et.lang,E=(M.toString().split(".")[1]||"").split("e")[0].length,S=M.toString().split("e"),v=s;s===-1?s=Math.min(E,20):tt(s)?s&&S[1]&&S[1]<0&&((u=s+ +S[1])>=0?(S[0]=(+S[0]).toExponential(u).split("e")[0],s=u):(S[0]=S[0].split(".")[0]||0,M=s<20?(S[0]*Math.pow(10,S[1])).toFixed(s):0,S[1]=0)):s=2;let g=(Math.abs(S[1]?S[0]:M)+Math.pow(10,-Math.max(s,E)-1)).toFixed(s),x=String(B(g)),p=x.length>3?x.length%3:0;return w=X(w,C.decimalPoint),_=X(_,C.thousandsSep),o=(M<0?"-":"")+(p?x.substr(0,p)+_:""),0>+S[1]&&!v?o="0":o+=x.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+_),s?o+=w+g.slice(-s):+o==0&&(o="0"),S[1]&&+o!=0&&(o+="e"+S[1]),o}return{dateFormat:function(M,s,w){return K.dateFormat(M,s,w)},format:d,helpers:U,numberFormat:L}}),y(m,"Core/Renderer/RendererRegistry.js",[m["Core/Globals.js"]],function(R){var j,et;let K;return(et=j||(j={})).rendererTypes={},et.getRendererType=function(J=K){return et.rendererTypes[J]||et.rendererTypes[K]},et.registerRendererType=function(J,q,Z){et.rendererTypes[J]=q,(!K||Z)&&(K=J,R.Renderer=q)},j}),y(m,"Core/Renderer/RendererUtilities.js",[m["Core/Utilities.js"]],function(R){var j;let{clamp:et,pick:K,pushUnique:J,stableSort:q}=R;return(j||(j={})).distribute=function Z(tt,H,X){let B=tt,U=B.reducedLen||H,d=(x,p)=>x.target-p.target,L=[],M=tt.length,s=[],w=L.push,_,o,u,C=!0,E,S,v=0,g;for(_=M;_--;)v+=tt[_].size;if(v>U){for(q(tt,(x,p)=>(p.rank||0)-(x.rank||0)),u=(g=tt[0].rank===tt[tt.length-1].rank)?M/2:-1,o=g?u:M-1;u&&v>U;)E=tt[_=Math.floor(o)],J(s,_)&&(v-=E.size),o+=u,g&&o>=tt.length&&(u/=2,o=u);s.sort((x,p)=>p-x).forEach(x=>w.apply(L,tt.splice(x,1)))}for(q(tt,d),tt=tt.map(x=>({size:x.size,targets:[x.target],align:K(x.align,.5)}));C;){for(_=tt.length;_--;)E=tt[_],S=(Math.min.apply(0,E.targets)+Math.max.apply(0,E.targets))/2,E.pos=et(S-E.size*E.align,0,H-E.size);for(_=tt.length,C=!1;_--;)_>0&&tt[_-1].pos+tt[_-1].size>tt[_].pos&&(tt[_-1].size+=tt[_].size,tt[_-1].targets=tt[_-1].targets.concat(tt[_].targets),tt[_-1].align=.5,tt[_-1].pos+tt[_-1].size>H&&(tt[_-1].pos=H-tt[_-1].size),tt.splice(_,1),C=!0)}return w.apply(B,L),_=0,tt.some(x=>{let p=0;return(x.targets||[]).some(()=>(B[_].pos=x.pos+p,X!==void 0&&Math.abs(B[_].pos-B[_].target)>X?(B.slice(0,_+1).forEach(l=>delete l.pos),B.reducedLen=(B.reducedLen||H)-.1*H,B.reducedLen>.1*H&&Z(B,H,X),!0):(p+=B[_].size,_++,!1)))}),q(B,d),B},j}),y(m,"Core/Renderer/SVG/SVGElement.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Color/Color.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j,et,K){let{animate:J,animObject:q,stop:Z}=R,{deg2rad:tt,doc:H,svg:X,SVG_NS:B,win:U}=et,{addEvent:d,attr:L,createElement:M,crisp:s,css:w,defined:_,erase:o,extend:u,fireEvent:C,isArray:E,isFunction:S,isObject:v,isString:g,merge:x,objectEach:p,pick:l,pInt:f,pushUnique:b,replaceNested:F,syncTimeout:T,uniqueKey:k}=K;class Q{_defaultGetter(nt){let dt=l(this[nt+"Value"],this[nt],this.element?this.element.getAttribute(nt):null,0);return/^-?[\d\.]+$/.test(dt)&&(dt=parseFloat(dt)),dt}_defaultSetter(nt,dt,mt){mt.setAttribute(dt,nt)}add(nt){let dt,mt=this.renderer,Et=this.element;return nt&&(this.parentGroup=nt),this.textStr!==void 0&&this.element.nodeName==="text"&&mt.buildText(this),this.added=!0,(!nt||nt.handleZ||this.zIndex)&&(dt=this.zIndexSetter()),dt||(nt?nt.element:mt.box).appendChild(Et),this.onAdd&&this.onAdd(),this}addClass(nt,dt){let mt=dt?"":this.attr("class")||"";return(nt=(nt||"").split(/ /g).reduce(function(Et,Mt){return mt.indexOf(Mt)===-1&&Et.push(Mt),Et},mt?[mt]:[]).join(" "))!==mt&&this.attr("class",nt),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(nt,dt,mt,Et=!0){let Mt,I,Y,rt,ot={},D=this.renderer,P=D.alignedObjects,W=!!nt;nt?(this.alignOptions=nt,this.alignByTranslate=dt,this.alignTo=mt):(nt=this.alignOptions||{},dt=this.alignByTranslate,mt=this.alignTo);let lt=!mt||g(mt)?mt||"renderer":void 0;lt&&(W&&b(P,this),mt=void 0);let it=l(mt,D[lt],D),vt=nt.align,pt=nt.verticalAlign;return Mt=(it.x||0)+(nt.x||0),I=(it.y||0)+(nt.y||0),vt==="right"?Y=1:vt==="center"&&(Y=2),Y&&(Mt+=((it.width||0)-(nt.width||0))/Y),ot[dt?"translateX":"x"]=Math.round(Mt),pt==="bottom"?rt=1:pt==="middle"&&(rt=2),rt&&(I+=((it.height||0)-(nt.height||0))/rt),ot[dt?"translateY":"y"]=Math.round(I),Et&&(this[this.placed?"animate":"attr"](ot),this.placed=!0),this.alignAttr=ot,this}alignSetter(nt){let dt={left:"start",center:"middle",right:"end"};dt[nt]&&(this.alignValue=nt,this.element.setAttribute("text-anchor",dt[nt]))}animate(nt,dt,mt){let Et=q(l(dt,this.renderer.globalAnimation,!0)),Mt=Et.defer;return H.hidden&&(Et.duration=0),Et.duration!==0?(mt&&(Et.complete=mt),T(()=>{this.element&&J(this,nt,Et)},Mt)):(this.attr(nt,void 0,mt||Et.complete),p(nt,function(I,Y){Et.step&&Et.step.call(this,I,{prop:Y,pos:1,elem:this})},this)),this}applyTextOutline(nt){let dt=this.element;nt.indexOf("contrast")!==-1&&(nt=nt.replace(/contrast/g,this.renderer.getContrast(dt.style.fill)));let mt=nt.split(" "),Et=mt[mt.length-1],Mt=mt[0];if(Mt&&Mt!=="none"&&et.svg){this.fakeTS=!0,Mt=Mt.replace(/(^[\d\.]+)(.*?)$/g,function(D,P,W){return 2*Number(P)+W}),this.removeTextOutline();let I=H.createElementNS(B,"tspan");L(I,{class:"highcharts-text-outline",fill:Et,stroke:Et,"stroke-width":Mt,"stroke-linejoin":"round"});let Y=dt.querySelector("textPath")||dt;[].forEach.call(Y.childNodes,D=>{let P=D.cloneNode(!0);P.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(W=>P.removeAttribute(W)),I.appendChild(P)});let rt=0;[].forEach.call(Y.querySelectorAll("text tspan"),D=>{rt+=Number(D.getAttribute("dy"))});let ot=H.createElementNS(B,"tspan");ot.textContent="\u200B",L(ot,{x:Number(dt.getAttribute("x")),dy:-rt}),I.appendChild(ot),Y.insertBefore(I,Y.firstChild)}}attr(nt,dt,mt,Et){let{element:Mt}=this,I=Q.symbolCustomAttribs,Y,rt,ot=this,D;return typeof nt=="string"&&dt!==void 0&&(Y=nt,(nt={})[Y]=dt),typeof nt=="string"?ot=(this[nt+"Getter"]||this._defaultGetter).call(this,nt,Mt):(p(nt,function(P,W){D=!1,Et||Z(this,W),this.symbolName&&I.indexOf(W)!==-1&&(rt||(this.symbolAttr(nt),rt=!0),D=!0),this.rotation&&(W==="x"||W==="y")&&(this.doTransform=!0),D||(this[W+"Setter"]||this._defaultSetter).call(this,P,W,Mt)},this),this.afterSetters()),mt&&mt.call(this),ot}clip(nt){if(nt&&!nt.clipPath){let dt=k()+"-",mt=this.renderer.createElement("clipPath").attr({id:dt}).add(this.renderer.defs);u(nt,{clipPath:mt,id:dt,count:0}),nt.add(mt)}return this.attr("clip-path",nt?`url(${this.renderer.url}#${nt.id})`:"none")}crisp(nt,dt){dt=Math.round(dt||nt.strokeWidth||0);let mt=nt.x||this.x||0,Et=nt.y||this.y||0,Mt=(nt.width||this.width||0)+mt,I=(nt.height||this.height||0)+Et,Y=s(mt,dt),rt=s(Et,dt);return u(nt,{x:Y,y:rt,width:s(Mt,dt)-Y,height:s(I,dt)-rt}),_(nt.strokeWidth)&&(nt.strokeWidth=dt),nt}complexColor(nt,dt,mt){let Et=this.renderer,Mt,I,Y,rt,ot,D,P,W,lt,it,vt=[],pt;C(this.renderer,"complexColor",{args:arguments},function(){if(nt.radialGradient?I="radialGradient":nt.linearGradient&&(I="linearGradient"),I){if(Y=nt[I],ot=Et.gradients,D=nt.stops,lt=mt.radialReference,E(Y)&&(nt[I]=Y={x1:Y[0],y1:Y[1],x2:Y[2],y2:Y[3],gradientUnits:"userSpaceOnUse"}),I==="radialGradient"&<&&!_(Y.gradientUnits)&&(rt=Y,Y=x(Y,Et.getRadialAttr(lt,rt),{gradientUnits:"userSpaceOnUse"})),p(Y,function(xt,Ct){Ct!=="id"&&vt.push(Ct,xt)}),p(D,function(xt){vt.push(xt)}),ot[vt=vt.join(",")])it=ot[vt].attr("id");else{Y.id=it=k();let xt=ot[vt]=Et.createElement(I).attr(Y).add(Et.defs);xt.radAttr=rt,xt.stops=[],D.forEach(function(Ct){Ct[1].indexOf("rgba")===0?(P=(Mt=j.parse(Ct[1])).get("rgb"),W=Mt.get("a")):(P=Ct[1],W=1);let Tt=Et.createElement("stop").attr({offset:Ct[0],"stop-color":P,"stop-opacity":W}).add(xt);xt.stops.push(Tt)})}pt="url("+Et.url+"#"+it+")",mt.setAttribute(dt,pt),mt.gradient=vt,nt.toString=function(){return pt}}})}css(nt){let dt=this.styles,mt={},Et=this.element,Mt,I=!dt;if(dt&&p(nt,function(Y,rt){dt&&dt[rt]!==Y&&(mt[rt]=Y,I=!0)}),I){dt&&(nt=u(dt,mt)),nt.width===null||nt.width==="auto"?delete this.textWidth:Et.nodeName.toLowerCase()==="text"&&nt.width&&(Mt=this.textWidth=f(nt.width)),u(this.styles,nt),Mt&&!X&&this.renderer.forExport&&delete nt.width;let Y=x(nt);Et.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(rt=>Y&&delete Y[rt]),Y.color&&(Y.fill=Y.color)),w(Et,Y)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),nt.textOutline&&this.applyTextOutline(nt.textOutline)),this}dashstyleSetter(nt){let dt,mt=this["stroke-width"];if(mt==="inherit"&&(mt=1),nt=nt&&nt.toLowerCase()){let Et=nt.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(dt=Et.length;dt--;)Et[dt]=""+f(Et[dt])*l(mt,NaN);nt=Et.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",nt)}}destroy(){var rt;let nt=this,dt=nt.element||{},mt=nt.renderer,Et=dt.ownerSVGElement,Mt=dt.nodeName==="SPAN"&&nt.parentGroup||void 0,I,Y;if(dt.onclick=dt.onmouseout=dt.onmouseover=dt.onmousemove=dt.point=null,Z(nt),nt.clipPath&&Et){let ot=nt.clipPath;[].forEach.call(Et.querySelectorAll("[clip-path],[CLIP-PATH]"),function(D){D.getAttribute("clip-path").indexOf(ot.element.id)>-1&&D.removeAttribute("clip-path")}),nt.clipPath=ot.destroy()}if(nt.connector=(rt=nt.connector)==null?void 0:rt.destroy(),nt.stops){for(Y=0;YMt&&Mt.join?(I?Et+" ":"")+Mt.join(" "):(Mt||"").toString(),"")),/(NaN| {2}|^$)/.test(nt)&&(nt="M 0 0"),this[dt]!==nt&&(mt.setAttribute(dt,nt),this[dt]=nt)}fillSetter(nt,dt,mt){typeof nt=="string"?mt.setAttribute(dt,nt):nt&&this.complexColor(nt,dt,mt)}hrefSetter(nt,dt,mt){mt.setAttributeNS("http://www.w3.org/1999/xlink",dt,nt)}getBBox(nt,dt){let mt,Et,Mt,I,{alignValue:Y,element:rt,renderer:ot,styles:D,textStr:P}=this,{cache:W,cacheKeys:lt}=ot,it=rt.namespaceURI===this.SVG_NS,vt=l(dt,this.rotation,0),pt=ot.styledMode?rt&&Q.prototype.getStyle.call(rt,"font-size"):D.fontSize;if(_(P)&&((I=P.toString()).indexOf("<")===-1&&(I=I.replace(/\d/g,"0")),I+=["",ot.rootFontSize,pt,vt,this.textWidth,Y,D.textOverflow,D.fontWeight].join(",")),I&&!nt&&(mt=W[I]),!mt||mt.polygon){if(it||ot.forExport){try{Mt=this.fakeTS&&function(Ct){let Tt=rt.querySelector(".highcharts-text-outline");Tt&&w(Tt,{display:Ct})},S(Mt)&&Mt("none"),mt=rt.getBBox?u({},rt.getBBox()):{width:rt.offsetWidth,height:rt.offsetHeight,x:0,y:0},S(Mt)&&Mt("")}catch(Ct){}(!mt||mt.width<0)&&(mt={x:0,y:0,width:0,height:0})}else mt=this.htmlGetBBox();Et=mt.height,it&&(mt.height=Et={"11px,17":14,"13px,20":16}[`${pt||""},${Math.round(Et)}`]||Et),vt&&(mt=this.getRotatedBox(mt,vt));let xt={bBox:mt};C(this,"afterGetBBox",xt),mt=xt.bBox}if(I&&(P===""||mt.height>0)){for(;lt.length>250;)delete W[lt.shift()];W[I]||lt.push(I),W[I]=mt}return mt}getRotatedBox(nt,dt){let{x:mt,y:Et,width:Mt,height:I}=nt,{alignValue:Y,translateY:rt,rotationOriginX:ot=0,rotationOriginY:D=0}=this,P={right:1,center:.5}[Y||0]||0,W=Number(this.element.getAttribute("y")||0)-(rt?0:Et),lt=dt*tt,it=(dt-90)*tt,vt=Math.cos(lt),pt=Math.sin(lt),xt=Mt*vt,Ct=Mt*pt,Tt=Math.cos(it),Nt=Math.sin(it),[[gt,wt],[Rt,jt]]=[ot,D].map(te=>[te-te*vt,te*pt]),Zt=mt+P*(Mt-xt)+gt+jt+W*Tt,ne=Zt+xt,Wt=ne-I*Tt,le=Wt-xt,de=Et+W-P*Ct-wt+Rt+W*Nt,xe=de+Ct,be=xe-I*Nt,Ye=be-Ct,tn=Math.min(Zt,ne,Wt,le),an=Math.min(de,xe,be,Ye),Jt=Math.max(Zt,ne,Wt,le)-tn,Kt=Math.max(de,xe,be,Ye)-an;return{x:tn,y:an,width:Jt,height:Kt,polygon:[[Zt,de],[ne,xe],[Wt,be],[le,Ye]]}}getStyle(nt){return U.getComputedStyle(this.element||this,"").getPropertyValue(nt)}hasClass(nt){return(""+this.attr("class")).split(" ").indexOf(nt)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(nt,dt){this.onEvents={},this.opacity=1,this.SVG_NS=B,this.element=dt==="span"||dt==="body"?M(dt):H.createElementNS(this.SVG_NS,dt),this.renderer=nt,this.styles={},C(this,"afterInit")}on(nt,dt){let{onEvents:mt}=this;return mt[nt]&&mt[nt](),mt[nt]=d(this.element,nt,dt),this}opacitySetter(nt,dt,mt){let Et=Number(Number(nt).toFixed(3));this.opacity=Et,mt.setAttribute(dt,Et)}reAlign(){var nt;(nt=this.alignOptions)!=null&&nt.width&&this.alignOptions.align!=="left"&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(nt){return this.attr("class",(""+this.attr("class")).replace(g(nt)?RegExp(`(^| )${nt}( |$)`):nt," ").replace(/ +/g," ").trim())}removeTextOutline(){let nt=this.element.querySelector("tspan.highcharts-text-outline");nt&&this.safeRemoveChild(nt)}safeRemoveChild(nt){let dt=nt.parentNode;dt&&dt.removeChild(nt)}setRadialReference(nt){let dt=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=nt,dt&&dt.radAttr&&dt.animate(this.renderer.getRadialAttr(nt,dt.radAttr)),this}shadow(nt){var Mt;let{renderer:dt}=this,mt=x(((Mt=this.parentGroup)==null?void 0:Mt.rotation)===90?{offsetX:-1,offsetY:-1}:{},v(nt)?nt:{}),Et=dt.shadowDefinition(mt);return this.attr({filter:nt?`url(${dt.url}#${Et})`:"none"})}show(nt=!0){return this.attr({visibility:nt?"inherit":"visible"})}"stroke-widthSetter"(nt,dt,mt){this[dt]=nt,mt.setAttribute(dt,nt)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let nt=this.getStyle("stroke-width"),dt=0,mt;return/px$/.test(nt)?dt=f(nt):nt!==""&&(L(mt=H.createElementNS(B,"rect"),{width:nt,"stroke-width":0}),this.element.parentNode.appendChild(mt),dt=mt.getBBox().width,mt.parentNode.removeChild(mt)),dt}symbolAttr(nt){let dt=this;Q.symbolCustomAttribs.forEach(function(mt){dt[mt]=l(nt[mt],dt[mt])}),dt.attr({d:dt.renderer.symbols[dt.symbolName](dt.x,dt.y,dt.width,dt.height,dt)})}textSetter(nt){nt!==this.textStr&&(delete this.textPxLength,this.textStr=nt,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(nt){let dt=this.element,mt=dt.getElementsByTagName("title")[0]||H.createElementNS(this.SVG_NS,"title");dt.insertBefore?dt.insertBefore(mt,dt.firstChild):dt.appendChild(mt),mt.textContent=F(l(nt,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){let nt=this.element;return nt.parentNode.appendChild(nt),this}translate(nt,dt){return this.attr({translateX:nt,translateY:dt})}updateTransform(nt="transform"){var W;let{element:dt,matrix:mt,rotation:Et=0,rotationOriginX:Mt,rotationOriginY:I,scaleX:Y,scaleY:rt,translateX:ot=0,translateY:D=0}=this,P=["translate("+ot+","+D+")"];_(mt)&&P.push("matrix("+mt.join(",")+")"),Et&&(P.push("rotate("+Et+" "+l(Mt,dt.getAttribute("x"),0)+" "+l(I,dt.getAttribute("y")||0)+")"),((W=this.text)==null?void 0:W.element.tagName)==="SPAN"&&this.text.attr({rotation:Et,rotationOriginX:(Mt||0)-this.padding,rotationOriginY:(I||0)-this.padding})),(_(Y)||_(rt))&&P.push("scale("+l(Y,1)+" "+l(rt,1)+")"),P.length&&!(this.text||this).textPath&&dt.setAttribute(nt,P.join(" "))}visibilitySetter(nt,dt,mt){nt==="inherit"?mt.removeAttribute(dt):this[dt]!==nt&&mt.setAttribute(dt,nt),this[dt]=nt}xGetter(nt){return this.element.nodeName==="circle"&&(nt==="x"?nt="cx":nt==="y"&&(nt="cy")),this._defaultGetter(nt)}zIndexSetter(nt,dt){let mt=this.renderer,Et=this.parentGroup,Mt=(Et||mt).element||mt.box,I=this.element,Y=Mt===mt.box,rt,ot,D,P=!1,W,lt=this.added,it;if(_(nt)?(I.setAttribute("data-z-index",nt),nt=+nt,this[dt]===nt&&(lt=!1)):_(this[dt])&&I.removeAttribute("data-z-index"),this[dt]=nt,lt){for((nt=this.zIndex)&&Et&&(Et.handleZ=!0),it=(rt=Mt.childNodes).length-1;it>=0&&!P;it--)W=!_(D=(ot=rt[it]).getAttribute("data-z-index")),ot!==I&&(nt<0&&W&&!Y&&!it?(Mt.insertBefore(I,rt[it]),P=!0):(f(D)<=nt||W&&(!_(nt)||nt>=0))&&(Mt.insertBefore(I,rt[it+1]),P=!0));P||(Mt.insertBefore(I,rt[Y?3:0]),P=!0)}return P}}return Q.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],Q.prototype.strokeSetter=Q.prototype.fillSetter,Q.prototype.yGetter=Q.prototype.xGetter,Q.prototype.matrixSetter=Q.prototype.rotationOriginXSetter=Q.prototype.rotationOriginYSetter=Q.prototype.rotationSetter=Q.prototype.scaleXSetter=Q.prototype.scaleYSetter=Q.prototype.translateXSetter=Q.prototype.translateYSetter=Q.prototype.verticalAlignSetter=function(st,nt){this[nt]=st,this.doTransform=!0},Q}),y(m,"Core/Renderer/SVG/SVGLabel.js",[m["Core/Renderer/SVG/SVGElement.js"],m["Core/Utilities.js"]],function(R,j){let{defined:et,extend:K,isNumber:J,merge:q,pick:Z,removeEvent:tt}=j;class H extends R{constructor(B,U,d,L,M,s,w,_,o,u){let C;super(B,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=U,this.x=d,this.y=L,this.anchorX=s,this.anchorY=w,this.baseline=o,this.className=u,this.addClass(u==="button"?"highcharts-no-tooltip":"highcharts-label"),u&&this.addClass("highcharts-"+u),this.text=B.text(void 0,0,0,_).attr({zIndex:1}),typeof M=="string"&&((C=/^url\((.*?)\)$/.test(M))||this.renderer.symbols[M])&&(this.symbolKey=M),this.bBox=H.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=B.styledMode||C,this.deferredAttr={},this.alignFactor=0}alignSetter(B){let U={left:0,center:.5,right:1}[B];U!==this.alignFactor&&(this.alignFactor=U,this.bBox&&J(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(B,U){this.anchorX=B,this.boxAttr(U,Math.round(B)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(B,U){this.anchorY=B,this.boxAttr(U,B-this.ySetting)}boxAttr(B,U){this.box?this.box.attr(B,U):this.deferredAttr[B]=U}css(B){if(B){let U={};B=q(B),H.textProps.forEach(d=>{B[d]!==void 0&&(U[d]=B[d],delete B[d])}),this.text.css(U),"fontSize"in U||"fontWeight"in U?this.updateTextPadding():("width"in U||"textOverflow"in U)&&this.updateBoxSize()}return R.prototype.css.call(this,B)}destroy(){tt(this.element,"mouseenter"),tt(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),R.prototype.destroy.call(this)}fillSetter(B,U){B&&(this.needsBox=!0),this.fill=B,this.boxAttr(U,B)}getBBox(B,U){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();let{padding:d,height:L=0,translateX:M=0,translateY:s=0,width:w=0}=this,_=Z(this.paddingLeft,d),o=U!=null?U:this.rotation||0,u={width:w,height:L,x:M+this.bBox.x-_,y:s+this.bBox.y-d+this.baselineOffset};return o&&(u=this.getRotatedBox(u,o)),u}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(B){this.heightSetting=B,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:Z(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&et(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(B,U){J(B)?B!==this[U]&&(this[U]=B,this.updateTextPadding()):this[U]=void 0}rSetter(B,U){this.boxAttr(U,B)}strokeSetter(B,U){this.stroke=B,this.boxAttr(U,B)}"stroke-widthSetter"(B,U){B&&(this.needsBox=!0),this["stroke-width"]=B,this.boxAttr(U,B)}"text-alignSetter"(B){this.textAlign=B}textSetter(B){B!==void 0&&this.text.attr({text:B}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let B,U=this.text,d={},L=this.padding,M=this.bBox=(!J(this.widthSetting)||!J(this.heightSetting)||this.textAlign)&&et(U.textStr)?U.getBBox(void 0,0):H.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||M.height||0)+2*L;let s=this.renderer.fontMetrics(U);if(this.baselineOffset=L+Math.min((this.text.firstLineMetrics||s).b,M.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-s.h)/2),this.needsBox&&!U.textPath){if(!this.box){let w=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();w.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),w.add(this)}B=this.getCrispAdjust(),d.x=B,d.y=(this.baseline?-this.baselineOffset:0)+B,d.width=Math.round(this.width),d.height=Math.round(this.height),this.box.attr(K(d,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let B=this.text;if(!B.textPath){this.updateBoxSize();let U=this.baseline?0:this.baselineOffset,d=Z(this.paddingLeft,this.padding);et(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(d+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(d!==B.x||U!==B.y)&&(B.attr("x",d),B.hasBoxWidthChanged&&(this.bBox=B.getBBox(!0)),U!==void 0&&B.attr("y",U)),B.x=d,B.y=U}}widthSetter(B){this.widthSetting=J(B)?B:void 0,this.doUpdate=!0}getPaddedWidth(){let B=this.padding,U=Z(this.paddingLeft,B),d=Z(this.paddingRight,B);return(this.widthSetting||this.bBox.width||0)+U+d}xSetter(B){this.x=B,this.alignFactor&&(B-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(B),this.attr("translateX",this.xSetting)}ySetter(B){this.ySetting=this.y=Math.round(B),this.attr("translateY",this.ySetting)}}return H.emptyBBox={width:0,height:0,x:0,y:0},H.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],H}),y(m,"Core/Renderer/SVG/Symbols.js",[m["Core/Utilities.js"]],function(R){let{defined:j,isNumber:et,pick:K}=R;function J(tt,H,X,B,U){let d=[];if(U){let L=U.start||0,M=K(U.r,X),s=K(U.r,B||X),w=2e-4/(U.borderRadius?1:Math.max(M,1)),_=Math.abs((U.end||0)-L-2*Math.PI)0&&s0)return w;if(tt+M>X-L)if(s>H+L&&sH+L&&s0){let _=sB&&ML&&w.splice(1,1,["L",M-6,H],["L",M,H-6],["L",M+6,H],["L",X-d,H]);return w},circle:function(tt,H,X,B){return J(tt+X/2,H+B/2,X/2,B/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(tt,H,X,B){return[["M",tt+X/2,H],["L",tt+X,H+B/2],["L",tt+X/2,H+B],["L",tt,H+B/2],["Z"]]},rect:q,roundedRect:Z,square:q,triangle:function(tt,H,X,B){return[["M",tt+X/2,H],["L",tt+X,H+B],["L",tt,H+B],["Z"]]},"triangle-down":function(tt,H,X,B){return[["M",tt,H],["L",tt+X,H],["L",tt+X/2,H+B],["Z"]]}}}),y(m,"Core/Renderer/SVG/TextBuilder.js",[m["Core/Renderer/HTML/AST.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j,et){let{doc:K,SVG_NS:J,win:q}=j,{attr:Z,extend:tt,fireEvent:H,isString:X,objectEach:B,pick:U}=et;return class{constructor(d){let L=d.styles;this.renderer=d.renderer,this.svgElement=d,this.width=d.textWidth,this.textLineHeight=L&&L.lineHeight,this.textOutline=L&&L.textOutline,this.ellipsis=!!(L&&L.textOverflow==="ellipsis"),this.noWrap=!!(L&&L.whiteSpace==="nowrap")}buildSVG(){let d=this.svgElement,L=d.element,M=d.renderer,s=U(d.textStr,"").toString(),w=s.indexOf("<")!==-1,_=L.childNodes,o=!d.added&&M.box,u=[s,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,d.getStyle("font-size"),this.width].join(",");if(u!==d.textCache){d.textCache=u,delete d.actualWidth;for(let C=_.length;C--;)L.removeChild(_[C]);if(w||this.ellipsis||this.width||d.textPath||s.indexOf(" ")!==-1&&(!this.noWrap||//g.test(s))){if(s!==""){o&&o.appendChild(L);let C=new R(s);this.modifyTree(C.nodes),C.addToDOM(L),this.modifyDOM(),this.ellipsis&&(L.textContent||"").indexOf("\u2026")!==-1&&d.attr("title",this.unescapeEntities(d.textStr||"",["<",">"])),o&&o.removeChild(L)}}else L.appendChild(K.createTextNode(this.unescapeEntities(s)));X(this.textOutline)&&d.applyTextOutline&&d.applyTextOutline(this.textOutline)}}modifyDOM(){let d,L=this.svgElement,M=Z(L.element,"x");for(L.firstLineMetrics=void 0;(d=L.element.firstChild)&&/^[\s\u200B]*$/.test(d.textContent||" ");)L.element.removeChild(d);[].forEach.call(L.element.querySelectorAll("tspan.highcharts-br"),(o,u)=>{o.nextSibling&&o.previousSibling&&(u===0&&o.previousSibling.nodeType===1&&(L.firstLineMetrics=L.renderer.fontMetrics(o.previousSibling)),Z(o,{dy:this.getLineHeight(o.nextSibling),x:M}))});let s=this.width||0;if(!s)return;let w=(o,u)=>{let C=o.textContent||"",E=C.replace(/([^\^])-/g,"$1- ").split(" "),S=!this.noWrap&&(E.length>1||L.element.childNodes.length>1),v=this.getLineHeight(u),g=0,x=L.actualWidth;if(this.ellipsis)C&&this.truncate(o,C,void 0,0,Math.max(0,s-.8*v),(p,l)=>p.substring(0,l)+"\u2026");else if(S){let p=[],l=[];for(;u.firstChild&&u.firstChild!==o;)l.push(u.firstChild),u.removeChild(u.firstChild);for(;E.length;)E.length&&!this.noWrap&&g>0&&(p.push(o.textContent||""),o.textContent=E.join(" ").replace(/- /g,"-")),this.truncate(o,void 0,E,g===0&&x||0,s,(f,b)=>E.slice(0,b).join(" ").replace(/- /g,"-")),x=L.actualWidth,g++;l.forEach(f=>{u.insertBefore(f,o)}),p.forEach(f=>{u.insertBefore(K.createTextNode(f),o);let b=K.createElementNS(J,"tspan");b.textContent="\u200B",Z(b,{dy:v,x:M}),u.insertBefore(b,o)})}},_=o=>{[].slice.call(o.childNodes).forEach(u=>{u.nodeType===q.Node.TEXT_NODE?w(u,o):(u.className.baseVal.indexOf("highcharts-br")!==-1&&(L.actualWidth=0),_(u))})};_(L.element)}getLineHeight(d){let L=d.nodeType===q.Node.TEXT_NODE?d.parentElement:d;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(L||this.svgElement.element).h}modifyTree(d){let L=(M,s)=>{let{attributes:w={},children:_,style:o={},tagName:u}=M,C=this.renderer.styledMode;if(u==="b"||u==="strong"?C?w.class="highcharts-strong":o.fontWeight="bold":(u==="i"||u==="em")&&(C?w.class="highcharts-emphasized":o.fontStyle="italic"),o&&o.color&&(o.fill=o.color),u==="br"){w.class="highcharts-br",M.textContent="\u200B";let E=d[s+1];E&&E.textContent&&(E.textContent=E.textContent.replace(/^ +/gm,""))}else u==="a"&&_&&_.some(E=>E.tagName==="#text")&&(M.children=[{children:_,tagName:"tspan"}]);u!=="#text"&&u!=="a"&&(M.tagName="tspan"),tt(M,{attributes:w,style:o}),_&&_.filter(E=>E.tagName!=="#text").forEach(L)};d.forEach(L),H(this.svgElement,"afterModifyTree",{nodes:d})}truncate(d,L,M,s,w,_){let o,u,C=this.svgElement,{rotation:E}=C,S=[],v=M?1:0,g=(L||M||"").length,x=g,p=function(l,f){let b=f||l,F=d.parentNode;if(F&&S[b]===void 0&&F.getSubStringLength)try{S[b]=s+F.getSubStringLength(0,M?b+1:b)}catch(T){}return S[b]};if(C.rotation=0,s+(u=p(d.textContent.length))>w){for(;v<=g;)x=Math.ceil((v+g)/2),M&&(o=_(M,x)),u=p(x,o&&o.length-1),v===g?v=g+1:u>w?g=x-1:v=x;g===0?d.textContent="":L&&g===L.length-1||(d.textContent=o||_(L||M,x))}M&&M.splice(0,x),C.actualWidth=u,C.rotation=E}unescapeEntities(d,L){return B(this.renderer.escapes,function(M,s){L&&L.indexOf(M)!==-1||(d=d.toString().replace(RegExp(M,"g"),s))}),d}}}),y(m,"Core/Renderer/SVG/SVGRenderer.js",[m["Core/Renderer/HTML/AST.js"],m["Core/Defaults.js"],m["Core/Color/Color.js"],m["Core/Globals.js"],m["Core/Renderer/RendererRegistry.js"],m["Core/Renderer/SVG/SVGElement.js"],m["Core/Renderer/SVG/SVGLabel.js"],m["Core/Renderer/SVG/Symbols.js"],m["Core/Renderer/SVG/TextBuilder.js"],m["Core/Utilities.js"]],function(R,j,et,K,J,q,Z,tt,H,X){let B,{defaultOptions:U}=j,{charts:d,deg2rad:L,doc:M,isFirefox:s,isMS:w,isWebKit:_,noop:o,SVG_NS:u,symbolSizes:C,win:E}=K,{addEvent:S,attr:v,createElement:g,crisp:x,css:p,defined:l,destroyObjectProperties:f,extend:b,isArray:F,isNumber:T,isObject:k,isString:Q,merge:st,pick:nt,pInt:dt,replaceNested:mt,uniqueKey:Et}=X;class Mt{constructor(Y,rt,ot,D,P,W,lt){let it,vt,pt=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),xt=pt.element;lt||pt.css(this.getStyle(D||{})),Y.appendChild(xt),v(Y,"dir","ltr"),Y.innerHTML.indexOf("xmlns")===-1&&v(xt,"xmlns",this.SVG_NS),this.box=xt,this.boxWrapper=pt,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(M.createTextNode("Created with Highcharts 11.4.8")),this.defs=this.createElement("defs").add(),this.allowHTML=W,this.forExport=P,this.styledMode=lt,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=pt.getStyle("font-size"),this.setSize(rt,ot,!1),s&&Y.getBoundingClientRect&&((it=function(){p(Y,{left:0,top:0}),vt=Y.getBoundingClientRect(),p(Y,{left:Math.ceil(vt.left)-vt.left+"px",top:Math.ceil(vt.top)-vt.top+"px"})})(),this.unSubPixelFix=S(E,"resize",it))}definition(Y){return new R([Y]).addToDOM(this.defs.element)}getReferenceURL(){if((s||_)&&M.getElementsByTagName("base").length){if(!l(B)){let Y=Et(),rt=new R([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:Y},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${Y})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(M.body);p(rt,{position:"fixed",top:0,left:0,zIndex:9e5});let ot=M.elementFromPoint(6,6);B=(ot&&ot.id)==="hitme",M.body.removeChild(rt)}if(B)return mt(E.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(Y){return this.style=b({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},Y),this.style}setStyle(Y){this.boxWrapper.css(this.getStyle(Y))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let Y=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),f(this.gradients||{}),this.gradients=null,this.defs=Y.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(Y){return new this.Element(this,Y)}getRadialAttr(Y,rt){return{cx:Y[0]-Y[2]/2+(rt.cx||0)*Y[2],cy:Y[1]-Y[2]/2+(rt.cy||0)*Y[2],r:(rt.r||0)*Y[2]}}shadowDefinition(Y){let rt=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(Y).map(D=>`${D}-${Y[D]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),ot=st({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},Y);return this.defs.element.querySelector(`#${rt}`)||this.definition({tagName:"filter",attributes:{id:rt,filterUnits:ot.filterUnits},children:this.getShadowFilterContent(ot)}),rt}getShadowFilterContent(Y){return[{tagName:"feDropShadow",attributes:{dx:Y.offsetX,dy:Y.offsetY,"flood-color":Y.color,"flood-opacity":Math.min(5*Y.opacity,1),stdDeviation:Y.width/2}}]}buildText(Y){new H(Y).buildSVG()}getContrast(Y){let rt=et.parse(Y).rgba.map(D=>{let P=D/255;return P<=.03928?P/12.92:Math.pow((P+.055)/1.055,2.4)}),ot=.2126*rt[0]+.7152*rt[1]+.0722*rt[2];return 1.05/(ot+.05)>(ot+.05)/.05?"#FFFFFF":"#000000"}button(Y,rt,ot,D,P={},W,lt,it,vt,pt){let xt=this.label(Y,rt,ot,vt,void 0,void 0,pt,void 0,"button"),Ct=this.styledMode,Tt=arguments,Nt=0;P=st(U.global.buttonTheme,P),Ct&&(delete P.fill,delete P.stroke,delete P["stroke-width"]);let gt=P.states||{},wt=P.style||{};delete P.states,delete P.style;let Rt=[R.filterUserAttributes(P)],jt=[wt];return Ct||["hover","select","disabled"].forEach((Zt,ne)=>{Rt.push(st(Rt[0],R.filterUserAttributes(Tt[ne+5]||gt[Zt]||{}))),jt.push(Rt[ne+1].style),delete Rt[ne+1].style}),S(xt.element,w?"mouseover":"mouseenter",function(){Nt!==3&&xt.setState(1)}),S(xt.element,w?"mouseout":"mouseleave",function(){Nt!==3&&xt.setState(Nt)}),xt.setState=(Zt=0)=>{if(Zt!==1&&(xt.state=Nt=Zt),xt.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][Zt]),!Ct){xt.attr(Rt[Zt]);let ne=jt[Zt];k(ne)&&xt.css(ne)}},xt.attr(Rt[0]),!Ct&&(xt.css(b({cursor:"default"},wt)),pt&&xt.text.css({pointerEvents:"none"})),xt.on("touchstart",Zt=>Zt.stopPropagation()).on("click",function(Zt){Nt!==3&&D.call(xt,Zt)})}crispLine(Y,rt){let[ot,D]=Y;return l(ot[1])&&ot[1]===D[1]&&(ot[1]=D[1]=x(ot[1],rt)),l(ot[2])&&ot[2]===D[2]&&(ot[2]=D[2]=x(ot[2],rt)),Y}path(Y){let rt=this.styledMode?{}:{fill:"none"};return F(Y)?rt.d=Y:k(Y)&&b(rt,Y),this.createElement("path").attr(rt)}circle(Y,rt,ot){let D=k(Y)?Y:Y===void 0?{}:{x:Y,y:rt,r:ot},P=this.createElement("circle");return P.xSetter=P.ySetter=function(W,lt,it){it.setAttribute("c"+lt,W)},P.attr(D)}arc(Y,rt,ot,D,P,W){let lt;k(Y)?(rt=(lt=Y).y,ot=lt.r,D=lt.innerR,P=lt.start,W=lt.end,Y=lt.x):lt={innerR:D,start:P,end:W};let it=this.symbol("arc",Y,rt,ot,ot,lt);return it.r=ot,it}rect(Y,rt,ot,D,P,W){let lt=k(Y)?Y:Y===void 0?{}:{x:Y,y:rt,r:P,width:Math.max(ot||0,0),height:Math.max(D||0,0)},it=this.createElement("rect");return this.styledMode||(W!==void 0&&(lt["stroke-width"]=W,b(lt,it.crisp(lt))),lt.fill="none"),it.rSetter=function(vt,pt,xt){it.r=vt,v(xt,{rx:vt,ry:vt})},it.rGetter=function(){return it.r||0},it.attr(lt)}roundedRect(Y){return this.symbol("roundedRect").attr(Y)}setSize(Y,rt,ot){this.width=Y,this.height=rt,this.boxWrapper.animate({width:Y,height:rt},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:nt(ot,!0)?void 0:0}),this.alignElements()}g(Y){let rt=this.createElement("g");return Y?rt.attr({class:"highcharts-"+Y}):rt}image(Y,rt,ot,D,P,W){let lt={preserveAspectRatio:"none"};T(rt)&&(lt.x=rt),T(ot)&&(lt.y=ot),T(D)&&(lt.width=D),T(P)&&(lt.height=P);let it=this.createElement("image").attr(lt),vt=function(pt){it.attr({href:Y}),W.call(it,pt)};if(W){it.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let pt=new E.Image;S(pt,"load",vt),pt.src=Y,pt.complete&&vt({})}else it.attr({href:Y});return it}symbol(Y,rt,ot,D,P,W){let lt,it,vt,pt,xt=this,Ct=/^url\((.*?)\)$/,Tt=Ct.test(Y),Nt=!Tt&&(this.symbols[Y]?Y:"circle"),gt=Nt&&this.symbols[Nt];if(gt)typeof rt=="number"&&(it=gt.call(this.symbols,rt||0,ot||0,D||0,P||0,W)),lt=this.path(it),xt.styledMode||lt.attr("fill","none"),b(lt,{symbolName:Nt||void 0,x:rt,y:ot,width:D,height:P}),W&&b(lt,W);else if(Tt){vt=Y.match(Ct)[1];let wt=lt=this.image(vt);wt.imgwidth=nt(W&&W.width,C[vt]&&C[vt].width),wt.imgheight=nt(W&&W.height,C[vt]&&C[vt].height),pt=Rt=>Rt.attr({width:Rt.width,height:Rt.height}),["width","height"].forEach(Rt=>{wt[`${Rt}Setter`]=function(jt,Zt){this[Zt]=jt;let{alignByTranslate:ne,element:Wt,width:le,height:de,imgwidth:xe,imgheight:be}=this,Ye=Zt==="width"?xe:be,tn=1;W&&W.backgroundSize==="within"&&le&&de&&xe&&be?(tn=Math.min(le/xe,de/be),v(Wt,{width:Math.round(xe*tn),height:Math.round(be*tn)})):Wt&&Ye&&Wt.setAttribute(Zt,Ye),!ne&&xe&&be&&this.translate(((le||0)-xe*tn)/2,((de||0)-be*tn)/2)}}),l(rt)&&wt.attr({x:rt,y:ot}),wt.isImg=!0,wt.symbolUrl=Y,l(wt.imgwidth)&&l(wt.imgheight)?pt(wt):(wt.attr({width:0,height:0}),g("img",{onload:function(){let Rt=d[xt.chartIndex];this.width===0&&(p(this,{position:"absolute",top:"-999em"}),M.body.appendChild(this)),C[vt]={width:this.width,height:this.height},wt.imgwidth=this.width,wt.imgheight=this.height,wt.element&&pt(wt),this.parentNode&&this.parentNode.removeChild(this),xt.imgCount--,xt.imgCount||!Rt||Rt.hasLoaded||Rt.onload()},src:vt}),this.imgCount++)}return lt}clipRect(Y,rt,ot,D){return this.rect(Y,rt,ot,D,0)}text(Y,rt,ot,D){let P={};if(D&&(this.allowHTML||!this.forExport))return this.html(Y,rt,ot);P.x=Math.round(rt||0),ot&&(P.y=Math.round(ot)),l(Y)&&(P.text=Y);let W=this.createElement("text").attr(P);return D&&(!this.forExport||this.allowHTML)||(W.xSetter=function(lt,it,vt){let pt=vt.getElementsByTagName("tspan"),xt=vt.getAttribute(it);for(let Ct=0,Tt;CtY.align())}}return b(Mt.prototype,{Element:q,SVG_NS:u,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:tt,draw:o}),J.registerRendererType("svg",Mt,!0),Mt}),y(m,"Core/Renderer/HTML/HTMLElement.js",[m["Core/Renderer/HTML/AST.js"],m["Core/Globals.js"],m["Core/Renderer/SVG/SVGElement.js"],m["Core/Utilities.js"]],function(R,j,et,K){let{composed:J}=j,{attr:q,css:Z,createElement:tt,defined:H,extend:X,pInt:B,pushUnique:U}=K;function d(w,_,o){var C;let u=((C=this.div)==null?void 0:C.style)||o.style;et.prototype[`${_}Setter`].call(this,w,_,o),u&&(u[_]=w)}let L=(w,_)=>{var o;if(!w.div){let u=q(w.element,"class"),C=w.css,E=tt("div",u?{className:u}:void 0,ho(zr({position:"absolute",left:`${w.translateX||0}px`,top:`${w.translateY||0}px`},w.styles),{display:w.display,opacity:w.opacity,visibility:w.visibility}),((o=w.parentGroup)==null?void 0:o.div)||_);w.classSetter=(S,v,g)=>{g.setAttribute("class",S),E.className=S},w.translateXSetter=w.translateYSetter=(S,v)=>{w[v]=S,E.style[v==="translateX"?"left":"top"]=`${S}px`,w.doTransform=!0},w.opacitySetter=w.visibilitySetter=d,w.css=S=>(C.call(w,S),S.cursor&&(E.style.cursor=S.cursor),S.pointerEvents&&(E.style.pointerEvents=S.pointerEvents),w),w.on=function(){return et.prototype.on.apply({element:E,onEvents:w.onEvents},arguments),w},w.div=E}return w.div};class M extends et{static compose(_){U(J,this.compose)&&(_.prototype.html=function(o,u,C){return new M(this,"span").attr({text:o,x:Math.round(u),y:Math.round(C)})})}constructor(_,o){super(_,o),this.css(zr({position:"absolute"},_.styledMode?{}:{fontFamily:_.style.fontFamily,fontSize:_.style.fontSize})),this.element.style.whiteSpace="nowrap"}getSpanCorrection(_,o,u){this.xCorr=-_*u,this.yCorr=-o}css(_){let o,{element:u}=this,C=u.tagName==="SPAN"&&_&&"width"in _,E=C&&_.width;return C&&(delete _.width,this.textWidth=B(E)||void 0,o=!0),(_==null?void 0:_.textOverflow)==="ellipsis"&&(_.whiteSpace="nowrap",_.overflow="hidden"),X(this.styles,_),Z(u,_),o&&this.updateTransform(),this}htmlGetBBox(){let{element:_}=this;return{x:_.offsetLeft,y:_.offsetTop,width:_.offsetWidth,height:_.offsetHeight}}updateTransform(){var T;if(!this.added){this.alignOnAdd=!0;return}let{element:_,renderer:o,rotation:u,rotationOriginX:C,rotationOriginY:E,styles:S,textAlign:v="left",textWidth:g,translateX:x=0,translateY:p=0,x:l=0,y:f=0}=this,b={left:0,center:.5,right:1}[v],F=S.whiteSpace;if(Z(_,{marginLeft:`${x}px`,marginTop:`${p}px`}),_.tagName==="SPAN"){let k=[u,v,_.innerHTML,g,this.textAlign].join(","),Q=-(((T=this.parentGroup)==null?void 0:T.padding)*1)||0,st,nt=!1;if(g!==this.oldTextWidth){let I=this.textPxLength?this.textPxLength:(Z(_,{width:"",whiteSpace:F||"nowrap"}),_.offsetWidth),Y=g||0;(Y>this.oldTextWidth||I>Y)&&(/[ \-]/.test(_.textContent||_.innerText)||_.style.textOverflow==="ellipsis")&&(Z(_,{width:I>Y||u?g+"px":"auto",display:"block",whiteSpace:F||"normal"}),this.oldTextWidth=g,nt=!0)}this.hasBoxWidthChanged=nt,k!==this.cTT&&(st=o.fontMetrics(_).b,H(u)&&(u!==(this.oldRotation||0)||v!==this.oldAlign)&&this.setSpanRotation(u,Q,Q),this.getSpanCorrection(!H(u)&&this.textPxLength||_.offsetWidth,st,b));let{xCorr:dt=0,yCorr:mt=0}=this,Et=(C!=null?C:l)-dt-l-Q,Mt=(E!=null?E:f)-mt-f-Q;Z(_,{left:`${l+dt}px`,top:`${f+mt}px`,transformOrigin:`${Et}px ${Mt}px`}),this.cTT=k,this.oldRotation=u,this.oldAlign=v}}setSpanRotation(_,o,u){Z(this.element,{transform:`rotate(${_}deg)`,transformOrigin:`${o}% ${u}px`})}add(_){let o,u=this.renderer.box.parentNode,C=[];if(this.parentGroup=_,_&&!(o=_.div)){let E=_;for(;E;)C.push(E),E=E.parentGroup;for(let S of C.reverse())o=L(S,u)}return(o||u).appendChild(this.element),this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(_){_!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,R.setElementHTML(this.element,_!=null?_:""),this.textStr=_,this.doTransform=!0)}alignSetter(_){this.alignValue=this.textAlign=_,this.doTransform=!0}xSetter(_,o){this[o]=_,this.doTransform=!0}}let s=M.prototype;return s.visibilitySetter=s.opacitySetter=d,s.ySetter=s.rotationSetter=s.rotationOriginXSetter=s.rotationOriginYSetter=s.xSetter,M}),y(m,"Core/Axis/AxisDefaults.js",[],function(){var R,j;return(j=R||(R={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},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:"#333333",cursor:"default",fontSize:"0.8em"}},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,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},j.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:et}=this.axis.chart;return et(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},R}),y(m,"Core/Foundation.js",[m["Core/Utilities.js"]],function(R){var j;let{addEvent:et,isFunction:K,objectEach:J,removeEvent:q}=R;return(j||(j={})).registerEventOptions=function(Z,tt){Z.eventOptions=Z.eventOptions||{},J(tt.events,function(H,X){Z.eventOptions[X]!==H&&(Z.eventOptions[X]&&(q(Z,X,Z.eventOptions[X]),delete Z.eventOptions[X]),K(H)&&(Z.eventOptions[X]=H,et(Z,X,H,{order:0})))})},j}),y(m,"Core/Axis/Tick.js",[m["Core/Templating.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j,et){let{deg2rad:K}=j,{clamp:J,correctFloat:q,defined:Z,destroyObjectProperties:tt,extend:H,fireEvent:X,isNumber:B,merge:U,objectEach:d,pick:L}=et;return class{constructor(M,s,w,_,o){this.isNew=!0,this.isNewLabel=!0,this.axis=M,this.pos=s,this.type=w||"",this.parameters=o||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,X(this,"init"),w||_||this.addLabel()}addLabel(){let M=this,s=M.axis,w=s.options,_=s.chart,o=s.categories,u=s.logarithmic,C=s.names,E=M.pos,S=L(M.options&&M.options.labels,w.labels),v=s.tickPositions,g=E===v[0],x=E===v[v.length-1],p=(!S.step||S.step===1)&&s.tickInterval===1,l=v.info,f=M.label,b,F,T,k=this.parameters.category||(o?L(o[E],C[E],E):E);u&&B(k)&&(k=q(u.lin2log(k))),s.dateTime&&(l?b=(F=_.time.resolveDTLFormat(w.dateTimeLabelFormats[!w.grid&&l.higherRanks[E]||l.unitName])).main:B(k)&&(b=s.dateTime.getXDateFormat(k,w.dateTimeLabelFormats||{}))),M.isFirst=g,M.isLast=x;let Q={axis:s,chart:_,dateTimeLabelFormat:b,isFirst:g,isLast:x,pos:E,tick:M,tickPositionInfo:l,value:k};X(this,"labelFormat",Q);let st=mt=>S.formatter?S.formatter.call(mt,mt):S.format?(mt.text=s.defaultLabelFormatter.call(mt),R.format(S.format,mt,_)):s.defaultLabelFormatter.call(mt),nt=st.call(Q,Q),dt=F&&F.list;dt?M.shortenLabel=function(){for(T=0;T0&&_+g*x>E&&(k=Math.round((o-_)/Math.cos(v*K))):(F=_-g*x,T=_+(1-g)*x,FE&&(f=E-M.x+f*g,b=-1),(f=Math.min(p,f))f||s.autoRotation&&(S.styles||{}).width)&&(k=f)),k&&(this.shortenLabel?this.shortenLabel():(l.width=Math.floor(k)+"px",(w.style||{}).textOverflow||(l.textOverflow="ellipsis"),S.css(l)))}moveLabel(M,s){let w=this,_=w.label,o=w.axis,u=!1,C;_&&_.textStr===M?(w.movedLabel=_,u=!0,delete w.label):d(o.ticks,function(E){u||E.isNew||E===w||!E.label||E.label.textStr!==M||(w.movedLabel=E.label,u=!0,E.labelPos=w.movedLabel.xy,delete E.label)}),!u&&(w.labelPos||_)&&(C=w.labelPos||_.xy,w.movedLabel=w.createLabel(M,s,C),w.movedLabel&&w.movedLabel.attr({opacity:0}))}render(M,s,w){let _=this.axis,o=_.horiz,u=this.pos,C=L(this.tickmarkOffset,_.tickmarkOffset),E=this.getPosition(o,u,C,s),S=E.x,v=E.y,g=_.pos,x=g+_.len,p=o?S:v;!_.chart.polar&&this.isNew&&(q(p)x)&&(w=0);let l=L(w,this.label&&this.label.newOpacity,1);w=L(w,1),this.isActive=!0,this.renderGridLine(s,w),this.renderMark(E,w),this.renderLabel(E,s,l,M),this.isNew=!1,X(this,"afterRender")}renderGridLine(M,s){let w=this.axis,_=w.options,o={},u=this.pos,C=this.type,E=L(this.tickmarkOffset,w.tickmarkOffset),S=w.chart.renderer,v=this.gridLine,g,x=_.gridLineWidth,p=_.gridLineColor,l=_.gridLineDashStyle;this.type==="minor"&&(x=_.minorGridLineWidth,p=_.minorGridLineColor,l=_.minorGridLineDashStyle),v||(w.chart.styledMode||(o.stroke=p,o["stroke-width"]=x||0,o.dashstyle=l),C||(o.zIndex=1),M&&(s=0),this.gridLine=v=S.path().attr(o).addClass("highcharts-"+(C?C+"-":"")+"grid-line").add(w.gridGroup)),v&&(g=w.getPlotLinePath({value:u+E,lineWidth:v.strokeWidth(),force:"pass",old:M,acrossPanes:!1}))&&v[M||this.isNew?"attr":"animate"]({d:g,opacity:s})}renderMark(M,s){let w=this.axis,_=w.options,o=w.chart.renderer,u=this.type,C=w.tickSize(u?u+"Tick":"tick"),E=M.x,S=M.y,v=L(_[u!=="minor"?"tickWidth":"minorTickWidth"],!u&&w.isXAxis?1:0),g=_[u!=="minor"?"tickColor":"minorTickColor"],x=this.mark,p=!x;C&&(w.opposite&&(C[0]=-C[0]),x||(this.mark=x=o.path().addClass("highcharts-"+(u?u+"-":"")+"tick").add(w.axisGroup),w.chart.styledMode||x.attr({stroke:g,"stroke-width":v})),x[p?"attr":"animate"]({d:this.getMarkPath(E,S,C[0],x.strokeWidth(),w.horiz,o),opacity:s}))}renderLabel(M,s,w,_){let o=this.axis,u=o.horiz,C=o.options,E=this.label,S=C.labels,v=S.step,g=L(this.tickmarkOffset,o.tickmarkOffset),x=M.x,p=M.y,l=!0;E&&B(x)&&(E.xy=M=this.getLabelPosition(x,p,E,u,S,g,_,v),(!this.isFirst||this.isLast||C.showFirstLabel)&&(!this.isLast||this.isFirst||C.showLastLabel)?!u||S.step||S.rotation||s||w===0||this.handleOverflow(M):l=!1,v&&_%v&&(l=!1),l&&B(M.y)?(M.opacity=w,E[this.isNewLabel?"attr":"animate"](M).show(!0),this.isNewLabel=!1):(E.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let M=this.label,s=this.axis;M&&!this.isNew&&(M.animate({opacity:0},void 0,M.destroy),delete this.label),s.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}}),y(m,"Core/Axis/Axis.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Axis/AxisDefaults.js"],m["Core/Color/Color.js"],m["Core/Defaults.js"],m["Core/Foundation.js"],m["Core/Globals.js"],m["Core/Axis/Tick.js"],m["Core/Utilities.js"]],function(R,j,et,K,J,q,Z,tt){let{animObject:H}=R,{xAxis:X,yAxis:B}=j,{defaultOptions:U}=K,{registerEventOptions:d}=J,{deg2rad:L}=q,{arrayMax:M,arrayMin:s,clamp:w,correctFloat:_,defined:o,destroyObjectProperties:u,erase:C,error:E,extend:S,fireEvent:v,getClosestDistance:g,insertItem:x,isArray:p,isNumber:l,isString:f,merge:b,normalizeTickInterval:F,objectEach:T,pick:k,relativeLength:Q,removeEvent:st,splat:nt,syncTimeout:dt}=tt,mt=(Mt,I)=>F(I,void 0,void 0,k(Mt.options.allowDecimals,I<.5||Mt.tickAmount!==void 0),!!Mt.tickAmount);S(U,{xAxis:X,yAxis:b(X,B)});class Et{constructor(I,Y,rt){this.init(I,Y,rt)}init(I,Y,rt=this.coll){var it,vt,pt,xt;let ot=rt==="xAxis",D=this.isZAxis||(I.inverted?!ot:ot);this.chart=I,this.horiz=D,this.isXAxis=ot,this.coll=rt,v(this,"init",{userOptions:Y}),this.opposite=k(Y.opposite,this.opposite),this.side=k(Y.side,this.side,D?this.opposite?0:2:this.opposite?1:3),this.setOptions(Y);let P=this.options,W=P.labels;(it=this.type)!=null||(this.type=P.type||"linear"),(pt=this.uniqueNames)!=null||(this.uniqueNames=(vt=P.uniqueNames)!=null?vt:!0),v(this,"afterSetType"),this.userOptions=Y,this.minPixelPadding=0,this.reversed=k(P.reversed,this.reversed),this.visible=P.visible,this.zoomEnabled=P.zoomEnabled,this.hasNames=this.type==="category"||P.categories===!0,this.categories=p(P.categories)&&P.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=o(P.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},(xt=this.len)!=null||(this.len=0),this.minRange=this.userMinRange=P.minRange||P.maxZoom,this.range=P.range,this.offset=P.offset||0,this.max=void 0,this.min=void 0;let lt=k(P.crosshair,nt(I.options.tooltip.crosshairs)[ot?0:1]);this.crosshair=lt===!0?{}:lt,I.axes.indexOf(this)===-1&&(ot?I.axes.splice(I.xAxis.length,0,this):I.axes.push(this),x(this,I[this.coll])),I.orderItems(this.coll),this.series=this.series||[],I.inverted&&!this.isZAxis&&ot&&!o(this.reversed)&&(this.reversed=!0),this.labelRotation=l(W.rotation)?W.rotation:void 0,d(this,P),v(this,"afterInit")}setOptions(I){let Y=this.horiz?{labels:{autoRotation:[-45],padding:4},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=b(Y,U[this.coll],I),v(this,"afterSetOptions",{userOptions:I})}defaultLabelFormatter(){let I=this.axis,{numberFormatter:Y}=this.chart,rt=l(this.value)?this.value:NaN,ot=I.chart.time,D=I.categories,P=this.dateTimeLabelFormat,W=U.lang,lt=W.numericSymbols,it=W.numericSymbolMagnitude||1e3,vt=I.logarithmic?Math.abs(rt):I.tickInterval,pt=lt&<.length,xt,Ct;if(D)Ct=`${this.value}`;else if(P)Ct=ot.dateFormat(P,rt);else if(pt&<&&vt>=1e3)for(;pt--&&Ct===void 0;)vt>=(xt=Math.pow(it,pt+1))&&10*rt%xt==0&<[pt]!==null&&rt!==0&&(Ct=Y(rt/xt,-1)+lt[pt]);return Ct===void 0&&(Ct=Math.abs(rt)>=1e4?Y(rt,-1):Y(rt,-1,void 0,"")),Ct}getSeriesExtremes(){let I,Y=this;v(this,"getSeriesExtremes",null,function(){Y.hasVisibleSeries=!1,Y.dataMin=Y.dataMax=Y.threshold=void 0,Y.softThreshold=!Y.isXAxis,Y.series.forEach(rt=>{if(rt.reserveSpace()){let ot=rt.options,D,P=ot.threshold,W,lt;if(Y.hasVisibleSeries=!0,Y.positiveValuesOnly&&0>=(P||0)&&(P=void 0),Y.isXAxis)(D=rt.xData)&&D.length&&(D=Y.logarithmic?D.filter(it=>it>0):D,W=(I=rt.getXExtremes(D)).min,lt=I.max,l(W)||W instanceof Date||(D=D.filter(l),W=(I=rt.getXExtremes(D)).min,lt=I.max),D.length&&(Y.dataMin=Math.min(k(Y.dataMin,W),W),Y.dataMax=Math.max(k(Y.dataMax,lt),lt)));else{let it=rt.applyExtremes();l(it.dataMin)&&(W=it.dataMin,Y.dataMin=Math.min(k(Y.dataMin,W),W)),l(it.dataMax)&&(lt=it.dataMax,Y.dataMax=Math.max(k(Y.dataMax,lt),lt)),o(P)&&(Y.threshold=P),(!ot.softThreshold||Y.positiveValuesOnly)&&(Y.softThreshold=!1)}}})}),v(this,"afterGetSeriesExtremes")}translate(I,Y,rt,ot,D,P){var Nt;let W=this.linkedParent||this,lt=ot&&W.old?W.old.min:W.min;if(!l(lt))return NaN;let it=W.minPixelPadding,vt=(W.isOrdinal||((Nt=W.brokenAxis)==null?void 0:Nt.hasBreaks)||W.logarithmic&&D)&&W.lin2val,pt=1,xt=0,Ct=ot&&W.old?W.old.transA:W.transA,Tt=0;return Ct||(Ct=W.transA),rt&&(pt*=-1,xt=W.len),W.reversed&&(pt*=-1,xt-=pt*(W.sector||W.len)),Y?(Tt=(I=I*pt+xt-it)/Ct+lt,vt&&(Tt=W.lin2val(Tt))):(vt&&(I=W.val2lin(I)),Tt=pt*(I-lt)*Ct+xt+pt*it+(l(P)?Ct*P:0),W.isRadial||(Tt=_(Tt))),Tt}toPixels(I,Y){return this.translate(I,!1,!this.horiz,void 0,!0)+(Y?0:this.pos)}toValue(I,Y){return this.translate(I-(Y?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(I){let Y=this,rt=Y.chart,ot=Y.left,D=Y.top,P=I.old,W=I.value,lt=I.lineWidth,it=P&&rt.oldChartHeight||rt.chartHeight,vt=P&&rt.oldChartWidth||rt.chartWidth,pt=Y.transB,xt=I.translatedValue,Ct=I.force,Tt,Nt,gt,wt,Rt;function jt(ne,Wt,le){return Ct!=="pass"&&(nele)&&(Ct?ne=w(ne,Wt,le):Rt=!0),ne}let Zt={value:W,lineWidth:lt,old:P,force:Ct,acrossPanes:I.acrossPanes,translatedValue:xt};return v(this,"getPlotLinePath",Zt,function(ne){Tt=gt=(xt=w(xt=k(xt,Y.translate(W,void 0,void 0,P)),-1e9,1e9))+pt,Nt=wt=it-xt-pt,l(xt)?Y.horiz?(Nt=D,wt=it-Y.bottom+(Y.options.isInternal?0:rt.scrollablePixelsY||0),Tt=gt=jt(Tt,ot,ot+Y.width)):(Tt=ot,gt=vt-Y.right+(rt.scrollablePixelsX||0),Nt=wt=jt(Nt,D,D+Y.height)):(Rt=!0,Ct=!1),ne.path=Rt&&!Ct?void 0:rt.renderer.crispLine([["M",Tt,Nt],["L",gt,wt]],lt||1)}),Zt.path}getLinearTickPositions(I,Y,rt){let ot,D,P,W=_(Math.floor(Y/I)*I),lt=_(Math.ceil(rt/I)*I),it=[];if(_(W+I)===W&&(P=20),this.single)return[Y];for(ot=W;ot<=lt&&(it.push(ot),(ot=_(ot+I,P))!==D);)D=ot;return it}getMinorTickInterval(){let{minorTicks:I,minorTickInterval:Y}=this.options;return I===!0?k(Y,"auto"):I!==!1?Y:void 0}getMinorTickPositions(){let I=this.options,Y=this.tickPositions,rt=this.minorTickInterval,ot=this.pointRangePadding||0,D=(this.min||0)-ot,P=(this.max||0)+ot,W=P-D,lt=[],it;if(W&&W/rt{var pt;return(vt.xIncrement?(pt=vt.xData)==null?void 0:pt.slice(0,2):vt.xData)||[]}))||0),this.dataMax-this.dataMin)),l(rt)&&l(ot)&&l(D)&&rt-ot=D,P=(D-rt+ot)/2,lt=[ot-P,k(I.min,ot-P)],W&&(lt[2]=Y?Y.log2lin(this.dataMin):this.dataMin),it=[(ot=M(lt))+D,k(I.max,ot+D)],W&&(it[2]=Y?Y.log2lin(this.dataMax):this.dataMax),(rt=s(it))-otot-D),I=g([rt]))}return I&&Y?Math.min(I,Y):I||Y}nameToX(I){let Y=p(this.options.categories),rt=Y?this.categories:this.names,ot=I.options.x,D;return I.series.requireSorting=!1,o(ot)||(ot=this.uniqueNames&&rt?Y?rt.indexOf(I.name):k(rt.keys[I.name],-1):I.series.autoIncrement()),ot===-1?!Y&&rt&&(D=rt.length):D=ot,D!==void 0?(this.names[D]=I.name,this.names.keys[I.name]=D):I.x&&(D=I.x),D}updateNames(){let I=this,Y=this.names;Y.length>0&&(Object.keys(Y.keys).forEach(function(rt){delete Y.keys[rt]}),Y.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(rt=>{rt.xIncrement=null,(!rt.points||rt.isDirtyData)&&(I.max=Math.max(I.max,rt.xData.length-1),rt.processData(),rt.generatePoints()),rt.data.forEach(function(ot,D){let P;ot!=null&&ot.options&&ot.name!==void 0&&(P=I.nameToX(ot))!==void 0&&P!==ot.x&&(ot.x=P,rt.xData[D]=P)})}))}setAxisTranslation(){let I=this,Y=I.max-I.min,rt=I.linkedParent,ot=!!I.categories,D=I.isXAxis,P=I.axisPointRange||0,W,lt=0,it=0,vt,pt=I.transA;(D||ot||P)&&(W=I.getClosest(),rt?(lt=rt.minPointOffset,it=rt.pointRangePadding):I.series.forEach(function(xt){let Ct=ot?1:D?k(xt.options.pointRange,W,0):I.axisPointRange||0,Tt=xt.options.pointPlacement;if(P=Math.max(P,Ct),!I.single||ot){let Nt=xt.is("xrange")?!D:D;lt=Math.max(lt,Nt&&f(Tt)?0:Ct/2),it=Math.max(it,Nt&&Tt==="on"?0:Ct)}}),vt=I.ordinal&&I.ordinal.slope&&W?I.ordinal.slope/W:1,I.minPointOffset=lt*=vt,I.pointRangePadding=it*=vt,I.pointRange=Math.min(P,I.single&&ot?1:Y),D&&W&&(I.closestPointRange=W)),I.translationSlope=I.transA=pt=I.staticScale||I.len/(Y+it||1),I.transB=I.horiz?I.left:I.bottom,I.minPixelPadding=pt*lt,v(this,"afterSetAxisTranslation")}minFromRange(){let{max:I,min:Y}=this;return l(I)&&l(Y)&&I-Y||void 0}setTickInterval(I){var Jt,Kt,te,Ot;let{categories:Y,chart:rt,dataMax:ot,dataMin:D,dateTime:P,isXAxis:W,logarithmic:lt,options:it,softThreshold:vt}=this,pt=l(this.threshold)?this.threshold:void 0,xt=this.minRange||0,{ceiling:Ct,floor:Tt,linkedTo:Nt,softMax:gt,softMin:wt}=it,Rt=l(Nt)&&((Jt=rt[this.coll])==null?void 0:Jt[Nt]),jt=it.tickPixelInterval,Zt=it.maxPadding,ne=it.minPadding,Wt=0,le,de=l(it.tickInterval)&&it.tickInterval>=0?it.tickInterval:void 0,xe,be,Ye,tn;if(P||Y||Rt||this.getTickAmount(),Ye=k(this.userMin,it.min),tn=k(this.userMax,it.max),Rt?(this.linkedParent=Rt,le=Rt.getExtremes(),this.min=k(le.min,le.dataMin),this.max=k(le.max,le.dataMax),this.type!==Rt.type&&E(11,!0,rt)):(vt&&o(pt)&&l(ot)&&l(D)&&(D>=pt?(xe=pt,ne=0):ot<=pt&&(be=pt,Zt=0)),this.min=k(Ye,xe,D),this.max=k(tn,be,ot)),l(this.max)&&l(this.min)&&(lt&&(this.positiveValuesOnly&&!I&&0>=Math.min(this.min,k(D,this.min))&&E(10,!0,rt),this.min=_(lt.log2lin(this.min),16),this.max=_(lt.log2lin(this.max),16)),this.range&&l(D)&&(this.userMin=this.min=Ye=Math.max(D,this.minFromRange()||0),this.userMax=tn=this.max,this.range=void 0)),v(this,"foundExtremes"),this.adjustForMinRange(),l(this.min)&&l(this.max)){if(!l(this.userMin)&&l(wt)&&wtthis.max&&(this.max=tn=gt),Y||this.axisPointRange||(Kt=this.stacking)!=null&&Kt.usePercentage||Rt||!(Wt=this.max-this.min)||(!o(Ye)&&ne&&(this.min-=Wt*ne),o(tn)||!Zt||(this.max+=Wt*Zt)),!l(this.userMin)&&l(Tt)&&(this.min=Math.max(this.min,Tt)),!l(this.userMax)&&l(Ct)&&(this.max=Math.min(this.max,Ct)),vt&&l(D)&&l(ot)){let Bt=pt||0;!o(Ye)&&this.min=Bt?this.min=it.minRange?Math.min(Bt,this.max-xt):Bt:!o(tn)&&this.max>Bt&&ot<=Bt&&(this.max=it.minRange?Math.max(Bt,this.min+xt):Bt)}!rt.polar&&this.min>this.max&&(o(it.min)?this.max=this.min:o(it.max)&&(this.min=this.max)),Wt=this.max-this.min}if(this.min!==this.max&&l(this.min)&&l(this.max)?Rt&&!de&&jt===Rt.options.tickPixelInterval?this.tickInterval=de=Rt.tickInterval:this.tickInterval=k(de,this.tickAmount?Wt/Math.max(this.tickAmount-1,1):void 0,Y?1:Wt*jt/Math.max(this.len,jt)):this.tickInterval=1,W&&!I){let Bt=this.min!==((te=this.old)==null?void 0:te.min)||this.max!==((Ot=this.old)==null?void 0:Ot.max);this.series.forEach(function(Ut){var zt;Ut.forceCrop=(zt=Ut.forceCropping)==null?void 0:zt.call(Ut),Ut.processData(Bt)}),v(this,"postProcessData",{hasExtremesChanged:Bt})}this.setAxisTranslation(),v(this,"initialAxisTranslation"),this.pointRange&&!de&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let an=k(it.minTickInterval,P&&!this.series.some(Bt=>Bt.noSharedTooltip)?this.closestPointRange:0);!de&&this.tickIntervalMath.max(2*this.len,200))lt=[this.min,this.max],E(19,!1,this.chart);else if(this.dateTime)lt=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,I.units),this.min,this.max,I.startOfWeek,(pt=this.ordinal)==null?void 0:pt.positions,this.closestPointRange,!0);else if(this.logarithmic)lt=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let xt=this.tickInterval,Ct=xt;for(;Ct<=2*xt&&(lt=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&<.length>this.tickAmount);)this.tickInterval=mt(this,Ct*=1.1)}lt.length>this.len&&(lt=[lt[0],lt[lt.length-1]])[0]===lt[1]&&(lt.length=1),rt&&(this.tickPositions=lt,(it=rt.apply(this,[this.min,this.max]))&&(lt=it))}this.tickPositions=lt,this.minorTickInterval=ot==="auto"&&this.tickInterval?this.tickInterval/I.minorTicksPerMajor:ot,this.paddedTicks=lt.slice(0),this.trimTicks(lt,P,W),!this.isLinked&&l(this.min)&&l(this.max)&&(this.single&<.length<2&&!this.categories&&!this.series.some(xt=>xt.is("heatmap")&&xt.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),Y||it||this.adjustTickAmount()),v(this,"afterSetTickPositions")}trimTicks(I,Y,rt){let ot=I[0],D=I[I.length-1],P=!this.isOrdinal&&this.minPointOffset||0;if(v(this,"trimTicks"),!this.isLinked){if(Y&&ot!==-1/0)this.min=ot;else for(;this.min-P>I[0];)I.shift();if(rt)this.max=D;else for(;this.max+P{let{horiz:xt,options:Ct}=pt;return[xt?Ct.left:Ct.top,Ct.width,Ct.height,Ct.pane].join(",")},vt=it(this);rt[this.coll].forEach(function(pt){let{series:xt}=pt;xt.length&&xt.some(Ct=>Ct.visible)&&pt!==Y&&it(pt)===vt&&(I=!0,ot.push(pt))})}if(I&&W){ot.forEach(vt=>{let pt=vt.getThresholdAlignment(Y);l(pt)&<.push(pt)});let it=lt.length>1?lt.reduce((vt,pt)=>vt+=pt,0)/lt.length:void 0;ot.forEach(vt=>{vt.thresholdAlignment=it})}return I}getThresholdAlignment(I){if((!l(this.dataMin)||this!==I&&this.series.some(Y=>Y.isDirty||Y.isDirtyData))&&this.getSeriesExtremes(),l(this.threshold)){let Y=w((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(Y=1-Y),Y}}getTickAmount(){let I=this.options,Y=I.tickPixelInterval,rt=I.tickAmount;o(I.tickInterval)||rt||!(this.lenP.push(_(P[P.length-1]+Ct)),gt=()=>P.unshift(_(P[0]-Ct));if(l(lt)&&(Tt=lt<.5?Math.ceil(lt*(W-1)):Math.floor(lt*(W-1)),D.reversed&&(Tt=W-1-Tt)),I.hasData()&&l(ot)&&l(rt)){let wt=()=>{I.transA*=(it-1)/(W-1),I.min=D.startOnTick?P[0]:Math.min(ot,P[0]),I.max=D.endOnTick?P[P.length-1]:Math.max(rt,P[P.length-1])};if(l(Tt)&&l(I.threshold)){for(;P[Tt]!==vt||P.length!==W||P[0]>ot||P[P.length-1]I.threshold?gt():Nt();if(Ct>8*I.tickInterval)break;Ct*=2}wt()}else if(it0&&xt{rt=rt||lt.isDirtyData||lt.isDirty,ot=ot||lt.xAxis&<.xAxis.isDirty||!1}),this.setAxisSize();let D=this.len!==(this.old&&this.old.len);D||rt||ot||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(Y&&I==="yAxis"&&Y.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),Y&&I==="xAxis"&&Y.buildStacks(),this.isDirty||(this.isDirty=D||this.min!==((P=this.old)==null?void 0:P.min)||this.max!==((W=this.old)==null?void 0:W.max))):Y&&Y.cleanStacks(),rt&&delete this.allExtremes,v(this,"afterSetScale")}setExtremes(I,Y,rt=!0,ot,D){this.series.forEach(P=>{delete P.kdTree}),v(this,"setExtremes",D=S(D,{min:I,max:Y}),P=>{this.userMin=P.min,this.userMax=P.max,this.eventArgs=P,rt&&this.chart.redraw(ot)})}setAxisSize(){let I=this.chart,Y=this.options,rt=Y.offsets||[0,0,0,0],ot=this.horiz,D=this.width=Math.round(Q(k(Y.width,I.plotWidth-rt[3]+rt[1]),I.plotWidth)),P=this.height=Math.round(Q(k(Y.height,I.plotHeight-rt[0]+rt[2]),I.plotHeight)),W=this.top=Math.round(Q(k(Y.top,I.plotTop+rt[0]),I.plotHeight,I.plotTop)),lt=this.left=Math.round(Q(k(Y.left,I.plotLeft+rt[3]),I.plotWidth,I.plotLeft));this.bottom=I.chartHeight-P-W,this.right=I.chartWidth-D-lt,this.len=Math.max(ot?D:P,0),this.pos=ot?lt:W}getExtremes(){let I=this.logarithmic;return{min:I?_(I.lin2log(this.min)):this.min,max:I?_(I.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(I){let Y=this.logarithmic,rt=Y?Y.lin2log(this.min):this.min,ot=Y?Y.lin2log(this.max):this.max;return I===null||I===-1/0?I=rt:I===1/0?I=ot:rt>I?I=rt:ot15&&Y<165?ot.align="right":Y>195&&Y<345&&(ot.align="left")}),rt.align}tickSize(I){let Y=this.options,rt=k(Y[I==="tick"?"tickWidth":"minorTickWidth"],I==="tick"&&this.isXAxis&&!this.categories?1:0),ot=Y[I==="tick"?"tickLength":"minorTickLength"],D;rt&&ot&&(Y[I+"Position"]==="inside"&&(ot=-ot),D=[ot,rt]);let P={tickSize:D};return v(this,"afterTickSize",P),P.tickSize}labelMetrics(){let I=this.chart.renderer,Y=this.ticks,rt=Y[Object.keys(Y)[0]]||{};return this.chart.renderer.fontMetrics(rt.label||rt.movedLabel||I.box)}unsquish(){let I=this.options.labels,Y=I.padding||0,rt=this.horiz,ot=this.tickInterval,D=this.len/(((this.categories?1:0)+this.max-this.min)/ot),P=I.rotation,W=_(.8*this.labelMetrics().h),lt=Math.max(this.max-this.min,0),it=function(Tt){let Nt=(Tt+2*Y)/(D||1);return(Nt=Nt>1?Math.ceil(Nt):1)*ot>lt&&Tt!==1/0&&D!==1/0&<&&(Nt=Math.ceil(lt/ot)),_(Nt*ot)},vt=ot,pt,xt=Number.MAX_VALUE,Ct;if(rt){if(!I.staggerLines&&(l(P)?Ct=[P]:D=-90&><=90)&&(Nt=(Tt=it(Math.abs(W/Math.sin(L*gt))))+Math.abs(gt/360))Nt&&(Nt=jt.label.textPxLength)}),this.maxLabelLength=Nt,this.autoRotation)Nt>it&&Nt>pt.h?vt.rotation=this.labelRotation:this.labelRotation=0;else if(lt&&(Ct=it,!xt))for(Tt="clip",wt=rt.length;!W&&wt--;)(gt=ot[rt[wt]].label)&&(gt.styles.textOverflow==="ellipsis"?gt.css({textOverflow:"clip"}):gt.textPxLength>lt&>.css({width:lt+"px"}),gt.getBBox().height>this.len/rt.length-(pt.h-pt.f)&&(gt.specificTextOverflow="ellipsis"));vt.rotation&&(Ct=Nt>.5*I.chartHeight?.33*I.chartHeight:Nt,xt||(Tt="ellipsis")),this.labelAlign=D.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(vt.align=this.labelAlign),rt.forEach(function(Rt){let jt=ot[Rt],Zt=jt&&jt.label,ne=P.width,Wt={};Zt&&(Zt.attr(vt),jt.shortenLabel?jt.shortenLabel():Ct&&!ne&&P.whiteSpace!=="nowrap"&&(CtD.g(W).attr({zIndex:it}).addClass(`highcharts-${rt.toLowerCase()}${lt} `+(this.isRadial?`highcharts-radial-axis${lt} `:"")+(ot.className||"")).add(I);this.axisGroup||(this.gridGroup=P("grid","-grid",ot.gridZIndex),this.axisGroup=P("axis","",ot.zIndex),this.labelGroup=P("axis-labels","-labels",ot.labels.zIndex))}getOffset(){let I=this,{chart:Y,horiz:rt,options:ot,side:D,ticks:P,tickPositions:W,coll:lt}=I,it=Y.inverted&&!I.isZAxis?[1,0,3,2][D]:D,vt=I.hasData(),pt=ot.title,xt=ot.labels,Ct=l(ot.crossing),Tt=Y.axisOffset,Nt=Y.clipOffset,gt=[-1,1,1,-1][D],wt,Rt=0,jt,Zt=0,ne=0,Wt,le;if(I.showAxis=wt=vt||ot.showEmpty,I.staggerLines=I.horiz&&xt.staggerLines||void 0,I.createGroups(),vt||I.isLinked?(W.forEach(function(de){I.generateTick(de)}),I.renderUnsquish(),I.reserveSpaceDefault=D===0||D===2||{1:"left",3:"right"}[D]===I.labelAlign,k(xt.reserveSpace,!Ct&&null,I.labelAlign==="center"||null,I.reserveSpaceDefault)&&W.forEach(function(de){ne=Math.max(P[de].getLabelSize(),ne)}),I.staggerLines&&(ne*=I.staggerLines),I.labelOffset=ne*(I.opposite?-1:1)):T(P,function(de,xe){de.destroy(),delete P[xe]}),pt!=null&&pt.text&&pt.enabled!==!1&&(I.addTitle(wt),wt&&!Ct&&pt.reserveSpace!==!1&&(I.titleOffset=Rt=I.axisTitle.getBBox()[rt?"height":"width"],Zt=o(jt=pt.offset)?0:k(pt.margin,rt?5:10))),I.renderLine(),I.offset=gt*k(ot.offset,Tt[D]?Tt[D]+(ot.margin||0):0),I.tickRotCorr=I.tickRotCorr||{x:0,y:0},le=D===0?-I.labelMetrics().h:D===2?I.tickRotCorr.y:0,Wt=Math.abs(ne)+Zt,ne&&(Wt-=le,Wt+=gt*(rt?k(xt.y,I.tickRotCorr.y+gt*xt.distance):k(xt.x,gt*xt.distance))),I.axisTitleMargin=k(jt,Wt),I.getMaxLabelDimensions&&(I.maxLabelDimensions=I.getMaxLabelDimensions(P,W)),lt!=="colorAxis"&&Nt){let de=this.tickSize("tick");Tt[D]=Math.max(Tt[D],(I.axisTitleMargin||0)+Rt+gt*I.offset,Wt,W&&W.length&&de?de[0]+gt*I.offset:0);let xe=!I.axisLine||ot.offset?0:I.axisLine.strokeWidth()/2;Nt[it]=Math.max(Nt[it],xe)}v(this,"afterGetOffset")}getLinePath(I){let Y=this.chart,rt=this.opposite,ot=this.offset,D=this.horiz,P=this.left+(rt?this.width:0)+ot,W=Y.chartHeight-this.bottom-(rt?this.height:0)+ot;return rt&&(I*=-1),Y.renderer.crispLine([["M",D?this.left:P,D?W:this.top],["L",D?Y.chartWidth-this.right:P,D?W:Y.chartHeight-this.bottom]],I)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(I){let Y=this.horiz,rt=this.left,ot=this.top,D=this.len,P=this.options.title,W=Y?rt:ot,lt=this.opposite,it=this.offset,vt=P.x,pt=P.y,xt=this.chart.renderer.fontMetrics(I),Ct=I?Math.max(I.getBBox(!1,0).height-xt.h-1,0):0,Tt={low:W+(Y?0:D),middle:W+D/2,high:W+(Y?D:0)}[P.align],Nt=(Y?ot+this.height:rt)+(Y?1:-1)*(lt?-1:1)*(this.axisTitleMargin||0)+[-Ct,Ct,xt.f,-Ct][this.side],gt={x:Y?Tt+vt:Nt+(lt?this.width:0)+it+vt,y:Y?Nt+pt-(lt?this.height:0)+it:Tt+pt};return v(this,"afterGetTitlePosition",{titlePosition:gt}),gt}renderMinorTick(I,Y){let rt=this.minorTicks;rt[I]||(rt[I]=new Z(this,I,"minor")),Y&&rt[I].isNew&&rt[I].render(null,!0),rt[I].render(null,!1,1)}renderTick(I,Y,rt){let ot=this.isLinked,D=this.ticks;(!ot||I>=this.min&&I<=this.max||this.grid&&this.grid.isColumn)&&(D[I]||(D[I]=new Z(this,I)),rt&&D[I].isNew&&D[I].render(Y,!0,-1),D[I].render(Y))}render(){let I,Y,rt=this,ot=rt.chart,D=rt.logarithmic,P=ot.renderer,W=rt.options,lt=rt.isLinked,it=rt.tickPositions,vt=rt.axisTitle,pt=rt.ticks,xt=rt.minorTicks,Ct=rt.alternateBands,Tt=W.stackLabels,Nt=W.alternateGridColor,gt=W.crossing,wt=rt.tickmarkOffset,Rt=rt.axisLine,jt=rt.showAxis,Zt=H(P.globalAnimation);if(rt.labelEdge.length=0,rt.overlap=!1,[pt,xt,Ct].forEach(function(ne){T(ne,function(Wt){Wt.isActive=!1})}),l(gt)){let ne=this.isXAxis?ot.yAxis[0]:ot.xAxis[0],Wt=[1,-1,-1,1][this.side];if(ne){let le=ne.toPixels(gt,!0);rt.horiz&&(le=ne.len-le),rt.offset=Wt*le}}if(rt.hasData()||lt){let ne=rt.chart.hasRendered&&rt.old&&l(rt.old.min);rt.minorTickInterval&&!rt.categories&&rt.getMinorTickPositions().forEach(function(Wt){rt.renderMinorTick(Wt,ne)}),it.length&&(it.forEach(function(Wt,le){rt.renderTick(Wt,le,ne)}),wt&&(rt.min===0||rt.single)&&(pt[-1]||(pt[-1]=new Z(rt,-1,null,!0)),pt[-1].render(-1))),Nt&&it.forEach(function(Wt,le){Y=it[le+1]!==void 0?it[le+1]+wt:rt.max-wt,le%2==0&&Wt=.5)B=Math.round(B),_=M.getLinearTickPositions(B,U,d);else if(B>=.08){let o,u,C,E,S,v,g,x=Math.floor(U);for(o=B>.3?[1,2,4]:B>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],u=x;uU&&(!L||v<=d)&&v!==void 0&&_.push(v),v>d&&(g=!0),v=S}else{let o=this.lin2log(U),u=this.lin2log(d),C=L?M.getMinorTickInterval():w.tickInterval,E=w.tickPixelInterval/(L?5:1),S=L?s/M.tickPositions.length:s;B=K(B=J(C==="auto"?null:C,this.minorAutoInterval,(u-o)*E/(S||1))),_=M.getLinearTickPositions(B,o,u).map(this.log2lin),L||(this.minorAutoInterval=B/5)}return L||(M.tickInterval=B),_}lin2log(B){return Math.pow(10,B)}log2lin(B){return Math.log(B)/Math.LN10}}q.Additions=H}(j||(j={})),j}),y(m,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[m["Core/Utilities.js"]],function(R){var j;let{erase:et,extend:K,isNumber:J}=R;return function(q){let Z;function tt(M){return this.addPlotBandOrLine(M,"plotBands")}function H(M,s){let w=this.userOptions,_=new Z(this,M);if(this.visible&&(_=_.render()),_){if(this._addedPlotLB||(this._addedPlotLB=!0,(w.plotLines||[]).concat(w.plotBands||[]).forEach(o=>{this.addPlotBandOrLine(o)})),s){let o=w[s]||[];o.push(M),w[s]=o}this.plotLinesAndBands.push(_)}return _}function X(M){return this.addPlotBandOrLine(M,"plotLines")}function B(M,s,w){w=w||this.options;let _=this.getPlotLinePath({value:s,force:!0,acrossPanes:w.acrossPanes}),o=[],u=this.horiz,C=!J(this.min)||!J(this.max)||Mthis.max&&s>this.max,E=this.getPlotLinePath({value:M,force:!0,acrossPanes:w.acrossPanes}),S,v=1,g;if(E&&_)for(C&&(g=E.toString()===_.toString(),v=0),S=0;S{var _;let w=[];for(let o of this.axes)for(let{label:u,options:C}of o.plotLinesAndBands)u&&!((_=C==null?void 0:C.label)!=null&&_.allowOverlap)&&w.push(u);return w})}),R.compose(d,s)}constructor(M,s){this.axis=M,this.options=s,this.id=s.id}render(){var mt,Et,Mt;H(this,"render");let{axis:M,options:s}=this,{horiz:w,logarithmic:_}=M,{color:o,events:u,zIndex:C=0}=s,E={},S=M.chart.renderer,v=s.to,g=s.from,x=s.value,p=s.borderWidth,l=s.label,{label:f,svgElem:b}=this,F=[],T,k=q(g)&&q(v),Q=q(x),st=!b,nt={class:"highcharts-plot-"+(k?"band ":"line ")+(s.className||"")},dt=k?"bands":"lines";if(!M.chart.styledMode&&(Q?(nt.stroke=o||"#999999",nt["stroke-width"]=U(s.width,1),s.dashStyle&&(nt.dashstyle=s.dashStyle)):k&&(nt.fill=o||"#e6e9ff",p&&(nt.stroke=s.borderColor,nt["stroke-width"]=p))),E.zIndex=C,dt+="-"+C,(T=M.plotLinesAndBandsGroups[dt])||(M.plotLinesAndBandsGroups[dt]=T=S.g("plot-"+dt).attr(E).add()),b||(this.svgElem=b=S.path().attr(nt).add(T)),q(x))F=M.getPlotLinePath({value:(mt=_==null?void 0:_.log2lin(x))!=null?mt:x,lineWidth:b.strokeWidth(),acrossPanes:s.acrossPanes});else{if(!(q(g)&&q(v)))return;F=M.getPlotBandPath((Et=_==null?void 0:_.log2lin(g))!=null?Et:g,(Mt=_==null?void 0:_.log2lin(v))!=null?Mt:v,s)}return!this.eventsAdded&&u&&(B(u,(I,Y)=>{b==null||b.on(Y,rt=>{u[Y].apply(this,[rt])})}),this.eventsAdded=!0),(st||!b.d)&&(F!=null&&F.length)?b.attr({d:F}):b&&(F?(b.show(),b.animate({d:F})):b.d&&(b.hide(),f&&(this.label=f=f.destroy()))),l&&(q(l.text)||q(l.formatter))&&(F!=null&&F.length)&&M.width>0&&M.height>0&&!F.isFlat?(l=X(zr({align:w&&k?"center":void 0,x:w?!k&&4:10,verticalAlign:!w&&k?"middle":void 0,y:w?k?16:10:k?6:-4,rotation:w&&!k?90:0},k?{inside:!0}:{}),l),this.renderLabel(l,F,k,C)):f&&f.hide(),this}renderLabel(M,s,w,_){var l;let o=this.axis,u=o.chart.renderer,C=M.inside,E=this.label;E||(this.label=E=u.text(this.getLabelText(M),0,0,M.useHTML).attr({align:M.textAlign||M.align,rotation:M.rotation,class:"highcharts-plot-"+(w?"band":"line")+"-label "+(M.className||""),zIndex:_}),o.chart.styledMode||E.css(X({fontSize:"0.8em",textOverflow:w&&!C?"":"ellipsis"},M.style)),E.add());let S=s.xBounds||[s[0][1],s[1][1],w?s[2][1]:s[0][1]],v=s.yBounds||[s[0][2],s[1][2],w?s[2][2]:s[0][2]],g=J(S),x=J(v),p=K(S)-g;E.align(M,!1,{x:g,y:x,width:p,height:K(v)-x}),(!E.alignValue||E.alignValue==="left"||q(C))&&E.css({width:(((l=M.style)==null?void 0:l.width)||(w&&C?p:E.rotation===90?o.height-(E.alignAttr.y-o.top):(M.clip?o.width:o.chart.chartWidth)-(E.alignAttr.x-o.left)))+"px"}),E.show(!0)}getLabelText(M){return q(M.formatter)?M.formatter.call(this):M.text}destroy(){tt(this.axis.plotLinesAndBands,this),delete this.axis,Z(this)}}return d}),y(m,"Core/Tooltip.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Templating.js"],m["Core/Globals.js"],m["Core/Renderer/RendererUtilities.js"],m["Core/Renderer/RendererRegistry.js"],m["Core/Utilities.js"]],function(R,j,et,K,J,q){var Z;let{animObject:tt}=R,{format:H}=j,{composed:X,doc:B,isSafari:U}=et,{distribute:d}=K,{addEvent:L,clamp:M,css:s,discardElement:w,extend:_,fireEvent:o,isArray:u,isNumber:C,isString:E,merge:S,pick:v,pushUnique:g,splat:x,syncTimeout:p}=q;class l{constructor(b,F,T){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=b,this.init(b,F),this.pointer=T}bodyFormatter(b){return b.map(function(F){let T=F.series.tooltipOptions;return(T[(F.point.formatPrefix||"point")+"Formatter"]||F.point.tooltipFormatter).call(F.point,T[(F.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(b){this.chart.series.forEach(function(F){let T=F&&F.tt;T&&(!T.isActive||b?F.tt=T.destroy():T.isActive=!1)})}defaultFormatter(b){let F,T=this.points||x(this);return(F=(F=[b.tooltipFooterHeaderFormatter(T[0])]).concat(b.bodyFormatter(T))).push(b.tooltipFooterHeaderFormatter(T[0],!0)),F}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(),w(this.container)),q.clearTimeout(this.hideTimer)}getAnchor(b,F){let T,{chart:k,pointer:Q}=this,st=k.inverted,nt=k.plotTop,dt=k.plotLeft;if((b=x(b))[0].series&&b[0].series.yAxis&&!b[0].series.yAxis.options.reversedStacks&&(b=b.slice().reverse()),this.followPointer&&F)F.chartX===void 0&&(F=Q.normalize(F)),T=[F.chartX-dt,F.chartY-nt];else if(b[0].tooltipPos)T=b[0].tooltipPos;else{let mt=0,Et=0;b.forEach(function(Mt){let I=Mt.pos(!0);I&&(mt+=I[0],Et+=I[1])}),mt/=b.length,Et/=b.length,this.shared&&b.length>1&&F&&(st?mt=F.chartX:Et=F.chartY),T=[mt-dt,Et-nt]}return T.map(Math.round)}getClassName(b,F,T){let k=this.options,Q=b.series,st=Q.options;return[k.className,"highcharts-label",T&&"highcharts-tooltip-header",F?"highcharts-tooltip-box":"highcharts-tooltip",!T&&"highcharts-color-"+v(b.colorIndex,Q.colorIndex),st&&st.className].filter(E).join(" ")}getLabel({anchorX:b,anchorY:F}={anchorX:0,anchorY:0}){let T=this,k=this.chart.styledMode,Q=this.options,st=this.split&&this.allowShared,nt=this.container,dt=this.chart.renderer;if(this.label){let mt=!this.label.hasClass("highcharts-label");(!st&&mt||st&&!mt)&&this.destroy()}if(!this.label){if(this.outside){let mt=this.chart.options.chart.style,Et=J.getRendererType();this.container=nt=et.doc.createElement("div"),nt.className="highcharts-tooltip-container",s(nt,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(mt&&mt.zIndex||0)+3)}),this.renderer=dt=new Et(nt,0,0,mt,void 0,void 0,dt.styledMode)}if(st?this.label=dt.g("tooltip"):(this.label=dt.label("",b,F,Q.shape,void 0,void 0,Q.useHTML,void 0,"tooltip").attr({padding:Q.padding,r:Q.borderRadius}),k||this.label.attr({fill:Q.backgroundColor,"stroke-width":Q.borderWidth||0}).css(Q.style).css({pointerEvents:Q.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),T.outside){let mt=this.label;[mt.xSetter,mt.ySetter].forEach((Et,Mt)=>{mt[Mt?"ySetter":"xSetter"]=I=>{Et.call(mt,T.distance),mt[Mt?"y":"x"]=I,nt&&(nt.style[Mt?"top":"left"]=`${I}px`)}})}this.label.attr({zIndex:8}).shadow(Q.shadow).add()}return nt&&!nt.parentElement&&et.doc.body.appendChild(nt),this.label}getPlayingField(){let{body:b,documentElement:F}=B,{chart:T,distance:k,outside:Q}=this;return{width:Q?Math.max(b.scrollWidth,F.scrollWidth,b.offsetWidth,F.offsetWidth,F.clientWidth)-2*k:T.chartWidth,height:Q?Math.max(b.scrollHeight,F.scrollHeight,b.offsetHeight,F.offsetHeight,F.clientHeight):T.chartHeight}}getPosition(b,F,T){var Zt,ne;let{distance:k,chart:Q,outside:st,pointer:nt}=this,{inverted:dt,plotLeft:mt,plotTop:Et,polar:Mt}=Q,{plotX:I=0,plotY:Y=0}=T,rt={},ot=dt&&T.h||0,{height:D,width:P}=this.getPlayingField(),W=nt.getChartPosition(),lt=Wt=>Wt*W.scaleX,it=Wt=>Wt*W.scaleY,vt=Wt=>{let le=Wt==="x";return[Wt,le?P:D,le?b:F].concat(st?[le?lt(b):it(F),le?W.left-k+lt(I+mt):W.top-k+it(Y+Et),0,le?P:D]:[le?b:F,le?I+mt:Y+Et,le?mt:Et,le?mt+Q.plotWidth:Et+Q.plotHeight])},pt=vt("y"),xt=vt("x"),Ct,Tt=!!T.negative;!Mt&&((ne=(Zt=Q.hoverSeries)==null?void 0:Zt.yAxis)!=null&&ne.reversed)&&(Tt=!Tt);let Nt=!this.followPointer&&v(T.ttBelow,!Mt&&!dt===Tt),gt=function(Wt,le,de,xe,be,Ye,tn){let an=st?Wt==="y"?it(k):lt(k):k,Jt=(de-xe)/2,Kt=xele?Bt:Bt+ot)}},wt=function(Wt,le,de,xe,be){if(bele-k)return!1;bele-xe/2?rt[Wt]=le-xe-2:rt[Wt]=be-de/2},Rt=function(Wt){[pt,xt]=[xt,pt],Ct=Wt},jt=()=>{gt.apply(0,pt)!==!1?wt.apply(0,xt)!==!1||Ct||(Rt(!0),jt()):Ct?rt.x=rt.y=0:(Rt(!0),jt())};return(dt&&!Mt||this.len>1)&&Rt(),jt(),rt}hide(b){let F=this;q.clearTimeout(this.hideTimer),b=v(b,this.options.hideDelay),this.isHidden||(this.hideTimer=p(function(){let T=F.getLabel();F.getLabel().animate({opacity:0},{duration:b&&150,complete:()=>{T.hide(),F.container&&F.container.remove()}}),F.isHidden=!0},b))}init(b,F){this.chart=b,this.options=F,this.crosshairs=[],this.isHidden=!0,this.split=F.split&&!b.inverted&&!b.polar,this.shared=F.shared||this.split,this.outside=v(F.outside,!!(b.scrollablePixelsX||b.scrollablePixelsY))}shouldStickOnContact(b){return!!(!this.followPointer&&this.options.stickOnContact&&(!b||this.pointer.inClass(b.target,"highcharts-tooltip")))}move(b,F,T,k){let Q=this,st=tt(!Q.isHidden&&Q.options.animation),nt=Q.followPointer||(Q.len||0)>1,dt={x:b,y:F};nt||(dt.anchorX=T,dt.anchorY=k),st.step=()=>Q.drawTracker(),Q.getLabel().animate(dt,st)}refresh(b,F){let{chart:T,options:k,pointer:Q,shared:st}=this,nt=x(b),dt=nt[0],mt=[],Et=k.format,Mt=k.formatter||this.defaultFormatter,I=T.styledMode,Y={},rt=this.allowShared;if(!k.enabled||!dt.series)return;q.clearTimeout(this.hideTimer),this.allowShared=!(!u(b)&&b.series&&b.series.noSharedTooltip),rt=rt&&!this.allowShared,this.followPointer=!this.split&&dt.series.tooltipOptions.followPointer;let ot=this.getAnchor(b,F),D=ot[0],P=ot[1];st&&this.allowShared?(Q.applyInactiveState(nt),nt.forEach(function(it){it.setState("hover"),mt.push(it.getLabelConfig())}),(Y=dt.getLabelConfig()).points=mt):Y=dt.getLabelConfig(),this.len=mt.length;let W=E(Et)?H(Et,Y,T):Mt.call(Y,this),lt=dt.series;if(this.distance=v(lt.tooltipOptions.distance,16),W===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(W,nt);else{let it=D,vt=P;if(F&&Q.isDirectTouch&&(it=F.chartX-T.plotLeft,vt=F.chartY-T.plotTop),T.polar||lt.options.clip===!1||nt.some(pt=>Q.isDirectTouch||pt.series.shouldShowTooltip(it,vt))){let pt=this.getLabel(rt&&this.tt||{});(!k.style.width||I)&&pt.css({width:(this.outside?this.getPlayingField():T.spacingBox).width+"px"}),pt.attr({class:this.getClassName(dt),text:W&&W.join?W.join(""):W}),this.outside&&pt.attr({x:M(pt.x||0,0,this.getPlayingField().width-(pt.width||0))}),I||pt.attr({stroke:k.borderColor||dt.color||lt.color||"#666666"}),this.updatePosition({plotX:D,plotY:P,negative:dt.negative,ttBelow:dt.ttBelow,h:ot[2]||0})}else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}o(this,"refresh")}renderSplit(b,F){var le;let T=this,{chart:k,chart:{chartWidth:Q,chartHeight:st,plotHeight:nt,plotLeft:dt,plotTop:mt,scrollablePixelsY:Et=0,scrollablePixelsX:Mt,styledMode:I},distance:Y,options:rt,options:{positioner:ot},pointer:D}=T,{scrollLeft:P=0,scrollTop:W=0}=((le=k.scrollablePlotArea)==null?void 0:le.scrollingContainer)||{},lt=T.outside&&typeof Mt!="number"?B.documentElement.getBoundingClientRect():{left:P,right:P+Q,top:W,bottom:W+st},it=T.getLabel(),vt=this.renderer||k.renderer,pt=!!(k.xAxis[0]&&k.xAxis[0].opposite),{left:xt,top:Ct}=D.getChartPosition(),Tt=mt+W,Nt=0,gt=nt-Et;function wt(de,xe,be,Ye,tn=!0){let an,Jt;return be?(an=pt?0:gt,Jt=M(de-Ye/2,lt.left,lt.right-Ye-(T.outside?xt:0))):(an=xe-Tt,Jt=M(Jt=tn?de-Ye-Y:de+Y,tn?Jt:lt.left,lt.right)),{x:Jt,y:an}}E(b)&&(b=[!1,b]);let Rt=b.slice(0,F.length+1).reduce(function(de,xe,be){if(xe!==!1&&xe!==""){let Ye=F[be-1]||{isHeader:!0,plotX:F[0].plotX,plotY:nt,series:{}},tn=Ye.isHeader,an=tn?T:Ye.series,Jt=an.tt=function(Ut,zt,ce){var hn;let _e=Ut,{isHeader:ye,series:qe}=zt;if(!_e){let yn={padding:rt.padding,r:rt.borderRadius};I||(yn.fill=rt.backgroundColor,yn["stroke-width"]=(hn=rt.borderWidth)!=null?hn:1),_e=vt.label("",0,0,rt[ye?"headerShape":"shape"],void 0,void 0,rt.useHTML).addClass(T.getClassName(zt,!0,ye)).attr(yn).add(it)}return _e.isActive=!0,_e.attr({text:ce}),I||_e.css(rt.style).attr({stroke:rt.borderColor||zt.color||qe.color||"#333333"}),_e}(an.tt,Ye,xe.toString()),Kt=Jt.getBBox(),te=Kt.width+Jt.strokeWidth();tn&&(Nt=Kt.height,gt+=Nt,pt&&(Tt-=Nt));let{anchorX:Ot,anchorY:Bt}=function(Ut){let zt,ce,{isHeader:_e,plotX:ye=0,plotY:qe=0,series:hn}=Ut;if(_e)zt=Math.max(dt+ye,dt),ce=mt+nt/2;else{let{xAxis:yn,yAxis:Nn}=hn;zt=yn.pos+M(ye,-Y,yn.len+Y),hn.shouldShowTooltip(0,Nn.pos-mt+qe,{ignoreX:!0})&&(ce=Nn.pos+qe)}return{anchorX:zt=M(zt,lt.left-Y,lt.right+Y),anchorY:ce}}(Ye);if(typeof Bt=="number"){let Ut=Kt.height+1,zt=ot?ot.call(T,te,Ut,Ye):wt(Ot,Bt,tn,te);de.push({align:ot?0:void 0,anchorX:Ot,anchorY:Bt,boxWidth:te,point:Ye,rank:v(zt.rank,tn?1:0),size:Ut,target:zt.y,tt:Jt,x:zt.x})}else Jt.isActive=!1}return de},[]);!ot&&Rt.some(de=>{let{outside:xe}=T,be=(xe?xt:0)+de.anchorX;return bebe})&&(Rt=Rt.map(de=>{let{x:xe,y:be}=wt(de.anchorX,de.anchorY,de.point.isHeader,de.boxWidth,!1);return _(de,{target:be,x:xe})})),T.cleanSplit(),d(Rt,gt);let jt={left:xt,right:xt};Rt.forEach(function(de){let{x:xe,boxWidth:be,isHeader:Ye}=de;!Ye&&(T.outside&&xt+xejt.right&&(jt.right=xt+xe))}),Rt.forEach(function(de){let{x:xe,anchorX:be,anchorY:Ye,pos:tn,point:{isHeader:an}}=de,Jt={visibility:tn===void 0?"hidden":"inherit",x:xe,y:(tn||0)+Tt,anchorX:be,anchorY:Ye};if(T.outside&&xe0&&(an||(Jt.x=xe+Kt,Jt.anchorX=be+Kt),an&&(Jt.x=(jt.right-jt.left)/2,Jt.anchorX=be+Kt))}de.tt.attr(Jt)});let{container:Zt,outside:ne,renderer:Wt}=T;if(ne&&Zt&&Wt){let{width:de,height:xe,x:be,y:Ye}=it.getBBox();Wt.setSize(de+be,xe+Ye,!1),Zt.style.left=jt.left+"px",Zt.style.top=Ct+"px"}U&&it.attr({opacity:it.opacity===1?.999:1})}drawTracker(){if(!this.shouldStickOnContact()){this.tracker&&(this.tracker=this.tracker.destroy());return}let b=this.chart,F=this.label,T=this.shared?b.hoverPoints:b.hoverPoint;if(!F||!T)return;let k={x:0,y:0,width:0,height:0},Q=this.getAnchor(T),st=F.getBBox();Q[0]+=b.plotLeft-(F.translateX||0),Q[1]+=b.plotTop-(F.translateY||0),k.x=Math.min(0,Q[0]),k.y=Math.min(0,Q[1]),k.width=Q[0]<0?Math.max(Math.abs(Q[0]),st.width-Q[0]):Math.max(Math.abs(Q[0]),st.width),k.height=Q[1]<0?Math.max(Math.abs(Q[1]),st.height-Math.abs(Q[1])):Math.max(Math.abs(Q[1]),st.height),this.tracker?this.tracker.attr(k):(this.tracker=F.renderer.rect(k).addClass("highcharts-tracker").add(F),b.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(b){return b.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}"')}tooltipFooterHeaderFormatter(b,F){let T=b.series,k=T.tooltipOptions,Q=T.xAxis,st=Q&&Q.dateTime,nt={isFooter:F,labelConfig:b},dt=k.xDateFormat,mt=k[F?"footerFormat":"headerFormat"];return o(this,"headerFormatter",nt,function(Et){st&&!dt&&C(b.key)&&(dt=st.getXDateFormat(b.key,k.dateTimeLabelFormats)),st&&dt&&(b.point&&b.point.tooltipDateKeys||["key"]).forEach(function(Mt){mt=mt.replace("{point."+Mt+"}","{point."+Mt+":"+dt+"}")}),T.chart.styledMode&&(mt=this.styledModeFormat(mt)),Et.text=H(mt,{point:b,series:T},this.chart)}),nt.text}update(b){this.destroy(),this.init(this.chart,S(!0,this.options,b))}updatePosition(b){let{chart:F,container:T,distance:k,options:Q,pointer:st,renderer:nt}=this,{height:dt=0,width:mt=0}=this.getLabel(),{left:Et,top:Mt,scaleX:I,scaleY:Y}=st.getChartPosition(),rt=(Q.positioner||this.getPosition).call(this,mt,dt,b),ot=(b.plotX||0)+F.plotLeft,D=(b.plotY||0)+F.plotTop,P;nt&&T&&(Q.positioner&&(rt.x+=Et-k,rt.y+=Mt-k),P=(Q.borderWidth||0)+2*k+2,nt.setSize(mt+P,dt+P,!1),(I!==1||Y!==1)&&(s(T,{transform:`scale(${I}, ${Y})`}),ot*=I,D*=Y),ot+=Et-rt.x,D+=Mt-rt.y),this.move(Math.round(rt.x),Math.round(rt.y||0),ot,D)}}return(Z=l||(l={})).compose=function(f){g(X,"Core.Tooltip")&&L(f,"afterInit",function(){let b=this.chart;b.options.tooltip&&(b.tooltip=new Z(b,b.options.tooltip,this))})},l}),y(m,"Core/Series/Point.js",[m["Core/Renderer/HTML/AST.js"],m["Core/Animation/AnimationUtilities.js"],m["Core/Defaults.js"],m["Core/Templating.js"],m["Core/Utilities.js"]],function(R,j,et,K,J){let{animObject:q}=j,{defaultOptions:Z}=et,{format:tt}=K,{addEvent:H,crisp:X,erase:B,extend:U,fireEvent:d,getNestedProperty:L,isArray:M,isFunction:s,isNumber:w,isObject:_,merge:o,pick:u,syncTimeout:C,removeEvent:E,uniqueKey:S}=J;class v{animateBeforeDestroy(){let x=this,p={x:x.startXPos,opacity:0},l=x.getGraphicalProps();l.singular.forEach(function(f){x[f]=x[f].animate(f==="dataLabel"?{x:x[f].startXPos,y:x[f].startYPos,opacity:0}:p)}),l.plural.forEach(function(f){x[f].forEach(function(b){b.element&&b.animate(U({x:x.startXPos},b.startYPos?{x:b.startXPos,y:b.startYPos}:{}))})})}applyOptions(x,p){let l=this.series,f=l.options.pointValKey||l.pointValKey;return U(this,x=v.prototype.optionsToObject.call(this,x)),this.options=this.options?U(this.options,x):x,x.group&&delete this.group,x.dataLabels&&delete this.dataLabels,f&&(this.y=v.prototype.getNestedProperty.call(this,f)),this.selected&&(this.state="select"),"name"in this&&p===void 0&&l.xAxis&&l.xAxis.hasNames&&(this.x=l.xAxis.nameToX(this)),this.x===void 0&&l?this.x=p!=null?p:l.autoIncrement():w(x.x)&&l.options.relativeXValue&&(this.x=l.autoIncrement(x.x)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let x=this,p=x.series,l=p.chart,f=p.options.dataSorting,b=l.hoverPoints,F=q(x.series.chart.renderer.globalAnimation),T=()=>{for(let k in(x.graphic||x.graphics||x.dataLabel||x.dataLabels)&&(E(x),x.destroyElements()),x)delete x[k]};x.legendItem&&l.legend.destroyItem(x),b&&(x.setState(),B(b,x),b.length||(l.hoverPoints=null)),x===l.hoverPoint&&x.onMouseOut(),f&&f.enabled?(this.animateBeforeDestroy(),C(T,F.duration)):T(),l.pointCount--}this.destroyed=!0}destroyElements(x){let p=this,l=p.getGraphicalProps(x);l.singular.forEach(function(f){p[f]=p[f].destroy()}),l.plural.forEach(function(f){p[f].forEach(function(b){b&&b.element&&b.destroy()}),delete p[f]})}firePointEvent(x,p,l){let f=this,b=this.series.options;f.manageEvent(x),x==="click"&&b.allowPointSelect&&(l=function(F){!f.destroyed&&f.select&&f.select(null,F.ctrlKey||F.metaKey||F.shiftKey)}),d(f,x,p,l)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(x){let p,l,f=this,b=[],F={singular:[],plural:[]};for((x=x||{graphic:1,dataLabel:1}).graphic&&b.push("graphic","connector"),x.dataLabel&&b.push("dataLabel","dataLabelPath","dataLabelUpper"),l=b.length;l--;)f[p=b[l]]&&F.singular.push(p);return["graphic","dataLabel"].forEach(function(T){let k=T+"s";x[T]&&f[k]&&F.plural.push(k)}),F}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(x){return x?x.indexOf("custom.")===0?L(x,this.options):this[x]:void 0}getZone(){let x=this.series,p=x.zones,l=x.zoneAxis||"y",f,b=0;for(f=p[0];this[l]>=f.value;)f=p[++b];return this.nonZonedColor||(this.nonZonedColor=this.color),f&&f.color&&!this.options.color?this.color=f.color:this.color=this.nonZonedColor,f}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(x,p,l){var f;this.formatPrefix="point",this.visible=!0,this.series=x,this.applyOptions(p,l),(f=this.id)!=null||(this.id=S()),this.resolveColor(),x.chart.pointCount++,d(this,"afterInit")}isValid(){return(w(this.x)||this.x instanceof Date)&&w(this.y)}optionsToObject(x){let p=this.series,l=p.options.keys,f=l||p.pointArrayMap||["y"],b=f.length,F={},T,k=0,Q=0;if(w(x)||x===null)F[f[0]]=x;else if(M(x))for(!l&&x.length>b&&((T=typeof x[0])=="string"?F.name=x[0]:T==="number"&&(F.x=x[0]),k++);Q0?v.prototype.setNestedProperty(F,x[k],f[Q]):F[f[Q]]=x[k]),k++,Q++;else typeof x=="object"&&(F=x,x.dataLabels&&(p.hasDataLabels=()=>!0),x.marker&&(p._hasPointMarkers=!0));return F}pos(x,p=this.plotY){if(!this.destroyed){let{plotX:l,series:f}=this,{chart:b,xAxis:F,yAxis:T}=f,k=0,Q=0;if(w(l)&&w(p))return x&&(k=F?F.pos:b.plotLeft,Q=T?T.pos:b.plotTop),b.inverted&&F&&T?[T.len-p+Q,F.len-l+k]:[l+k,p+Q]}}resolveColor(){let x=this.series,p=x.chart.options.chart,l=x.chart.styledMode,f,b,F=p.colorCount,T;delete this.nonZonedColor,x.options.colorByPoint?(l||(f=(b=x.options.colors||x.chart.options.colors)[x.colorCounter],F=b.length),T=x.colorCounter,x.colorCounter++,x.colorCounter===F&&(x.colorCounter=0)):(l||(f=x.color),T=x.colorIndex),this.colorIndex=u(this.options.colorIndex,T),this.color=u(this.options.color,f)}setNestedProperty(x,p,l){return l.split(".").reduce(function(f,b,F,T){let k=T.length-1===F;return f[b]=k?p:_(f[b],!0)?f[b]:{},f[b]},x),x}shouldDraw(){return!this.isNull}tooltipFormatter(x){let p=this.series,l=p.tooltipOptions,f=u(l.valueDecimals,""),b=l.valuePrefix||"",F=l.valueSuffix||"";return p.chart.styledMode&&(x=p.chart.tooltip.styledModeFormat(x)),(p.pointArrayMap||["y"]).forEach(function(T){T="{point."+T,(b||F)&&(x=x.replace(RegExp(T+"}","g"),b+T+"}"+F)),x=x.replace(RegExp(T+"}","g"),T+":,."+f+"f}")}),tt(x,{point:this,series:this.series},p.chart)}update(x,p,l,f){let b,F=this,T=F.series,k=F.graphic,Q=T.chart,st=T.options;function nt(){F.applyOptions(x);let dt=k&&F.hasMockGraphic,mt=F.y===null?!dt:dt;k&&mt&&(F.graphic=k.destroy(),delete F.hasMockGraphic),_(x,!0)&&(k&&k.element&&x&&x.marker&&x.marker.symbol!==void 0&&(F.graphic=k.destroy()),x!=null&&x.dataLabels&&F.dataLabel&&(F.dataLabel=F.dataLabel.destroy())),b=F.index,T.updateParallelArrays(F,b),st.data[b]=_(st.data[b],!0)||_(x,!0)?F.options:u(x,st.data[b]),T.isDirty=T.isDirtyData=!0,!T.fixedBox&&T.hasCartesianSeries&&(Q.isDirtyBox=!0),st.legendType==="point"&&(Q.isDirtyLegend=!0),p&&Q.redraw(l)}p=u(p,!0),f===!1?nt():F.firePointEvent("update",{options:x},nt)}remove(x,p){this.series.removePoint(this.series.data.indexOf(this),x,p)}select(x,p){let l=this,f=l.series,b=f.chart;x=u(x,!l.selected),this.selectedStaging=x,l.firePointEvent(x?"select":"unselect",{accumulate:p},function(){l.selected=l.options.selected=x,f.options.data[f.data.indexOf(l)]=l.options,l.setState(x&&"select"),p||b.getSelectedPoints().forEach(function(F){let T=F.series;F.selected&&F!==l&&(F.selected=F.options.selected=!1,T.options.data[T.data.indexOf(F)]=F.options,F.setState(b.hoverPoints&&T.options.inactiveOtherPoints?"inactive":""),F.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(x){let{inverted:p,pointer:l}=this.series.chart;l&&(x=x?l.normalize(x):l.getChartCoordinatesFromPoint(this,p),l.runPointActions(x,this))}onMouseOut(){let x=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(x.hoverPoints||[]).forEach(function(p){p.setState()}),x.hoverPoints=x.hoverPoint=null}manageEvent(x){var f,b,F,T,k,Q;let p=o(this.series.options.point,this.options),l=(f=p.events)==null?void 0:f[x];s(l)&&(!((b=this.hcEvents)!=null&&b[x])||((T=(F=this.hcEvents)==null?void 0:F[x])==null?void 0:T.map(st=>st.fn).indexOf(l))===-1)?((k=this.importedUserEvent)==null||k.call(this),this.importedUserEvent=H(this,x,l)):this.importedUserEvent&&!l&&((Q=this.hcEvents)!=null&&Q[x])&&(E(this,x),delete this.hcEvents[x],Object.keys(this.hcEvents)||delete this.importedUserEvent)}setState(x,p){var W;let l=this.series,f=this.state,b=l.options.states[x||"normal"]||{},F=Z.plotOptions[l.type].marker&&l.options.marker,T=F&&F.enabled===!1,k=F&&F.states&&F.states[x||"normal"]||{},Q=k.enabled===!1,st=this.marker||{},nt=l.chart,dt=F&&l.markerAttribs,mt=l.halo,Et,Mt,I,Y=l.stateMarkerGraphic,rt;if((x=x||"")===this.state&&!p||this.selected&&x!=="select"||b.enabled===!1||x&&(Q||T&&k.enabled===!1)||x&&st.states&&st.states[x]&&st.states[x].enabled===!1)return;if(this.state=x,dt&&(Et=l.markerAttribs(this,x)),this.graphic&&!this.hasMockGraphic){if(f&&this.graphic.removeClass("highcharts-point-"+f),x&&this.graphic.addClass("highcharts-point-"+x),!nt.styledMode){Mt=l.pointAttribs(this,x),I=u(nt.options.chart.animation,b.animation);let lt=Mt.opacity;l.options.inactiveOtherPoints&&w(lt)&&(this.dataLabels||[]).forEach(function(it){it&&!it.hasClass("highcharts-data-label-hidden")&&(it.animate({opacity:lt},I),it.connector&&it.connector.animate({opacity:lt},I))}),this.graphic.animate(Mt,I)}Et&&this.graphic.animate(Et,u(nt.options.chart.animation,k.animation,F.animation)),Y&&Y.hide()}else x&&k&&(rt=st.symbol||l.symbol,Y&&Y.currentSymbol!==rt&&(Y=Y.destroy()),Et&&(Y?Y[p?"animate":"attr"]({x:Et.x,y:Et.y}):rt&&(l.stateMarkerGraphic=Y=nt.renderer.symbol(rt,Et.x,Et.y,Et.width,Et.height).add(l.markerGroup),Y.currentSymbol=rt)),!nt.styledMode&&Y&&this.state!=="inactive"&&Y.attr(l.pointAttribs(this,x))),Y&&(Y[x&&this.isInside?"show":"hide"](),Y.element.point=this,Y.addClass(this.getClassName(),!0));let ot=b.halo,D=this.graphic||Y,P=D&&D.visibility||"inherit";ot&&ot.size&&D&&P!=="hidden"&&!this.isCluster?(mt||(l.halo=mt=nt.renderer.path().add(D.parentGroup)),mt.show()[p?"animate":"attr"]({d:this.haloPath(ot.size)}),mt.attr({class:"highcharts-halo highcharts-color-"+u(this.colorIndex,l.colorIndex)+(this.className?" "+this.className:""),visibility:P,zIndex:-1}),mt.point=this,nt.styledMode||mt.attr(U({fill:this.color||l.color,"fill-opacity":ot.opacity},R.filterUserAttributes(ot.attributes||{})))):(W=mt==null?void 0:mt.point)!=null&&W.haloPath&&!mt.point.destroyed&&mt.animate({d:mt.point.haloPath(0)},null,mt.hide),d(this,"afterSetState",{state:x})}haloPath(x){let p=this.pos();return p?this.series.chart.renderer.symbols.circle(X(p[0],1)-x,p[1]-x,2*x,2*x):[]}}return v}),y(m,"Core/Pointer.js",[m["Core/Color/Color.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j,et){var K;let{parse:J}=R,{charts:q,composed:Z,isTouchDevice:tt}=j,{addEvent:H,attr:X,css:B,extend:U,find:d,fireEvent:L,isNumber:M,isObject:s,objectEach:w,offset:_,pick:o,pushUnique:u,splat:C}=et;class E{applyInactiveState(v){let g=[],x;(v||[]).forEach(function(p){x=p.series,g.push(x),x.linkedParent&&g.push(x.linkedParent),x.linkedSeries&&(g=g.concat(x.linkedSeries)),x.navigatorSeries&&g.push(x.navigatorSeries)}),this.chart.series.forEach(function(p){g.indexOf(p)===-1?p.setState("inactive",!0):p.options.inactiveOtherPoints&&p.setAllPointsToState("inactive")})}destroy(){let v=this;this.eventsToUnbind.forEach(g=>g()),this.eventsToUnbind=[],!j.chartCount&&(E.unbindDocumentMouseUp&&E.unbindDocumentMouseUp.forEach(g=>g()),E.unbindDocumentTouchEnd&&(E.unbindDocumentTouchEnd=E.unbindDocumentTouchEnd())),clearInterval(v.tooltipTimeout),w(v,function(g,x){v[x]=void 0})}getSelectionMarkerAttrs(v,g){let x={args:{chartX:v,chartY:g},attrs:{},shapeType:"rect"};return L(this,"getSelectionMarkerAttrs",x,p=>{let l,{chart:f,zoomHor:b,zoomVert:F}=this,{mouseDownX:T=0,mouseDownY:k=0}=f,Q=p.attrs;Q.x=f.plotLeft,Q.y=f.plotTop,Q.width=b?1:f.plotWidth,Q.height=F?1:f.plotHeight,b&&(l=v-T,Q.width=Math.max(1,Math.abs(l)),Q.x=(l>0?0:l)+T),F&&(l=g-k,Q.height=Math.max(1,Math.abs(l)),Q.y=(l>0?0:l)+k)}),x}drag(v){let{chart:g}=this,{mouseDownX:x=0,mouseDownY:p=0}=g,{panning:l,panKey:f,selectionMarkerFill:b}=g.options.chart,F=g.plotLeft,T=g.plotTop,k=g.plotWidth,Q=g.plotHeight,st=s(l)?l.enabled:l,nt=f&&v[`${f}Key`],dt=v.chartX,mt=v.chartY,Et,Mt=this.selectionMarker;if((!Mt||!Mt.touch)&&(dtF+k&&(dt=F+k),mtT+Q&&(mt=T+Q),this.hasDragged=Math.sqrt(Math.pow(x-dt,2)+Math.pow(p-mt,2)),this.hasDragged>10)){Et=g.isInsidePlot(x-F,p-T,{visiblePlotOnly:!0});let{shapeType:I,attrs:Y}=this.getSelectionMarkerAttrs(dt,mt);(g.hasCartesianSeries||g.mapView)&&this.hasZoom&&Et&&!nt&&!Mt&&(this.selectionMarker=Mt=g.renderer[I](),Mt.attr({class:"highcharts-selection-marker",zIndex:7}).add(),g.styledMode||Mt.attr({fill:b||J("#334eff").setOpacity(.25).get()})),Mt&&Mt.attr(Y),Et&&!Mt&&st&&g.pan(v,l)}}dragStart(v){let g=this.chart;g.mouseIsDown=v.type,g.cancelClick=!1,g.mouseDownX=v.chartX,g.mouseDownY=v.chartY}getSelectionBox(v){let g={args:{marker:v},result:v.getBBox()};return L(this,"getSelectionBox",g),g.result}drop(v){let g,{chart:x,selectionMarker:p}=this;for(let l of x.axes)l.isPanning&&(l.isPanning=!1,(l.options.startOnTick||l.options.endOnTick||l.series.some(f=>f.boosted))&&(l.forceRedraw=!0,l.setExtremes(l.userMin,l.userMax,!1),g=!0));if(g&&x.redraw(),p&&v){if(this.hasDragged){let l=this.getSelectionBox(p);x.transform({axes:x.axes.filter(f=>f.zoomEnabled&&(f.coll==="xAxis"&&this.zoomX||f.coll==="yAxis"&&this.zoomY)),selection:zr({originalEvent:v,xAxis:[],yAxis:[]},l),from:l})}M(x.index)&&(this.selectionMarker=p.destroy())}x&&M(x.index)&&(B(x.container,{cursor:x._cursor}),x.cancelClick=this.hasDragged>10,x.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(v,g,x){let p;return v.forEach(function(l){let f=!(l.noSharedTooltip&&g)&&0>l.options.findNearestPointBy.indexOf("y"),b=l.searchPoint(x,f);s(b,!0)&&b.series&&(!s(p,!0)||function(F,T){var nt,dt;let k=F.distX-T.distX,Q=F.dist-T.dist,st=((nt=T.series.group)==null?void 0:nt.zIndex)-((dt=F.series.group)==null?void 0:dt.zIndex);return k!==0&&g?k:Q!==0?Q:st!==0?st:F.series.index>T.series.index?-1:1}(p,b)>0)&&(p=b)}),p}getChartCoordinatesFromPoint(v,g){var f,b;let{xAxis:x,yAxis:p}=v.series,l=v.shapeArgs;if(x&&p){let F=(b=(f=v.clientX)!=null?f:v.plotX)!=null?b:0,T=v.plotY||0;return v.isNode&&l&&M(l.x)&&M(l.y)&&(F=l.x,T=l.y),g?{chartX:p.len+p.pos-T,chartY:x.len+x.pos-F}:{chartX:F+x.pos,chartY:T+p.pos}}if(l&&l.x&&l.y)return{chartX:l.x,chartY:l.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:v}=this.chart,g=_(v);this.chartPosition={left:g.left,top:g.top,scaleX:1,scaleY:1};let{offsetHeight:x,offsetWidth:p}=v;return p>2&&x>2&&(this.chartPosition.scaleX=g.width/p,this.chartPosition.scaleY=g.height/x),this.chartPosition}getCoordinates(v){let g={xAxis:[],yAxis:[]};for(let x of this.chart.axes)g[x.isXAxis?"xAxis":"yAxis"].push({axis:x,value:x.toValue(v[x.horiz?"chartX":"chartY"])});return g}getHoverData(v,g,x,p,l,f){let b=[],F=function(nt){return nt.visible&&!(!l&&nt.directTouch)&&o(nt.options.enableMouseTracking,!0)},T=g,k,Q={chartX:f?f.chartX:void 0,chartY:f?f.chartY:void 0,shared:l};L(this,"beforeGetHoverData",Q),k=T&&!T.stickyTracking?[T]:x.filter(nt=>nt.stickyTracking&&(Q.filter||F)(nt));let st=p&&v||!f?v:this.findNearestKDPoint(k,l,f);return T=st&&st.series,st&&(l&&!T.noSharedTooltip?(k=x.filter(function(nt){return Q.filter?Q.filter(nt):F(nt)&&!nt.noSharedTooltip})).forEach(function(nt){let dt=d(nt.points,function(mt){return mt.x===st.x&&!mt.isNull});s(dt)&&(nt.boosted&&nt.boost&&(dt=nt.boost.getPoint(dt)),b.push(dt))}):b.push(st)),L(this,"afterGetHoverData",Q={hoverPoint:st}),{hoverPoint:Q.hoverPoint,hoverSeries:T,hoverPoints:b}}getPointFromEvent(v){let g=v.target,x;for(;g&&!x;)x=g.point,g=g.parentNode;return x}onTrackerMouseOut(v){let g=this.chart,x=v.relatedTarget,p=g.hoverSeries;this.isDirectTouch=!1,!p||!x||p.stickyTracking||this.inClass(x,"highcharts-tooltip")||this.inClass(x,"highcharts-series-"+p.index)&&this.inClass(x,"highcharts-tracker")||p.onMouseOut()}inClass(v,g){let x=v,p;for(;x;){if(p=X(x,"class")){if(p.indexOf(g)!==-1)return!0;if(p.indexOf("highcharts-container")!==-1)return!1}x=x.parentElement}}constructor(v,g){var x;this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=g,this.chart=v,this.runChartClick=!!((x=g.chart.events)!=null&&x.click),this.pinchDown=[],this.setDOMEvents(),L(this,"afterInit")}normalize(v,g){let x=v.touches,p=x?x.length?x.item(0):o(x.changedTouches,v.changedTouches)[0]:v;g||(g=this.getChartPosition());let l=p.pageX-g.left,f=p.pageY-g.top;return U(v,{chartX:Math.round(l/=g.scaleX),chartY:Math.round(f/=g.scaleY)})}onContainerClick(v){let g=this.chart,x=g.hoverPoint,p=this.normalize(v),l=g.plotLeft,f=g.plotTop;!g.cancelClick&&(x&&this.inClass(p.target,"highcharts-tracker")?(L(x.series,"click",U(p,{point:x})),g.hoverPoint&&x.firePointEvent("click",p)):(U(p,this.getCoordinates(p)),g.isInsidePlot(p.chartX-l,p.chartY-f,{visiblePlotOnly:!0})&&L(g,"click",p)))}onContainerMouseDown(v){var x;let g=(1&(v.buttons||v.button))==1;v=this.normalize(v),j.isFirefox&&v.button!==0&&this.onContainerMouseMove(v),(v.button===void 0||g)&&(this.zoomOption(v),g&&((x=v.preventDefault)==null||x.call(v)),this.dragStart(v))}onContainerMouseLeave(v){let{pointer:g}=q[o(E.hoverChartIndex,-1)]||{};v=this.normalize(v),this.onContainerMouseMove(v),g&&!this.inClass(v.relatedTarget,"highcharts-tooltip")&&(g.reset(),g.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(v){let g=this.chart,x=g.tooltip,p=this.normalize(v);this.setHoverChartIndex(v),(g.mouseIsDown==="mousedown"||this.touchSelect(p))&&this.drag(p),!g.openMenu&&(this.inClass(p.target,"highcharts-tracker")||g.isInsidePlot(p.chartX-g.plotLeft,p.chartY-g.plotTop,{visiblePlotOnly:!0}))&&!(x&&x.shouldStickOnContact(p))&&(this.inClass(p.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(p))}onDocumentTouchEnd(v){this.onDocumentMouseUp(v)}onContainerTouchMove(v){this.touchSelect(v)?this.onContainerMouseMove(v):this.touch(v)}onContainerTouchStart(v){this.touchSelect(v)?this.onContainerMouseDown(v):(this.zoomOption(v),this.touch(v,!0))}onDocumentMouseMove(v){let g=this.chart,x=g.tooltip,p=this.chartPosition,l=this.normalize(v,p);!p||g.isInsidePlot(l.chartX-g.plotLeft,l.chartY-g.plotTop,{visiblePlotOnly:!0})||x&&x.shouldStickOnContact(l)||l.target!==g.container.ownerDocument&&this.inClass(l.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(v){var g,x;(x=(g=q[o(E.hoverChartIndex,-1)])==null?void 0:g.pointer)==null||x.drop(v)}pinch(v){let g=this,{chart:x,hasZoom:p,lastTouches:l}=g,f=[].map.call(v.touches||[],Q=>g.normalize(Q)),b=f.length,F=b===1&&(g.inClass(v.target,"highcharts-tracker")&&x.runTrackerClick||g.runChartClick),T=x.tooltip,k=b===1&&o(T==null?void 0:T.options.followTouchMove,!0);b>1?g.initiated=!0:k&&(g.initiated=!1),p&&g.initiated&&!F&&v.cancelable!==!1&&v.preventDefault(),v.type==="touchstart"?(g.pinchDown=f,g.res=!0,x.mouseDownX=v.chartX):k?this.runPointActions(g.normalize(v)):l&&(L(x,"touchpan",{originalEvent:v,touches:f},()=>{let Q=st=>{let nt=st[0],dt=st[1]||nt;return{x:nt.chartX,y:nt.chartY,width:dt.chartX-nt.chartX,height:dt.chartY-nt.chartY}};x.transform({axes:x.axes.filter(st=>st.zoomEnabled&&(this.zoomHor&&st.horiz||this.zoomVert&&!st.horiz)),to:Q(f),from:Q(l),trigger:v.type})}),g.res&&(g.res=!1,this.reset(!1,0))),g.lastTouches=f}reset(v,g){let x=this.chart,p=x.hoverSeries,l=x.hoverPoint,f=x.hoverPoints,b=x.tooltip,F=b&&b.shared?f:l;v&&F&&C(F).forEach(function(T){T.series.isCartesian&&T.plotX===void 0&&(v=!1)}),v?b&&F&&C(F).length&&(b.refresh(F),b.shared&&f?f.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))}):l&&(l.setState(l.state,!0),x.axes.forEach(function(T){T.crosshair&&l.series[T.coll]===T&&T.drawCrosshair(null,l)}))):(l&&l.onMouseOut(),f&&f.forEach(function(T){T.setState()}),p&&p.onMouseOut(),b&&b.hide(g),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),x.axes.forEach(function(T){T.hideCrosshair()}),x.hoverPoints=x.hoverPoint=void 0)}runPointActions(v,g,x){let p=this.chart,l=p.series,f=p.tooltip&&p.tooltip.options.enabled?p.tooltip:void 0,b=!!f&&f.shared,F=g||p.hoverPoint,T=F&&F.series||p.hoverSeries,k=(!v||v.type!=="touchmove")&&(!!g||T&&T.directTouch&&this.isDirectTouch),Q=this.getHoverData(F,T,l,k,b,v);F=Q.hoverPoint,T=Q.hoverSeries;let st=Q.hoverPoints,nt=T&&T.tooltipOptions.followPointer&&!T.tooltipOptions.split,dt=b&&T&&!T.noSharedTooltip;if(F&&(x||F!==p.hoverPoint||f&&f.isHidden)){if((p.hoverPoints||[]).forEach(function(mt){st.indexOf(mt)===-1&&mt.setState()}),p.hoverSeries!==T&&T.onMouseOver(),this.applyInactiveState(st),(st||[]).forEach(function(mt){mt.setState("hover")}),p.hoverPoint&&p.hoverPoint.firePointEvent("mouseOut"),!F.series)return;p.hoverPoints=st,p.hoverPoint=F,F.firePointEvent("mouseOver",void 0,()=>{f&&F&&f.refresh(dt?st:F,v)})}else if(nt&&f&&!f.isHidden){let mt=f.getAnchor([{}],v);p.isInsidePlot(mt[0],mt[1],{visiblePlotOnly:!0})&&f.updatePosition({plotX:mt[0],plotY:mt[1]})}this.unDocMouseMove||(this.unDocMouseMove=H(p.container.ownerDocument,"mousemove",mt=>{var Et,Mt,I;return(I=(Mt=q[(Et=E.hoverChartIndex)!=null?Et:-1])==null?void 0:Mt.pointer)==null?void 0:I.onDocumentMouseMove(mt)}),this.eventsToUnbind.push(this.unDocMouseMove)),p.axes.forEach(function(mt){let Et,Mt=o((mt.crosshair||{}).snap,!0);!Mt||(Et=p.hoverPoint)&&Et.series[mt.coll]===mt||(Et=d(st,I=>I.series&&I.series[mt.coll]===mt)),Et||!Mt?mt.drawCrosshair(v,Et):mt.hideCrosshair()})}setDOMEvents(){let v=this.chart.container,g=v.ownerDocument;v.onmousedown=this.onContainerMouseDown.bind(this),v.onmousemove=this.onContainerMouseMove.bind(this),v.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(H(v,"mouseenter",this.onContainerMouseEnter.bind(this)),H(v,"mouseleave",this.onContainerMouseLeave.bind(this))),E.unbindDocumentMouseUp||(E.unbindDocumentMouseUp=[]),E.unbindDocumentMouseUp.push(H(g,"mouseup",this.onDocumentMouseUp.bind(this)));let x=this.chart.renderTo.parentElement;for(;x&&x.tagName!=="BODY";)this.eventsToUnbind.push(H(x,"scroll",()=>{delete this.chartPosition})),x=x.parentElement;this.eventsToUnbind.push(H(v,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),H(v,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),E.unbindDocumentTouchEnd||(E.unbindDocumentTouchEnd=H(g,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),H(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){var l,f;if(!tt)return;let v=this.pointerCaptureEventsToUnbind,g=this.chart,x=g.container,p=o((l=g.options.tooltip)==null?void 0:l.followTouchMove,!0)&&g.series.some(b=>b.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&p?(v.push(H(x,"pointerdown",b=>{var F,T;(F=b.target)!=null&&F.hasPointerCapture(b.pointerId)&&((T=b.target)==null||T.releasePointerCapture(b.pointerId))}),H(x,"pointermove",b=>{var F,T;(T=(F=g.pointer)==null?void 0:F.getPointFromEvent(b))==null||T.onMouseOver(b)})),g.styledMode||B(x,{"touch-action":"none"}),x.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!p&&(v.forEach(b=>b()),v.length=0,g.styledMode||B(x,{"touch-action":o((f=g.options.chart.style)==null?void 0:f["touch-action"],"manipulation")}),x.className=x.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(v){var p;let g=this.chart,x=j.charts[o(E.hoverChartIndex,-1)];if(x&&x!==g){let l={relatedTarget:g.container};v&&!(v!=null&&v.relatedTarget)&&(v=zr(zr({},l),v)),(p=x.pointer)==null||p.onContainerMouseLeave(v||l)}x&&x.mouseIsDown||(E.hoverChartIndex=g.index)}touch(v,g){let x,{chart:p,pinchDown:l=[]}=this;this.setHoverChartIndex(),(v=this.normalize(v)).touches.length===1?p.isInsidePlot(v.chartX-p.plotLeft,v.chartY-p.plotTop,{visiblePlotOnly:!0})&&!p.openMenu?(g&&this.runPointActions(v),v.type==="touchmove"&&(x=!!l[0]&&Math.pow(l[0].chartX-v.chartX,2)+Math.pow(l[0].chartY-v.chartY,2)>=16),o(x,!0)&&this.pinch(v)):g&&this.reset():v.touches.length===2&&this.pinch(v)}touchSelect(v){return!!(this.chart.zooming.singleTouch&&v.touches&&v.touches.length===1)}zoomOption(v){let g=this.chart,x=g.inverted,p=g.zooming.type||"",l,f;/touch/.test(v.type)&&(p=o(g.zooming.pinchType,p)),this.zoomX=l=/x/.test(p),this.zoomY=f=/y/.test(p),this.zoomHor=l&&!x||f&&x,this.zoomVert=f&&!x||l&&x,this.hasZoom=l||f}}return(K=E||(E={})).compose=function(S){u(Z,"Core.Pointer")&&H(S,"beforeRender",function(){this.pointer=new K(this,this.options)})},E}),y(m,"Core/Legend/LegendSymbol.js",[m["Core/Utilities.js"]],function(R){var j;let{extend:et,merge:K,pick:J}=R;return function(q){function Z(tt,H,X){var x,p;let B=this.legendItem=this.legendItem||{},{chart:U,options:d}=this,{baseline:L=0,symbolWidth:M,symbolHeight:s}=tt,w=this.symbol||"circle",_=s/2,o=U.renderer,u=B.group,C=L-Math.round((((x=tt.fontMetrics)==null?void 0:x.b)||s)*(X?.4:.3)),E={},S,v=d.marker,g=0;if(U.styledMode||(E["stroke-width"]=Math.min(d.lineWidth||0,24),d.dashStyle?E.dashstyle=d.dashStyle:d.linecap==="square"||(E["stroke-linecap"]="round")),B.line=o.path().addClass("highcharts-graph").attr(E).add(u),X&&(B.area=o.path().addClass("highcharts-area").add(u)),E["stroke-linecap"]&&(g=Math.min(B.line.strokeWidth(),M)/2),M){let l=[["M",g,C],["L",M-g,C]];B.line.attr({d:l}),(p=B.area)==null||p.attr({d:[...l,["L",M-g,L],["L",g,L]]})}if(v&&v.enabled!==!1&&M){let l=Math.min(J(v.radius,_),_);w.indexOf("url")===0&&(v=K(v,{width:s,height:s}),l=0),B.symbol=S=o.symbol(w,M/2-l,C-l,2*l,2*l,et({context:"legend"},v)).addClass("highcharts-point").add(u),S.isMarker=!0}}q.areaMarker=function(tt,H){Z.call(this,tt,H,!0)},q.lineMarker=Z,q.rectangle=function(tt,H){let X=H.legendItem||{},B=tt.options,U=tt.symbolHeight,d=B.squareSymbol,L=d?U:tt.symbolWidth;X.symbol=this.chart.renderer.rect(d?(tt.symbolWidth-U)/2:0,tt.baseline-U+1,L,U,J(tt.options.symbolRadius,U/2)).addClass("highcharts-point").attr({zIndex:3}).add(X.group)}}(j||(j={})),j}),y(m,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:R}=this.series.chart;return typeof this.y!="number"?"":R(this.y,-1)},padding:5,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"}}),y(m,"Core/Series/SeriesRegistry.js",[m["Core/Globals.js"],m["Core/Defaults.js"],m["Core/Series/Point.js"],m["Core/Utilities.js"]],function(R,j,et,K){var J;let{defaultOptions:q}=j,{extend:Z,extendClass:tt,merge:H}=K;return function(X){function B(U,d){let L=q.plotOptions||{},M=d.defaultOptions,s=d.prototype;return s.type=U,s.pointClass||(s.pointClass=et),!X.seriesTypes[U]&&(M&&(L[U]=M),X.seriesTypes[U]=d,!0)}X.seriesTypes=R.seriesTypes,X.registerSeriesType=B,X.seriesType=function(U,d,L,M,s){let w=q.plotOptions||{};if(d=d||"",w[U]=H(w[d],L),delete X.seriesTypes[U],B(U,tt(X.seriesTypes[d]||function(){},M)),X.seriesTypes[U].prototype.type=U,s){class _ extends et{}Z(_.prototype,s),X.seriesTypes[U].prototype.pointClass=_}return X.seriesTypes[U]}}(J||(J={})),J}),y(m,"Core/Series/Series.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Defaults.js"],m["Core/Foundation.js"],m["Core/Globals.js"],m["Core/Legend/LegendSymbol.js"],m["Core/Series/Point.js"],m["Core/Series/SeriesDefaults.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Renderer/SVG/SVGElement.js"],m["Core/Utilities.js"]],function(R,j,et,K,J,q,Z,tt,H,X){let{animObject:B,setAnimation:U}=R,{defaultOptions:d}=j,{registerEventOptions:L}=et,{svg:M,win:s}=K,{seriesTypes:w}=tt,{arrayMax:_,arrayMin:o,clamp:u,correctFloat:C,crisp:E,defined:S,destroyObjectProperties:v,diffObjects:g,erase:x,error:p,extend:l,find:f,fireEvent:b,getClosestDistance:F,getNestedProperty:T,insertItem:k,isArray:Q,isNumber:st,isString:nt,merge:dt,objectEach:mt,pick:Et,removeEvent:Mt,splat:I,syncTimeout:Y}=X;class rt{constructor(){this.zoneAxis="y"}init(D,P){let W;b(this,"init",{options:P});let lt=this,it=D.series;this.eventsToUnbind=[],lt.chart=D,lt.options=lt.setOptions(P);let vt=lt.options,pt=vt.visible!==!1;lt.linkedSeries=[],lt.bindAxes(),l(lt,{name:vt.name,state:"",visible:pt,selected:vt.selected===!0}),L(this,vt);let xt=vt.events;(xt&&xt.click||vt.point&&vt.point.events&&vt.point.events.click||vt.allowPointSelect)&&(D.runTrackerClick=!0),lt.getColor(),lt.getSymbol(),lt.parallelArrays.forEach(function(Ct){lt[Ct+"Data"]||(lt[Ct+"Data"]=[])}),lt.isCartesian&&(D.hasCartesianSeries=!0),it.length&&(W=it[it.length-1]),lt._i=Et(W&&W._i,-1)+1,lt.opacity=lt.options.opacity,D.orderItems("series",k(this,it)),vt.dataSorting&&vt.dataSorting.enabled?lt.setDataSortingOptions():lt.points||lt.data||lt.setData(vt.data,!1),b(this,"afterInit")}is(D){return w[D]&&this instanceof w[D]}bindAxes(){let D,P=this,W=P.options,lt=P.chart;b(this,"bindAxes",null,function(){(P.axisTypes||[]).forEach(function(it){(lt[it]||[]).forEach(function(vt){D=vt.options,(Et(W[it],0)===vt.index||W[it]!==void 0&&W[it]===D.id)&&(k(P,vt.series),P[it]=vt,vt.isDirty=!0)}),P[it]||P.optionalAxis===it||p(18,!0,lt)})}),b(this,"afterBindAxes")}updateParallelArrays(D,P,W){let lt=D.series,it=st(P)?function(vt){let pt=vt==="y"&<.toYData?lt.toYData(D):D[vt];lt[vt+"Data"][P]=pt}:function(vt){Array.prototype[P].apply(lt[vt+"Data"],W)};lt.parallelArrays.forEach(it)}hasData(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&this.yData.length>0}hasMarkerChanged(D,P){let W=D.marker,lt=P.marker||{};return W&&(lt.enabled&&!W.enabled||lt.symbol!==W.symbol||lt.height!==W.height||lt.width!==W.width)}autoIncrement(D){let P=this.options,W=P.pointIntervalUnit,lt=P.relativeXValue,it=this.chart.time,vt=this.xIncrement,pt,xt;return vt=Et(vt,P.pointStart,0),this.pointInterval=xt=Et(this.pointInterval,P.pointInterval,1),lt&&st(D)&&(xt*=D),W&&(pt=new it.Date(vt),W==="day"?it.set("Date",pt,it.get("Date",pt)+xt):W==="month"?it.set("Month",pt,it.get("Month",pt)+xt):W==="year"&&it.set("FullYear",pt,it.get("FullYear",pt)+xt),xt=pt.getTime()-vt),lt&&st(D)?vt+xt:(this.xIncrement=vt+xt,vt)}setDataSortingOptions(){let D=this.options;l(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),S(D.pointRange)||(D.pointRange=1)}setOptions(D){var Zt,ne;let P,W=this.chart,lt=W.options.plotOptions,it=W.userOptions||{},vt=dt(D),pt=W.styledMode,xt={plotOptions:lt,userOptions:vt};b(this,"setOptions",xt);let Ct=xt.plotOptions[this.type],Tt=it.plotOptions||{},Nt=Tt.series||{},gt=d.plotOptions[this.type]||{},wt=Tt[this.type]||{};this.userOptions=xt.userOptions;let Rt=dt(Ct,lt.series,wt,vt);this.tooltipOptions=dt(d.tooltip,(Zt=d.plotOptions.series)==null?void 0:Zt.tooltip,gt==null?void 0:gt.tooltip,W.userOptions.tooltip,(ne=Tt.series)==null?void 0:ne.tooltip,wt.tooltip,vt.tooltip),this.stickyTracking=Et(vt.stickyTracking,wt.stickyTracking,Nt.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||Rt.stickyTracking),Ct.marker===null&&delete Rt.marker,this.zoneAxis=Rt.zoneAxis||"y";let jt=this.zones=(Rt.zones||[]).map(Wt=>zr({},Wt));return(Rt.negativeColor||Rt.negativeFillColor)&&!Rt.zones&&(P={value:Rt[this.zoneAxis+"Threshold"]||Rt.threshold||0,className:"highcharts-negative"},pt||(P.color=Rt.negativeColor,P.fillColor=Rt.negativeFillColor),jt.push(P)),jt.length&&S(jt[jt.length-1].value)&&jt.push(pt?{}:{color:this.color,fillColor:this.fillColor}),b(this,"afterSetOptions",{options:Rt}),Rt}getName(){return Et(this.options.name,"Series "+(this.index+1))}getCyclic(D,P,W){let lt,it,vt=this.chart,pt=`${D}Index`,xt=`${D}Counter`,Ct=(W==null?void 0:W.length)||vt.options.chart.colorCount;!P&&(S(it=Et(D==="color"?this.options.colorIndex:void 0,this[pt]))?lt=it:(vt.series.length||(vt[xt]=0),lt=vt[xt]%Ct,vt[xt]+=1),W&&(P=W[lt])),lt!==void 0&&(this[pt]=lt),this[D]=P}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||d.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let D=this.options.marker;this.getCyclic("symbol",D.symbol,this.chart.options.symbols)}findPointIndex(D,P){let W,lt,it,vt=D.id,pt=D.x,xt=this.points,Ct=this.options.dataSorting;if(vt){let Tt=this.chart.get(vt);Tt instanceof q&&(W=Tt)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let Tt=Nt=>!Nt.touched&&Nt.index===D.index;if(Ct&&Ct.matchByName?Tt=Nt=>!Nt.touched&&Nt.name===D.name:this.options.relativeXValue&&(Tt=Nt=>!Nt.touched&&Nt.options.x===D.x),!(W=f(xt,Tt)))return}return W&&(it=W&&W.index)!==void 0&&(lt=!0),it===void 0&&st(pt)&&(it=this.xData.indexOf(pt,P)),it!==-1&&it!==void 0&&this.cropped&&(it=it>=this.cropStart?it-this.cropStart:it),!lt&&st(it)&&xt[it]&&xt[it].touched&&(it=void 0),it}updateData(D,P){let W=this.options,lt=W.dataSorting,it=this.points,vt=[],pt=this.requireSorting,xt=D.length===it.length,Ct,Tt,Nt,gt,wt=!0;if(this.xIncrement=null,D.forEach(function(Rt,jt){let Zt,ne=S(Rt)&&this.pointClass.prototype.optionsToObject.call({series:this},Rt)||{},Wt=ne.x;ne.id||st(Wt)?((Zt=this.findPointIndex(ne,gt))===-1||Zt===void 0?vt.push(Rt):it[Zt]&&Rt!==W.data[Zt]?(it[Zt].update(Rt,!1,null,!1),it[Zt].touched=!0,pt&&(gt=Zt+1)):it[Zt]&&(it[Zt].touched=!0),(!xt||jt!==Zt||lt&<.enabled||this.hasDerivedData)&&(Ct=!0)):vt.push(Rt)},this),Ct)for(Tt=it.length;Tt--;)(Nt=it[Tt])&&!Nt.touched&&Nt.remove&&Nt.remove(!1,P);else!xt||lt&<.enabled?wt=!1:(D.forEach(function(Rt,jt){Rt===it[jt].y||it[jt].destroyed||it[jt].update(Rt,!1,null,!1)}),vt.length=0);return it.forEach(function(Rt){Rt&&(Rt.touched=!1)}),!!wt&&(vt.forEach(function(Rt){this.addPoint(Rt,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=_(this.xData),this.autoIncrement()),!0)}setData(D,P=!0,W,lt){var an;let it=this,vt=it.points,pt=vt&&vt.length||0,xt=it.options,Ct=it.chart,Tt=xt.dataSorting,Nt=it.xAxis,gt=xt.turboThreshold,wt=this.xData,Rt=this.yData,jt=it.pointArrayMap,Zt=jt&&jt.length,ne=xt.keys,Wt,le,de,xe=0,be=1,Ye;Ct.options.chart.allowMutatingData||(xt.data&&delete it.options.data,it.userOptions.data&&delete it.userOptions.data,Ye=dt(!0,D));let tn=(D=Ye||D||[]).length;if(Tt&&Tt.enabled&&(D=this.sortData(D)),Ct.options.chart.allowMutatingData&<!==!1&&tn&&pt&&!it.cropped&&!it.hasGroupedData&&it.visible&&!it.boosted&&(de=this.updateData(D,W)),!de){it.xIncrement=null,it.colorCounter=0,this.parallelArrays.forEach(function(Kt){it[Kt+"Data"].length=0});let Jt=gt&&tn>gt;if(Jt){let Kt=it.getFirstValidPoint(D),te=it.getFirstValidPoint(D,tn-1,-1),Ot=Bt=>!!(Q(Bt)&&(ne||st(Bt[0])));if(st(Kt)&&st(te))for(Wt=0;Wt=0?xe:0,be=be>=0?be:1),Kt.length===1&&(be=0),xe===be)for(Wt=0;Wt{let pt=T(W,it),xt=T(W,vt);return xtpt?1:0}).forEach(function(it,vt){it.x=vt},this),P.linkedSeries&&P.linkedSeries.forEach(function(it){let vt=it.options,pt=vt.data;vt.dataSorting&&vt.dataSorting.enabled||!pt||(pt.forEach(function(xt,Ct){pt[Ct]=lt(it,xt),D[Ct]&&(pt[Ct].x=D[Ct].x,pt[Ct].index=Ct)}),it.setData(pt,!1))}),D}getProcessedData(D){let P=this,W=P.xAxis,lt=P.options.cropThreshold,it=W==null?void 0:W.logarithmic,vt=P.isCartesian,pt,xt,Ct=0,Tt,Nt,gt,wt=P.xData,Rt=P.yData,jt=!1,Zt=wt.length;W&&(Nt=(Tt=W.getExtremes()).min,gt=Tt.max,jt=!!(W.categories&&!W.names.length)),vt&&P.sorted&&!D&&(!lt||Zt>lt||P.forceCrop)&&(wt[Zt-1]gt?(wt=[],Rt=[]):P.yData&&(wt[0]gt)&&(wt=(pt=this.cropData(P.xData,P.yData,Nt,gt)).xData,Rt=pt.yData,Ct=pt.start,xt=!0));let ne=F([it?wt.map(it.log2lin):wt],()=>P.requireSorting&&!jt&&p(15,!1,P.chart));return{xData:wt,yData:Rt,cropped:xt,cropStart:Ct,closestPointRange:ne}}processData(D){let P=this.xAxis;if(this.isCartesian&&!this.isDirty&&!P.isDirty&&!this.yAxis.isDirty&&!D)return!1;let W=this.getProcessedData();this.cropped=W.cropped,this.cropStart=W.cropStart,this.processedXData=W.xData,this.processedYData=W.yData,this.closestPointRange=this.basePointRange=W.closestPointRange,b(this,"afterProcessData")}cropData(D,P,W,lt){let it=D.length,vt,pt,xt=0,Ct=it;for(vt=0;vt=W){xt=Math.max(0,vt-1);break}for(pt=vt;ptlt){Ct=pt+1;break}return{xData:D.slice(xt,Ct),yData:P.slice(xt,Ct),start:xt,end:Ct}}generatePoints(){let D=this.options,P=this.processedData||D.data,W=this.processedXData,lt=this.processedYData,it=this.pointClass,vt=W.length,pt=this.cropStart||0,xt=this.hasGroupedData,Ct=D.keys,Tt=[],Nt=D.dataGrouping&&D.dataGrouping.groupAll?pt:0,gt,wt,Rt,jt,Zt=this.data;if(!Zt&&!xt){let ne=[];ne.length=P.length,Zt=this.data=ne}for(Ct&&xt&&(this.options.keys=!1),jt=0;jt0:jt.length)||!pt),wt=P||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!W||(be[Zt+vt]||Rt)>=Wt&&(be[Zt-vt]||Rt)<=le,gt&&wt)if(ne=jt.length)for(;ne--;)st(jt[ne])&&(it[de++]=jt[ne]);else it[de++]=jt;let Ye={activeYData:it,dataMin:o(it),dataMax:_(it)};return b(this,"afterGetExtremes",{dataExtremes:Ye}),Ye}applyExtremes(){let D=this.getExtremes();return this.dataMin=D.dataMin,this.dataMax=D.dataMax,D}getFirstValidPoint(D,P=0,W=1){let lt=D.length,it=P;for(;it>=0&&it1)&&(vt.step=function(gt,wt){Nt&&Nt.apply(wt,arguments),wt.prop==="width"&&(Ct!=null&&Ct.element)&&Ct.attr(it?"height":"width",gt+99)}),xt.addClass("highcharts-animating").animate(Tt,vt)}}afterAnimate(){this.setClip(),mt(this.chart.sharedClips,(D,P,W)=>{D&&!this.chart.container.querySelector(`[clip-path="url(#${D.id})"]`)&&(D.destroy(),delete W[P])}),this.finishedAnimating=!0,b(this,"afterAnimate")}drawPoints(D=this.points){let P,W,lt,it,vt,pt,xt,Ct=this.chart,Tt=Ct.styledMode,{colorAxis:Nt,options:gt}=this,wt=gt.marker,Rt=this[this.specialGroup||"markerGroup"],jt=this.xAxis,Zt=Et(wt.enabled,!jt||!!jt.isRadial||null,this.closestPointRangePx>=wt.enabledThreshold*wt.radius);if(wt.enabled!==!1||this._hasPointMarkers)for(P=0;P0||W.hasImage)&&(W.graphic=lt=Ct.renderer.symbol(ne,xt.x,xt.y,xt.width,xt.height,pt?vt:wt).add(Rt),this.enabledDataSorting&&Ct.hasRendered&&(lt.attr({x:W.startXPos}),it="animate")),lt&&it==="animate"&<[Wt?"show":"hide"](Wt).animate(xt),lt){let le=this.pointAttribs(W,Tt||!W.selected?void 0:"select");Tt?Nt&<.css({fill:le.fill}):lt[it](le)}lt&<.addClass(W.getClassName(),!0)}else lt&&(W.graphic=lt.destroy())}markerAttribs(D,P){let W=this.options,lt=W.marker,it=D.marker||{},vt=it.symbol||lt.symbol,pt={},xt,Ct,Tt=Et(it.radius,lt&<.radius);P&&(xt=lt.states[P],Tt=Et((Ct=it.states&&it.states[P])&&Ct.radius,xt&&xt.radius,Tt&&Tt+(xt&&xt.radiusPlus||0))),D.hasImage=vt&&vt.indexOf("url")===0,D.hasImage&&(Tt=0);let Nt=D.pos();return st(Tt)&&Nt&&(W.crisp&&(Nt[0]=E(Nt[0],D.hasImage?0:vt==="rect"?(lt==null?void 0:lt.lineWidth)||0:1)),pt.x=Nt[0]-Tt,pt.y=Nt[1]-Tt),Tt&&(pt.width=pt.height=2*Tt),pt}pointAttribs(D,P){let W=this.options.marker,lt=D&&D.options,it=lt&<.marker||{},vt=lt&<.color,pt=D&&D.color,xt=D&&D.zone&&D.zone.color,Ct,Tt,Nt=this.color,gt,wt,Rt=Et(it.lineWidth,W.lineWidth),jt=1;return Nt=vt||xt||pt||Nt,gt=it.fillColor||W.fillColor||Nt,wt=it.lineColor||W.lineColor||Nt,P=P||"normal",Ct=W.states[P]||{},Rt=Et((Tt=it.states&&it.states[P]||{}).lineWidth,Ct.lineWidth,Rt+Et(Tt.lineWidthPlus,Ct.lineWidthPlus,0)),gt=Tt.fillColor||Ct.fillColor||gt,{stroke:wt=Tt.lineColor||Ct.lineColor||wt,"stroke-width":Rt,fill:gt,opacity:jt=Et(Tt.opacity,Ct.opacity,jt)}}destroy(D){let P,W,lt,it=this,vt=it.chart,pt=/AppleWebKit\/533/.test(s.navigator.userAgent),xt=it.data||[];for(b(it,"destroy",{keepEventsForUpdate:D}),this.removeEvents(D),(it.axisTypes||[]).forEach(function(Ct){(lt=it[Ct])&<.series&&(x(lt.series,it),lt.isDirty=lt.forceRedraw=!0)}),it.legendItem&&it.chart.legend.destroyItem(it),P=xt.length;P--;)(W=xt[P])&&W.destroy&&W.destroy();for(let Ct of it.zones)v(Ct,void 0,!0);X.clearTimeout(it.animationTimeout),mt(it,function(Ct,Tt){Ct instanceof H&&!Ct.survive&&Ct[pt&&Tt==="group"?"hide":"destroy"]()}),vt.hoverSeries===it&&(vt.hoverSeries=void 0),x(vt.series,it),vt.orderItems("series"),mt(it,function(Ct,Tt){D&&Tt==="hcEvents"||delete it[Tt]})}applyZones(){let{area:D,chart:P,graph:W,zones:lt,points:it,xAxis:vt,yAxis:pt,zoneAxis:xt}=this,{inverted:Ct,renderer:Tt}=P,Nt=this[`${xt}Axis`],{isXAxis:gt,len:wt=0}=Nt||{},Rt=((W==null?void 0:W.strokeWidth())||0)/2+1,jt=(Zt,ne=0,Wt=0)=>{Ct&&(Wt=wt-Wt);let{translated:le=0,lineClip:de}=Zt,xe=Wt-le;de==null||de.push(["L",ne,Math.abs(xe){de.forEach((xe,be)=>{(xe[0]==="M"||xe[0]==="L")&&(de[be]=[xe[0],gt?wt-xe[1]:xe[1],gt?xe[2]:wt-xe[2]])})};if(lt.forEach(de=>{de.lineClip=[],de.translated=u(Nt.toPixels(Et(de.value,Zt),!0)||0,0,wt)}),W&&!this.showLine&&W.hide(),D&&D.hide(),xt==="y"&&it.length{var Ut,zt;let xe=de.lineClip||[],be=Math.round(de.translated||0);vt.reversed&&xe.reverse();let{clip:Ye,simpleClip:tn}=de,an=0,Jt=0,Kt=vt.len,te=pt.len;gt?(an=be,Kt=le):(Jt=be,te=le);let Ot=[["M",an,Jt],["L",Kt,Jt],["L",Kt,te],["L",an,te],["Z"]],Bt=[Ot[0],...xe,Ot[1],Ot[2],...Wt,Ot[3],Ot[4]];Wt=xe.reverse(),le=be,Ct&&(ne(Bt),D&&ne(Ot)),Ye?(Ye.animate({d:Bt}),tn==null||tn.animate({d:Ot})):(Ye=de.clip=Tt.path(Bt),D&&(tn=de.simpleClip=Tt.path(Ot))),W&&((Ut=de.graph)==null||Ut.clip(Ye)),D&&((zt=de.area)==null||zt.clip(tn))})}else this.visible&&(W&&W.show(),D&&D.show())}plotGroup(D,P,W,lt,it){let vt=this[D],pt=!vt,xt={visibility:W,zIndex:lt||.1};return S(this.opacity)&&!this.chart.styledMode&&this.state!=="inactive"&&(xt.opacity=this.opacity),vt||(this[D]=vt=this.chart.renderer.g().add(it)),vt.addClass("highcharts-"+P+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(S(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(vt.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),vt.attr(xt)[pt?"attr":"animate"](this.getPlotBox(P)),vt}getPlotBox(D){let P=this.xAxis,W=this.yAxis,lt=this.chart,it=lt.inverted&&!lt.polar&&P&&this.invertible&&D==="series";return lt.inverted&&(P=W,W=this.xAxis),{translateX:P?P.left:lt.plotLeft,translateY:W?W.top:lt.plotTop,rotation:it?90:0,rotationOriginX:it?(P.len-W.len)/2:0,rotationOriginY:it?(P.len+W.len)/2:0,scaleX:it?-1:1,scaleY:1}}removeEvents(D){let{eventsToUnbind:P}=this;D||Mt(this),P.length&&(P.forEach(W=>{W()}),P.length=0)}render(){var Tt,Nt,gt,wt,Rt;let D=this,{chart:P,options:W,hasRendered:lt}=D,it=B(W.animation),vt=D.visible?"inherit":"hidden",pt=W.zIndex,xt=P.seriesGroup,Ct=D.finishedAnimating?0:it.duration;b(this,"render"),D.plotGroup("group","series",vt,pt,xt),D.markerGroup=D.plotGroup("markerGroup","markers",vt,pt,xt),W.clip!==!1&&D.setClip(),Ct&&((Tt=D.animate)==null||Tt.call(D,!0)),D.drawGraph&&(D.drawGraph(),D.applyZones()),D.visible&&D.drawPoints(),(Nt=D.drawDataLabels)==null||Nt.call(D),(gt=D.redrawPoints)==null||gt.call(D),W.enableMouseTracking&&((wt=D.drawTracker)==null||wt.call(D)),Ct&&((Rt=D.animate)==null||Rt.call(D)),lt||(Ct&&it.defer&&(Ct+=it.defer),D.animationTimeout=Y(()=>{D.afterAnimate()},Ct||0)),D.isDirty=!1,D.hasRendered=!0,b(D,"afterRender")}redraw(){let D=this.isDirty||this.isDirtyData;this.translate(),this.render(),D&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(D,P){let{xAxis:W,yAxis:lt}=this,it=this.chart.inverted;return this.searchKDTree({clientX:it?W.len-D.chartY+W.pos:D.chartX-W.pos,plotY:it?lt.len-D.chartX+lt.pos:D.chartY-lt.pos},P,D)}buildKDTree(D){this.buildingKdTree=!0;let P=this,W=P.options.findNearestPointBy.indexOf("y")>-1?2:1;delete P.kdTree,Y(function(){P.kdTree=function lt(it,vt,pt){let xt,Ct,Tt=it==null?void 0:it.length;if(Tt)return xt=P.kdAxisArray[vt%pt],it.sort((Nt,gt)=>(Nt[xt]||0)-(gt[xt]||0)),{point:it[Ct=Math.floor(Tt/2)],left:lt(it.slice(0,Ct),vt+1,pt),right:lt(it.slice(Ct+1),vt+1,pt)}}(P.getValidPoints(void 0,!P.directTouch),W,W),P.buildingKdTree=!1},P.options.kdNow||(D==null?void 0:D.type)==="touchstart"?0:1)}searchKDTree(D,P,W){let lt=this,[it,vt]=this.kdAxisArray,pt=P?"distX":"dist",xt=(lt.options.findNearestPointBy||"").indexOf("y")>-1?2:1,Ct=!!lt.isBubble;if(this.kdTree||this.buildingKdTree||this.buildKDTree(W),this.kdTree)return function Tt(Nt,gt,wt,Rt){var Ye;let jt=gt.point,Zt=lt.kdAxisArray[wt%Rt],ne,Wt,le=jt;(function(tn,an){var ce;let Jt=tn[it],Kt=an[it],te=S(Jt)&&S(Kt)?Jt-Kt:null,Ot=tn[vt],Bt=an[vt],Ut=S(Ot)&&S(Bt)?Ot-Bt:0,zt=Ct&&((ce=an.marker)==null?void 0:ce.radius)||0;an.dist=Math.sqrt((te&&te*te||0)+Ut*Ut)-zt,an.distX=S(te)?Math.abs(te)-zt:Number.MAX_VALUE})(Nt,jt);let de=(Nt[Zt]||0)-(jt[Zt]||0)+(Ct&&((Ye=jt.marker)==null?void 0:Ye.radius)||0),xe=de<0?"left":"right",be=de<0?"right":"left";return gt[xe]&&(le=(ne=Tt(Nt,gt[xe],wt+1,Rt))[pt]=0&&vt<=(lt?lt.len:P.plotHeight)&&it>=0&&it<=(W?W.len:P.plotWidth)}drawTracker(){var gt;let D=this,P=D.options,W=P.trackByArea,lt=[].concat((W?D.areaPath:D.graphPath)||[]),it=D.chart,vt=it.pointer,pt=it.renderer,xt=((gt=it.options.tooltip)==null?void 0:gt.snap)||0,Ct=()=>{P.enableMouseTracking&&it.hoverSeries!==D&&D.onMouseOver()},Tt="rgba(192,192,192,"+(M?1e-4:.002)+")",Nt=D.tracker;Nt?Nt.attr({d:lt}):D.graph&&(D.tracker=Nt=pt.path(lt).attr({visibility:D.visible?"inherit":"hidden",zIndex:2}).addClass(W?"highcharts-tracker-area":"highcharts-tracker-line").add(D.group),it.styledMode||Nt.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:Tt,fill:W?Tt:"none","stroke-width":D.graph.strokeWidth()+(W?0:2*xt)}),[D.tracker,D.markerGroup,D.dataLabelsGroup].forEach(wt=>{wt&&(wt.addClass("highcharts-tracker").on("mouseover",Ct).on("mouseout",Rt=>{vt==null||vt.onTrackerMouseOut(Rt)}),P.cursor&&!it.styledMode&&wt.css({cursor:P.cursor}),wt.on("touchstart",Ct))})),b(this,"afterDrawTracker")}addPoint(D,P,W,lt,it){let vt,pt,xt=this.options,Ct=this.data,Tt=this.chart,Nt=this.xAxis,gt=Nt&&Nt.hasNames&&Nt.names,wt=xt.data,Rt=this.xData;P=Et(P,!0);let jt={series:this};this.pointClass.prototype.applyOptions.apply(jt,[D]);let Zt=jt.x;if(pt=Rt.length,this.requireSorting&&ZtZt;)pt--;this.updateParallelArrays(jt,"splice",[pt,0,0]),this.updateParallelArrays(jt,pt),gt&&jt.name&&(gt[Zt]=jt.name),wt.splice(pt,0,D),(vt||this.processedData)&&(this.data.splice(pt,0,null),this.processData()),xt.legendType==="point"&&this.generatePoints(),W&&(Ct[0]&&Ct[0].remove?Ct[0].remove(!1):(Ct.shift(),this.updateParallelArrays(jt,"shift"),wt.shift())),it!==!1&&b(this,"addPoint",{point:jt}),this.isDirty=!0,this.isDirtyData=!0,P&&Tt.redraw(lt)}removePoint(D,P,W){let lt=this,it=lt.data,vt=it[D],pt=lt.points,xt=lt.chart,Ct=function(){pt&&pt.length===it.length&&pt.splice(D,1),it.splice(D,1),lt.options.data.splice(D,1),lt.updateParallelArrays(vt||{series:lt},"splice",[D,1]),vt&&vt.destroy(),lt.isDirty=!0,lt.isDirtyData=!0,P&&xt.redraw()};U(W,xt),P=Et(P,!0),vt?vt.firePointEvent("remove",null,Ct):Ct()}remove(D,P,W,lt){let it=this,vt=it.chart;function pt(){it.destroy(lt),vt.isDirtyLegend=vt.isDirtyBox=!0,vt.linkSeries(lt),Et(D,!0)&&vt.redraw(P)}W!==!1?b(it,"remove",null,pt):pt()}update(D,P){var ne,Wt,le,de,xe;b(this,"update",{options:D=g(D,this.userOptions)});let W=this,lt=W.chart,it=W.userOptions,vt=W.initialType||W.type,pt=lt.options.plotOptions,xt=w[vt].prototype,Ct=W.finishedAnimating&&{animation:!1},Tt={},Nt,gt,wt=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],Rt=D.type||it.type||lt.options.chart.type,jt=!(this.hasDerivedData||Rt&&Rt!==this.type||D.pointStart!==void 0||D.pointInterval!==void 0||D.relativeXValue!==void 0||D.joinBy||D.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(be=>W.hasOptionChanged(be)));Rt=Rt||vt,jt&&(wt.push("data","isDirtyData","isDirtyCanvas","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),D.visible!==!1&&wt.push("area","graph"),W.parallelArrays.forEach(function(be){wt.push(be+"Data")}),D.data&&(D.dataSorting&&l(W.options.dataSorting,D.dataSorting),this.setData(D.data,!1))),D=dt(it,{index:it.index===void 0?W.index:it.index,pointStart:(de=(Wt=(ne=pt==null?void 0:pt.series)==null?void 0:ne.pointStart)!=null?Wt:it.pointStart)!=null?de:(le=W.xData)==null?void 0:le[0]},!jt&&{data:W.options.data},D,Ct),jt&&D.data&&(D.data=W.options.data),(wt=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(wt)).forEach(function(be){wt[be]=W[be],delete W[be]});let Zt=!1;if(w[Rt]){if(Zt=Rt!==W.type,W.remove(!1,!1,!1,!0),Zt)if(lt.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(W,w[Rt].prototype);else{let be=Object.hasOwnProperty.call(W,"hcEvents")&&W.hcEvents;for(gt in xt)W[gt]=void 0;l(W,w[Rt].prototype),be?W.hcEvents=be:delete W.hcEvents}}else p(17,!0,lt,{missingModuleFor:Rt});if(wt.forEach(function(be){W[be]=wt[be]}),W.init(lt,D),jt&&this.points)for(let be of((Nt=W.options).visible===!1?(Tt.graphic=1,Tt.dataLabel=1):(this.hasMarkerChanged(Nt,it)&&(Tt.graphic=1),(xe=W.hasDataLabels)!=null&&xe.call(W)||(Tt.dataLabel=1)),this.points))be&&be.series&&(be.resolveColor(),Object.keys(Tt).length&&be.destroyElements(Tt),Nt.showInLegend===!1&&be.legendItem&<.legend.destroyItem(be));W.initialType=vt,lt.linkSeries(),lt.setSortedData(),Zt&&W.linkedSeries.length&&(W.isDirtyData=!0),b(this,"afterUpdate"),Et(P,!0)&<.redraw(!!jt&&void 0)}setName(D){this.name=this.options.name=this.userOptions.name=D,this.chart.isDirtyLegend=!0}hasOptionChanged(D){var pt,xt;let P=this.chart,W=this.options[D],lt=P.options.plotOptions,it=this.userOptions[D],vt=Et((pt=lt==null?void 0:lt[this.type])==null?void 0:pt[D],(xt=lt==null?void 0:lt.series)==null?void 0:xt[D]);return it&&!S(vt)?W!==it:W!==Et(vt,W)}onMouseOver(){let D=this.chart,P=D.hoverSeries,W=D.pointer;W==null||W.setHoverChartIndex(),P&&P!==this&&P.onMouseOut(),this.options.events.mouseOver&&b(this,"mouseOver"),this.setState("hover"),D.hoverSeries=this}onMouseOut(){let D=this.options,P=this.chart,W=P.tooltip,lt=P.hoverPoint;P.hoverSeries=null,lt&<.onMouseOut(),this&&D.events.mouseOut&&b(this,"mouseOut"),W&&!this.stickyTracking&&(!W.shared||this.noSharedTooltip)&&W.hide(),P.series.forEach(function(it){it.setState("",!0)})}setState(D,P){let W=this,lt=W.options,it=W.graph,vt=lt.inactiveOtherPoints,pt=lt.states,xt=Et(pt[D||"normal"]&&pt[D||"normal"].animation,W.chart.options.chart.animation),Ct=lt.lineWidth,Tt=lt.opacity;if(D=D||"",W.state!==D&&([W.group,W.markerGroup,W.dataLabelsGroup].forEach(function(Nt){Nt&&(W.state&&Nt.removeClass("highcharts-series-"+W.state),D&&Nt.addClass("highcharts-series-"+D))}),W.state=D,!W.chart.styledMode)){if(pt[D]&&pt[D].enabled===!1)return;if(D&&(Ct=pt[D].lineWidth||Ct+(pt[D].lineWidthPlus||0),Tt=Et(pt[D].opacity,Tt)),it&&!it.dashstyle&&st(Ct))for(let Nt of[it,...this.zones.map(gt=>gt.graph)])Nt==null||Nt.animate({"stroke-width":Ct},xt);vt||[W.group,W.markerGroup,W.dataLabelsGroup,W.labelBySeries].forEach(function(Nt){Nt&&Nt.animate({opacity:Tt},xt)})}P&&vt&&W.points&&W.setAllPointsToState(D||void 0)}setAllPointsToState(D){this.points.forEach(function(P){P.setState&&P.setState(D)})}setVisible(D,P){var xt;let W=this,lt=W.chart,it=lt.options.chart.ignoreHiddenSeries,vt=W.visible;W.visible=D=W.options.visible=W.userOptions.visible=D===void 0?!vt:D;let pt=D?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(Ct=>{var Tt;(Tt=W[Ct])==null||Tt[pt]()}),(lt.hoverSeries===W||((xt=lt.hoverPoint)==null?void 0:xt.series)===W)&&W.onMouseOut(),W.legendItem&<.legend.colorizeItem(W,D),W.isDirty=!0,W.options.stacking&<.series.forEach(Ct=>{Ct.options.stacking&&Ct.visible&&(Ct.isDirty=!0)}),W.linkedSeries.forEach(Ct=>{Ct.setVisible(D,!1)}),it&&(lt.isDirtyBox=!0),b(W,pt),P!==!1&<.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(D){this.selected=D=this.options.selected=D===void 0?!this.selected:D,this.checkbox&&(this.checkbox.checked=D),b(this,D?"select":"unselect")}shouldShowTooltip(D,P,W={}){return W.series=this,W.visiblePlotOnly=!0,this.chart.isInsidePlot(D,P,W)}drawLegendSymbol(D,P){var W;(W=J[this.options.legendSymbol||"rectangle"])==null||W.call(this,D,P)}}return rt.defaultOptions=Z,rt.types=tt.seriesTypes,rt.registerType=tt.registerSeriesType,l(rt.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:q,requireSorting:!0,sorted:!0}),tt.series=rt,rt}),y(m,"Core/Legend/Legend.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Foundation.js"],m["Core/Globals.js"],m["Core/Series/Series.js"],m["Core/Series/Point.js"],m["Core/Renderer/RendererUtilities.js"],m["Core/Templating.js"],m["Core/Utilities.js"]],function(R,j,et,K,J,q,Z,tt){var H;let{animObject:X,setAnimation:B}=R,{registerEventOptions:U}=j,{composed:d,marginNames:L}=et,{distribute:M}=q,{format:s}=Z,{addEvent:w,createElement:_,css:o,defined:u,discardElement:C,find:E,fireEvent:S,isNumber:v,merge:g,pick:x,pushUnique:p,relativeLength:l,stableSort:f,syncTimeout:b}=tt;class F{constructor(k,Q){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=k,this.setOptions(Q),Q.enabled&&(this.render(),U(this,Q),w(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),w(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(k){let Q=x(k.padding,8);this.options=k,this.chart.styledMode||(this.itemStyle=k.itemStyle,this.itemHiddenStyle=g(this.itemStyle,k.itemHiddenStyle)),this.itemMarginTop=k.itemMarginTop,this.itemMarginBottom=k.itemMarginBottom,this.padding=Q,this.initialItemY=Q-5,this.symbolWidth=x(k.symbolWidth,16),this.pages=[],this.proximate=k.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(k,Q){let st=this.chart;this.setOptions(g(!0,this.options,k)),"events"in this.options&&U(this,this.options),this.destroy(),st.isDirtyLegend=st.isDirtyBox=!0,x(Q,!0)&&st.redraw(),S(this,"afterUpdate",{redraw:Q})}colorizeItem(k,Q){let{area:st,group:nt,label:dt,line:mt,symbol:Et}=k.legendItem||{};if(nt==null||nt[Q?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:Mt={}}=this,I=Mt.color,{fillColor:Y,fillOpacity:rt,lineColor:ot,marker:D}=k.options,P=W=>(!Q&&(W.fill&&(W.fill=I),W.stroke&&(W.stroke=I)),W);dt==null||dt.css(g(Q?this.itemStyle:Mt)),mt==null||mt.attr(P({stroke:ot||k.color})),Et&&Et.attr(P(D&&Et.isMarker?k.pointAttribs():{fill:k.color})),st==null||st.attr(P({fill:Y||k.color,"fill-opacity":Y?1:rt!=null?rt:.75}))}S(this,"afterColorizeItem",{item:k,visible:Q})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(k){let{group:Q,x:st=0,y:nt=0}=k.legendItem||{},dt=this.options,mt=dt.symbolPadding,Et=!dt.rtl,Mt=k.checkbox;if(Q&&Q.element){let I={translateX:Et?st:this.legendWidth-st-2*mt-4,translateY:nt};Q[u(Q.translateY)?"animate":"attr"](I,void 0,()=>{S(this,"afterPositionItem",{item:k})})}Mt&&(Mt.x=st,Mt.y=nt)}destroyItem(k){let Q=k.checkbox,st=k.legendItem||{};for(let nt of["group","label","line","symbol"])st[nt]&&(st[nt]=st[nt].destroy());Q&&C(Q),k.legendItem=void 0}destroy(){for(let k of this.getAllItems())this.destroyItem(k);for(let k of["clipRect","up","down","pager","nav","box","title","group"])this[k]&&(this[k]=this[k].destroy());this.display=null}positionCheckboxes(){let k,Q=this.group&&this.group.alignAttr,st=this.clipHeight||this.legendHeight,nt=this.titleHeight;Q&&(k=Q.translateY,this.allItems.forEach(function(dt){let mt,Et=dt.checkbox;Et&&(mt=k+nt+Et.y+(this.scrollOffset||0)+3,o(Et,{left:Q.translateX+dt.checkboxOffset+Et.x-20+"px",top:mt+"px",display:this.proximate||mt>k-6&&mt1.5*Tt?Ct.height:Tt))}layoutItem(k){let Q=this.options,st=this.padding,nt=Q.layout==="horizontal",dt=k.itemHeight,mt=this.itemMarginBottom,Et=this.itemMarginTop,Mt=nt?x(Q.itemDistance,20):0,I=this.maxLegendWidth,Y=Q.alignColumns&&this.totalItemWidth>I?this.maxItemWidth:k.itemWidth,rt=k.legendItem||{};nt&&this.itemX-st+Y>I&&(this.itemX=st,this.lastLineHeight&&(this.itemY+=Et+this.lastLineHeight+mt),this.lastLineHeight=0),this.lastItemY=Et+this.itemY+mt,this.lastLineHeight=Math.max(dt,this.lastLineHeight),rt.x=this.itemX,rt.y=this.itemY,nt?this.itemX+=Y:(this.itemY+=Et+dt+mt,this.lastLineHeight=dt),this.offsetWidth=this.widthOption||Math.max((nt?this.itemX-st-(k.checkbox?0:Mt):Y)+st,this.offsetWidth)}getAllItems(){let k=[];return this.chart.series.forEach(function(Q){let st=Q&&Q.options;Q&&x(st.showInLegend,!u(st.linkedTo)&&void 0,!0)&&(k=k.concat((Q.legendItem||{}).labels||(st.legendType==="point"?Q.data:Q)))}),S(this,"afterGetAllItems",{allItems:k}),k}getAlignment(){let k=this.options;return this.proximate?k.align.charAt(0)+"tv":k.floating?"":k.align.charAt(0)+k.verticalAlign.charAt(0)+k.layout.charAt(0)}adjustMargins(k,Q){let st=this.chart,nt=this.options,dt=this.getAlignment();dt&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(mt,Et){mt.test(dt)&&!u(k[Et])&&(st[L[Et]]=Math.max(st[L[Et]],st.legend[(Et+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][Et]*nt[Et%2?"x":"y"]+x(nt.margin,12)+Q[Et]+(st.titleOffset[Et]||0)))})}proximatePositions(){let k,Q=this.chart,st=[],nt=this.options.align==="left";for(let dt of(this.allItems.forEach(function(mt){let Et,Mt,I=nt,Y,rt;mt.yAxis&&(mt.xAxis.options.reversed&&(I=!I),mt.points&&(Et=E(I?mt.points:mt.points.slice(0).reverse(),function(ot){return v(ot.plotY)})),Mt=this.itemMarginTop+mt.legendItem.label.getBBox().height+this.itemMarginBottom,rt=mt.yAxis.top-Q.plotTop,Y=mt.visible?(Et?Et.plotY:mt.yAxis.height)+(rt-.3*Mt):rt+mt.yAxis.height,st.push({target:Y,size:Mt,item:mt}))},this),M(st,Q.plotHeight)))k=dt.item.legendItem||{},v(dt.pos)&&(k.y=Q.plotTop-Q.spacing[0]+dt.pos)}render(){let k=this.chart,Q=k.renderer,st=this.options,nt=this.padding,dt=this.getAllItems(),mt,Et,Mt,I=this.group,Y,rt=this.box;this.itemX=nt,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=l(st.width,k.spacingBox.width-nt),Y=k.spacingBox.width-2*nt-st.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(Y/=2),this.maxLegendWidth=this.widthOption||Y,I||(this.group=I=Q.g("legend").addClass(st.className||"").attr({zIndex:7}).add(),this.contentGroup=Q.g().attr({zIndex:1}).add(I),this.scrollGroup=Q.g().add(this.contentGroup)),this.renderTitle(),f(dt,(ot,D)=>(ot.options&&ot.options.legendIndex||0)-(D.options&&D.options.legendIndex||0)),st.reversed&&dt.reverse(),this.allItems=dt,this.display=mt=!!dt.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,dt.forEach(this.renderItem,this),dt.forEach(this.layoutItem,this),Et=(this.widthOption||this.offsetWidth)+nt,Mt=this.lastItemY+this.lastLineHeight+this.titleHeight,Mt=this.handleOverflow(Mt)+nt,rt||(this.box=rt=Q.rect().addClass("highcharts-legend-box").attr({r:st.borderRadius}).add(I)),k.styledMode||rt.attr({stroke:st.borderColor,"stroke-width":st.borderWidth||0,fill:st.backgroundColor||"none"}).shadow(st.shadow),Et>0&&Mt>0&&rt[rt.placed?"animate":"attr"](rt.crisp.call({},{x:0,y:0,width:Et,height:Mt},rt.strokeWidth())),I[mt?"show":"hide"](),k.styledMode&&I.getStyle("display")==="none"&&(Et=Mt=0),this.legendWidth=Et,this.legendHeight=Mt,mt&&this.align(),this.proximate||this.positionItems(),S(this,"afterRender")}align(k=this.chart.spacingBox){let Q=this.chart,st=this.options,nt=k.y;/(lth|ct|rth)/.test(this.getAlignment())&&Q.titleOffset[0]>0?nt+=Q.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&Q.titleOffset[2]>0&&(nt-=Q.titleOffset[2]),nt!==k.y&&(k=g(k,{y:nt})),Q.hasRendered||(this.group.placed=!1),this.group.align(g(st,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":st.verticalAlign}),!0,k)}handleOverflow(k){let Q=this,st=this.chart,nt=st.renderer,dt=this.options,mt=dt.y,Et=dt.verticalAlign==="top",Mt=this.padding,I=dt.maxHeight,Y=dt.navigation,rt=x(Y.animation,!0),ot=Y.arrowSize||12,D=this.pages,P=this.allItems,W=function(Nt){typeof Nt=="number"?Tt.attr({height:Nt}):Tt&&(Q.clipRect=Tt.destroy(),Q.contentGroup.clip()),Q.contentGroup.div&&(Q.contentGroup.div.style.clip=Nt?"rect("+Mt+"px,9999px,"+(Mt+Nt)+"px,0)":"auto")},lt=function(Nt){return Q[Nt]=nt.circle(0,0,1.3*ot).translate(ot/2,ot/2).add(Ct),st.styledMode||Q[Nt].attr("fill","rgba(0,0,0,0.0001)"),Q[Nt]},it,vt,pt,xt=st.spacingBox.height+(Et?-mt:mt)-Mt,Ct=this.nav,Tt=this.clipRect;return dt.layout!=="horizontal"||dt.verticalAlign==="middle"||dt.floating||(xt/=2),I&&(xt=Math.min(xt,I)),D.length=0,k&&xt>0&&k>xt&&Y.enabled!==!1?(this.clipHeight=it=Math.max(xt-20-this.titleHeight-Mt,0),this.currentPage=x(this.currentPage,1),this.fullHeight=k,P.forEach((Nt,gt)=>{let wt=(pt=Nt.legendItem||{}).y||0,Rt=Math.round(pt.label.getBBox().height),jt=D.length;(!jt||wt-D[jt-1]>it&&(vt||wt)!==D[jt-1])&&(D.push(vt||wt),jt++),pt.pageIx=jt-1,vt&&((P[gt-1].legendItem||{}).pageIx=jt-1),gt===P.length-1&&wt+Rt-D[jt-1]>it&&wt>D[jt-1]&&(D.push(wt),pt.pageIx=jt),wt!==vt&&(vt=wt)}),Tt||(Tt=Q.clipRect=nt.clipRect(0,Mt-2,9999,0),Q.contentGroup.clip(Tt)),W(it),Ct||(this.nav=Ct=nt.g().attr({zIndex:1}).add(this.group),this.up=nt.symbol("triangle",0,0,ot,ot).add(Ct),lt("upTracker").on("click",function(){Q.scroll(-1,rt)}),this.pager=nt.text("",15,10).addClass("highcharts-legend-navigation"),!st.styledMode&&Y.style&&this.pager.css(Y.style),this.pager.add(Ct),this.down=nt.symbol("triangle-down",0,0,ot,ot).add(Ct),lt("downTracker").on("click",function(){Q.scroll(1,rt)})),Q.scroll(0),k=xt):Ct&&(W(),this.nav=Ct.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),k}scroll(k,Q){let st=this.chart,nt=this.pages,dt=nt.length,mt=this.clipHeight,Et=this.options.navigation,Mt=this.pager,I=this.padding,Y=this.currentPage+k;Y>dt&&(Y=dt),Y>0&&(Q!==void 0&&B(Q,st),this.nav.attr({translateX:I,translateY:mt+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(rt){rt.attr({class:Y===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),Mt.attr({text:Y+"/"+dt}),[this.down,this.downTracker].forEach(function(rt){rt.attr({x:18+this.pager.getBBox().width,class:Y===dt?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),st.styledMode||(this.up.attr({fill:Y===1?Et.inactiveColor:Et.activeColor}),this.upTracker.css({cursor:Y===1?"default":"pointer"}),this.down.attr({fill:Y===dt?Et.inactiveColor:Et.activeColor}),this.downTracker.css({cursor:Y===dt?"default":"pointer"})),this.scrollOffset=-nt[Y-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=Y,this.positionCheckboxes(),b(()=>{S(this,"afterScroll",{currentPage:Y})},X(x(Q,st.renderer.globalAnimation,!0)).duration))}setItemEvents(k,Q,st){let nt=this,dt=k.legendItem||{},mt=nt.chart.renderer.boxWrapper,Et=k instanceof J,Mt=k instanceof K,I="highcharts-legend-"+(Et?"point":"series")+"-active",Y=nt.chart.styledMode,rt=st?[Q,dt.symbol]:[dt.group],ot=D=>{nt.allItems.forEach(P=>{k!==P&&[P].concat(P.linkedSeries||[]).forEach(W=>{W.setState(D,!Et)})})};for(let D of rt)D&&D.on("mouseover",function(){k.visible&&ot("inactive"),k.setState("hover"),k.visible&&mt.addClass(I),Y||Q.css(nt.options.itemHoverStyle)}).on("mouseout",function(){nt.chart.styledMode||Q.css(g(k.visible?nt.itemStyle:nt.itemHiddenStyle)),ot(""),mt.removeClass(I),k.setState()}).on("click",function(P){let W=function(){k.setVisible&&k.setVisible(),ot(k.visible?"inactive":"")};mt.removeClass(I),S(nt,"itemClick",{browserEvent:P,legendItem:k},W),Et?k.firePointEvent("legendItemClick",{browserEvent:P}):Mt&&S(k,"legendItemClick",{browserEvent:P})})}createCheckboxForItem(k){k.checkbox=_("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:k.selected,defaultChecked:k.selected},this.options.itemCheckboxStyle,this.chart.container),w(k.checkbox,"click",function(Q){let st=Q.target;S(k.series||k,"checkboxClick",{checked:st.checked,item:k},function(){k.select()})})}}return(H=F||(F={})).compose=function(T){p(d,"Core.Legend")&&w(T,"beforeMargins",function(){this.legend=new H(this,this.options.legend)})},F}),y(m,"Core/Chart/Chart.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Axis/Axis.js"],m["Core/Defaults.js"],m["Core/Templating.js"],m["Core/Foundation.js"],m["Core/Globals.js"],m["Core/Renderer/RendererRegistry.js"],m["Core/Series/Series.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Renderer/SVG/SVGRenderer.js"],m["Core/Time.js"],m["Core/Utilities.js"],m["Core/Renderer/HTML/AST.js"],m["Core/Axis/Tick.js"]],function(R,j,et,K,J,q,Z,tt,H,X,B,U,d,L){let{animate:M,animObject:s,setAnimation:w}=R,{defaultOptions:_,defaultTime:o}=et,{numberFormat:u}=K,{registerEventOptions:C}=J,{charts:E,doc:S,marginNames:v,svg:g,win:x}=q,{seriesTypes:p}=H,{addEvent:l,attr:f,createElement:b,css:F,defined:T,diffObjects:k,discardElement:Q,erase:st,error:nt,extend:dt,find:mt,fireEvent:Et,getStyle:Mt,isArray:I,isNumber:Y,isObject:rt,isString:ot,merge:D,objectEach:P,pick:W,pInt:lt,relativeLength:it,removeEvent:vt,splat:pt,syncTimeout:xt,uniqueKey:Ct}=U;class Tt{static chart(gt,wt,Rt){return new Tt(gt,wt,Rt)}constructor(gt,wt,Rt){this.sharedClips={};let jt=[...arguments];(ot(gt)||gt.nodeName)&&(this.renderTo=jt.shift()),this.init(jt[0],jt[1])}setZoomOptions(){let gt=this.options.chart,wt=gt.zooming;this.zooming=ho(zr({},wt),{type:W(gt.zoomType,wt.type),key:W(gt.zoomKey,wt.key),pinchType:W(gt.pinchType,wt.pinchType),singleTouch:W(gt.zoomBySingleTouch,wt.singleTouch,!1),resetButton:D(wt.resetButton,gt.resetZoomButton)})}init(gt,wt){Et(this,"init",{args:arguments},function(){let Rt=D(_,gt),jt=Rt.chart;this.userOptions=dt({},gt),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=wt,this.isResizing=0,this.options=Rt,this.axes=[],this.series=[],this.time=gt.time&&Object.keys(gt.time).length?new B(gt.time):q.time,this.numberFormatter=jt.numberFormatter||u,this.styledMode=jt.styledMode,this.hasCartesianSeries=jt.showAxes,this.index=E.length,E.push(this),q.chartCount++,C(this,jt),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),Et(this,"afterInit"),this.firstRender()})}initSeries(gt){let wt=this.options.chart,Rt=gt.type||wt.type,jt=p[Rt];jt||nt(17,!0,this,{missingModuleFor:Rt});let Zt=new jt;return typeof Zt.init=="function"&&Zt.init(this,gt),Zt}setSortedData(){this.getSeriesOrderByLinks().forEach(function(gt){gt.points||gt.data||!gt.enabledDataSorting||gt.setData(gt.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(gt,wt){return gt.linkedSeries.length||wt.linkedSeries.length?wt.linkedSeries.length-gt.linkedSeries.length:0})}orderItems(gt,wt=0){let Rt=this[gt],jt=this.options[gt]=pt(this.options[gt]).slice(),Zt=this.userOptions[gt]=this.userOptions[gt]?pt(this.userOptions[gt]).slice():[];if(this.hasRendered&&(jt.splice(wt),Zt.splice(wt)),Rt)for(let ne=wt,Wt=Rt.length;ne=Math.max(de+ne,te.pos)&&Ot<=Math.min(de+ne+Ye.width,te.pos+te.len)||(Jt.isInsidePlot=!1)}if(!Rt.ignoreY&&Jt.isInsidePlot){let te=!jt&&Rt.axis&&!Rt.axis.isXAxis&&Rt.axis||be&&(jt?be.xAxis:be.yAxis)||{pos:Wt,len:1/0},Ot=Rt.paneCoordinates?te.pos+an:Wt+an;Ot>=Math.max(xe+Wt,te.pos)&&Ot<=Math.min(xe+Wt+Ye.height,te.pos+te.len)||(Jt.isInsidePlot=!1)}return Et(this,"afterIsInsidePlot",Jt),Jt.isInsidePlot}redraw(gt){Et(this,"beforeRedraw");let wt=this.hasCartesianSeries?this.axes:this.colorAxis||[],Rt=this.series,jt=this.pointer,Zt=this.legend,ne=this.userOptions.legend,Wt=this.renderer,le=Wt.isHidden(),de=[],xe,be,Ye,tn=this.isDirtyBox,an=this.isDirtyLegend,Jt;for(Wt.rootFontSize=Wt.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),w(!!this.hasRendered&>,this),le&&this.temporaryDisplay(),this.layOutTitles(!1),Ye=Rt.length;Ye--;)if(((Jt=Rt[Ye]).options.stacking||Jt.options.centerInCategory)&&(be=!0,Jt.isDirty)){xe=!0;break}if(xe)for(Ye=Rt.length;Ye--;)(Jt=Rt[Ye]).options.stacking&&(Jt.isDirty=!0);Rt.forEach(function(Kt){Kt.isDirty&&(Kt.options.legendType==="point"?(typeof Kt.updateTotals=="function"&&Kt.updateTotals(),an=!0):ne&&(ne.labelFormatter||ne.labelFormat)&&(an=!0)),Kt.isDirtyData&&Et(Kt,"updatedData")}),an&&Zt&&Zt.options.enabled&&(Zt.render(),this.isDirtyLegend=!1),be&&this.getStacks(),wt.forEach(function(Kt){Kt.updateNames(),Kt.setScale()}),this.getMargins(),wt.forEach(function(Kt){Kt.isDirty&&(tn=!0)}),wt.forEach(function(Kt){let te=Kt.min+","+Kt.max;Kt.extKey!==te&&(Kt.extKey=te,de.push(function(){Et(Kt,"afterSetExtremes",dt(Kt.eventArgs,Kt.getExtremes())),delete Kt.eventArgs})),(tn||be)&&Kt.redraw()}),tn&&this.drawChartBox(),Et(this,"predraw"),Rt.forEach(function(Kt){(tn||Kt.isDirty)&&Kt.visible&&Kt.redraw(),Kt.isDirtyData=!1}),jt&&jt.reset(!0),Wt.draw(),Et(this,"redraw"),Et(this,"render"),le&&this.temporaryDisplay(!0),de.forEach(function(Kt){Kt.call()})}get(gt){let wt=this.series;function Rt(Zt){return Zt.id===gt||Zt.options&&Zt.options.id===gt}let jt=mt(this.axes,Rt)||mt(this.series,Rt);for(let Zt=0;!jt&&Zt(wt.getPointsCollection().forEach(Rt=>{W(Rt.selectedStaging,Rt.selected)&>.push(Rt)}),gt),[])}getSelectedSeries(){return this.series.filter(function(gt){return gt.selected})}setTitle(gt,wt,Rt){this.applyDescription("title",gt),this.applyDescription("subtitle",wt),this.applyDescription("caption",void 0),this.layOutTitles(Rt)}applyDescription(gt,wt){let Rt=this,jt=this.options[gt]=D(this.options[gt],wt),Zt=this[gt];Zt&&wt&&(this[gt]=Zt=Zt.destroy()),jt&&!Zt&&((Zt=this.renderer.text(jt.text,0,0,jt.useHTML).attr({align:jt.align,class:"highcharts-"+gt,zIndex:jt.zIndex||4}).add()).update=function(ne,Wt){Rt.applyDescription(gt,ne),Rt.layOutTitles(Wt)},this.styledMode||Zt.css(dt(gt==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},jt.style)),this[gt]=Zt)}layOutTitles(gt=!0){let wt=[0,0,0],Rt=this.renderer,jt=this.spacingBox;["title","subtitle","caption"].forEach(function(ne){let Wt=this[ne],le=this.options[ne],de=le.verticalAlign||"top",xe=ne==="title"?de==="top"?-3:0:de==="top"?wt[0]+2:0;if(Wt){Wt.css({width:(le.width||jt.width+(le.widthAdjust||0))+"px"});let be=Rt.fontMetrics(Wt).b,Ye=Math.round(Wt.getBBox(le.useHTML).height);Wt.align(dt({y:de==="bottom"?be:xe+be,height:Ye},le),!1,"spacingBox"),le.floating||(de==="top"?wt[0]=Math.ceil(wt[0]+Ye):de==="bottom"&&(wt[2]=Math.ceil(wt[2]+Ye)))}},this),wt[0]&&(this.options.title.verticalAlign||"top")==="top"&&(wt[0]+=this.options.title.margin),wt[2]&&this.options.caption.verticalAlign==="bottom"&&(wt[2]+=this.options.caption.margin);let Zt=!this.titleOffset||this.titleOffset.join(",")!==wt.join(",");this.titleOffset=wt,Et(this,"afterLayOutTitles"),!this.isDirtyBox&&Zt&&(this.isDirtyBox=this.isDirtyLegend=Zt,this.hasRendered&>&&this.isDirtyBox&&this.redraw())}getContainerBox(){let gt=[].map.call(this.renderTo.children,Rt=>{if(Rt!==this.container){let jt=Rt.style.display;return Rt.style.display="none",[Rt,jt]}}),wt={width:Mt(this.renderTo,"width",!0)||0,height:Mt(this.renderTo,"height",!0)||0};return gt.filter(Boolean).forEach(([Rt,jt])=>{Rt.style.display=jt}),wt}getChartSize(){var ne;let gt=this.options.chart,wt=gt.width,Rt=gt.height,jt=this.getContainerBox(),Zt=jt.height>1&&!(!((ne=this.renderTo.parentElement)!=null&&ne.style.height)&&this.renderTo.style.height==="100%");this.chartWidth=Math.max(0,wt||jt.width||600),this.chartHeight=Math.max(0,it(Rt,this.chartWidth)||(Zt?jt.height:400)),this.containerBox=jt}temporaryDisplay(gt){let wt=this.renderTo,Rt;if(gt)for(;wt&&wt.style;)wt.hcOrigStyle&&(F(wt,wt.hcOrigStyle),delete wt.hcOrigStyle),wt.hcOrigDetached&&(S.body.removeChild(wt),wt.hcOrigDetached=!1),wt=wt.parentNode;else for(;wt&&wt.style&&(S.body.contains(wt)||wt.parentNode||(wt.hcOrigDetached=!0,S.body.appendChild(wt)),(Mt(wt,"display",!1)==="none"||wt.hcOricDetached)&&(wt.hcOrigStyle={display:wt.style.display,height:wt.style.height,overflow:wt.style.overflow},Rt={display:"block",overflow:"hidden"},wt!==this.renderTo&&(Rt.height=0),F(wt,Rt),wt.offsetWidth||wt.style.setProperty("display","block","important")),(wt=wt.parentNode)!==S.body););}setClassName(gt){this.container.className="highcharts-container "+(gt||"")}getContainer(){var Ye;let gt=this.options,wt=gt.chart,Rt="data-highcharts-chart",jt=Ct(),Zt,ne=this.renderTo;ne||(this.renderTo=ne=wt.renderTo),ot(ne)&&(this.renderTo=ne=S.getElementById(ne)),ne||nt(13,!0,this);let Wt=lt(f(ne,Rt));Y(Wt)&&E[Wt]&&E[Wt].hasRendered&&E[Wt].destroy(),f(ne,Rt,this.index),ne.innerHTML=d.emptyHTML,wt.skipClone||ne.offsetWidth||this.temporaryDisplay(),this.getChartSize();let le=this.chartHeight,de=this.chartWidth;F(ne,{overflow:"hidden"}),this.styledMode||(Zt=dt({position:"relative",overflow:"hidden",width:de+"px",height:le+"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"},wt.style||{}));let xe=b("div",{id:jt},Zt,ne);this.container=xe,this.getChartSize(),de===this.chartWidth||(de=this.chartWidth,this.styledMode||F(xe,{width:W((Ye=wt.style)==null?void 0:Ye.width,de+"px")})),this.containerBox=this.getContainerBox(),this._cursor=xe.style.cursor;let be=wt.renderer||!g?Z.getRendererType(wt.renderer):X;if(this.renderer=new be(xe,de,le,void 0,wt.forExport,gt.exporting&>.exporting.allowHTML,this.styledMode),w(void 0,this),this.setClassName(wt.className),this.styledMode)for(let tn in gt.defs)this.renderer.definition(gt.defs[tn]);else this.renderer.setStyle(wt.style);this.renderer.chartIndex=this.index,Et(this,"afterGetContainer")}getMargins(gt){let{spacing:wt,margin:Rt,titleOffset:jt}=this;this.resetMargins(),jt[0]&&!T(Rt[0])&&(this.plotTop=Math.max(this.plotTop,jt[0]+wt[0])),jt[2]&&!T(Rt[2])&&(this.marginBottom=Math.max(this.marginBottom,jt[2]+wt[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(Rt,wt),Et(this,"getMargins"),gt||this.getAxisMargins()}getAxisMargins(){let gt=this,wt=gt.axisOffset=[0,0,0,0],Rt=gt.colorAxis,jt=gt.margin,Zt=function(ne){ne.forEach(function(Wt){Wt.visible&&Wt.getOffset()})};gt.hasCartesianSeries?Zt(gt.axes):Rt&&Rt.length&&Zt(Rt),v.forEach(function(ne,Wt){T(jt[Wt])||(gt[ne]+=wt[Wt])}),gt.setChartSize()}getOptions(){return k(this.userOptions,_)}reflow(gt){var Zt;let wt=this,Rt=wt.containerBox,jt=wt.getContainerBox();(Zt=wt.pointer)==null||delete Zt.chartPosition,!wt.isPrinting&&!wt.isResizing&&Rt&&jt.width&&((jt.width!==Rt.width||jt.height!==Rt.height)&&(U.clearTimeout(wt.reflowTimeout),wt.reflowTimeout=xt(function(){wt.container&&wt.setSize(void 0,void 0,!1)},gt?100:0)),wt.containerBox=jt)}setReflow(){let gt=this,wt=Rt=>{var jt;(jt=gt.options)!=null&&jt.chart.reflow&>.hasLoaded&>.reflow(Rt)};if(typeof ResizeObserver=="function")new ResizeObserver(wt).observe(gt.renderTo);else{let Rt=l(x,"resize",wt);l(this,"destroy",Rt)}}setSize(gt,wt,Rt){let jt=this,Zt=jt.renderer;jt.isResizing+=1,w(Rt,jt);let ne=Zt.globalAnimation;jt.oldChartHeight=jt.chartHeight,jt.oldChartWidth=jt.chartWidth,gt!==void 0&&(jt.options.chart.width=gt),wt!==void 0&&(jt.options.chart.height=wt),jt.getChartSize();let{chartWidth:Wt,chartHeight:le,scrollablePixelsX:de=0,scrollablePixelsY:xe=0}=jt;(jt.isDirtyBox||Wt!==jt.oldChartWidth||le!==jt.oldChartHeight)&&(jt.styledMode||(ne?M:F)(jt.container,{width:`${Wt+de}px`,height:`${le+xe}px`},ne),jt.setChartSize(!0),Zt.setSize(Wt,le,ne),jt.axes.forEach(function(be){be.isDirty=!0,be.setScale()}),jt.isDirtyLegend=!0,jt.isDirtyBox=!0,jt.layOutTitles(),jt.getMargins(),jt.redraw(ne),jt.oldChartHeight=void 0,Et(jt,"resize"),setTimeout(()=>{jt&&Et(jt,"endResize")},s(ne).duration)),jt.isResizing-=1}setChartSize(gt){let wt,Rt,jt,Zt,{chartHeight:ne,chartWidth:Wt,inverted:le,spacing:de,renderer:xe}=this,be=this.clipOffset,Ye=Math[le?"floor":"round"];this.plotLeft=wt=Math.round(this.plotLeft),this.plotTop=Rt=Math.round(this.plotTop),this.plotWidth=jt=Math.max(0,Math.round(Wt-wt-this.marginRight)),this.plotHeight=Zt=Math.max(0,Math.round(ne-Rt-this.marginBottom)),this.plotSizeX=le?Zt:jt,this.plotSizeY=le?jt:Zt,this.spacingBox=xe.spacingBox={x:de[3],y:de[0],width:Wt-de[3]-de[1],height:ne-de[0]-de[2]},this.plotBox=xe.plotBox={x:wt,y:Rt,width:jt,height:Zt},be&&(this.clipBox={x:Ye(be[3]),y:Ye(be[0]),width:Ye(this.plotSizeX-be[1]-be[3]),height:Ye(this.plotSizeY-be[0]-be[2])}),gt||(this.axes.forEach(function(tn){tn.setAxisSize(),tn.setAxisTranslation()}),xe.alignElements()),Et(this,"afterSetChartSize",{skipAxes:gt})}resetMargins(){Et(this,"resetMargins");let gt=this,wt=gt.options.chart,Rt=wt.plotBorderWidth||0,jt=Rt/2;["margin","spacing"].forEach(function(Zt){let ne=wt[Zt],Wt=rt(ne)?ne:[ne,ne,ne,ne];["Top","Right","Bottom","Left"].forEach(function(le,de){gt[Zt][de]=W(wt[Zt+le],Wt[de])})}),v.forEach(function(Zt,ne){gt[Zt]=W(gt.margin[ne],gt.spacing[ne])}),gt.axisOffset=[0,0,0,0],gt.clipOffset=[jt,jt,jt,jt],gt.plotBorderWidth=Rt}drawChartBox(){let gt=this.options.chart,wt=this.renderer,Rt=this.chartWidth,jt=this.chartHeight,Zt=this.styledMode,ne=this.plotBGImage,Wt=gt.backgroundColor,le=gt.plotBackgroundColor,de=gt.plotBackgroundImage,xe=this.plotLeft,be=this.plotTop,Ye=this.plotWidth,tn=this.plotHeight,an=this.plotBox,Jt=this.clipRect,Kt=this.clipBox,te=this.chartBackground,Ot=this.plotBackground,Bt=this.plotBorder,Ut,zt,ce,_e="animate";te||(this.chartBackground=te=wt.rect().addClass("highcharts-background").add(),_e="attr"),Zt?Ut=zt=te.strokeWidth():(zt=(Ut=gt.borderWidth||0)+(gt.shadow?8:0),ce={fill:Wt||"none"},(Ut||te["stroke-width"])&&(ce.stroke=gt.borderColor,ce["stroke-width"]=Ut),te.attr(ce).shadow(gt.shadow)),te[_e]({x:zt/2,y:zt/2,width:Rt-zt-Ut%2,height:jt-zt-Ut%2,r:gt.borderRadius}),_e="animate",Ot||(_e="attr",this.plotBackground=Ot=wt.rect().addClass("highcharts-plot-background").add()),Ot[_e](an),!Zt&&(Ot.attr({fill:le||"none"}).shadow(gt.plotShadow),de&&(ne?(de!==ne.attr("href")&&ne.attr("href",de),ne.animate(an)):this.plotBGImage=wt.image(de,xe,be,Ye,tn).add())),Jt?Jt.animate({width:Kt.width,height:Kt.height}):this.clipRect=wt.clipRect(Kt),_e="animate",Bt||(_e="attr",this.plotBorder=Bt=wt.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),Zt||Bt.attr({stroke:gt.plotBorderColor,"stroke-width":gt.plotBorderWidth||0,fill:"none"}),Bt[_e](Bt.crisp({x:xe,y:be,width:Ye,height:tn},-Bt.strokeWidth())),this.isDirtyBox=!1,Et(this,"afterDrawChartBox")}propFromSeries(){let gt,wt,Rt,jt=this,Zt=jt.options.chart,ne=jt.options.series;["inverted","angular","polar"].forEach(function(Wt){for(wt=p[Zt.type],Rt=Zt[Wt]||wt&&wt.prototype[Wt],gt=ne&&ne.length;!Rt&>--;)(wt=p[ne[gt].type])&&wt.prototype[Wt]&&(Rt=!0);jt[Wt]=Rt})}linkSeries(gt){let wt=this,Rt=wt.series;Rt.forEach(function(jt){jt.linkedSeries.length=0}),Rt.forEach(function(jt){let{linkedTo:Zt}=jt.options;if(ot(Zt)){let ne;(ne=Zt===":previous"?wt.series[jt.index-1]:wt.get(Zt))&&ne.linkedParent!==jt&&(ne.linkedSeries.push(jt),jt.linkedParent=ne,ne.enabledDataSorting&&jt.setDataSortingOptions(),jt.visible=W(jt.options.visible,ne.options.visible,jt.visible))}}),Et(this,"afterLinkSeries",{isUpdating:gt})}renderSeries(){this.series.forEach(function(gt){gt.translate(),gt.render()})}render(){var xe;let gt=this.axes,wt=this.colorAxis,Rt=this.renderer,jt=this.options.chart.axisLayoutRuns||2,Zt=be=>{be.forEach(Ye=>{Ye.visible&&Ye.render()})},ne=0,Wt=!0,le,de=0;for(let be of(this.setTitle(),Et(this,"beforeMargins"),(xe=this.getStacks)==null||xe.call(this),this.getMargins(!0),this.setChartSize(),gt)){let{options:Ye}=be,{labels:tn}=Ye;if(this.hasCartesianSeries&&be.horiz&&be.visible&&tn.enabled&&be.series.length&&be.coll!=="colorAxis"&&!this.polar){ne=Ye.tickLength,be.createGroups();let an=new L(be,0,"",!0),Jt=an.createLabel("x",tn);if(an.destroy(),Jt&&W(tn.reserveSpace,!Y(Ye.crossing))&&(ne=Jt.getBBox().height+tn.distance+Math.max(Ye.offset||0,0)),ne){Jt==null||Jt.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-ne,0);(Wt||le||jt>1)&&de(de?1:1.1),le=Ye/this.plotHeight>(de?1:1.05),de++}this.drawChartBox(),this.hasCartesianSeries?Zt(gt):wt&&wt.length&&Zt(wt),this.seriesGroup||(this.seriesGroup=Rt.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(gt){let wt=this,Rt=D(!0,this.options.credits,gt);Rt.enabled&&!this.credits&&(this.credits=this.renderer.text(Rt.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){Rt.href&&(x.location.href=Rt.href)}).attr({align:Rt.position.align,zIndex:8}),wt.styledMode||this.credits.css(Rt.style),this.credits.add().align(Rt.position),this.credits.update=function(jt){wt.credits=wt.credits.destroy(),wt.addCredits(jt)})}destroy(){let gt,wt=this,Rt=wt.axes,jt=wt.series,Zt=wt.container,ne=Zt&&Zt.parentNode;for(Et(wt,"destroy"),wt.renderer.forExport?st(E,wt):E[wt.index]=void 0,q.chartCount--,wt.renderTo.removeAttribute("data-highcharts-chart"),vt(wt),gt=Rt.length;gt--;)Rt[gt]=Rt[gt].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),gt=jt.length;gt--;)jt[gt]=jt[gt].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(Wt){let le=wt[Wt];le&&le.destroy&&(wt[Wt]=le.destroy())}),Zt&&(Zt.innerHTML=d.emptyHTML,vt(Zt),ne&&Q(Zt)),P(wt,function(Wt,le){delete wt[le]})}firstRender(){var jt;let gt=this,wt=gt.options;gt.getContainer(),gt.resetMargins(),gt.setChartSize(),gt.propFromSeries(),gt.getAxes();let Rt=I(wt.series)?wt.series:[];wt.series=[],Rt.forEach(function(Zt){gt.initSeries(Zt)}),gt.linkSeries(),gt.setSortedData(),Et(gt,"beforeRender"),gt.render(),(jt=gt.pointer)==null||jt.getChartPosition(),gt.renderer.imgCount||gt.hasLoaded||gt.onload(),gt.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(gt){gt&&this.index!==void 0&>.apply(this,[this])},this),Et(this,"load"),Et(this,"render"),T(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:gt,title:wt}=this;!gt||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(wt&&wt.element.textContent||"").replace(/this.transform({reset:!0,trigger:"zoom"}))}pan(gt,wt){let Rt=this,jt=typeof wt=="object"?wt:{enabled:wt,type:"x"},Zt=jt.type,ne=Zt&&Rt[{x:"xAxis",xy:"axes",y:"yAxis"}[Zt]].filter(le=>le.options.panningEnabled&&!le.options.isInternal),Wt=Rt.options.chart;Wt!=null&&Wt.panning&&(Wt.panning=jt),Et(this,"pan",{originalEvent:gt},()=>{Rt.transform({axes:ne,event:gt,to:{x:gt.chartX-(Rt.mouseDownX||0),y:gt.chartY-(Rt.mouseDownY||0)},trigger:"pan"}),F(Rt.container,{cursor:"move"})})}transform(gt){var tn,an,Jt,Kt,te;let{axes:wt=this.axes,event:Rt,from:jt={},reset:Zt,selection:ne,to:Wt={},trigger:le}=gt,{inverted:de}=this,xe=!1,be,Ye;for(let Ot of((tn=this.hoverPoints)==null||tn.forEach(Bt=>Bt.setState()),wt)){let{horiz:Bt,len:Ut,minPointOffset:zt=0,options:ce,reversed:_e}=Ot,ye=Bt?"width":"height",qe=Bt?"x":"y",hn=W(Wt[ye],Ot.len),yn=W(jt[ye],Ot.len),Nn=10>Math.abs(hn)?1:hn/yn,pn=(jt[qe]||0)+yn/2-Ot.pos,Mn=pn-(((an=Wt[qe])!=null?an:Ot.pos)+hn/2-Ot.pos)/Nn,Kn=_e&&!de||!_e&&de?-1:1;if(!Zt&&(pn<0||pn>Ot.len))continue;let fr=Ot.toValue(Mn,!0)+(ne||Ot.isOrdinal?0:zt*Kn),ge=Ot.toValue(Mn+Ut/Nn,!0)-(ne||Ot.isOrdinal?0:zt*Kn||0),Ie=Ot.allExtremes;if(fr>ge&&([fr,ge]=[ge,fr]),Nn===1&&!Zt&&Ot.coll==="yAxis"&&!Ie){for(let nn of Ot.series){let fn=nn.getExtremes(nn.getProcessedData(!0).yData,!0);Ie!=null||(Ie={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),Y(fn.dataMin)&&Y(fn.dataMax)&&(Ie.dataMin=Math.min(fn.dataMin,Ie.dataMin),Ie.dataMax=Math.max(fn.dataMax,Ie.dataMax))}Ot.allExtremes=Ie}let{dataMin:Ge,dataMax:ve,min:Re,max:ze}=dt(Ot.getExtremes(),Ie||{}),Oe=Ge!=null?Ge:ce.min,De=ve!=null?ve:ce.max,Ze=ge-fr,Sn=Ot.categories?0:Math.min(Ze,De-Oe),Me=Oe-Sn*(T(ce.min)?0:ce.minPadding),en=De+Sn*(T(ce.max)?0:ce.maxPadding),xn=Ot.allowZoomOutside||Nn===1||le!=="zoom"&&Nn>1,Te=Math.min((Jt=ce.min)!=null?Jt:Me,Me,xn?Re:Me),bn=Math.max((Kt=ce.max)!=null?Kt:en,en,xn?ze:en);(!Ot.isOrdinal||Ot.options.overscroll||Nn!==1||Zt)&&(fr=1&&(ge=fr+Ze)),ge>bn&&(ge=bn,Nn>=1&&(fr=ge-Ze)),(Zt||Ot.series.length&&(fr!==Re||ge!==ze)&&fr>=Te&&ge<=bn)&&(ne?ne[Ot.coll].push({axis:Ot,min:fr,max:ge}):(Ot.isPanning=le!=="zoom",Ot.isPanning&&(Ye=!0),Ot.setExtremes(Zt?void 0:fr,Zt?void 0:ge,!1,!1,{move:Mn,trigger:le,scale:Nn}),!Zt&&(fr>Te||ge{delete gt.selection,gt.trigger="zoom",this.transform(gt)}):(!be||Ye||this.resetZoomButton?!be&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw(le==="zoom"&&((te=this.options.chart.animation)!=null?te:this.pointCount<100)))),xe}}return dt(Tt.prototype,{callbacks:[],collectionsWithInit:{xAxis:[Tt.prototype.addAxis,[!0]],yAxis:[Tt.prototype.addAxis,[!1]],series:[Tt.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","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"]}),Tt}),y(m,"Extensions/ScrollablePlotArea.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Globals.js"],m["Core/Renderer/RendererRegistry.js"],m["Core/Utilities.js"]],function(R,j,et,K){let{stop:J}=R,{composed:q}=j,{addEvent:Z,createElement:tt,css:H,defined:X,merge:B,pushUnique:U}=K;function d(){let s=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!s&&(this.scrollablePlotArea=s=new M(this)),s==null||s.applyFixed()}function L(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class M{static compose(w,_,o){U(q,this.compose)&&(Z(w,"afterInit",L),Z(_,"afterSetChartSize",u=>this.afterSetSize(u.target,u)),Z(_,"render",d),Z(o,"show",L))}static afterSetSize(w,_){let o,u,C,{minWidth:E,minHeight:S}=w.options.chart.scrollablePlotArea||{},{clipBox:v,plotBox:g,inverted:x,renderer:p}=w;if(!p.forExport&&(E?(w.scrollablePixelsX=o=Math.max(0,E-w.chartWidth),o&&(w.scrollablePlotBox=B(w.plotBox),g.width=w.plotWidth+=o,v[x?"height":"width"]+=o,C=!0)):S&&(w.scrollablePixelsY=u=Math.max(0,S-w.chartHeight),X(u)&&(w.scrollablePlotBox=B(w.plotBox),g.height=w.plotHeight+=u,v[x?"width":"height"]+=u,C=!1)),X(C)&&!_.skipAxes))for(let l of w.axes)l.horiz===C&&(l.setAxisSize(),l.setAxisTranslation())}constructor(w){var f,b;let _,o=w.options.chart,u=et.getRendererType(),C=o.scrollablePlotArea||{},E=this.moveFixedElements.bind(this),S={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};w.scrollablePixelsX&&(S.overflowX="auto"),w.scrollablePixelsY&&(S.overflowY="auto"),this.chart=w;let v=this.parentDiv=tt("div",{className:"highcharts-scrolling-parent"},{position:"relative"},w.renderTo),g=this.scrollingContainer=tt("div",{className:"highcharts-scrolling"},S,v),x=this.innerContainer=tt("div",{className:"highcharts-inner-container"},void 0,g),p=this.fixedDiv=tt("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(((f=o.style)==null?void 0:f.zIndex)||0)+2,top:0},void 0,!0),l=this.fixedRenderer=new u(p,w.chartWidth,w.chartHeight,o.style);this.mask=l.path().attr({fill:o.backgroundColor||"#fff","fill-opacity":(b=C.opacity)!=null?b:.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),g.parentNode.insertBefore(p,g),H(w.renderTo,{overflow:"visible"}),Z(w,"afterShowResetZoom",E),Z(w,"afterApplyDrilldown",E),Z(w,"afterLayOutTitles",E),Z(g,"scroll",()=>{let{pointer:F,hoverPoint:T}=w;F&&(delete F.chartPosition,T&&(_=T),F.runPointActions(void 0,_,!0))}),x.appendChild(w.container)}applyFixed(){var Y;let{chart:w,fixedRenderer:_,isDirty:o,scrollingContainer:u}=this,{axisOffset:C,chartWidth:E,chartHeight:S,container:v,plotHeight:g,plotLeft:x,plotTop:p,plotWidth:l,scrollablePixelsX:f=0,scrollablePixelsY:b=0}=w,{scrollPositionX:F=0,scrollPositionY:T=0}=w.options.chart.scrollablePlotArea||{},k=E+f,Q=S+b;_.setSize(E,S),(o==null||o)&&(this.isDirty=!1,this.moveFixedElements()),J(w.container),H(v,{width:`${k}px`,height:`${Q}px`}),w.renderer.boxWrapper.attr({width:k,height:Q,viewBox:[0,0,k,Q].join(" ")}),(Y=w.chartBackground)==null||Y.attr({width:k,height:Q}),H(u,{width:`${E}px`,height:`${S}px`}),X(o)||(u.scrollLeft=f*F,u.scrollTop=b*T);let st=p-C[0]-1,nt=x-C[3]-1,dt=p+g+C[2]+1,mt=x+l+C[1]+1,Et=x+l-f,Mt=p+g-b,I=[["M",0,0]];f?I=[["M",0,st],["L",x-1,st],["L",x-1,dt],["L",0,dt],["Z"],["M",Et,st],["L",E,st],["L",E,dt],["L",Et,dt],["Z"]]:b&&(I=[["M",nt,0],["L",nt,p-1],["L",mt,p-1],["L",mt,0],["Z"],["M",nt,Mt],["L",nt,S],["L",mt,S],["L",mt,Mt],["Z"]]),w.redrawTrigger!=="adjustHeight"&&this.mask.attr({d:I})}moveFixedElements(){let w,{container:_,inverted:o,scrollablePixelsX:u,scrollablePixelsY:C}=this.chart,E=this.fixedRenderer,S=M.fixedSelectors;for(let v of(u&&!o?w=".highcharts-yaxis":u&&o||C&&!o?w=".highcharts-xaxis":C&&o&&(w=".highcharts-yaxis"),w&&S.push(`${w}:not(.highcharts-radial-axis)`,`${w}-labels:not(.highcharts-radial-axis-labels)`),S))[].forEach.call(_.querySelectorAll(v),g=>{(g.namespaceURI===E.SVG_NS?E.box:E.box.parentNode).appendChild(g),g.style.pointerEvents="auto"})}}return M.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"],M}),y(m,"Core/Axis/Stacking/StackItem.js",[m["Core/Templating.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j,et){let{format:K}=R,{series:J}=j,{destroyObjectProperties:q,fireEvent:Z,isNumber:tt,pick:H}=et;return class{constructor(X,B,U,d,L){let M=X.chart.inverted,s=X.reversed;this.axis=X;let w=this.isNegative=!!U!=!!s;this.options=B=B||{},this.x=d,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=L,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:B.align||(M?w?"left":"right":"center"),verticalAlign:B.verticalAlign||(M?"middle":w?"bottom":"top"),y:B.y,x:B.x},this.textAlign=B.textAlign||(M?w?"right":"left":"center")}destroy(){q(this,this.axis)}render(X){let B=this.axis.chart,U=this.options,d=U.format,L=d?K(d,this,B):U.formatter.call(this);if(this.label)this.label.attr({text:L,visibility:"hidden"});else{this.label=B.renderer.label(L,null,void 0,U.shape,void 0,void 0,U.useHTML,!1,"stack-labels");let M={r:U.borderRadius||0,text:L,padding:H(U.padding,5),visibility:"hidden"};B.styledMode||(M.fill=U.backgroundColor,M.stroke=U.borderColor,M["stroke-width"]=U.borderWidth,this.label.css(U.style||{})),this.label.attr(M),this.label.added||this.label.add(X)}this.label.labelrank=B.plotSizeY,Z(this,"afterRender")}setOffset(X,B,U,d,L,M){let{alignOptions:s,axis:w,label:_,options:o,textAlign:u}=this,C=w.chart,E=this.getStackBox({xOffset:X,width:B,boxBottom:U,boxTop:d,defaultX:L,xAxis:M}),{verticalAlign:S}=s;if(_&&E){let v=_.getBBox(void 0,0),g=_.padding,x=H(o.overflow,"justify")==="justify",p;s.x=o.x||0,s.y=o.y||0;let{x:l,y:f}=this.adjustStackPosition({labelBox:v,verticalAlign:S,textAlign:u});E.x-=l,E.y-=f,_.align(s,!1,E),(p=C.isInsidePlot(_.alignAttr.x+s.x+l,_.alignAttr.y+s.y+f))||(x=!1),x&&J.prototype.justifyDataLabel.call(w,_,s,_.alignAttr,v,E),_.attr({x:_.alignAttr.x,y:_.alignAttr.y,rotation:o.rotation,rotationOriginX:v.width*{left:0,center:.5,right:1}[o.textAlign||"center"],rotationOriginY:v.height/2}),H(!x&&o.crop,!0)&&(p=tt(_.x)&&tt(_.y)&&C.isInsidePlot(_.x-g+(_.width||0),_.y)&&C.isInsidePlot(_.x+g,_.y)),_[p?"show":"hide"]()}Z(this,"afterSetOffset",{xOffset:X,width:B})}adjustStackPosition({labelBox:X,verticalAlign:B,textAlign:U}){let d={bottom:0,middle:1,top:2,right:1,center:0,left:-1},L=d[B],M=d[U];return{x:X.width/2+X.width/2*M,y:X.height/2*L}}getStackBox(X){let B=this.axis,U=B.chart,{boxTop:d,defaultX:L,xOffset:M,width:s,boxBottom:w}=X,_=B.stacking.usePercentage?100:H(d,this.total,0),o=B.toPixels(_),u=X.xAxis||U.xAxis[0],C=H(L,u.translate(this.x))+M,E=Math.abs(o-B.toPixels(w||tt(B.min)&&B.logarithmic&&B.logarithmic.lin2log(B.min)||0)),S=U.inverted,v=this.isNegative;return S?{x:(v?o:o-E)-U.plotLeft,y:u.height-C-s+u.top-U.plotTop,width:E,height:s}:{x:C+u.transB-U.plotLeft,y:(v?o-E:o)-U.plotTop,width:s,height:E}}}}),y(m,"Core/Axis/Stacking/StackingAxis.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Axis/Axis.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Axis/Stacking/StackItem.js"],m["Core/Utilities.js"]],function(R,j,et,K,J){var q;let{getDeferredAnimation:Z}=R,{series:{prototype:tt}}=et,{addEvent:H,correctFloat:X,defined:B,destroyObjectProperties:U,fireEvent:d,isArray:L,isNumber:M,objectEach:s,pick:w}=J;function _(){let p=this.inverted;this.axes.forEach(l=>{l.stacking&&l.stacking.stacks&&l.hasVisibleSeries&&(l.stacking.oldStacks=l.stacking.stacks)}),this.series.forEach(l=>{let f=l.xAxis&&l.xAxis.options||{};l.options.stacking&&l.reserveSpace()&&(l.stackKey=[l.type,w(l.options.stack,""),p?f.top:f.left,p?f.height:f.width].join(","))})}function o(){var l;let p=this.stacking;if(p){let f=p.stacks;s(f,(b,F)=>{U(b),delete f[F]}),(l=p.stackTotalGroup)==null||l.destroy()}}function u(){this.stacking||(this.stacking=new x(this))}function C(p,l,f,b){return!B(p)||p.x!==l||b&&p.stackKey!==b?p={x:l,index:0,key:b,stackKey:b}:p.index++,p.key=[f,l,p.index].join(","),p}function E(){let p,l=this,f=l.yAxis,b=l.stackKey||"",F=f.stacking.stacks,T=l.processedXData,k=l.options.stacking,Q=l[k+"Stacker"];Q&&[b,"-"+b].forEach(st=>{var Mt;let nt=T.length,dt,mt,Et;for(;nt--;)dt=T[nt],p=l.getStackIndicator(p,dt,l.index,st),mt=(Mt=F[st])==null?void 0:Mt[dt],(Et=mt==null?void 0:mt.points[p.key||""])&&Q.call(l,Et,mt,nt)})}function S(p,l,f){let b=l.total?100/l.total:0;p[0]=X(p[0]*b),p[1]=X(p[1]*b),this.stackedYData[f]=p[1]}function v(p){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&!this.options.stacking&&this.chart.series.length>1?tt.setStackedPoints.call(this,p,"group"):p.stacking.resetStacks())}function g(p,l){var Ct,Tt;let f,b,F,T,k,Q,st,nt,dt,mt=l||this.options.stacking;if(!mt||!this.reserveSpace()||({group:"xAxis"}[mt]||"yAxis")!==p.coll)return;let Et=this.processedXData,Mt=this.processedYData,I=[],Y=Mt.length,rt=this.options,ot=rt.threshold||0,D=rt.startFromThreshold?ot:0,P=rt.stack,W=l?`${this.type},${mt}`:this.stackKey||"",lt="-"+W,it=this.negStacks,vt=p.stacking,pt=vt.stacks,xt=vt.oldStacks;for(vt.stacksTouched+=1,st=0;st0&&this.singleStacks===!1&&(F.points[Q][0]=F.points[this.index+","+nt+",0"][0])):(delete F.points[Q],delete F.points[this.index]);let Nt=F.total||0;mt==="percent"?(T=b?W:lt,Nt=it&&((Tt=pt[T])!=null&&Tt[nt])?(T=pt[T][nt]).total=Math.max(T.total||0,Nt)+Math.abs(dt)||0:X(Nt+(Math.abs(dt)||0))):mt==="group"?(L(dt)&&(dt=dt[0]),dt!==null&&Nt++):Nt=X(Nt+(dt||0)),mt==="group"?F.cumulative=(Nt||1)-1:F.cumulative=X(w(F.cumulative,D)+(dt||0)),F.total=Nt,dt!==null&&(F.points[Q].push(F.cumulative),I[st]=F.cumulative,F.hasValidPoints=!0)}mt==="percent"&&(vt.usePercentage=!0),mt!=="group"&&(this.stackedYData=I),vt.oldStacks={}}class x{constructor(l){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=l}buildStacks(){let l,f,b=this.axis,F=b.series,T=b.coll==="xAxis",k=b.options.reversedStacks,Q=F.length;for(this.resetStacks(),this.usePercentage=!1,f=Q;f--;)l=F[k?f:Q-f-1],T&&l.setGroupedPoints(b),l.setStackedPoints(b);if(!T)for(f=0;f{s(l,f=>{f.cumulative=f.total})}))}resetStacks(){s(this.stacks,l=>{s(l,(f,b)=>{M(f.touched)&&f.touched{s(st,nt=>{nt.render(k)})}),k.animate({opacity:1},T)}}return(q||(q={})).compose=function(p,l,f){let b=l.prototype,F=f.prototype;b.getStacks||(H(p,"init",u),H(p,"destroy",o),b.getStacks=_,F.getStackIndicator=C,F.modifyStacks=E,F.percentStacker=S,F.setGroupedPoints=v,F.setStackedPoints=g)},q}),y(m,"Series/Line/LineSeries.js",[m["Core/Series/Series.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j,et){let{defined:K,merge:J,isObject:q}=et;class Z extends R{drawGraph(){let H=this.options,X=(this.gappedPath||this.getGraphPath).call(this),B=this.chart.styledMode;[this,...this.zones].forEach((U,d)=>{let L,M=U.graph,s=M?"animate":"attr",w=U.dashStyle||H.dashStyle;M?(M.endX=this.preventGraphAnimation?null:X.xMap,M.animate({d:X})):X.length&&(U.graph=M=this.chart.renderer.path(X).addClass("highcharts-graph"+(d?` highcharts-zone-graph-${d-1} `:" ")+(d&&U.className||"")).attr({zIndex:1}).add(this.group)),M&&!B&&(L={stroke:!d&&H.lineColor||U.color||this.color||"#cccccc","stroke-width":H.lineWidth||0,fill:this.fillGraph&&this.color||"none"},w?L.dashstyle=w:H.linecap!=="square"&&(L["stroke-linecap"]=L["stroke-linejoin"]="round"),M[s](L).shadow(d<2&&H.shadow&&J({filterUnits:"userSpaceOnUse"},q(H.shadow)?H.shadow:{}))),M&&(M.startX=X.xMap,M.isArea=X.isArea)})}getGraphPath(H,X,B){let U=this,d=U.options,L=[],M=[],s,w=d.step,_=(H=H||U.points).reversed;return _&&H.reverse(),(w={right:1,center:2}[w]||w&&3)&&_&&(w=4-w),(H=this.getValidPoints(H,!1,!(d.connectNulls&&!X&&!B))).forEach(function(o,u){let C,E=o.plotX,S=o.plotY,v=H[u-1],g=o.isNull||typeof S!="number";(o.leftCliff||v&&v.rightCliff)&&!B&&(s=!0),g&&!K(X)&&u>0?s=!d.connectNulls:g&&!X?s=!0:(u===0||s?C=[["M",o.plotX,o.plotY]]:U.getPointSpline?C=[U.getPointSpline(H,o,u)]:w?(C=w===1?[["L",v.plotX,S]]:w===2?[["L",(v.plotX+E)/2,v.plotY],["L",(v.plotX+E)/2,S]]:[["L",E,v.plotY]]).push(["L",E,S]):C=[["L",E,S]],M.push(o.x),w&&(M.push(o.x),w===2&&M.push(o.x)),L.push.apply(L,C),s=!1)}),L.xMap=M,U.graphPath=L,L}}return Z.defaultOptions=J(R.defaultOptions,{legendSymbol:"lineMarker"}),j.registerSeriesType("line",Z),Z}),y(m,"Series/Area/AreaSeriesDefaults.js",[],function(){return{threshold:0,legendSymbol:"areaMarker"}}),y(m,"Series/Area/AreaSeries.js",[m["Series/Area/AreaSeriesDefaults.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j,et){let{seriesTypes:{line:K}}=j,{extend:J,merge:q,objectEach:Z,pick:tt}=et;class H extends K{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:B,options:U}=this;[this,...this.zones].forEach((d,L)=>{var o;let M={},s=d.fillColor||U.fillColor,w=d.area,_=w?"animate":"attr";w?(w.endX=this.preventGraphAnimation?null:B.xMap,w.animate({d:B})):(M.zIndex=0,(w=d.area=this.chart.renderer.path(B).addClass("highcharts-area"+(L?` highcharts-zone-area-${L-1} `:" ")+(L&&d.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(M.fill=s||d.color||this.color,M["fill-opacity"]=s?1:(o=U.fillOpacity)!=null?o:.75,w.css({pointerEvents:this.stickyTracking?"none":"auto"})),w[_](M),w.startX=B.xMap,w.shiftUnit=U.step?2:1})}getGraphPath(B){let U,d,L,M=K.prototype.getGraphPath,s=this.options,w=s.stacking,_=this.yAxis,o=[],u=[],C=this.index,E=_.stacking.stacks[this.stackKey],S=s.threshold,v=Math.round(_.getThreshold(s.threshold)),g=tt(s.connectNulls,w==="percent"),x=function(T,k,Q){let st=B[T],nt=w&&E[st.x].points[C],dt=st[Q+"Null"]||0,mt=st[Q+"Cliff"]||0,Et,Mt,I=!0;mt||dt?(Et=(dt?nt[0]:nt[1])+mt,Mt=nt[0]+mt,I=!!dt):!w&&B[k]&&B[k].isNull&&(Et=Mt=S),Et!==void 0&&(u.push({plotX:U,plotY:Et===null?v:_.getThreshold(Et),isNull:I,isCliff:!0}),o.push({plotX:U,plotY:Mt===null?v:_.getThreshold(Mt),doCurve:!1}))};B=B||this.points,w&&(B=this.getStackPoints(B));for(let T=0,k=B.length;T1&&w&&u.some(T=>T.isCliff)&&(b.hasStackedCliffs=F.hasStackedCliffs=!0),b.xMap=p.xMap,this.areaPath=b,F}getStackPoints(B){let U=this,d=[],L=[],M=this.xAxis,s=this.yAxis,w=s.stacking.stacks[this.stackKey],_={},o=s.series,u=o.length,C=s.options.reversedStacks?1:-1,E=o.indexOf(U);if(B=B||this.points,this.options.stacking){for(let v=0;vv.visible);L.forEach(function(v,g){let x=0,p,l;if(_[v]&&!_[v].isNull)d.push(_[v]),[-1,1].forEach(function(f){let b=f===1?"rightNull":"leftNull",F=w[L[g+f]],T=0;if(F){let k=E;for(;k>=0&&k=0&&fE&&U>s?(U=Math.max(E,s),L=2*s-U):Uv&&L>s?(L=Math.max(v,s),U=2*s-L):L1){let l=this.xAxis.series.filter(T=>T.visible).map(T=>T.index),f=0,b=0;u((p=this.xAxis.stacking)==null?void 0:p.stacks,T=>{if(typeof g.x=="number"){let k=T[g.x.toString()];if(k&&s(k.points[this.index])){let Q=Object.keys(k.points).filter(st=>!st.match(",")&&k.points[st]&&k.points[st].length>1).map(parseFloat).filter(st=>l.indexOf(st)!==-1).sort((st,nt)=>nt-st);f=Q.indexOf(this.index),b=Q.length}}}),f=this.xAxis.reversed?b-1-f:f;let F=(b-1)*x.paddedWidth+v;S=(g.plotX||0)+F/2-v-f*x.paddedWidth}return S}translate(){let S=this,v=S.chart,g=S.options,x=S.dense=S.closestPointRange*S.xAxis.transA<2,p=S.borderWidth=o(g.borderWidth,x?0:1),l=S.xAxis,f=S.yAxis,b=g.threshold,F=o(g.minPointLength,5),T=S.getColumnMetrics(),k=T.width,Q=S.pointXOffset=T.offset,st=S.dataMin,nt=S.dataMax,dt=S.translatedThreshold=f.getThreshold(b),mt=S.barW=Math.max(k,1+2*p);g.pointPadding&&(mt=Math.ceil(mt)),J.prototype.translate.apply(S),S.points.forEach(function(Et){let Mt=o(Et.yBottom,dt),I=999+Math.abs(Mt),Y=Et.plotX||0,rt=B(Et.plotY,-I,f.len+I),ot,D=Math.min(rt,Mt),P=Math.max(rt,Mt)-D,W=k,lt=Y+Q,it=mt;F&&Math.abs(P)F?Mt-F:dt-(ot?F:0)),d(Et.options.pointWidth)&&(lt-=Math.round(((W=it=Math.ceil(Et.options.pointWidth))-k)/2)),g.centerInCategory&&!g.stacking&&(lt=S.adjustForMissingColumns(lt,W,Et,T)),Et.barX=lt,Et.pointWidth=W,Et.tooltipPos=v.inverted?[B(f.len+f.pos-v.plotLeft-rt,f.pos-v.plotLeft,f.len+f.pos-v.plotLeft),l.len+l.pos-v.plotTop-lt-it/2,P]:[l.left-v.plotLeft+lt+it/2,B(rt+f.pos-v.plotTop,f.pos-v.plotTop,f.len+f.pos-v.plotTop),P],Et.shapeType=S.pointClass.prototype.shapeType||"roundedRect",Et.shapeArgs=S.crispCol(lt,Et.isNull?dt:D,it,Et.isNull?0:P)}),M(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(S,v){let g=this.options,x=this.pointAttrToOptions||{},p=x.stroke||"borderColor",l=x["stroke-width"]||"borderWidth",f,b,F,T=S&&S.color||this.color,k=S&&S[p]||g[p]||T,Q=S&&S.options.dashStyle||g.dashStyle,st=S&&S[l]||g[l]||this[l]||0,nt=o(S&&S.opacity,g.opacity,1);S&&this.zones.length&&(b=S.getZone(),T=S.options.color||b&&(b.color||S.nonZonedColor)||this.color,b&&(k=b.borderColor||k,Q=b.dashStyle||Q,st=b.borderWidth||st)),v&&S&&(F=(f=_(g.states[v],S.options.states&&S.options.states[v]||{})).brightness,T=f.color||F!==void 0&&H(T).brighten(f.brightness).get()||T,k=f[p]||k,st=f[l]||st,Q=f.dashStyle||Q,nt=o(f.opacity,nt));let dt={fill:T,stroke:k,"stroke-width":st,opacity:nt};return Q&&(dt.dashstyle=Q),dt}drawPoints(S=this.points){let v,g=this,x=this.chart,p=g.options,l=x.renderer,f=p.animationLimit||250;S.forEach(function(b){let F=b.plotY,T=b.graphic,k=!!T,Q=T&&x.pointCountp==null?void 0:p.enabled)}function o(p,l,f,b,F){var rt;let{chart:T,enabledDataSorting:k}=this,Q=this.isCartesian&&T.inverted,st=p.plotX,nt=p.plotY,dt=f.rotation||0,mt=Z(st)&&Z(nt)&&T.isInsidePlot(st,Math.round(nt),{inverted:Q,paneCoordinates:!0,series:this}),Et=dt===0&&L(f.overflow,k?"none":"justify")==="justify",Mt=this.visible&&p.visible!==!1&&Z(st)&&(p.series.forceDL||k&&!Et||mt||L(f.inside,!!this.options.stacking)&&b&&T.isInsidePlot(st,Q?b.x+1:b.y+b.height-1,{inverted:Q,paneCoordinates:!0,series:this})),I=p.pos();if(Mt&&I){var Y;let ot=l.getBBox(),D=l.getBBox(void 0,0),P={right:1,center:.5}[f.align||0]||0,W={bottom:1,middle:.5}[f.verticalAlign||0]||0;if(b=tt({x:I[0],y:Math.round(I[1]),width:0,height:0},b||{}),f.alignTo==="plotEdges"&&this.isCartesian&&(b[Q?"x":"y"]=0,b[Q?"width":"height"]=((rt=this.yAxis)==null?void 0:rt.len)||0),tt(f,{width:ot.width,height:ot.height}),Y=b,k&&this.xAxis&&!Et&&this.setDataLabelStartPos(p,l,F,mt,Y),l.align(U(f,{width:D.width,height:D.height}),!1,b,!1),l.alignAttr.x+=P*(D.width-ot.width),l.alignAttr.y+=W*(D.height-ot.height),l[l.placed?"animate":"attr"]({x:l.alignAttr.x+(ot.width-D.width)/2,y:l.alignAttr.y+(ot.height-D.height)/2,rotationOriginX:(l.width||0)/2,rotationOriginY:(l.height||0)/2}),Et&&b.height>=0)this.justifyDataLabel(l,f,l.alignAttr,ot,b,F);else if(L(f.crop,!0)){let{x:lt,y:it}=l.alignAttr;Mt=T.isInsidePlot(lt,it,{paneCoordinates:!0,series:this})&&T.isInsidePlot(lt+ot.width-1,it+ot.height-1,{paneCoordinates:!0,series:this})}f.shape&&!dt&&l[F?"attr":"animate"]({anchorX:I[0],anchorY:I[1]})}F&&k&&(l.placed=!1),Mt||k&&!Et?(l.show(),l.placed=!0):(l.hide(),l.placed=!1)}function u(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function C(p){let l=this.hasRendered||0,f=this.initDataLabelsGroup().attr({opacity:+l});return!l&&f&&(this.visible&&f.show(),this.options.animation?f.animate({opacity:1},p):f.attr({opacity:1})),f}function E(p){var Mt;let l;p=p||this.points;let f=this,b=f.chart,F=f.options,T=b.renderer,{backgroundColor:k,plotBackgroundColor:Q}=b.options.chart,st=T.getContrast(B(Q)&&Q||B(k)&&k||"#000000"),nt=g(f),{animation:dt,defer:mt}=nt[0],Et=mt?J(b,dt,f):{defer:0,duration:0};H(this,"drawDataLabels"),(Mt=f.hasDataLabels)!=null&&Mt.call(f)&&(l=this.initDataLabels(Et),p.forEach(I=>{var ot,D;let Y=I.dataLabels||[];s(v(nt,I.dlOptions||((ot=I.options)==null?void 0:ot.dataLabels))).forEach((P,W)=>{let lt=P.enabled&&(I.visible||I.dataLabelOnHidden)&&(!I.isNull||I.dataLabelOnNull)&&function(ne,Wt){let le=Wt.filter;if(le){let de=le.operator,xe=ne[le.property],be=le.value;return de===">"&&xe>be||de==="<"&&xe="&&xe>=be||de==="<="&&xe<=be||de==="=="&&xe==be||de==="==="&&xe===be||de==="!="&&xe!=be||de==="!=="&&xe!==be}return!0}(I,P),{backgroundColor:it,borderColor:vt,distance:pt,style:xt={}}=P,Ct,Tt,Nt,gt,wt={},Rt=Y[W],jt=!Rt,Zt;lt&&(Tt=L(P[I.formatPrefix+"Format"],P.format),Ct=I.getLabelConfig(),Nt=Z(Tt)?q(Tt,Ct,b):(P[I.formatPrefix+"Formatter"]||P.formatter).call(Ct,P),gt=P.rotation,!b.styledMode&&(xt.color=L(P.color,xt.color,B(f.color)?f.color:void 0,"#000000"),xt.color==="contrast"?(it!=="none"&&(Zt=it),I.contrastColor=T.getContrast(Zt!=="auto"&&Zt||I.color||f.color),xt.color=Zt||!Z(pt)&&P.inside||0>M(pt||0)||F.stacking?I.contrastColor:st):delete I.contrastColor,F.cursor&&(xt.cursor=F.cursor)),wt={r:P.borderRadius||0,rotation:gt,padding:P.padding,zIndex:1},b.styledMode||(wt.fill=it==="auto"?I.color:it,wt.stroke=vt==="auto"?I.color:vt,wt["stroke-width"]=P.borderWidth),d(wt,(ne,Wt)=>{ne===void 0&&delete wt[Wt]})),!Rt||lt&&Z(Nt)&&!!Rt.div==!!P.useHTML&&(Rt.rotation&&P.rotation||Rt.rotation===P.rotation)||(Rt=void 0,jt=!0),lt&&Z(Nt)&&(Rt?wt.text=Nt:(Rt=T.label(Nt,0,0,P.shape,void 0,void 0,P.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+I.colorIndex+" "+(P.className||"")+(P.useHTML?" highcharts-tracker":"")),Rt&&(Rt.options=P,Rt.attr(wt),b.styledMode?xt.width&&Rt.css({width:xt.width,textOverflow:xt.textOverflow}):Rt.css(xt).shadow(P.shadow),H(Rt,"beforeAddingDataLabel",{labelOptions:P,point:I}),Rt.added||Rt.add(l),f.alignDataLabel(I,Rt,P,void 0,jt),Rt.isActive=!0,Y[W]&&Y[W]!==Rt&&Y[W].destroy(),Y[W]=Rt))});let rt=Y.length;for(;rt--;)Y[rt]&&Y[rt].isActive?Y[rt].isActive=!1:((D=Y[rt])==null||D.destroy(),Y.splice(rt,1));I.dataLabel=Y[0],I.dataLabels=Y})),H(this,"afterDrawDataLabels")}function S(p,l,f,b,F,T){let k=this.chart,Q=l.align,st=l.verticalAlign,nt=p.box?0:p.padding||0,dt=k.inverted?this.yAxis:this.xAxis,mt=dt?dt.left-k.plotLeft:0,Et=k.inverted?this.xAxis:this.yAxis,Mt=Et?Et.top-k.plotTop:0,{x:I=0,y:Y=0}=l,rt,ot;return(rt=(f.x||0)+nt+mt)<0&&(Q==="right"&&I>=0?(l.align="left",l.inside=!0):I-=rt,ot=!0),(rt=(f.x||0)+b.width-nt+mt)>k.plotWidth&&(Q==="left"&&I<=0?(l.align="right",l.inside=!0):I+=k.plotWidth-rt,ot=!0),(rt=f.y+nt+Mt)<0&&(st==="bottom"&&Y>=0?(l.verticalAlign="top",l.inside=!0):Y-=rt,ot=!0),(rt=(f.y||0)+b.height-nt+Mt)>k.plotHeight&&(st==="top"&&Y<=0?(l.verticalAlign="bottom",l.inside=!0):Y+=k.plotHeight-rt,ot=!0),ot&&(l.x=I,l.y=Y,p.placed=!T,p.align(l,void 0,F)),ot}function v(p,l){let f=[],b;if(X(p)&&!X(l))f=p.map(function(F){return U(F,l)});else if(X(l)&&!X(p))f=l.map(function(F){return U(p,F)});else if(X(p)||X(l)){if(X(p)&&X(l))for(b=Math.max(p.length,l.length);b--;)f[b]=U(p[b],l[b])}else f=U(p,l);return f}function g(p){var f,b;let l=p.chart.options.plotOptions;return s(v(v((f=l==null?void 0:l.series)==null?void 0:f.dataLabels,(b=l==null?void 0:l[p.type])==null?void 0:b.dataLabels),p.options.dataLabels))}function x(p,l,f,b,F){let T=this.chart,k=T.inverted,Q=this.xAxis,st=Q.reversed,nt=((k?l.height:l.width)||0)/2,dt=p.pointWidth,mt=dt?dt/2:0;l.startXPos=k?F.x:st?-nt-mt:Q.width-nt+mt,l.startYPos=k?st?this.yAxis.height-nt+mt:-nt-mt:F.y,b?l.visibility==="hidden"&&(l.show(),l.attr({opacity:0}).animate({opacity:1})):l.attr({opacity:1}).animate({opacity:0},void 0,l.hide),T.hasRendered&&(f&&l.attr({x:l.startXPos,y:l.startYPos}),l.placed=!0)}w.compose=function(p){let l=p.prototype;l.initDataLabels||(l.initDataLabels=C,l.initDataLabelsGroup=u,l.alignDataLabel=o,l.drawDataLabels=E,l.justifyDataLabel=S,l.setDataLabelStartPos=x,l.hasDataLabels=_)}}(K||(K={})),K}),y(m,"Series/Column/ColumnDataLabel.js",[m["Core/Series/DataLabel.js"],m["Core/Globals.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j,et,K){var J;let{composed:q}=j,{series:Z}=et,{merge:tt,pick:H,pushUnique:X}=K;return function(B){function U(d,L,M,s,w){let _=this.chart.inverted,o=d.series,u=(o.xAxis?o.xAxis.len:this.chart.plotSizeX)||0,C=(o.yAxis?o.yAxis.len:this.chart.plotSizeY)||0,E=d.dlBox||d.shapeArgs,S=H(d.below,d.plotY>H(this.translatedThreshold,C)),v=H(M.inside,!!this.options.stacking);if(E){if(s=tt(E),!(M.overflow==="allow"&&M.crop===!1)){s.y<0&&(s.height+=s.y,s.y=0);let g=s.y+s.height-C;g>0&&g\u25CF {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}}),y(m,"Series/Scatter/ScatterSeries.js",[m["Series/Scatter/ScatterSeriesDefaults.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j,et){let{column:K,line:J}=j.seriesTypes,{addEvent:q,extend:Z,merge:tt}=et;class H extends J{applyJitter(){let B=this,U=this.options.jitter,d=this.points.length;U&&this.points.forEach(function(L,M){["x","y"].forEach(function(s,w){if(U[s]&&!L.isNull){let _=`plot${s.toUpperCase()}`,o=B[`${s}Axis`],u=U[s]*o.transA;if(o&&!o.logarithmic){let C=Math.max(0,(L[_]||0)-u),E=Math.min(o.len,(L[_]||0)+u);L[_]=C+(E-C)*function(S){let v=1e4*Math.sin(S);return v-Math.floor(v)}(M+w*d),s==="x"&&(L.clientX=L.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return H.defaultOptions=tt(J.defaultOptions,R),Z(H.prototype,{drawTracker:K.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),q(H,"afterTranslate",function(){this.applyJitter()}),j.registerSeriesType("scatter",H),H}),y(m,"Series/CenteredUtilities.js",[m["Core/Globals.js"],m["Core/Series/Series.js"],m["Core/Utilities.js"]],function(R,j,et){var K,J;let{deg2rad:q}=R,{fireEvent:Z,isNumber:tt,pick:H,relativeLength:X}=et;return(J=K||(K={})).getCenter=function(){let B=this.options,U=this.chart,d=2*(B.slicedOffset||0),L=U.plotWidth-2*d,M=U.plotHeight-2*d,s=B.center,w=Math.min(L,M),_=B.thickness,o,u=B.size,C=B.innerSize||0,E,S;typeof u=="string"&&(u=parseFloat(u)),typeof C=="string"&&(C=parseFloat(C));let v=[H(s[0],"50%"),H(s[1],"50%"),H(u&&u<0?void 0:B.size,"100%"),H(C&&C<0?void 0:B.innerSize||0,"0%")];for(!U.angular||this instanceof j||(v[3]=0),E=0;E<4;++E)S=v[E],o=E<2||E===2&&/%$/.test(S),v[E]=X(S,[L,M,w,v[2]][E])+(o?d:0);return v[3]>v[2]&&(v[3]=v[2]),tt(_)&&2*_0&&(v[3]=v[2]-2*_),Z(this,"afterGetCenter",{positions:v}),v},J.getStartAndEndRadians=function(B,U){let d=tt(B)?B:0,L=tt(U)&&U>d&&U-d<360?U:d+360;return{start:q*(d+-90),end:q*(L+-90)}},K}),y(m,"Series/Pie/PiePoint.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Series/Point.js"],m["Core/Utilities.js"]],function(R,j,et){let{setAnimation:K}=R,{addEvent:J,defined:q,extend:Z,isNumber:tt,pick:H,relativeLength:X}=et;class B extends j{getConnectorPath(d){let L=d.dataLabelPosition,M=d.options||{},s=M.connectorShape,w=this.connectorShapes[s]||s;return L&&w.call(this,ho(zr({},L.computed),{alignment:L.alignment}),L.connectorPosition,M)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(d){let L=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(L.x,L.y,L.r+d,L.r+d,{innerR:L.r-1,start:L.start,end:L.end,borderRadius:L.borderRadius})}constructor(d,L,M){var w;super(d,L,M),this.half=0,(w=this.name)!=null||(this.name="Slice");let s=_=>{this.slice(_.type==="select")};J(this,"select",s),J(this,"unselect",s)}isValid(){return tt(this.y)&&this.y>=0}setVisible(d,L=!0){d!==this.visible&&this.update({visible:d!=null?d:!this.visible},L,void 0,!1)}slice(d,L,M){let s=this.series;K(M,s.chart),L=H(L,!0),this.sliced=this.options.sliced=d=q(d)?d:!this.sliced,s.options.data[s.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return Z(B.prototype,{connectorShapes:{fixedOffset:function(U,d,L){let M=d.breakAt,s=d.touchingSliceAt,w=L.softConnector?["C",U.x+(U.alignment==="left"?-5:5),U.y,2*M.x-s.x,2*M.y-s.y,M.x,M.y]:["L",M.x,M.y];return[["M",U.x,U.y],w,["L",s.x,s.y]]},straight:function(U,d){let L=d.touchingSliceAt;return[["M",U.x,U.y],["L",L.x,L.y]]},crookedLine:function(U,d,L){let{breakAt:M,touchingSliceAt:s}=d,{series:w}=this,[_,o,u]=w.center,C=u/2,{plotLeft:E,plotWidth:S}=w.chart,v=U.alignment==="left",{x:g,y:x}=U,p=M.x;if(L.crookDistance){let f=X(L.crookDistance,1);p=v?_+C+(S+E-_-C)*(1-f):E+(_-C)*f}else p=_+(o-x)*Math.tan((this.angle||0)-Math.PI/2);let l=[["M",g,x]];return(v?p<=g&&p>=M.x:p>=g&&p<=M.x)&&l.push(["L",p,x]),l.push(["L",M.x,M.y],["L",s.x,s.y]),l}}}),B}),y(m,"Series/Pie/PieSeriesDefaults.js",[],function(){return{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.point.isNull?void 0:this.point.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:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),y(m,"Series/Pie/PieSeries.js",[m["Series/CenteredUtilities.js"],m["Series/Column/ColumnSeries.js"],m["Core/Globals.js"],m["Series/Pie/PiePoint.js"],m["Series/Pie/PieSeriesDefaults.js"],m["Core/Series/Series.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Renderer/SVG/Symbols.js"],m["Core/Utilities.js"]],function(R,j,et,K,J,q,Z,tt,H){let{getStartAndEndRadians:X}=R,{noop:B}=et,{clamp:U,extend:d,fireEvent:L,merge:M,pick:s}=H;class w extends q{animate(o){let u=this,C=u.points,E=u.startAngleRad;o||C.forEach(function(S){let v=S.graphic,g=S.shapeArgs;v&&g&&(v.attr({r:s(S.startR,u.center&&u.center[3]/2),start:E,end:E}),v.animate({r:g.r,start:g.start,end:g.end},u.options.animation))})}drawEmpty(){let o,u,C=this.startAngleRad,E=this.endAngleRad,S=this.options;this.total===0&&this.center?(o=this.center[0],u=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(o,u,this.center[1]/2,0,C,E).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:tt.arc(o,u,this.center[2]/2,0,{start:C,end:E,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":S.borderWidth,fill:S.fillColor||"none",stroke:S.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let o=this.chart.renderer;this.points.forEach(function(u){u.graphic&&u.hasNewShapeType()&&(u.graphic=u.graphic.destroy()),u.graphic||(u.graphic=o[u.shapeType](u.shapeArgs).add(u.series.group),u.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(o,u,C,E){let S=this.center,v=this.radii?this.radii[C.index]||0:S[2]/2,g=E.dataLabelPosition,x=(g==null?void 0:g.distance)||0,p=Math.asin(U((o-S[1])/(v+x),-1,1));return S[0]+Math.cos(p)*(v+x)*(u?-1:1)+(x>0?(u?-1:1)*(E.padding||0):0)}hasData(){return!!this.processedXData.length}redrawPoints(){let o,u,C,E,S=this,v=S.chart;this.drawEmpty(),S.group&&!v.styledMode&&S.group.shadow(S.options.shadow),S.points.forEach(function(g){let x={};u=g.graphic,!g.isNull&&u?(E=g.shapeArgs,o=g.getTranslate(),v.styledMode||(C=S.pointAttribs(g,g.selected&&"select")),g.delayedRendering?(u.setRadialReference(S.center).attr(E).attr(o),v.styledMode||u.attr(C).attr({"stroke-linejoin":"round"}),g.delayedRendering=!1):(u.setRadialReference(S.center),v.styledMode||M(!0,x,C),M(!0,x,E,o),u.animate(x)),u.attr({visibility:g.visible?"inherit":"hidden"}),u.addClass(g.getClassName(),!0)):u&&(g.graphic=u.destroy())})}sortByAngle(o,u){o.sort(function(C,E){return C.angle!==void 0&&(E.angle-C.angle)*u})}translate(o){L(this,"translate"),this.generatePoints();let u=this.options,C=u.slicedOffset,E=X(u.startAngle,u.endAngle),S=this.startAngleRad=E.start,v=(this.endAngleRad=E.end)-S,g=this.points,x=u.ignoreHiddenPoint,p=g.length,l,f,b,F,T,k,Q,st=0;for(o||(this.center=o=this.getCenter()),k=0;k1.5*Math.PI?b-=2*Math.PI:b<-Math.PI/2&&(b+=2*Math.PI),Q.slicedTranslation={translateX:Math.round(Math.cos(b)*C),translateY:Math.round(Math.sin(b)*C)},F=Math.cos(b)*o[2]/2,T=Math.sin(b)*o[2]/2,Q.tooltipPos=[o[0]+.7*F,o[1]+.7*T],Q.half=b<-Math.PI/2||b>Math.PI/2?1:0,Q.angle=b}L(this,"afterTranslate")}updateTotals(){let o=this.points,u=o.length,C=this.options.ignoreHiddenPoint,E,S,v=0;for(E=0;E0&&(S.visible||!C)?S.y/v*100:0,S.total=v}}return w.defaultOptions=M(q.defaultOptions,J),d(w.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:j.prototype.drawTracker,getCenter:R.getCenter,getSymbol:B,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:j.prototype.pointAttribs,pointClass:K,requireSorting:!1,searchPoint:B,trackerGroups:["group","dataLabelsGroup"]}),Z.registerSeriesType("pie",w),w}),y(m,"Series/Pie/PieDataLabel.js",[m["Core/Series/DataLabel.js"],m["Core/Globals.js"],m["Core/Renderer/RendererUtilities.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j,et,K,J){var q;let{composed:Z,noop:tt}=j,{distribute:H}=et,{series:X}=K,{arrayMax:B,clamp:U,defined:d,pick:L,pushUnique:M,relativeLength:s}=J;return function(w){let _={radialDistributionY:function(S,v){var g;return(((g=v.dataLabelPosition)==null?void 0:g.top)||0)+S.distributeBox.pos},radialDistributionX:function(S,v,g,x,p){let l=p.dataLabelPosition;return S.getX(g<((l==null?void 0:l.top)||0)+2||g>((l==null?void 0:l.bottom)||0)-2?x:g,v.half,v,p)},justify:function(S,v,g,x){var p;return x[0]+(S.half?-1:1)*(g+(((p=v.dataLabelPosition)==null?void 0:p.distance)||0))},alignToPlotEdges:function(S,v,g,x){let p=S.getBBox().width;return v?p+x:g-p-x},alignToConnectors:function(S,v,g,x){let p=0,l;return S.forEach(function(f){(l=f.dataLabel.getBBox().width)>p&&(p=l)}),v?p+x:g-p-x}};function o(S,v){let{center:g,options:x}=this,p=g[2]/2,l=S.angle||0,f=Math.cos(l),b=Math.sin(l),F=g[0]+f*p,T=g[1]+b*p,k=Math.min((x.slicedOffset||0)+(x.borderWidth||0),v/5);return{natural:{x:F+f*v,y:T+b*v},computed:{},alignment:v<0?"center":S.half?"right":"left",connectorPosition:{breakAt:{x:F+f*k,y:T+b*k},touchingSliceAt:{x:F,y:T}},distance:v}}function u(){var Mt;let S=this,v=S.points,g=S.chart,x=g.plotWidth,p=g.plotHeight,l=g.plotLeft,f=Math.round(g.chartWidth/3),b=S.center,F=b[2]/2,T=b[1],k=[[],[]],Q=[0,0,0,0],st=S.dataLabelPositioners,nt,dt,mt,Et=0;S.visible&&((Mt=S.hasDataLabels)!=null&&Mt.call(S))&&(v.forEach(I=>{(I.dataLabels||[]).forEach(Y=>{Y.shortened&&(Y.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),Y.shortened=!1)})}),X.prototype.drawDataLabels.apply(S),v.forEach(I=>{(I.dataLabels||[]).forEach((Y,rt)=>{var W;let ot=b[2]/2,D=Y.options,P=s((D==null?void 0:D.distance)||0,ot);rt===0&&k[I.half].push(I),!d((W=D==null?void 0:D.style)==null?void 0:W.width)&&Y.getBBox().width>f&&(Y.css({width:Math.round(.7*f)+"px"}),Y.shortened=!0),Y.dataLabelPosition=this.getDataLabelPosition(I,P),Et=Math.max(Et,P)})}),k.forEach((I,Y)=>{let rt=I.length,ot=[],D,P,W=0,lt;rt&&(S.sortByAngle(I,Y-.5),Et>0&&(D=Math.max(0,T-F-Et),P=Math.min(T+F+Et,g.plotHeight),I.forEach(it=>{(it.dataLabels||[]).forEach(vt=>{var xt;let pt=vt.dataLabelPosition;pt&&pt.distance>0&&(pt.top=Math.max(0,T-F-pt.distance),pt.bottom=Math.min(T+F+pt.distance,g.plotHeight),W=vt.getBBox().height||21,vt.lineHeight=g.renderer.fontMetrics(vt.text||vt).h+2*vt.padding,it.distributeBox={target:(((xt=vt.dataLabelPosition)==null?void 0:xt.natural.y)||0)-pt.top+vt.lineHeight/2,size:W,rank:it.y},ot.push(it.distributeBox))})}),H(ot,lt=P+W-D,lt/5)),I.forEach(it=>{(it.dataLabels||[]).forEach(vt=>{let pt=vt.options||{},xt=it.distributeBox,Ct=vt.dataLabelPosition,Tt=(Ct==null?void 0:Ct.natural.y)||0,Nt=pt.connectorPadding||0,gt=vt.lineHeight||21,wt=(gt-vt.getBBox().height)/2,Rt=0,jt=Tt,Zt="inherit";if(Ct){if(ot&&d(xt)&&Ct.distance>0&&(xt.pos===void 0?Zt="hidden":(mt=xt.size,jt=st.radialDistributionY(it,vt))),pt.justify)Rt=st.justify(it,vt,F,b);else switch(pt.alignTo){case"connectors":Rt=st.alignToConnectors(I,Y,x,l);break;case"plotEdges":Rt=st.alignToPlotEdges(vt,Y,x,l);break;default:Rt=st.radialDistributionX(S,it,jt-wt,Tt,vt)}if(Ct.attribs={visibility:Zt,align:Ct.alignment},Ct.posAttribs={x:Rt+(pt.x||0)+({left:Nt,right:-Nt}[Ct.alignment]||0),y:jt+(pt.y||0)-gt/2},Ct.computed.x=Rt,Ct.computed.y=jt-wt,L(pt.crop,!0)){let ne;Rt-(dt=vt.getBBox().width)x-Nt&&Y===0&&(ne=Math.round(Rt+dt-x+Nt),Q[1]=Math.max(ne,Q[1])),jt-mt/2<0?Q[0]=Math.max(Math.round(-jt+mt/2),Q[0]):jt+mt/2>p&&(Q[2]=Math.max(Math.round(jt+mt/2-p),Q[2])),Ct.sideOverflow=ne}}})}))}),(B(Q)===0||this.verifyDataLabelOverflow(Q))&&(this.placeDataLabels(),this.points.forEach(I=>{(I.dataLabels||[]).forEach(Y=>{var P;let{connectorColor:rt,connectorWidth:ot=1}=Y.options||{},D=Y.dataLabelPosition;if(ot){let W;nt=Y.connector,D&&D.distance>0?(W=!nt,nt||(Y.connector=nt=g.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+I.colorIndex+(I.className?" "+I.className:"")).add(S.dataLabelsGroup)),g.styledMode||nt.attr({"stroke-width":ot,stroke:rt||I.color||"#666666"}),nt[W?"attr":"animate"]({d:I.getConnectorPath(Y)}),nt.attr({visibility:(P=D.attribs)==null?void 0:P.visibility})):nt&&(Y.connector=nt.destroy())}})})))}function C(){this.points.forEach(S=>{(S.dataLabels||[]).forEach(v=>{var x;let g=v.dataLabelPosition;g?(g.sideOverflow&&(v.css({width:Math.max(v.getBBox().width-g.sideOverflow,0)+"px",textOverflow:(((x=v.options)==null?void 0:x.style)||{}).textOverflow||"ellipsis"}),v.shortened=!0),v.attr(g.attribs),v[v.moved?"animate":"attr"](g.posAttribs),v.moved=!0):v&&v.attr({y:-9999})}),delete S.distributeBox},this)}function E(S){let v=this.center,g=this.options,x=g.center,p=g.minSize||80,l=p,f=g.size!==null;return!f&&(x[0]!==null?l=Math.max(v[2]-Math.max(S[1],S[3]),p):(l=Math.max(v[2]-S[1]-S[3],p),v[0]+=(S[3]-S[1])/2),x[1]!==null?l=U(l,p,v[2]-Math.max(S[0],S[2])):(l=U(l,p,v[2]-S[0]-S[2]),v[1]+=(S[0]-S[2])/2),l(J.x+=q.x,J.y+=q.y,J),{x:0,y:0});return{x:K.x/et.length,y:K.y/et.length}},j.getDistanceBetweenPoints=function(et,K){return Math.sqrt(Math.pow(K.x-et.x,2)+Math.pow(K.y-et.y,2))},j.getAngleBetweenPoints=function(et,K){return Math.atan2(K.x-et.x,K.y-et.y)},j.pointInPolygon=function({x:et,y:K},J){let q=J.length,Z,tt,H=!1;for(Z=0,tt=q-1;ZK!=d>K&&et<(U-X)*(K-B)/(d-B)+X&&(H=!H)}return H},R}),y(m,"Extensions/OverlappingDataLabels.js",[m["Core/Geometry/GeometryUtilities.js"],m["Core/Utilities.js"]],function(R,j){let{pointInPolygon:et}=R,{addEvent:K,fireEvent:J,objectEach:q,pick:Z}=j;function tt(B){let U=B.length,d=(C,E)=>!(E.x>=C.x+C.width||E.x+E.width<=C.x||E.y>=C.y+C.height||E.y+E.height<=C.y),L=(C,E)=>{for(let S of C)if(et({x:S[0],y:S[1]},E))return!0;return!1},M,s,w,_,o,u=!1;for(let C=0;C(E.labelrank||0)-(C.labelrank||0));for(let C=0;C{q(M,s=>{s.label&&U.push(s.label)})});for(let L of B.series||[])if(L.visible&&((d=L.hasDataLabels)!=null&&d.call(L))){let M=s=>{for(let w of s)w.visible&&(w.dataLabels||[]).forEach(_=>{var u,C;let o=_.options||{};_.labelrank=Z(o.labelrank,w.labelrank,(u=w.shapeArgs)==null?void 0:u.height),((C=o.allowOverlap)!=null?C:Number(o.distance)>0)?(_.oldOpacity=_.opacity,_.newOpacity=1,H(_,B)):U.push(_)})};M(L.nodes||[]),M(L.points)}this.hideOverlappingLabels(U)}return{compose:function(B){let U=B.prototype;U.hideOverlappingLabels||(U.hideOverlappingLabels=tt,K(B,"render",X))}}}),y(m,"Extensions/BorderRadius.js",[m["Core/Defaults.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j,et){let{defaultOptions:K}=R,{noop:J}=j,{addEvent:q,extend:Z,isObject:tt,merge:H,relativeLength:X}=et,B={radius:0,scope:"stack",where:void 0},U=J,d=J;function L(o,u,C,E,S={}){let v=U(o,u,C,E,S),{innerR:g=0,r:x=C,start:p=0,end:l=0}=S;if(S.open||!S.borderRadius)return v;let f=l-p,b=Math.sin(f/2),F=Math.max(Math.min(X(S.borderRadius||0,x-g),(x-g)/2,x*b/(1+b)),0),T=Math.min(F,f/Math.PI*2*g),k=v.length-1;for(;k--;)(function(Q,st,nt){let dt,mt,Et,Mt=Q[st],I=Q[st+1];if(I[0]==="Z"&&(I=Q[0]),(Mt[0]==="M"||Mt[0]==="L")&&I[0]==="A"?(dt=Mt,mt=I,Et=!0):Mt[0]==="A"&&(I[0]==="M"||I[0]==="L")&&(dt=I,mt=Mt),dt&&mt&&mt.params){let Y=mt[1],rt=mt[5],ot=mt.params,{start:D,end:P,cx:W,cy:lt}=ot,it=rt?Y-nt:Y+nt,vt=it?Math.asin(nt/it):0,pt=rt?vt:-vt,xt=Math.cos(vt)*it;Et?(ot.start=D+pt,dt[1]=W+xt*Math.cos(D),dt[2]=lt+xt*Math.sin(D),Q.splice(st+1,0,["A",nt,nt,0,0,1,W+Y*Math.cos(ot.start),lt+Y*Math.sin(ot.start)])):(ot.end=P-pt,mt[6]=W+Y*Math.cos(ot.end),mt[7]=lt+Y*Math.sin(ot.end),Q.splice(st+1,0,["A",nt,nt,0,0,1,W+xt*Math.cos(P),lt+xt*Math.sin(P)])),mt[4]=Math.abs(ot.end-ot.start)1?T:F);return v}function M(){var o,u;if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:C,yAxis:E}=this,S=C.stacking==="percent",v=(u=(o=K.plotOptions)==null?void 0:o[this.type])==null?void 0:u.borderRadius,g=s(C.borderRadius,tt(v)?v:{}),x=E.options.reversed;for(let p of this.points){let{shapeArgs:l}=p;if(p.shapeType==="roundedRect"&&l){let{width:f=0,height:b=0,y:F=0}=l,T=F,k=b;if(g.scope==="stack"&&p.stackTotal){let dt=E.translate(S?100:p.stackTotal,!1,!0,!1,!0),mt=E.translate(C.threshold||0,!1,!0,!1,!0),Et=this.crispCol(0,Math.min(dt,mt),0,Math.abs(dt-mt));T=Et.y,k=Et.height}let Q=(p.negative?-1:1)*(x?-1:1)==-1,st=g.where;!st&&this.is("waterfall")&&Math.abs((p.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(st="all"),st||(st="end");let nt=Math.min(X(g.radius,f),f/2,st==="all"?b/2:1/0)||0;st==="end"&&(Q&&(T-=nt),k+=nt),Z(l,{brBoxHeight:k,brBoxY:T,r:nt})}}}}function s(o,u){return tt(o)||(o={radius:o||0}),H(B,u,o)}function w(){let o=s(this.options.borderRadius);for(let u of this.points){let C=u.shapeArgs;C&&(C.borderRadius=X(o.radius,(C.r||0)-(C.innerR||0)))}}function _(o,u,C,E,S={}){let v=d(o,u,C,E,S),{r:g=0,brBoxHeight:x=E,brBoxY:p=u}=S,l=u-p,f=p+x-(u+E),b=l-g>-.1?0:g,F=f-g>-.1?0:g,T=Math.max(b&&l,0),k=Math.max(F&&f,0),Q=[o+b,u],st=[o+C-b,u],nt=[o+C,u+b],dt=[o+C,u+E-F],mt=[o+C-F,u+E],Et=[o+F,u+E],Mt=[o,u+E-F],I=[o,u+b],Y=(rt,ot)=>Math.sqrt(Math.pow(rt,2)-Math.pow(ot,2));if(T){let rt=Y(b,b-T);Q[0]-=rt,st[0]+=rt,nt[1]=I[1]=u+b-T}if(E=Z(L.minWidth,0)&&this.chartHeight>=Z(L.minHeight,0)}).call(this)&&d.push(U._id)}function B(U,d){let L=this.options.responsive,M=this.currentResponsive,s=[],w;!d&&L&&L.rules&&L.rules.forEach(u=>{u._id===void 0&&(u._id=tt()),this.matchResponsiveRule(u,s)},this);let _=q(...s.map(u=>J((L||{}).rules||[],C=>C._id===u)).map(u=>u&&u.chartOptions));_.isResponsiveOptions=!0,s=s.toString()||void 0;let o=M&&M.ruleIds;s===o||(M&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(M.undoOptions,U,!0),this.updatingResponsive=!1),s?((w=et(_,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:_,undoOptions:w},this.updatingResponsive||this.update(_,U,!0)):this.currentResponsive=void 0)}H.compose=function(U){let d=U.prototype;return d.matchResponsiveRule||K(d,{matchResponsiveRule:X,setResponsive:B}),U}}(j||(j={})),j}),y(m,"masters/highcharts.src.js",[m["Core/Globals.js"],m["Core/Utilities.js"],m["Core/Defaults.js"],m["Core/Animation/Fx.js"],m["Core/Animation/AnimationUtilities.js"],m["Core/Renderer/HTML/AST.js"],m["Core/Templating.js"],m["Core/Renderer/RendererRegistry.js"],m["Core/Renderer/RendererUtilities.js"],m["Core/Renderer/SVG/SVGElement.js"],m["Core/Renderer/SVG/SVGRenderer.js"],m["Core/Renderer/HTML/HTMLElement.js"],m["Core/Axis/Axis.js"],m["Core/Axis/DateTimeAxis.js"],m["Core/Axis/LogarithmicAxis.js"],m["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],m["Core/Axis/Tick.js"],m["Core/Tooltip.js"],m["Core/Series/Point.js"],m["Core/Pointer.js"],m["Core/Legend/Legend.js"],m["Core/Legend/LegendSymbol.js"],m["Core/Chart/Chart.js"],m["Extensions/ScrollablePlotArea.js"],m["Core/Axis/Stacking/StackingAxis.js"],m["Core/Axis/Stacking/StackItem.js"],m["Core/Series/Series.js"],m["Core/Series/SeriesRegistry.js"],m["Series/Column/ColumnDataLabel.js"],m["Series/Pie/PieDataLabel.js"],m["Core/Series/DataLabel.js"],m["Extensions/OverlappingDataLabels.js"],m["Extensions/BorderRadius.js"],m["Core/Responsive.js"],m["Core/Color/Color.js"],m["Core/Time.js"]],function(R,j,et,K,J,q,Z,tt,H,X,B,U,d,L,M,s,w,_,o,u,C,E,S,v,g,x,p,l,f,b,F,T,k,Q,st,nt){return R.AST=q,R.Axis=d,R.Chart=S,R.Color=st,R.DataLabel=F,R.Fx=K,R.HTMLElement=U,R.Legend=C,R.LegendSymbol=E,R.OverlappingDataLabels=R.OverlappingDataLabels||T,R.PlotLineOrBand=s,R.Point=o,R.Pointer=u,R.RendererRegistry=tt,R.Series=p,R.SeriesRegistry=l,R.StackItem=x,R.SVGElement=X,R.SVGRenderer=B,R.Templating=Z,R.Tick=w,R.Time=nt,R.Tooltip=_,R.animate=J.animate,R.animObject=J.animObject,R.chart=S.chart,R.color=st.parse,R.dateFormat=Z.dateFormat,R.defaultOptions=et.defaultOptions,R.distribute=H.distribute,R.format=Z.format,R.getDeferredAnimation=J.getDeferredAnimation,R.getOptions=et.getOptions,R.numberFormat=Z.numberFormat,R.seriesType=l.seriesType,R.setAnimation=J.setAnimation,R.setOptions=et.setOptions,R.stop=J.stop,R.time=et.defaultTime,R.timers=K.timers,k.compose(R.Series,R.SVGElement,R.SVGRenderer),f.compose(R.Series.types.column),F.compose(R.Series),L.compose(R.Axis),U.compose(R.SVGRenderer),C.compose(R.Chart),M.compose(R.Axis),T.compose(R.Chart),b.compose(R.Series.types.pie),s.compose(R.Chart,R.Axis),u.compose(R.Chart),Q.compose(R.Chart),v.compose(R.Axis,R.Chart,R.Series),g.compose(R.Axis,R.Chart,R.Series),_.compose(R.Pointer),j.extend(R,j),R}),m["masters/highcharts.src.js"]._modules=m,m["masters/highcharts.src.js"]})},4563:function(We,ue,ht){var z;(function(_t,m){We.exports?(m.default=m,We.exports=_t&&_t.document?m(_t):m):(z=function(){return m(_t)}.call(ue,ht,ue,We),z!==void 0&&(We.exports=z))})(typeof window!="undefined"?window:this,function(_t){"use strict";var m={};function y(R,j,et,K){!R.hasOwnProperty(j)&&(R[j]=K.apply(null,et),_t&&typeof CustomEvent=="function"&&_t.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:j,module:R[j]}})))}return y(m,"Core/Globals.js",[],function(){var R,j;return(j=R||(R={})).SVG_NS="http://www.w3.org/2000/svg",j.product="Highcharts",j.version="11.4.8",j.win=_t!==void 0?_t:{},j.doc=j.win.document,j.svg=j.doc&&j.doc.createElementNS&&!!j.doc.createElementNS(j.SVG_NS,"svg").createSVGRect,j.userAgent=j.win.navigator&&j.win.navigator.userAgent||"",j.isChrome=j.win.chrome,j.isFirefox=j.userAgent.indexOf("Firefox")!==-1,j.isMS=/(edge|msie|trident)/i.test(j.userAgent)&&!j.win.opera,j.isSafari=!j.isChrome&&j.userAgent.indexOf("Safari")!==-1,j.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(j.userAgent),j.isWebKit=j.userAgent.indexOf("AppleWebKit")!==-1,j.deg2rad=2*Math.PI/360,j.hasBidiBug=j.isFirefox&&4>parseInt(j.userAgent.split("Firefox/")[1],10),j.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],j.noop=function(){},j.supportsPassiveEvents=function(){let et=!1;if(!j.isMS){let K=Object.defineProperty({},"passive",{get:function(){et=!0}});j.win.addEventListener&&j.win.removeEventListener&&(j.win.addEventListener("testPassive",j.noop,K),j.win.removeEventListener("testPassive",j.noop,K))}return et}(),j.charts=[],j.composed=[],j.dateFormats={},j.seriesTypes={},j.symbolSizes={},j.chartCount=0,R}),y(m,"Core/Utilities.js",[m["Core/Globals.js"]],function(R){let j,{charts:et,doc:K,win:J}=R;function q(p,l,f,b){let F=l?"Highcharts error":"Highcharts warning";p===32&&(p=`${F}: Deprecated member`);let T=d(p),k=T?`${F} #${p}: www.highcharts.com/errors/${p}/`:p.toString();if(b!==void 0){let Q="";T&&(k+="?"),S(b,function(st,nt){Q+=` - - ${nt}: ${st}`,T&&(k+=encodeURI(nt)+"="+encodeURI(st))}),k+=Q}g(R,"displayError",{chart:f,code:p,message:k,params:b},function(){if(l)throw Error(k);J.console&&q.messages.indexOf(k)===-1&&console.warn(k)}),q.messages.push(k)}function Z(p,l){return parseInt(p,l||10)}function tt(p){return typeof p=="string"}function H(p){let l=Object.prototype.toString.call(p);return l==="[object Array]"||l==="[object Array Iterator]"}function X(p,l){return!!p&&typeof p=="object"&&(!l||!H(p))}function B(p){return X(p)&&typeof p.nodeType=="number"}function U(p){let l=p&&p.constructor;return!!(X(p,!0)&&!B(p)&&l&&l.name&&l.name!=="Object")}function d(p){return typeof p=="number"&&!isNaN(p)&&p<1/0&&p>-1/0}function L(p){return p!=null}function M(p,l,f){let b,F=tt(l)&&!L(f),T=(k,Q)=>{L(k)?p.setAttribute(Q,k):F?(b=p.getAttribute(Q))||Q!=="class"||(b=p.getAttribute(Q+"Name")):p.removeAttribute(Q)};return tt(l)?T(f,l):S(l,T),b}function s(p){return H(p)?p:[p]}function w(p,l){let f;for(f in p||(p={}),l)p[f]=l[f];return p}function _(){let p=arguments,l=p.length;for(let f=0;f1e14?p:parseFloat(p.toPrecision(l||14))}(q||(q={})).messages=[],Math.easeInOutSine=function(p){return-.5*(Math.cos(Math.PI*p)-1)};let E=Array.prototype.find?function(p,l){return p.find(l)}:function(p,l){let f,b=p.length;for(f=0;fQ.order-st.order),F.forEach(Q=>{Q.fn.call(p,f)===!1&&f.preventDefault()})}b&&!f.defaultPrevented&&b.call(p,f)}S({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(p,l){R[l]=function(f){return q(32,!1,void 0,{[`Highcharts.${l}`]:`use Array.${p}`}),Array.prototype[p].apply(f,[].slice.call(arguments,1))}});let x=function(){let p=Math.random().toString(36).substring(2,9)+"-",l=0;return function(){return"highcharts-"+(j?"":p)+l++}}();return J.jQuery&&(J.jQuery.fn.highcharts=function(){let p=[].slice.call(arguments);if(this[0])return p[0]?(new R[tt(p[0])?p.shift():"Chart"](this[0],p[0],p[1]),this):et[M(this[0],"data-highcharts-chart")]}),{addEvent:function(p,l,f,b={}){let F=typeof p=="function"&&p.prototype||p;Object.hasOwnProperty.call(F,"hcEvents")||(F.hcEvents={});let T=F.hcEvents;R.Point&&p instanceof R.Point&&p.series&&p.series.chart&&(p.series.chart.runTrackerClick=!0);let k=p.addEventListener;k&&k.call(p,l,f,!!R.supportsPassiveEvents&&{passive:b.passive===void 0?l.indexOf("touch")!==-1:b.passive,capture:!1}),T[l]||(T[l]=[]);let Q={fn:f,order:typeof b.order=="number"?b.order:1/0};return T[l].push(Q),T[l].sort((st,nt)=>st.order-nt.order),function(){v(p,l,f)}},arrayMax:function(p){let l=p.length,f=p[0];for(;l--;)p[l]>f&&(f=p[l]);return f},arrayMin:function(p){let l=p.length,f=p[0];for(;l--;)p[l]l?p{let b=l%2/2,F=f?-1:1;return(Math.round(p*F-b)+b)*F},css:o,defined:L,destroyObjectProperties:function(p,l,f){S(p,function(b,F){b!==l&&(b!=null&&b.destroy)&&b.destroy(),(b!=null&&b.destroy||!f)&&delete p[F]})},diffObjects:function(p,l,f,b){let F={};return function T(k,Q,st,nt){let dt=f?Q:k;S(k,function(mt,Et){if(!nt&&b&&b.indexOf(Et)>-1&&Q[Et]){mt=s(mt),st[Et]=[];for(let Mt=0;Mt{if(Q.length>1)for(T=b=Q.length-1;T>0;T--)(F=Q[T]-Q[T-1])<0&&!k?(l==null||l(),l=void 0):F&&(f===void 0||F=k-1&&(k=Math.floor(Q)),Math.max(0,k-(p(l,"padding-left",!0)||0)-(p(l,"padding-right",!0)||0))}if(f==="height")return Math.max(0,Math.min(l.offsetHeight,l.scrollHeight)-(p(l,"padding-top",!0)||0)-(p(l,"padding-bottom",!0)||0));let T=J.getComputedStyle(l,void 0);return T&&(F=T.getPropertyValue(f),_(b,f!=="opacity")&&(F=Z(F))),F},inArray:function(p,l,f){return q(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),l.indexOf(p,f)},insertItem:function(p,l){let f,b=p.options.index,F=l.length;for(f=p.options.isInternal?F:0;f=p))&&(F||!(Q<=(l[T]+(l[T+1]||l[T]))/2)));T++);return C(k*f,-Math.round(Math.log(.001)/Math.LN10))},objectEach:S,offset:function(p){let l=K.documentElement,f=p.parentElement||p.parentNode?p.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:f.top+(J.pageYOffset||l.scrollTop)-(l.clientTop||0),left:f.left+(J.pageXOffset||l.scrollLeft)-(l.clientLeft||0),width:f.width,height:f.height}},pad:function(p,l,f){return Array((l||2)+1-String(p).replace("-","").length).join(f||"0")+p},pick:_,pInt:Z,pushUnique:function(p,l){return 0>p.indexOf(l)&&!!p.push(l)},relativeLength:function(p,l,f){return/%$/.test(p)?l*parseFloat(p)/100+(f||0):parseFloat(p)},removeEvent:v,replaceNested:function(p,...l){let f,b;do for(b of(f=p,l))p=p.replace(b[0],b[1]);while(p!==f);return p},splat:s,stableSort:function(p,l){let f,b,F=p.length;for(b=0;b0?setTimeout(p,l,f):(p.call(0,f),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:x,useSerialIds:function(p){return j=_(p,j)},wrap:function(p,l,f){let b=p[l];p[l]=function(){let F=arguments,T=this;return f.apply(this,[function(){return b.apply(T,arguments.length?arguments:F)}].concat([].slice.call(arguments)))}}}}),y(m,"Core/Chart/ChartDefaults.js",[],function(){return{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,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),y(m,"Core/Color/Palettes.js",[],function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}}),y(m,"Core/Time.js",[m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j){let{win:et}=R,{defined:K,error:J,extend:q,isNumber:Z,isObject:tt,merge:H,objectEach:X,pad:B,pick:U,splat:d,timeUnits:L}=j,M=R.isSafari&&et.Intl&&et.Intl.DateTimeFormat.prototype.formatRange,s=R.isSafari&&et.Intl&&!et.Intl.DateTimeFormat.prototype.formatRange;class w{constructor(o){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=et.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(o)}get(o,u){if(this.variableTimezone||this.timezoneOffset){let C=u.getTime(),E=C-this.getTimezoneOffset(u);u.setTime(E);let S=u["getUTC"+o]();return u.setTime(C),S}return this.useUTC?u["getUTC"+o]():u["get"+o]()}set(o,u,C){if(this.variableTimezone||this.timezoneOffset){if(o==="Milliseconds"||o==="Seconds"||o==="Minutes"&&this.getTimezoneOffset(u)%36e5==0)return u["setUTC"+o](C);let E=this.getTimezoneOffset(u),S=u.getTime()-E;u.setTime(S),u["setUTC"+o](C);let v=this.getTimezoneOffset(u);return S=u.getTime()+v,u.setTime(S)}return this.useUTC||M&&o==="FullYear"?u["setUTC"+o](C):u["set"+o](C)}update(o={}){let u=U(o.useUTC,!0);this.options=o=H(!0,this.options,o),this.Date=o.Date||et.Date||Date,this.useUTC=u,this.timezoneOffset=u&&o.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=u&&!!(o.getTimezoneOffset||o.timezone)}makeTime(o,u,C,E,S,v){let g,x,p;return this.useUTC?(g=this.Date.UTC.apply(0,arguments),x=this.getTimezoneOffset(g),g+=x,x!==(p=this.getTimezoneOffset(g))?g+=p-x:x-36e5!==this.getTimezoneOffset(g-36e5)||s||(g-=36e5)):g=new this.Date(o,u,U(C,1),U(E,0),U(S,0),U(v,0)).getTime(),g}timezoneOffsetFunction(){let o=this,u=this.options,C=u.getTimezoneOffset;return this.useUTC?u.timezone?E=>{try{let S=`shortOffset,${u.timezone||""}`,[v,g,x,p,l=0]=(w.formatCache[S]=w.formatCache[S]||Intl.DateTimeFormat("en",{timeZone:u.timezone,timeZoneName:"shortOffset"})).format(E).split(/(GMT|:)/).map(Number),f=-(36e5*(x+l/60));if(Z(f))return f}catch(S){J(34)}return 0}:this.useUTC&&C?E=>6e4*C(E.valueOf()):()=>6e4*(o.timezoneOffset||0):E=>6e4*new Date(E.toString()).getTimezoneOffset()}dateFormat(o,u,C){if(!K(u)||isNaN(u))return R.defaultOptions.lang&&R.defaultOptions.lang.invalidDate||"";o=U(o,"%Y-%m-%d %H:%M:%S");let E=this,S=new this.Date(u),v=this.get("Hours",S),g=this.get("Day",S),x=this.get("Date",S),p=this.get("Month",S),l=this.get("FullYear",S),f=R.defaultOptions.lang,b=f&&f.weekdays,F=f&&f.shortWeekdays;return X(q({a:F?F[g]:b[g].substr(0,3),A:b[g],d:B(x),e:B(x,2," "),w:g,b:f.shortMonths[p],B:f.months[p],m:B(p+1),o:p+1,y:l.toString().substr(2,2),Y:l,H:B(v),k:v,I:B(v%12||12),l:v%12||12,M:B(this.get("Minutes",S)),p:v<12?"AM":"PM",P:v<12?"am":"pm",S:B(this.get("Seconds",S)),L:B(Math.floor(u%1e3),3)},R.dateFormats),function(T,k){for(;o.indexOf("%"+k)!==-1;)o=o.replace("%"+k,typeof T=="function"?T.call(E,u):T)}),C?o.substr(0,1).toUpperCase()+o.substr(1):o}resolveDTLFormat(o){return tt(o,!0)?o:{main:(o=d(o))[0],from:o[1],to:o[2]}}getTimeTicks(o,u,C,E){let S,v,g,x,p=this,l=p.Date,f=[],b={},F=new l(u),T=o.unitRange,k=o.count||1;if(E=U(E,1),K(u)){p.set("Milliseconds",F,T>=L.second?0:k*Math.floor(p.get("Milliseconds",F)/k)),T>=L.second&&p.set("Seconds",F,T>=L.minute?0:k*Math.floor(p.get("Seconds",F)/k)),T>=L.minute&&p.set("Minutes",F,T>=L.hour?0:k*Math.floor(p.get("Minutes",F)/k)),T>=L.hour&&p.set("Hours",F,T>=L.day?0:k*Math.floor(p.get("Hours",F)/k)),T>=L.day&&p.set("Date",F,T>=L.month?1:Math.max(1,k*Math.floor(p.get("Date",F)/k))),T>=L.month&&(p.set("Month",F,T>=L.year?0:k*Math.floor(p.get("Month",F)/k)),v=p.get("FullYear",F)),T>=L.year&&(v-=v%k,p.set("FullYear",F,v)),T===L.week&&(x=p.get("Day",F),p.set("Date",F,p.get("Date",F)-x+E+(x4*L.month||p.getTimezoneOffset(u)!==p.getTimezoneOffset(C));let dt=F.getTime();for(S=1;dt1?dt=p.makeTime(v,Q,st,nt+S*k):dt+=T*k,S++;f.push(dt),T<=L.hour&&f.length<1e4&&f.forEach(function(mt){mt%18e5==0&&p.dateFormat("%H%M%S%L",mt)==="000000000"&&(b[mt]="day")})}return f.info=q(o,{higherRanks:b,totalRange:T*k}),f}getDateFormat(o,u,C,E){let S=this.dateFormat("%m-%d %H:%M:%S.%L",u),v="01-01 00:00:00.000",g={millisecond:15,second:12,minute:9,hour:6,day:3},x="millisecond",p=x;for(x in L){if(o===L.week&&+this.dateFormat("%w",u)===C&&S.substr(6)===v.substr(6)){x="week";break}if(L[x]>o){x=p;break}if(g[x]&&S.substr(g[x])!==v.substr(g[x]))break;x!=="week"&&(p=x)}return this.resolveDTLFormat(E[x]).main}}return w.formatCache={},w}),y(m,"Core/Defaults.js",[m["Core/Chart/ChartDefaults.js"],m["Core/Globals.js"],m["Core/Color/Palettes.js"],m["Core/Time.js"],m["Core/Utilities.js"]],function(R,j,et,K,J){let{isTouchDevice:q}=j,{fireEvent:Z,merge:tt}=J,H={colors:et.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:R,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",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:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:B=>Math.sqrt(1-Math.pow(B-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:q?25:10,headerFormat:'{point.key}
',pointFormat:'\u25CF {series.name}: {point.y}
',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};H.chart.styledMode=!1;let X=new K(H.time);return{defaultOptions:H,defaultTime:X,getOptions:function(){return H},setOptions:function(B){return Z(j,"setOptions",{options:B}),tt(!0,H,B),(B.time||B.global)&&(j.time?j.time.update(tt(H.global,H.time,B.global,B.time)):j.time=X),H}}}),y(m,"Core/Color/Color.js",[m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j){let{isNumber:et,merge:K,pInt:J}=j;class q{static parse(tt){return tt?new q(tt):q.None}constructor(tt){let H,X,B,U;this.rgba=[NaN,NaN,NaN,NaN],this.input=tt;let d=R.Color;if(d&&d!==q)return new d(tt);if(typeof tt=="object"&&tt.stops!==void 0)this.stops=tt.stops.map(L=>new q(L[1]));else if(typeof tt=="string"){if(this.input=tt=q.names[tt.toLowerCase()]||tt,tt.charAt(0)==="#"){let L=tt.length,M=parseInt(tt.substr(1),16);L===7?X=[(16711680&M)>>16,(65280&M)>>8,255&M,1]:L===4&&(X=[(3840&M)>>4|(3840&M)>>8,(240&M)>>4|240&M,(15&M)<<4|15&M,1])}if(!X)for(B=q.parsers.length;B--&&!X;)(H=(U=q.parsers[B]).regex.exec(tt))&&(X=U.parse(H))}X&&(this.rgba=X)}get(tt){let H=this.input,X=this.rgba;if(typeof H=="object"&&this.stops!==void 0){let B=K(H);return B.stops=[].slice.call(B.stops),this.stops.forEach((U,d)=>{B.stops[d]=[B.stops[d][0],U.get(tt)]}),B}return X&&et(X[0])?tt!=="rgb"&&(tt||X[3]!==1)?tt==="a"?`${X[3]}`:"rgba("+X.join(",")+")":"rgb("+X[0]+","+X[1]+","+X[2]+")":H}brighten(tt){let H=this.rgba;if(this.stops)this.stops.forEach(function(X){X.brighten(tt)});else if(et(tt)&&tt!==0)for(let X=0;X<3;X++)H[X]+=J(255*tt),H[X]<0&&(H[X]=0),H[X]>255&&(H[X]=255);return this}setOpacity(tt){return this.rgba[3]=tt,this}tweenTo(tt,H){let X=this.rgba,B=tt.rgba;if(!et(X[0])||!et(B[0]))return tt.input||"none";let U=B[3]!==1||X[3]!==1;return(U?"rgba(":"rgb(")+Math.round(B[0]+(X[0]-B[0])*(1-H))+","+Math.round(B[1]+(X[1]-B[1])*(1-H))+","+Math.round(B[2]+(X[2]-B[2])*(1-H))+(U?","+(B[3]+(X[3]-B[3])*(1-H)):"")+")"}}return q.names={white:"#ffffff",black:"#000000"},q.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(Z){return[J(Z[1]),J(Z[2]),J(Z[3]),parseFloat(Z[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(Z){return[J(Z[1]),J(Z[2]),J(Z[3]),1]}}],q.None=new q(""),q}),y(m,"Core/Animation/Fx.js",[m["Core/Color/Color.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j,et){let{parse:K}=R,{win:J}=j,{isNumber:q,objectEach:Z}=et;class tt{constructor(X,B,U){this.pos=NaN,this.options=B,this.elem=X,this.prop=U}dSetter(){let X=this.paths,B=X&&X[0],U=X&&X[1],d=this.now||0,L=[];if(d!==1&&B&&U)if(B.length===U.length&&d<1)for(let M=0;M=w+this.startTime?(this.now=this.end,this.pos=1,this.update(),_[this.prop]=!0,U=!0,Z(_,function(o){o!==!0&&(U=!1)}),U&&s&&s.call(M),B=!1):(this.pos=L.easing((d-this.startTime)/w),this.now=this.start+(this.end-this.start)*this.pos,this.update(),B=!0),B}initPath(X,B,U){let d=X.startX,L=X.endX,M=U.slice(),s=X.isArea,w=s?2:1,_=B&&U.length>B.length&&U.hasStackedCliffs,o,u,C,E,S=B&&B.slice();if(!S||_)return[M,M];function v(x,p){for(;x.length{let C=B(u.options.animation);_=Z(L)&&et(L.defer)?s.defer:Math.max(_,C.duration+C.defer),o=Math.min(s.duration,C.duration)}),d.renderer.forExport&&(_=0),{defer:Math.max(0,_-o),duration:Math.min(_,o)}},setAnimation:function(d,L){L.renderer.globalAnimation=X(d,L.options.chart.animation,!0)},stop:U}}),y(m,"Core/Renderer/HTML/AST.js",[m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j){let{SVG_NS:et,win:K}=R,{attr:J,createElement:q,css:Z,error:tt,isFunction:H,isString:X,objectEach:B,splat:U}=j,{trustedTypes:d}=K,L=d&&H(d.createPolicy)&&d.createPolicy("highcharts",{createHTML:_=>_}),M=L?L.createHTML(""):"",s=function(){try{return!!new DOMParser().parseFromString(M,"text/html")}catch(_){return!1}}();class w{static filterUserAttributes(o){return B(o,(u,C)=>{let E=!0;w.allowedAttributes.indexOf(C)===-1&&(E=!1),["background","dynsrc","href","lowsrc","src"].indexOf(C)!==-1&&(E=X(u)&&w.allowedReferences.some(S=>u.indexOf(S)===0)),E||(tt(33,!1,void 0,{"Invalid attribute in config":`${C}`}),delete o[C]),X(u)&&o[C]&&(o[C]=u.replace(/{let E=C.split(":").map(v=>v.trim()),S=E.shift();return S&&E.length&&(u[S.replace(/-([a-z])/g,v=>v[1].toUpperCase())]=E.join(":")),u},{})}static setElementHTML(o,u){o.innerHTML=w.emptyHTML,u&&new w(u).addToDOM(o)}constructor(o){this.nodes=typeof o=="string"?this.parseMarkup(o):o}addToDOM(o){return function u(C,E){let S;return U(C).forEach(function(v){let g,x=v.tagName,p=v.textContent?R.doc.createTextNode(v.textContent):void 0,l=w.bypassHTMLFiltering;if(x)if(x==="#text")g=p;else if(w.allowedTags.indexOf(x)!==-1||l){let f=x==="svg"?et:E.namespaceURI||et,b=R.doc.createElementNS(f,x),F=v.attributes||{};B(v,function(T,k){k!=="tagName"&&k!=="attributes"&&k!=="children"&&k!=="style"&&k!=="textContent"&&(F[k]=T)}),J(b,l?F:w.filterUserAttributes(F)),v.style&&Z(b,v.style),p&&b.appendChild(p),u(v.children||[],b),g=b}else tt(33,!1,void 0,{"Invalid tagName in config":x});g&&E.appendChild(g),S=g}),S}(this.nodes,o)}parseMarkup(o){let u,C=[];if(o=o.trim().replace(/ style=(["'])/g," data-style=$1"),s)u=new DOMParser().parseFromString(L?L.createHTML(o):o,"text/html");else{let S=q("div");S.innerHTML=o,u={body:S}}let E=(S,v)=>{let g=S.nodeName.toLowerCase(),x={tagName:g};g==="#text"&&(x.textContent=S.textContent||"");let p=S.attributes;if(p){let l={};[].forEach.call(p,f=>{f.name==="data-style"?x.style=w.parseStyle(f.value):l[f.name]=f.value}),x.attributes=l}if(S.childNodes.length){let l=[];[].forEach.call(S.childNodes,f=>{E(f,l)}),l.length&&(x.children=l)}v.push(x)};return[].forEach.call(u.body.childNodes,S=>E(S,C)),C}}return w.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","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","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","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],w.allowedReferences=["https://","http://","mailto:","/","../","./","#"],w.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","feOffset","feMerge","feMergeNode","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","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],w.emptyHTML=M,w.bypassHTMLFiltering=!1,w}),y(m,"Core/Templating.js",[m["Core/Defaults.js"],m["Core/Utilities.js"]],function(R,j){let{defaultOptions:et,defaultTime:K}=R,{extend:J,getNestedProperty:q,isArray:Z,isNumber:tt,isObject:H,pick:X,pInt:B}=j,U={add:(M,s)=>M+s,divide:(M,s)=>s!==0?M/s:"",eq:(M,s)=>M==s,each:function(M){let s=arguments[arguments.length-1];return!!Z(M)&&M.map((w,_)=>d(s.body,J(H(w)?w:{"@this":w},{"@index":_,"@first":_===0,"@last":_===M.length-1}))).join("")},ge:(M,s)=>M>=s,gt:(M,s)=>M>s,if:M=>!!M,le:(M,s)=>M<=s,lt:(M,s)=>MM*s,ne:(M,s)=>M!=s,subtract:(M,s)=>M-s,unless:M=>!M};function d(M="",s,w){let _=/\{([\w\:\.\,;\-\/<>%@"'’= #\(\)]+)\}/g,o=/\(([\w\:\.\,;\-\/<>%@"'= ]+)\)/g,u=[],C=/f$/,E=/\.(\d)/,S=et.lang,v=w&&w.time||K,g=w&&w.numberFormatter||L,x=(F="")=>{let T;return F==="true"||F!=="false"&&((T=Number(F)).toString()===F?T:q(F,s))},p,l,f=0,b;for(;(p=_.exec(M))!==null;){let F=o.exec(p[1]);F&&(p=F,b=!0),l&&l.isBlock||(l={ctx:s,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 T=p[1].split(" ")[0].replace("#","");U[T]&&(l.isBlock&&T===l.fn&&f++,l.fn||(l.fn=T));let k=p[1]==="else";if(l.isBlock&&l.fn&&(p[1]===`/${l.fn}`||k))if(f)!k&&f--;else{let Q=l.startInner,st=M.substr(Q,p.index-Q);l.body===void 0?(l.body=st,l.startInner=p.index+p[0].length):l.elseBody=st,l.find+=st+p[0],k||(u.push(l),l=void 0)}else l.isBlock||u.push(l);if(F&&!(l!=null&&l.isBlock))break}return u.forEach(F=>{let T,k,{body:Q,elseBody:st,expression:nt,fn:dt}=F;if(dt){let mt=[F],Et=nt.split(" ");for(k=U[dt].length;k--;)mt.unshift(x(Et[k+1]));T=U[dt].apply(s,mt),F.isBlock&&typeof T=="boolean"&&(T=d(T?Q:st,s,w))}else{let mt=nt.split(":");if(T=x(mt.shift()||""),mt.length&&typeof T=="number"){let Et=mt.join(":");if(C.test(Et)){let Mt=parseInt((Et.match(E)||["","-1"])[1],10);T!==null&&(T=g(T,Mt,S.decimalPoint,Et.indexOf(",")>-1?S.thousandsSep:""))}else T=v.dateFormat(Et,T)}}M=M.replace(F.find,X(T,""))}),b?d(M,s,w):M}function L(M,s,w,_){let o,u;M=+M||0,s=+s;let C=et.lang,E=(M.toString().split(".")[1]||"").split("e")[0].length,S=M.toString().split("e"),v=s;s===-1?s=Math.min(E,20):tt(s)?s&&S[1]&&S[1]<0&&((u=s+ +S[1])>=0?(S[0]=(+S[0]).toExponential(u).split("e")[0],s=u):(S[0]=S[0].split(".")[0]||0,M=s<20?(S[0]*Math.pow(10,S[1])).toFixed(s):0,S[1]=0)):s=2;let g=(Math.abs(S[1]?S[0]:M)+Math.pow(10,-Math.max(s,E)-1)).toFixed(s),x=String(B(g)),p=x.length>3?x.length%3:0;return w=X(w,C.decimalPoint),_=X(_,C.thousandsSep),o=(M<0?"-":"")+(p?x.substr(0,p)+_:""),0>+S[1]&&!v?o="0":o+=x.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+_),s?o+=w+g.slice(-s):+o==0&&(o="0"),S[1]&&+o!=0&&(o+="e"+S[1]),o}return{dateFormat:function(M,s,w){return K.dateFormat(M,s,w)},format:d,helpers:U,numberFormat:L}}),y(m,"Core/Renderer/RendererRegistry.js",[m["Core/Globals.js"]],function(R){var j,et;let K;return(et=j||(j={})).rendererTypes={},et.getRendererType=function(J=K){return et.rendererTypes[J]||et.rendererTypes[K]},et.registerRendererType=function(J,q,Z){et.rendererTypes[J]=q,(!K||Z)&&(K=J,R.Renderer=q)},j}),y(m,"Core/Renderer/RendererUtilities.js",[m["Core/Utilities.js"]],function(R){var j;let{clamp:et,pick:K,pushUnique:J,stableSort:q}=R;return(j||(j={})).distribute=function Z(tt,H,X){let B=tt,U=B.reducedLen||H,d=(x,p)=>x.target-p.target,L=[],M=tt.length,s=[],w=L.push,_,o,u,C=!0,E,S,v=0,g;for(_=M;_--;)v+=tt[_].size;if(v>U){for(q(tt,(x,p)=>(p.rank||0)-(x.rank||0)),u=(g=tt[0].rank===tt[tt.length-1].rank)?M/2:-1,o=g?u:M-1;u&&v>U;)E=tt[_=Math.floor(o)],J(s,_)&&(v-=E.size),o+=u,g&&o>=tt.length&&(u/=2,o=u);s.sort((x,p)=>p-x).forEach(x=>w.apply(L,tt.splice(x,1)))}for(q(tt,d),tt=tt.map(x=>({size:x.size,targets:[x.target],align:K(x.align,.5)}));C;){for(_=tt.length;_--;)E=tt[_],S=(Math.min.apply(0,E.targets)+Math.max.apply(0,E.targets))/2,E.pos=et(S-E.size*E.align,0,H-E.size);for(_=tt.length,C=!1;_--;)_>0&&tt[_-1].pos+tt[_-1].size>tt[_].pos&&(tt[_-1].size+=tt[_].size,tt[_-1].targets=tt[_-1].targets.concat(tt[_].targets),tt[_-1].align=.5,tt[_-1].pos+tt[_-1].size>H&&(tt[_-1].pos=H-tt[_-1].size),tt.splice(_,1),C=!0)}return w.apply(B,L),_=0,tt.some(x=>{let p=0;return(x.targets||[]).some(()=>(B[_].pos=x.pos+p,X!==void 0&&Math.abs(B[_].pos-B[_].target)>X?(B.slice(0,_+1).forEach(l=>delete l.pos),B.reducedLen=(B.reducedLen||H)-.1*H,B.reducedLen>.1*H&&Z(B,H,X),!0):(p+=B[_].size,_++,!1)))}),q(B,d),B},j}),y(m,"Core/Renderer/SVG/SVGElement.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Color/Color.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j,et,K){let{animate:J,animObject:q,stop:Z}=R,{deg2rad:tt,doc:H,svg:X,SVG_NS:B,win:U}=et,{addEvent:d,attr:L,createElement:M,crisp:s,css:w,defined:_,erase:o,extend:u,fireEvent:C,isArray:E,isFunction:S,isObject:v,isString:g,merge:x,objectEach:p,pick:l,pInt:f,pushUnique:b,replaceNested:F,syncTimeout:T,uniqueKey:k}=K;class Q{_defaultGetter(nt){let dt=l(this[nt+"Value"],this[nt],this.element?this.element.getAttribute(nt):null,0);return/^-?[\d\.]+$/.test(dt)&&(dt=parseFloat(dt)),dt}_defaultSetter(nt,dt,mt){mt.setAttribute(dt,nt)}add(nt){let dt,mt=this.renderer,Et=this.element;return nt&&(this.parentGroup=nt),this.textStr!==void 0&&this.element.nodeName==="text"&&mt.buildText(this),this.added=!0,(!nt||nt.handleZ||this.zIndex)&&(dt=this.zIndexSetter()),dt||(nt?nt.element:mt.box).appendChild(Et),this.onAdd&&this.onAdd(),this}addClass(nt,dt){let mt=dt?"":this.attr("class")||"";return(nt=(nt||"").split(/ /g).reduce(function(Et,Mt){return mt.indexOf(Mt)===-1&&Et.push(Mt),Et},mt?[mt]:[]).join(" "))!==mt&&this.attr("class",nt),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(nt,dt,mt,Et=!0){let Mt,I,Y,rt,ot={},D=this.renderer,P=D.alignedObjects,W=!!nt;nt?(this.alignOptions=nt,this.alignByTranslate=dt,this.alignTo=mt):(nt=this.alignOptions||{},dt=this.alignByTranslate,mt=this.alignTo);let lt=!mt||g(mt)?mt||"renderer":void 0;lt&&(W&&b(P,this),mt=void 0);let it=l(mt,D[lt],D),vt=nt.align,pt=nt.verticalAlign;return Mt=(it.x||0)+(nt.x||0),I=(it.y||0)+(nt.y||0),vt==="right"?Y=1:vt==="center"&&(Y=2),Y&&(Mt+=((it.width||0)-(nt.width||0))/Y),ot[dt?"translateX":"x"]=Math.round(Mt),pt==="bottom"?rt=1:pt==="middle"&&(rt=2),rt&&(I+=((it.height||0)-(nt.height||0))/rt),ot[dt?"translateY":"y"]=Math.round(I),Et&&(this[this.placed?"animate":"attr"](ot),this.placed=!0),this.alignAttr=ot,this}alignSetter(nt){let dt={left:"start",center:"middle",right:"end"};dt[nt]&&(this.alignValue=nt,this.element.setAttribute("text-anchor",dt[nt]))}animate(nt,dt,mt){let Et=q(l(dt,this.renderer.globalAnimation,!0)),Mt=Et.defer;return H.hidden&&(Et.duration=0),Et.duration!==0?(mt&&(Et.complete=mt),T(()=>{this.element&&J(this,nt,Et)},Mt)):(this.attr(nt,void 0,mt||Et.complete),p(nt,function(I,Y){Et.step&&Et.step.call(this,I,{prop:Y,pos:1,elem:this})},this)),this}applyTextOutline(nt){let dt=this.element;nt.indexOf("contrast")!==-1&&(nt=nt.replace(/contrast/g,this.renderer.getContrast(dt.style.fill)));let mt=nt.split(" "),Et=mt[mt.length-1],Mt=mt[0];if(Mt&&Mt!=="none"&&et.svg){this.fakeTS=!0,Mt=Mt.replace(/(^[\d\.]+)(.*?)$/g,function(D,P,W){return 2*Number(P)+W}),this.removeTextOutline();let I=H.createElementNS(B,"tspan");L(I,{class:"highcharts-text-outline",fill:Et,stroke:Et,"stroke-width":Mt,"stroke-linejoin":"round"});let Y=dt.querySelector("textPath")||dt;[].forEach.call(Y.childNodes,D=>{let P=D.cloneNode(!0);P.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(W=>P.removeAttribute(W)),I.appendChild(P)});let rt=0;[].forEach.call(Y.querySelectorAll("text tspan"),D=>{rt+=Number(D.getAttribute("dy"))});let ot=H.createElementNS(B,"tspan");ot.textContent="\u200B",L(ot,{x:Number(dt.getAttribute("x")),dy:-rt}),I.appendChild(ot),Y.insertBefore(I,Y.firstChild)}}attr(nt,dt,mt,Et){let{element:Mt}=this,I=Q.symbolCustomAttribs,Y,rt,ot=this,D;return typeof nt=="string"&&dt!==void 0&&(Y=nt,(nt={})[Y]=dt),typeof nt=="string"?ot=(this[nt+"Getter"]||this._defaultGetter).call(this,nt,Mt):(p(nt,function(P,W){D=!1,Et||Z(this,W),this.symbolName&&I.indexOf(W)!==-1&&(rt||(this.symbolAttr(nt),rt=!0),D=!0),this.rotation&&(W==="x"||W==="y")&&(this.doTransform=!0),D||(this[W+"Setter"]||this._defaultSetter).call(this,P,W,Mt)},this),this.afterSetters()),mt&&mt.call(this),ot}clip(nt){if(nt&&!nt.clipPath){let dt=k()+"-",mt=this.renderer.createElement("clipPath").attr({id:dt}).add(this.renderer.defs);u(nt,{clipPath:mt,id:dt,count:0}),nt.add(mt)}return this.attr("clip-path",nt?`url(${this.renderer.url}#${nt.id})`:"none")}crisp(nt,dt){dt=Math.round(dt||nt.strokeWidth||0);let mt=nt.x||this.x||0,Et=nt.y||this.y||0,Mt=(nt.width||this.width||0)+mt,I=(nt.height||this.height||0)+Et,Y=s(mt,dt),rt=s(Et,dt);return u(nt,{x:Y,y:rt,width:s(Mt,dt)-Y,height:s(I,dt)-rt}),_(nt.strokeWidth)&&(nt.strokeWidth=dt),nt}complexColor(nt,dt,mt){let Et=this.renderer,Mt,I,Y,rt,ot,D,P,W,lt,it,vt=[],pt;C(this.renderer,"complexColor",{args:arguments},function(){if(nt.radialGradient?I="radialGradient":nt.linearGradient&&(I="linearGradient"),I){if(Y=nt[I],ot=Et.gradients,D=nt.stops,lt=mt.radialReference,E(Y)&&(nt[I]=Y={x1:Y[0],y1:Y[1],x2:Y[2],y2:Y[3],gradientUnits:"userSpaceOnUse"}),I==="radialGradient"&<&&!_(Y.gradientUnits)&&(rt=Y,Y=x(Y,Et.getRadialAttr(lt,rt),{gradientUnits:"userSpaceOnUse"})),p(Y,function(xt,Ct){Ct!=="id"&&vt.push(Ct,xt)}),p(D,function(xt){vt.push(xt)}),ot[vt=vt.join(",")])it=ot[vt].attr("id");else{Y.id=it=k();let xt=ot[vt]=Et.createElement(I).attr(Y).add(Et.defs);xt.radAttr=rt,xt.stops=[],D.forEach(function(Ct){Ct[1].indexOf("rgba")===0?(P=(Mt=j.parse(Ct[1])).get("rgb"),W=Mt.get("a")):(P=Ct[1],W=1);let Tt=Et.createElement("stop").attr({offset:Ct[0],"stop-color":P,"stop-opacity":W}).add(xt);xt.stops.push(Tt)})}pt="url("+Et.url+"#"+it+")",mt.setAttribute(dt,pt),mt.gradient=vt,nt.toString=function(){return pt}}})}css(nt){let dt=this.styles,mt={},Et=this.element,Mt,I=!dt;if(dt&&p(nt,function(Y,rt){dt&&dt[rt]!==Y&&(mt[rt]=Y,I=!0)}),I){dt&&(nt=u(dt,mt)),nt.width===null||nt.width==="auto"?delete this.textWidth:Et.nodeName.toLowerCase()==="text"&&nt.width&&(Mt=this.textWidth=f(nt.width)),u(this.styles,nt),Mt&&!X&&this.renderer.forExport&&delete nt.width;let Y=x(nt);Et.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(rt=>Y&&delete Y[rt]),Y.color&&(Y.fill=Y.color)),w(Et,Y)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),nt.textOutline&&this.applyTextOutline(nt.textOutline)),this}dashstyleSetter(nt){let dt,mt=this["stroke-width"];if(mt==="inherit"&&(mt=1),nt=nt&&nt.toLowerCase()){let Et=nt.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(dt=Et.length;dt--;)Et[dt]=""+f(Et[dt])*l(mt,NaN);nt=Et.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",nt)}}destroy(){var rt;let nt=this,dt=nt.element||{},mt=nt.renderer,Et=dt.ownerSVGElement,Mt=dt.nodeName==="SPAN"&&nt.parentGroup||void 0,I,Y;if(dt.onclick=dt.onmouseout=dt.onmouseover=dt.onmousemove=dt.point=null,Z(nt),nt.clipPath&&Et){let ot=nt.clipPath;[].forEach.call(Et.querySelectorAll("[clip-path],[CLIP-PATH]"),function(D){D.getAttribute("clip-path").indexOf(ot.element.id)>-1&&D.removeAttribute("clip-path")}),nt.clipPath=ot.destroy()}if(nt.connector=(rt=nt.connector)==null?void 0:rt.destroy(),nt.stops){for(Y=0;YMt&&Mt.join?(I?Et+" ":"")+Mt.join(" "):(Mt||"").toString(),"")),/(NaN| {2}|^$)/.test(nt)&&(nt="M 0 0"),this[dt]!==nt&&(mt.setAttribute(dt,nt),this[dt]=nt)}fillSetter(nt,dt,mt){typeof nt=="string"?mt.setAttribute(dt,nt):nt&&this.complexColor(nt,dt,mt)}hrefSetter(nt,dt,mt){mt.setAttributeNS("http://www.w3.org/1999/xlink",dt,nt)}getBBox(nt,dt){let mt,Et,Mt,I,{alignValue:Y,element:rt,renderer:ot,styles:D,textStr:P}=this,{cache:W,cacheKeys:lt}=ot,it=rt.namespaceURI===this.SVG_NS,vt=l(dt,this.rotation,0),pt=ot.styledMode?rt&&Q.prototype.getStyle.call(rt,"font-size"):D.fontSize;if(_(P)&&((I=P.toString()).indexOf("<")===-1&&(I=I.replace(/\d/g,"0")),I+=["",ot.rootFontSize,pt,vt,this.textWidth,Y,D.textOverflow,D.fontWeight].join(",")),I&&!nt&&(mt=W[I]),!mt||mt.polygon){if(it||ot.forExport){try{Mt=this.fakeTS&&function(Ct){let Tt=rt.querySelector(".highcharts-text-outline");Tt&&w(Tt,{display:Ct})},S(Mt)&&Mt("none"),mt=rt.getBBox?u({},rt.getBBox()):{width:rt.offsetWidth,height:rt.offsetHeight,x:0,y:0},S(Mt)&&Mt("")}catch(Ct){}(!mt||mt.width<0)&&(mt={x:0,y:0,width:0,height:0})}else mt=this.htmlGetBBox();Et=mt.height,it&&(mt.height=Et={"11px,17":14,"13px,20":16}[`${pt||""},${Math.round(Et)}`]||Et),vt&&(mt=this.getRotatedBox(mt,vt));let xt={bBox:mt};C(this,"afterGetBBox",xt),mt=xt.bBox}if(I&&(P===""||mt.height>0)){for(;lt.length>250;)delete W[lt.shift()];W[I]||lt.push(I),W[I]=mt}return mt}getRotatedBox(nt,dt){let{x:mt,y:Et,width:Mt,height:I}=nt,{alignValue:Y,translateY:rt,rotationOriginX:ot=0,rotationOriginY:D=0}=this,P={right:1,center:.5}[Y||0]||0,W=Number(this.element.getAttribute("y")||0)-(rt?0:Et),lt=dt*tt,it=(dt-90)*tt,vt=Math.cos(lt),pt=Math.sin(lt),xt=Mt*vt,Ct=Mt*pt,Tt=Math.cos(it),Nt=Math.sin(it),[[gt,wt],[Rt,jt]]=[ot,D].map(te=>[te-te*vt,te*pt]),Zt=mt+P*(Mt-xt)+gt+jt+W*Tt,ne=Zt+xt,Wt=ne-I*Tt,le=Wt-xt,de=Et+W-P*Ct-wt+Rt+W*Nt,xe=de+Ct,be=xe-I*Nt,Ye=be-Ct,tn=Math.min(Zt,ne,Wt,le),an=Math.min(de,xe,be,Ye),Jt=Math.max(Zt,ne,Wt,le)-tn,Kt=Math.max(de,xe,be,Ye)-an;return{x:tn,y:an,width:Jt,height:Kt,polygon:[[Zt,de],[ne,xe],[Wt,be],[le,Ye]]}}getStyle(nt){return U.getComputedStyle(this.element||this,"").getPropertyValue(nt)}hasClass(nt){return(""+this.attr("class")).split(" ").indexOf(nt)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(nt,dt){this.onEvents={},this.opacity=1,this.SVG_NS=B,this.element=dt==="span"||dt==="body"?M(dt):H.createElementNS(this.SVG_NS,dt),this.renderer=nt,this.styles={},C(this,"afterInit")}on(nt,dt){let{onEvents:mt}=this;return mt[nt]&&mt[nt](),mt[nt]=d(this.element,nt,dt),this}opacitySetter(nt,dt,mt){let Et=Number(Number(nt).toFixed(3));this.opacity=Et,mt.setAttribute(dt,Et)}reAlign(){var nt;(nt=this.alignOptions)!=null&&nt.width&&this.alignOptions.align!=="left"&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(nt){return this.attr("class",(""+this.attr("class")).replace(g(nt)?RegExp(`(^| )${nt}( |$)`):nt," ").replace(/ +/g," ").trim())}removeTextOutline(){let nt=this.element.querySelector("tspan.highcharts-text-outline");nt&&this.safeRemoveChild(nt)}safeRemoveChild(nt){let dt=nt.parentNode;dt&&dt.removeChild(nt)}setRadialReference(nt){let dt=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=nt,dt&&dt.radAttr&&dt.animate(this.renderer.getRadialAttr(nt,dt.radAttr)),this}shadow(nt){var Mt;let{renderer:dt}=this,mt=x(((Mt=this.parentGroup)==null?void 0:Mt.rotation)===90?{offsetX:-1,offsetY:-1}:{},v(nt)?nt:{}),Et=dt.shadowDefinition(mt);return this.attr({filter:nt?`url(${dt.url}#${Et})`:"none"})}show(nt=!0){return this.attr({visibility:nt?"inherit":"visible"})}"stroke-widthSetter"(nt,dt,mt){this[dt]=nt,mt.setAttribute(dt,nt)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let nt=this.getStyle("stroke-width"),dt=0,mt;return/px$/.test(nt)?dt=f(nt):nt!==""&&(L(mt=H.createElementNS(B,"rect"),{width:nt,"stroke-width":0}),this.element.parentNode.appendChild(mt),dt=mt.getBBox().width,mt.parentNode.removeChild(mt)),dt}symbolAttr(nt){let dt=this;Q.symbolCustomAttribs.forEach(function(mt){dt[mt]=l(nt[mt],dt[mt])}),dt.attr({d:dt.renderer.symbols[dt.symbolName](dt.x,dt.y,dt.width,dt.height,dt)})}textSetter(nt){nt!==this.textStr&&(delete this.textPxLength,this.textStr=nt,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(nt){let dt=this.element,mt=dt.getElementsByTagName("title")[0]||H.createElementNS(this.SVG_NS,"title");dt.insertBefore?dt.insertBefore(mt,dt.firstChild):dt.appendChild(mt),mt.textContent=F(l(nt,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){let nt=this.element;return nt.parentNode.appendChild(nt),this}translate(nt,dt){return this.attr({translateX:nt,translateY:dt})}updateTransform(nt="transform"){var W;let{element:dt,matrix:mt,rotation:Et=0,rotationOriginX:Mt,rotationOriginY:I,scaleX:Y,scaleY:rt,translateX:ot=0,translateY:D=0}=this,P=["translate("+ot+","+D+")"];_(mt)&&P.push("matrix("+mt.join(",")+")"),Et&&(P.push("rotate("+Et+" "+l(Mt,dt.getAttribute("x"),0)+" "+l(I,dt.getAttribute("y")||0)+")"),((W=this.text)==null?void 0:W.element.tagName)==="SPAN"&&this.text.attr({rotation:Et,rotationOriginX:(Mt||0)-this.padding,rotationOriginY:(I||0)-this.padding})),(_(Y)||_(rt))&&P.push("scale("+l(Y,1)+" "+l(rt,1)+")"),P.length&&!(this.text||this).textPath&&dt.setAttribute(nt,P.join(" "))}visibilitySetter(nt,dt,mt){nt==="inherit"?mt.removeAttribute(dt):this[dt]!==nt&&mt.setAttribute(dt,nt),this[dt]=nt}xGetter(nt){return this.element.nodeName==="circle"&&(nt==="x"?nt="cx":nt==="y"&&(nt="cy")),this._defaultGetter(nt)}zIndexSetter(nt,dt){let mt=this.renderer,Et=this.parentGroup,Mt=(Et||mt).element||mt.box,I=this.element,Y=Mt===mt.box,rt,ot,D,P=!1,W,lt=this.added,it;if(_(nt)?(I.setAttribute("data-z-index",nt),nt=+nt,this[dt]===nt&&(lt=!1)):_(this[dt])&&I.removeAttribute("data-z-index"),this[dt]=nt,lt){for((nt=this.zIndex)&&Et&&(Et.handleZ=!0),it=(rt=Mt.childNodes).length-1;it>=0&&!P;it--)W=!_(D=(ot=rt[it]).getAttribute("data-z-index")),ot!==I&&(nt<0&&W&&!Y&&!it?(Mt.insertBefore(I,rt[it]),P=!0):(f(D)<=nt||W&&(!_(nt)||nt>=0))&&(Mt.insertBefore(I,rt[it+1]),P=!0));P||(Mt.insertBefore(I,rt[Y?3:0]),P=!0)}return P}}return Q.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],Q.prototype.strokeSetter=Q.prototype.fillSetter,Q.prototype.yGetter=Q.prototype.xGetter,Q.prototype.matrixSetter=Q.prototype.rotationOriginXSetter=Q.prototype.rotationOriginYSetter=Q.prototype.rotationSetter=Q.prototype.scaleXSetter=Q.prototype.scaleYSetter=Q.prototype.translateXSetter=Q.prototype.translateYSetter=Q.prototype.verticalAlignSetter=function(st,nt){this[nt]=st,this.doTransform=!0},Q}),y(m,"Core/Renderer/SVG/SVGLabel.js",[m["Core/Renderer/SVG/SVGElement.js"],m["Core/Utilities.js"]],function(R,j){let{defined:et,extend:K,isNumber:J,merge:q,pick:Z,removeEvent:tt}=j;class H extends R{constructor(B,U,d,L,M,s,w,_,o,u){let C;super(B,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=U,this.x=d,this.y=L,this.anchorX=s,this.anchorY=w,this.baseline=o,this.className=u,this.addClass(u==="button"?"highcharts-no-tooltip":"highcharts-label"),u&&this.addClass("highcharts-"+u),this.text=B.text(void 0,0,0,_).attr({zIndex:1}),typeof M=="string"&&((C=/^url\((.*?)\)$/.test(M))||this.renderer.symbols[M])&&(this.symbolKey=M),this.bBox=H.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=B.styledMode||C,this.deferredAttr={},this.alignFactor=0}alignSetter(B){let U={left:0,center:.5,right:1}[B];U!==this.alignFactor&&(this.alignFactor=U,this.bBox&&J(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(B,U){this.anchorX=B,this.boxAttr(U,Math.round(B)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(B,U){this.anchorY=B,this.boxAttr(U,B-this.ySetting)}boxAttr(B,U){this.box?this.box.attr(B,U):this.deferredAttr[B]=U}css(B){if(B){let U={};B=q(B),H.textProps.forEach(d=>{B[d]!==void 0&&(U[d]=B[d],delete B[d])}),this.text.css(U),"fontSize"in U||"fontWeight"in U?this.updateTextPadding():("width"in U||"textOverflow"in U)&&this.updateBoxSize()}return R.prototype.css.call(this,B)}destroy(){tt(this.element,"mouseenter"),tt(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),R.prototype.destroy.call(this)}fillSetter(B,U){B&&(this.needsBox=!0),this.fill=B,this.boxAttr(U,B)}getBBox(B,U){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();let{padding:d,height:L=0,translateX:M=0,translateY:s=0,width:w=0}=this,_=Z(this.paddingLeft,d),o=U!=null?U:this.rotation||0,u={width:w,height:L,x:M+this.bBox.x-_,y:s+this.bBox.y-d+this.baselineOffset};return o&&(u=this.getRotatedBox(u,o)),u}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(B){this.heightSetting=B,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:Z(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&et(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(B,U){J(B)?B!==this[U]&&(this[U]=B,this.updateTextPadding()):this[U]=void 0}rSetter(B,U){this.boxAttr(U,B)}strokeSetter(B,U){this.stroke=B,this.boxAttr(U,B)}"stroke-widthSetter"(B,U){B&&(this.needsBox=!0),this["stroke-width"]=B,this.boxAttr(U,B)}"text-alignSetter"(B){this.textAlign=B}textSetter(B){B!==void 0&&this.text.attr({text:B}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let B,U=this.text,d={},L=this.padding,M=this.bBox=(!J(this.widthSetting)||!J(this.heightSetting)||this.textAlign)&&et(U.textStr)?U.getBBox(void 0,0):H.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||M.height||0)+2*L;let s=this.renderer.fontMetrics(U);if(this.baselineOffset=L+Math.min((this.text.firstLineMetrics||s).b,M.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-s.h)/2),this.needsBox&&!U.textPath){if(!this.box){let w=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();w.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),w.add(this)}B=this.getCrispAdjust(),d.x=B,d.y=(this.baseline?-this.baselineOffset:0)+B,d.width=Math.round(this.width),d.height=Math.round(this.height),this.box.attr(K(d,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let B=this.text;if(!B.textPath){this.updateBoxSize();let U=this.baseline?0:this.baselineOffset,d=Z(this.paddingLeft,this.padding);et(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(d+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(d!==B.x||U!==B.y)&&(B.attr("x",d),B.hasBoxWidthChanged&&(this.bBox=B.getBBox(!0)),U!==void 0&&B.attr("y",U)),B.x=d,B.y=U}}widthSetter(B){this.widthSetting=J(B)?B:void 0,this.doUpdate=!0}getPaddedWidth(){let B=this.padding,U=Z(this.paddingLeft,B),d=Z(this.paddingRight,B);return(this.widthSetting||this.bBox.width||0)+U+d}xSetter(B){this.x=B,this.alignFactor&&(B-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(B),this.attr("translateX",this.xSetting)}ySetter(B){this.ySetting=this.y=Math.round(B),this.attr("translateY",this.ySetting)}}return H.emptyBBox={width:0,height:0,x:0,y:0},H.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],H}),y(m,"Core/Renderer/SVG/Symbols.js",[m["Core/Utilities.js"]],function(R){let{defined:j,isNumber:et,pick:K}=R;function J(tt,H,X,B,U){let d=[];if(U){let L=U.start||0,M=K(U.r,X),s=K(U.r,B||X),w=2e-4/(U.borderRadius?1:Math.max(M,1)),_=Math.abs((U.end||0)-L-2*Math.PI)0&&s0)return w;if(tt+M>X-L)if(s>H+L&&sH+L&&s0){let _=sB&&ML&&w.splice(1,1,["L",M-6,H],["L",M,H-6],["L",M+6,H],["L",X-d,H]);return w},circle:function(tt,H,X,B){return J(tt+X/2,H+B/2,X/2,B/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(tt,H,X,B){return[["M",tt+X/2,H],["L",tt+X,H+B/2],["L",tt+X/2,H+B],["L",tt,H+B/2],["Z"]]},rect:q,roundedRect:Z,square:q,triangle:function(tt,H,X,B){return[["M",tt+X/2,H],["L",tt+X,H+B],["L",tt,H+B],["Z"]]},"triangle-down":function(tt,H,X,B){return[["M",tt,H],["L",tt+X,H],["L",tt+X/2,H+B],["Z"]]}}}),y(m,"Core/Renderer/SVG/TextBuilder.js",[m["Core/Renderer/HTML/AST.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j,et){let{doc:K,SVG_NS:J,win:q}=j,{attr:Z,extend:tt,fireEvent:H,isString:X,objectEach:B,pick:U}=et;return class{constructor(d){let L=d.styles;this.renderer=d.renderer,this.svgElement=d,this.width=d.textWidth,this.textLineHeight=L&&L.lineHeight,this.textOutline=L&&L.textOutline,this.ellipsis=!!(L&&L.textOverflow==="ellipsis"),this.noWrap=!!(L&&L.whiteSpace==="nowrap")}buildSVG(){let d=this.svgElement,L=d.element,M=d.renderer,s=U(d.textStr,"").toString(),w=s.indexOf("<")!==-1,_=L.childNodes,o=!d.added&&M.box,u=[s,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,d.getStyle("font-size"),this.width].join(",");if(u!==d.textCache){d.textCache=u,delete d.actualWidth;for(let C=_.length;C--;)L.removeChild(_[C]);if(w||this.ellipsis||this.width||d.textPath||s.indexOf(" ")!==-1&&(!this.noWrap||//g.test(s))){if(s!==""){o&&o.appendChild(L);let C=new R(s);this.modifyTree(C.nodes),C.addToDOM(L),this.modifyDOM(),this.ellipsis&&(L.textContent||"").indexOf("\u2026")!==-1&&d.attr("title",this.unescapeEntities(d.textStr||"",["<",">"])),o&&o.removeChild(L)}}else L.appendChild(K.createTextNode(this.unescapeEntities(s)));X(this.textOutline)&&d.applyTextOutline&&d.applyTextOutline(this.textOutline)}}modifyDOM(){let d,L=this.svgElement,M=Z(L.element,"x");for(L.firstLineMetrics=void 0;(d=L.element.firstChild)&&/^[\s\u200B]*$/.test(d.textContent||" ");)L.element.removeChild(d);[].forEach.call(L.element.querySelectorAll("tspan.highcharts-br"),(o,u)=>{o.nextSibling&&o.previousSibling&&(u===0&&o.previousSibling.nodeType===1&&(L.firstLineMetrics=L.renderer.fontMetrics(o.previousSibling)),Z(o,{dy:this.getLineHeight(o.nextSibling),x:M}))});let s=this.width||0;if(!s)return;let w=(o,u)=>{let C=o.textContent||"",E=C.replace(/([^\^])-/g,"$1- ").split(" "),S=!this.noWrap&&(E.length>1||L.element.childNodes.length>1),v=this.getLineHeight(u),g=0,x=L.actualWidth;if(this.ellipsis)C&&this.truncate(o,C,void 0,0,Math.max(0,s-.8*v),(p,l)=>p.substring(0,l)+"\u2026");else if(S){let p=[],l=[];for(;u.firstChild&&u.firstChild!==o;)l.push(u.firstChild),u.removeChild(u.firstChild);for(;E.length;)E.length&&!this.noWrap&&g>0&&(p.push(o.textContent||""),o.textContent=E.join(" ").replace(/- /g,"-")),this.truncate(o,void 0,E,g===0&&x||0,s,(f,b)=>E.slice(0,b).join(" ").replace(/- /g,"-")),x=L.actualWidth,g++;l.forEach(f=>{u.insertBefore(f,o)}),p.forEach(f=>{u.insertBefore(K.createTextNode(f),o);let b=K.createElementNS(J,"tspan");b.textContent="\u200B",Z(b,{dy:v,x:M}),u.insertBefore(b,o)})}},_=o=>{[].slice.call(o.childNodes).forEach(u=>{u.nodeType===q.Node.TEXT_NODE?w(u,o):(u.className.baseVal.indexOf("highcharts-br")!==-1&&(L.actualWidth=0),_(u))})};_(L.element)}getLineHeight(d){let L=d.nodeType===q.Node.TEXT_NODE?d.parentElement:d;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(L||this.svgElement.element).h}modifyTree(d){let L=(M,s)=>{let{attributes:w={},children:_,style:o={},tagName:u}=M,C=this.renderer.styledMode;if(u==="b"||u==="strong"?C?w.class="highcharts-strong":o.fontWeight="bold":(u==="i"||u==="em")&&(C?w.class="highcharts-emphasized":o.fontStyle="italic"),o&&o.color&&(o.fill=o.color),u==="br"){w.class="highcharts-br",M.textContent="\u200B";let E=d[s+1];E&&E.textContent&&(E.textContent=E.textContent.replace(/^ +/gm,""))}else u==="a"&&_&&_.some(E=>E.tagName==="#text")&&(M.children=[{children:_,tagName:"tspan"}]);u!=="#text"&&u!=="a"&&(M.tagName="tspan"),tt(M,{attributes:w,style:o}),_&&_.filter(E=>E.tagName!=="#text").forEach(L)};d.forEach(L),H(this.svgElement,"afterModifyTree",{nodes:d})}truncate(d,L,M,s,w,_){let o,u,C=this.svgElement,{rotation:E}=C,S=[],v=M?1:0,g=(L||M||"").length,x=g,p=function(l,f){let b=f||l,F=d.parentNode;if(F&&S[b]===void 0&&F.getSubStringLength)try{S[b]=s+F.getSubStringLength(0,M?b+1:b)}catch(T){}return S[b]};if(C.rotation=0,s+(u=p(d.textContent.length))>w){for(;v<=g;)x=Math.ceil((v+g)/2),M&&(o=_(M,x)),u=p(x,o&&o.length-1),v===g?v=g+1:u>w?g=x-1:v=x;g===0?d.textContent="":L&&g===L.length-1||(d.textContent=o||_(L||M,x))}M&&M.splice(0,x),C.actualWidth=u,C.rotation=E}unescapeEntities(d,L){return B(this.renderer.escapes,function(M,s){L&&L.indexOf(M)!==-1||(d=d.toString().replace(RegExp(M,"g"),s))}),d}}}),y(m,"Core/Renderer/SVG/SVGRenderer.js",[m["Core/Renderer/HTML/AST.js"],m["Core/Defaults.js"],m["Core/Color/Color.js"],m["Core/Globals.js"],m["Core/Renderer/RendererRegistry.js"],m["Core/Renderer/SVG/SVGElement.js"],m["Core/Renderer/SVG/SVGLabel.js"],m["Core/Renderer/SVG/Symbols.js"],m["Core/Renderer/SVG/TextBuilder.js"],m["Core/Utilities.js"]],function(R,j,et,K,J,q,Z,tt,H,X){let B,{defaultOptions:U}=j,{charts:d,deg2rad:L,doc:M,isFirefox:s,isMS:w,isWebKit:_,noop:o,SVG_NS:u,symbolSizes:C,win:E}=K,{addEvent:S,attr:v,createElement:g,crisp:x,css:p,defined:l,destroyObjectProperties:f,extend:b,isArray:F,isNumber:T,isObject:k,isString:Q,merge:st,pick:nt,pInt:dt,replaceNested:mt,uniqueKey:Et}=X;class Mt{constructor(Y,rt,ot,D,P,W,lt){let it,vt,pt=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),xt=pt.element;lt||pt.css(this.getStyle(D||{})),Y.appendChild(xt),v(Y,"dir","ltr"),Y.innerHTML.indexOf("xmlns")===-1&&v(xt,"xmlns",this.SVG_NS),this.box=xt,this.boxWrapper=pt,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(M.createTextNode("Created with Highcharts 11.4.8")),this.defs=this.createElement("defs").add(),this.allowHTML=W,this.forExport=P,this.styledMode=lt,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=pt.getStyle("font-size"),this.setSize(rt,ot,!1),s&&Y.getBoundingClientRect&&((it=function(){p(Y,{left:0,top:0}),vt=Y.getBoundingClientRect(),p(Y,{left:Math.ceil(vt.left)-vt.left+"px",top:Math.ceil(vt.top)-vt.top+"px"})})(),this.unSubPixelFix=S(E,"resize",it))}definition(Y){return new R([Y]).addToDOM(this.defs.element)}getReferenceURL(){if((s||_)&&M.getElementsByTagName("base").length){if(!l(B)){let Y=Et(),rt=new R([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:Y},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${Y})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(M.body);p(rt,{position:"fixed",top:0,left:0,zIndex:9e5});let ot=M.elementFromPoint(6,6);B=(ot&&ot.id)==="hitme",M.body.removeChild(rt)}if(B)return mt(E.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(Y){return this.style=b({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},Y),this.style}setStyle(Y){this.boxWrapper.css(this.getStyle(Y))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let Y=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),f(this.gradients||{}),this.gradients=null,this.defs=Y.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(Y){return new this.Element(this,Y)}getRadialAttr(Y,rt){return{cx:Y[0]-Y[2]/2+(rt.cx||0)*Y[2],cy:Y[1]-Y[2]/2+(rt.cy||0)*Y[2],r:(rt.r||0)*Y[2]}}shadowDefinition(Y){let rt=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(Y).map(D=>`${D}-${Y[D]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),ot=st({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},Y);return this.defs.element.querySelector(`#${rt}`)||this.definition({tagName:"filter",attributes:{id:rt,filterUnits:ot.filterUnits},children:this.getShadowFilterContent(ot)}),rt}getShadowFilterContent(Y){return[{tagName:"feDropShadow",attributes:{dx:Y.offsetX,dy:Y.offsetY,"flood-color":Y.color,"flood-opacity":Math.min(5*Y.opacity,1),stdDeviation:Y.width/2}}]}buildText(Y){new H(Y).buildSVG()}getContrast(Y){let rt=et.parse(Y).rgba.map(D=>{let P=D/255;return P<=.03928?P/12.92:Math.pow((P+.055)/1.055,2.4)}),ot=.2126*rt[0]+.7152*rt[1]+.0722*rt[2];return 1.05/(ot+.05)>(ot+.05)/.05?"#FFFFFF":"#000000"}button(Y,rt,ot,D,P={},W,lt,it,vt,pt){let xt=this.label(Y,rt,ot,vt,void 0,void 0,pt,void 0,"button"),Ct=this.styledMode,Tt=arguments,Nt=0;P=st(U.global.buttonTheme,P),Ct&&(delete P.fill,delete P.stroke,delete P["stroke-width"]);let gt=P.states||{},wt=P.style||{};delete P.states,delete P.style;let Rt=[R.filterUserAttributes(P)],jt=[wt];return Ct||["hover","select","disabled"].forEach((Zt,ne)=>{Rt.push(st(Rt[0],R.filterUserAttributes(Tt[ne+5]||gt[Zt]||{}))),jt.push(Rt[ne+1].style),delete Rt[ne+1].style}),S(xt.element,w?"mouseover":"mouseenter",function(){Nt!==3&&xt.setState(1)}),S(xt.element,w?"mouseout":"mouseleave",function(){Nt!==3&&xt.setState(Nt)}),xt.setState=(Zt=0)=>{if(Zt!==1&&(xt.state=Nt=Zt),xt.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][Zt]),!Ct){xt.attr(Rt[Zt]);let ne=jt[Zt];k(ne)&&xt.css(ne)}},xt.attr(Rt[0]),!Ct&&(xt.css(b({cursor:"default"},wt)),pt&&xt.text.css({pointerEvents:"none"})),xt.on("touchstart",Zt=>Zt.stopPropagation()).on("click",function(Zt){Nt!==3&&D.call(xt,Zt)})}crispLine(Y,rt){let[ot,D]=Y;return l(ot[1])&&ot[1]===D[1]&&(ot[1]=D[1]=x(ot[1],rt)),l(ot[2])&&ot[2]===D[2]&&(ot[2]=D[2]=x(ot[2],rt)),Y}path(Y){let rt=this.styledMode?{}:{fill:"none"};return F(Y)?rt.d=Y:k(Y)&&b(rt,Y),this.createElement("path").attr(rt)}circle(Y,rt,ot){let D=k(Y)?Y:Y===void 0?{}:{x:Y,y:rt,r:ot},P=this.createElement("circle");return P.xSetter=P.ySetter=function(W,lt,it){it.setAttribute("c"+lt,W)},P.attr(D)}arc(Y,rt,ot,D,P,W){let lt;k(Y)?(rt=(lt=Y).y,ot=lt.r,D=lt.innerR,P=lt.start,W=lt.end,Y=lt.x):lt={innerR:D,start:P,end:W};let it=this.symbol("arc",Y,rt,ot,ot,lt);return it.r=ot,it}rect(Y,rt,ot,D,P,W){let lt=k(Y)?Y:Y===void 0?{}:{x:Y,y:rt,r:P,width:Math.max(ot||0,0),height:Math.max(D||0,0)},it=this.createElement("rect");return this.styledMode||(W!==void 0&&(lt["stroke-width"]=W,b(lt,it.crisp(lt))),lt.fill="none"),it.rSetter=function(vt,pt,xt){it.r=vt,v(xt,{rx:vt,ry:vt})},it.rGetter=function(){return it.r||0},it.attr(lt)}roundedRect(Y){return this.symbol("roundedRect").attr(Y)}setSize(Y,rt,ot){this.width=Y,this.height=rt,this.boxWrapper.animate({width:Y,height:rt},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:nt(ot,!0)?void 0:0}),this.alignElements()}g(Y){let rt=this.createElement("g");return Y?rt.attr({class:"highcharts-"+Y}):rt}image(Y,rt,ot,D,P,W){let lt={preserveAspectRatio:"none"};T(rt)&&(lt.x=rt),T(ot)&&(lt.y=ot),T(D)&&(lt.width=D),T(P)&&(lt.height=P);let it=this.createElement("image").attr(lt),vt=function(pt){it.attr({href:Y}),W.call(it,pt)};if(W){it.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let pt=new E.Image;S(pt,"load",vt),pt.src=Y,pt.complete&&vt({})}else it.attr({href:Y});return it}symbol(Y,rt,ot,D,P,W){let lt,it,vt,pt,xt=this,Ct=/^url\((.*?)\)$/,Tt=Ct.test(Y),Nt=!Tt&&(this.symbols[Y]?Y:"circle"),gt=Nt&&this.symbols[Nt];if(gt)typeof rt=="number"&&(it=gt.call(this.symbols,rt||0,ot||0,D||0,P||0,W)),lt=this.path(it),xt.styledMode||lt.attr("fill","none"),b(lt,{symbolName:Nt||void 0,x:rt,y:ot,width:D,height:P}),W&&b(lt,W);else if(Tt){vt=Y.match(Ct)[1];let wt=lt=this.image(vt);wt.imgwidth=nt(W&&W.width,C[vt]&&C[vt].width),wt.imgheight=nt(W&&W.height,C[vt]&&C[vt].height),pt=Rt=>Rt.attr({width:Rt.width,height:Rt.height}),["width","height"].forEach(Rt=>{wt[`${Rt}Setter`]=function(jt,Zt){this[Zt]=jt;let{alignByTranslate:ne,element:Wt,width:le,height:de,imgwidth:xe,imgheight:be}=this,Ye=Zt==="width"?xe:be,tn=1;W&&W.backgroundSize==="within"&&le&&de&&xe&&be?(tn=Math.min(le/xe,de/be),v(Wt,{width:Math.round(xe*tn),height:Math.round(be*tn)})):Wt&&Ye&&Wt.setAttribute(Zt,Ye),!ne&&xe&&be&&this.translate(((le||0)-xe*tn)/2,((de||0)-be*tn)/2)}}),l(rt)&&wt.attr({x:rt,y:ot}),wt.isImg=!0,wt.symbolUrl=Y,l(wt.imgwidth)&&l(wt.imgheight)?pt(wt):(wt.attr({width:0,height:0}),g("img",{onload:function(){let Rt=d[xt.chartIndex];this.width===0&&(p(this,{position:"absolute",top:"-999em"}),M.body.appendChild(this)),C[vt]={width:this.width,height:this.height},wt.imgwidth=this.width,wt.imgheight=this.height,wt.element&&pt(wt),this.parentNode&&this.parentNode.removeChild(this),xt.imgCount--,xt.imgCount||!Rt||Rt.hasLoaded||Rt.onload()},src:vt}),this.imgCount++)}return lt}clipRect(Y,rt,ot,D){return this.rect(Y,rt,ot,D,0)}text(Y,rt,ot,D){let P={};if(D&&(this.allowHTML||!this.forExport))return this.html(Y,rt,ot);P.x=Math.round(rt||0),ot&&(P.y=Math.round(ot)),l(Y)&&(P.text=Y);let W=this.createElement("text").attr(P);return D&&(!this.forExport||this.allowHTML)||(W.xSetter=function(lt,it,vt){let pt=vt.getElementsByTagName("tspan"),xt=vt.getAttribute(it);for(let Ct=0,Tt;CtY.align())}}return b(Mt.prototype,{Element:q,SVG_NS:u,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:tt,draw:o}),J.registerRendererType("svg",Mt,!0),Mt}),y(m,"Core/Renderer/HTML/HTMLElement.js",[m["Core/Renderer/HTML/AST.js"],m["Core/Globals.js"],m["Core/Renderer/SVG/SVGElement.js"],m["Core/Utilities.js"]],function(R,j,et,K){let{composed:J}=j,{attr:q,css:Z,createElement:tt,defined:H,extend:X,pInt:B,pushUnique:U}=K;function d(w,_,o){var C;let u=((C=this.div)==null?void 0:C.style)||o.style;et.prototype[`${_}Setter`].call(this,w,_,o),u&&(u[_]=w)}let L=(w,_)=>{var o;if(!w.div){let u=q(w.element,"class"),C=w.css,E=tt("div",u?{className:u}:void 0,ho(zr({position:"absolute",left:`${w.translateX||0}px`,top:`${w.translateY||0}px`},w.styles),{display:w.display,opacity:w.opacity,visibility:w.visibility}),((o=w.parentGroup)==null?void 0:o.div)||_);w.classSetter=(S,v,g)=>{g.setAttribute("class",S),E.className=S},w.translateXSetter=w.translateYSetter=(S,v)=>{w[v]=S,E.style[v==="translateX"?"left":"top"]=`${S}px`,w.doTransform=!0},w.opacitySetter=w.visibilitySetter=d,w.css=S=>(C.call(w,S),S.cursor&&(E.style.cursor=S.cursor),S.pointerEvents&&(E.style.pointerEvents=S.pointerEvents),w),w.on=function(){return et.prototype.on.apply({element:E,onEvents:w.onEvents},arguments),w},w.div=E}return w.div};class M extends et{static compose(_){U(J,this.compose)&&(_.prototype.html=function(o,u,C){return new M(this,"span").attr({text:o,x:Math.round(u),y:Math.round(C)})})}constructor(_,o){super(_,o),this.css(zr({position:"absolute"},_.styledMode?{}:{fontFamily:_.style.fontFamily,fontSize:_.style.fontSize})),this.element.style.whiteSpace="nowrap"}getSpanCorrection(_,o,u){this.xCorr=-_*u,this.yCorr=-o}css(_){let o,{element:u}=this,C=u.tagName==="SPAN"&&_&&"width"in _,E=C&&_.width;return C&&(delete _.width,this.textWidth=B(E)||void 0,o=!0),(_==null?void 0:_.textOverflow)==="ellipsis"&&(_.whiteSpace="nowrap",_.overflow="hidden"),X(this.styles,_),Z(u,_),o&&this.updateTransform(),this}htmlGetBBox(){let{element:_}=this;return{x:_.offsetLeft,y:_.offsetTop,width:_.offsetWidth,height:_.offsetHeight}}updateTransform(){var T;if(!this.added){this.alignOnAdd=!0;return}let{element:_,renderer:o,rotation:u,rotationOriginX:C,rotationOriginY:E,styles:S,textAlign:v="left",textWidth:g,translateX:x=0,translateY:p=0,x:l=0,y:f=0}=this,b={left:0,center:.5,right:1}[v],F=S.whiteSpace;if(Z(_,{marginLeft:`${x}px`,marginTop:`${p}px`}),_.tagName==="SPAN"){let k=[u,v,_.innerHTML,g,this.textAlign].join(","),Q=-(((T=this.parentGroup)==null?void 0:T.padding)*1)||0,st,nt=!1;if(g!==this.oldTextWidth){let I=this.textPxLength?this.textPxLength:(Z(_,{width:"",whiteSpace:F||"nowrap"}),_.offsetWidth),Y=g||0;(Y>this.oldTextWidth||I>Y)&&(/[ \-]/.test(_.textContent||_.innerText)||_.style.textOverflow==="ellipsis")&&(Z(_,{width:I>Y||u?g+"px":"auto",display:"block",whiteSpace:F||"normal"}),this.oldTextWidth=g,nt=!0)}this.hasBoxWidthChanged=nt,k!==this.cTT&&(st=o.fontMetrics(_).b,H(u)&&(u!==(this.oldRotation||0)||v!==this.oldAlign)&&this.setSpanRotation(u,Q,Q),this.getSpanCorrection(!H(u)&&this.textPxLength||_.offsetWidth,st,b));let{xCorr:dt=0,yCorr:mt=0}=this,Et=(C!=null?C:l)-dt-l-Q,Mt=(E!=null?E:f)-mt-f-Q;Z(_,{left:`${l+dt}px`,top:`${f+mt}px`,transformOrigin:`${Et}px ${Mt}px`}),this.cTT=k,this.oldRotation=u,this.oldAlign=v}}setSpanRotation(_,o,u){Z(this.element,{transform:`rotate(${_}deg)`,transformOrigin:`${o}% ${u}px`})}add(_){let o,u=this.renderer.box.parentNode,C=[];if(this.parentGroup=_,_&&!(o=_.div)){let E=_;for(;E;)C.push(E),E=E.parentGroup;for(let S of C.reverse())o=L(S,u)}return(o||u).appendChild(this.element),this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(_){_!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,R.setElementHTML(this.element,_!=null?_:""),this.textStr=_,this.doTransform=!0)}alignSetter(_){this.alignValue=this.textAlign=_,this.doTransform=!0}xSetter(_,o){this[o]=_,this.doTransform=!0}}let s=M.prototype;return s.visibilitySetter=s.opacitySetter=d,s.ySetter=s.rotationSetter=s.rotationOriginXSetter=s.rotationOriginYSetter=s.xSetter,M}),y(m,"Core/Axis/AxisDefaults.js",[],function(){var R,j;return(j=R||(R={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},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:"#333333",cursor:"default",fontSize:"0.8em"}},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,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},j.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:et}=this.axis.chart;return et(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},R}),y(m,"Core/Foundation.js",[m["Core/Utilities.js"]],function(R){var j;let{addEvent:et,isFunction:K,objectEach:J,removeEvent:q}=R;return(j||(j={})).registerEventOptions=function(Z,tt){Z.eventOptions=Z.eventOptions||{},J(tt.events,function(H,X){Z.eventOptions[X]!==H&&(Z.eventOptions[X]&&(q(Z,X,Z.eventOptions[X]),delete Z.eventOptions[X]),K(H)&&(Z.eventOptions[X]=H,et(Z,X,H,{order:0})))})},j}),y(m,"Core/Axis/Tick.js",[m["Core/Templating.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j,et){let{deg2rad:K}=j,{clamp:J,correctFloat:q,defined:Z,destroyObjectProperties:tt,extend:H,fireEvent:X,isNumber:B,merge:U,objectEach:d,pick:L}=et;return class{constructor(M,s,w,_,o){this.isNew=!0,this.isNewLabel=!0,this.axis=M,this.pos=s,this.type=w||"",this.parameters=o||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,X(this,"init"),w||_||this.addLabel()}addLabel(){let M=this,s=M.axis,w=s.options,_=s.chart,o=s.categories,u=s.logarithmic,C=s.names,E=M.pos,S=L(M.options&&M.options.labels,w.labels),v=s.tickPositions,g=E===v[0],x=E===v[v.length-1],p=(!S.step||S.step===1)&&s.tickInterval===1,l=v.info,f=M.label,b,F,T,k=this.parameters.category||(o?L(o[E],C[E],E):E);u&&B(k)&&(k=q(u.lin2log(k))),s.dateTime&&(l?b=(F=_.time.resolveDTLFormat(w.dateTimeLabelFormats[!w.grid&&l.higherRanks[E]||l.unitName])).main:B(k)&&(b=s.dateTime.getXDateFormat(k,w.dateTimeLabelFormats||{}))),M.isFirst=g,M.isLast=x;let Q={axis:s,chart:_,dateTimeLabelFormat:b,isFirst:g,isLast:x,pos:E,tick:M,tickPositionInfo:l,value:k};X(this,"labelFormat",Q);let st=mt=>S.formatter?S.formatter.call(mt,mt):S.format?(mt.text=s.defaultLabelFormatter.call(mt),R.format(S.format,mt,_)):s.defaultLabelFormatter.call(mt),nt=st.call(Q,Q),dt=F&&F.list;dt?M.shortenLabel=function(){for(T=0;T0&&_+g*x>E&&(k=Math.round((o-_)/Math.cos(v*K))):(F=_-g*x,T=_+(1-g)*x,FE&&(f=E-M.x+f*g,b=-1),(f=Math.min(p,f))f||s.autoRotation&&(S.styles||{}).width)&&(k=f)),k&&(this.shortenLabel?this.shortenLabel():(l.width=Math.floor(k)+"px",(w.style||{}).textOverflow||(l.textOverflow="ellipsis"),S.css(l)))}moveLabel(M,s){let w=this,_=w.label,o=w.axis,u=!1,C;_&&_.textStr===M?(w.movedLabel=_,u=!0,delete w.label):d(o.ticks,function(E){u||E.isNew||E===w||!E.label||E.label.textStr!==M||(w.movedLabel=E.label,u=!0,E.labelPos=w.movedLabel.xy,delete E.label)}),!u&&(w.labelPos||_)&&(C=w.labelPos||_.xy,w.movedLabel=w.createLabel(M,s,C),w.movedLabel&&w.movedLabel.attr({opacity:0}))}render(M,s,w){let _=this.axis,o=_.horiz,u=this.pos,C=L(this.tickmarkOffset,_.tickmarkOffset),E=this.getPosition(o,u,C,s),S=E.x,v=E.y,g=_.pos,x=g+_.len,p=o?S:v;!_.chart.polar&&this.isNew&&(q(p)x)&&(w=0);let l=L(w,this.label&&this.label.newOpacity,1);w=L(w,1),this.isActive=!0,this.renderGridLine(s,w),this.renderMark(E,w),this.renderLabel(E,s,l,M),this.isNew=!1,X(this,"afterRender")}renderGridLine(M,s){let w=this.axis,_=w.options,o={},u=this.pos,C=this.type,E=L(this.tickmarkOffset,w.tickmarkOffset),S=w.chart.renderer,v=this.gridLine,g,x=_.gridLineWidth,p=_.gridLineColor,l=_.gridLineDashStyle;this.type==="minor"&&(x=_.minorGridLineWidth,p=_.minorGridLineColor,l=_.minorGridLineDashStyle),v||(w.chart.styledMode||(o.stroke=p,o["stroke-width"]=x||0,o.dashstyle=l),C||(o.zIndex=1),M&&(s=0),this.gridLine=v=S.path().attr(o).addClass("highcharts-"+(C?C+"-":"")+"grid-line").add(w.gridGroup)),v&&(g=w.getPlotLinePath({value:u+E,lineWidth:v.strokeWidth(),force:"pass",old:M,acrossPanes:!1}))&&v[M||this.isNew?"attr":"animate"]({d:g,opacity:s})}renderMark(M,s){let w=this.axis,_=w.options,o=w.chart.renderer,u=this.type,C=w.tickSize(u?u+"Tick":"tick"),E=M.x,S=M.y,v=L(_[u!=="minor"?"tickWidth":"minorTickWidth"],!u&&w.isXAxis?1:0),g=_[u!=="minor"?"tickColor":"minorTickColor"],x=this.mark,p=!x;C&&(w.opposite&&(C[0]=-C[0]),x||(this.mark=x=o.path().addClass("highcharts-"+(u?u+"-":"")+"tick").add(w.axisGroup),w.chart.styledMode||x.attr({stroke:g,"stroke-width":v})),x[p?"attr":"animate"]({d:this.getMarkPath(E,S,C[0],x.strokeWidth(),w.horiz,o),opacity:s}))}renderLabel(M,s,w,_){let o=this.axis,u=o.horiz,C=o.options,E=this.label,S=C.labels,v=S.step,g=L(this.tickmarkOffset,o.tickmarkOffset),x=M.x,p=M.y,l=!0;E&&B(x)&&(E.xy=M=this.getLabelPosition(x,p,E,u,S,g,_,v),(!this.isFirst||this.isLast||C.showFirstLabel)&&(!this.isLast||this.isFirst||C.showLastLabel)?!u||S.step||S.rotation||s||w===0||this.handleOverflow(M):l=!1,v&&_%v&&(l=!1),l&&B(M.y)?(M.opacity=w,E[this.isNewLabel?"attr":"animate"](M).show(!0),this.isNewLabel=!1):(E.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let M=this.label,s=this.axis;M&&!this.isNew&&(M.animate({opacity:0},void 0,M.destroy),delete this.label),s.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}}),y(m,"Core/Axis/Axis.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Axis/AxisDefaults.js"],m["Core/Color/Color.js"],m["Core/Defaults.js"],m["Core/Foundation.js"],m["Core/Globals.js"],m["Core/Axis/Tick.js"],m["Core/Utilities.js"]],function(R,j,et,K,J,q,Z,tt){let{animObject:H}=R,{xAxis:X,yAxis:B}=j,{defaultOptions:U}=K,{registerEventOptions:d}=J,{deg2rad:L}=q,{arrayMax:M,arrayMin:s,clamp:w,correctFloat:_,defined:o,destroyObjectProperties:u,erase:C,error:E,extend:S,fireEvent:v,getClosestDistance:g,insertItem:x,isArray:p,isNumber:l,isString:f,merge:b,normalizeTickInterval:F,objectEach:T,pick:k,relativeLength:Q,removeEvent:st,splat:nt,syncTimeout:dt}=tt,mt=(Mt,I)=>F(I,void 0,void 0,k(Mt.options.allowDecimals,I<.5||Mt.tickAmount!==void 0),!!Mt.tickAmount);S(U,{xAxis:X,yAxis:b(X,B)});class Et{constructor(I,Y,rt){this.init(I,Y,rt)}init(I,Y,rt=this.coll){var it,vt,pt,xt;let ot=rt==="xAxis",D=this.isZAxis||(I.inverted?!ot:ot);this.chart=I,this.horiz=D,this.isXAxis=ot,this.coll=rt,v(this,"init",{userOptions:Y}),this.opposite=k(Y.opposite,this.opposite),this.side=k(Y.side,this.side,D?this.opposite?0:2:this.opposite?1:3),this.setOptions(Y);let P=this.options,W=P.labels;(it=this.type)!=null||(this.type=P.type||"linear"),(pt=this.uniqueNames)!=null||(this.uniqueNames=(vt=P.uniqueNames)!=null?vt:!0),v(this,"afterSetType"),this.userOptions=Y,this.minPixelPadding=0,this.reversed=k(P.reversed,this.reversed),this.visible=P.visible,this.zoomEnabled=P.zoomEnabled,this.hasNames=this.type==="category"||P.categories===!0,this.categories=p(P.categories)&&P.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=o(P.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},(xt=this.len)!=null||(this.len=0),this.minRange=this.userMinRange=P.minRange||P.maxZoom,this.range=P.range,this.offset=P.offset||0,this.max=void 0,this.min=void 0;let lt=k(P.crosshair,nt(I.options.tooltip.crosshairs)[ot?0:1]);this.crosshair=lt===!0?{}:lt,I.axes.indexOf(this)===-1&&(ot?I.axes.splice(I.xAxis.length,0,this):I.axes.push(this),x(this,I[this.coll])),I.orderItems(this.coll),this.series=this.series||[],I.inverted&&!this.isZAxis&&ot&&!o(this.reversed)&&(this.reversed=!0),this.labelRotation=l(W.rotation)?W.rotation:void 0,d(this,P),v(this,"afterInit")}setOptions(I){let Y=this.horiz?{labels:{autoRotation:[-45],padding:4},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=b(Y,U[this.coll],I),v(this,"afterSetOptions",{userOptions:I})}defaultLabelFormatter(){let I=this.axis,{numberFormatter:Y}=this.chart,rt=l(this.value)?this.value:NaN,ot=I.chart.time,D=I.categories,P=this.dateTimeLabelFormat,W=U.lang,lt=W.numericSymbols,it=W.numericSymbolMagnitude||1e3,vt=I.logarithmic?Math.abs(rt):I.tickInterval,pt=lt&<.length,xt,Ct;if(D)Ct=`${this.value}`;else if(P)Ct=ot.dateFormat(P,rt);else if(pt&<&&vt>=1e3)for(;pt--&&Ct===void 0;)vt>=(xt=Math.pow(it,pt+1))&&10*rt%xt==0&<[pt]!==null&&rt!==0&&(Ct=Y(rt/xt,-1)+lt[pt]);return Ct===void 0&&(Ct=Math.abs(rt)>=1e4?Y(rt,-1):Y(rt,-1,void 0,"")),Ct}getSeriesExtremes(){let I,Y=this;v(this,"getSeriesExtremes",null,function(){Y.hasVisibleSeries=!1,Y.dataMin=Y.dataMax=Y.threshold=void 0,Y.softThreshold=!Y.isXAxis,Y.series.forEach(rt=>{if(rt.reserveSpace()){let ot=rt.options,D,P=ot.threshold,W,lt;if(Y.hasVisibleSeries=!0,Y.positiveValuesOnly&&0>=(P||0)&&(P=void 0),Y.isXAxis)(D=rt.xData)&&D.length&&(D=Y.logarithmic?D.filter(it=>it>0):D,W=(I=rt.getXExtremes(D)).min,lt=I.max,l(W)||W instanceof Date||(D=D.filter(l),W=(I=rt.getXExtremes(D)).min,lt=I.max),D.length&&(Y.dataMin=Math.min(k(Y.dataMin,W),W),Y.dataMax=Math.max(k(Y.dataMax,lt),lt)));else{let it=rt.applyExtremes();l(it.dataMin)&&(W=it.dataMin,Y.dataMin=Math.min(k(Y.dataMin,W),W)),l(it.dataMax)&&(lt=it.dataMax,Y.dataMax=Math.max(k(Y.dataMax,lt),lt)),o(P)&&(Y.threshold=P),(!ot.softThreshold||Y.positiveValuesOnly)&&(Y.softThreshold=!1)}}})}),v(this,"afterGetSeriesExtremes")}translate(I,Y,rt,ot,D,P){var Nt;let W=this.linkedParent||this,lt=ot&&W.old?W.old.min:W.min;if(!l(lt))return NaN;let it=W.minPixelPadding,vt=(W.isOrdinal||((Nt=W.brokenAxis)==null?void 0:Nt.hasBreaks)||W.logarithmic&&D)&&W.lin2val,pt=1,xt=0,Ct=ot&&W.old?W.old.transA:W.transA,Tt=0;return Ct||(Ct=W.transA),rt&&(pt*=-1,xt=W.len),W.reversed&&(pt*=-1,xt-=pt*(W.sector||W.len)),Y?(Tt=(I=I*pt+xt-it)/Ct+lt,vt&&(Tt=W.lin2val(Tt))):(vt&&(I=W.val2lin(I)),Tt=pt*(I-lt)*Ct+xt+pt*it+(l(P)?Ct*P:0),W.isRadial||(Tt=_(Tt))),Tt}toPixels(I,Y){return this.translate(I,!1,!this.horiz,void 0,!0)+(Y?0:this.pos)}toValue(I,Y){return this.translate(I-(Y?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(I){let Y=this,rt=Y.chart,ot=Y.left,D=Y.top,P=I.old,W=I.value,lt=I.lineWidth,it=P&&rt.oldChartHeight||rt.chartHeight,vt=P&&rt.oldChartWidth||rt.chartWidth,pt=Y.transB,xt=I.translatedValue,Ct=I.force,Tt,Nt,gt,wt,Rt;function jt(ne,Wt,le){return Ct!=="pass"&&(nele)&&(Ct?ne=w(ne,Wt,le):Rt=!0),ne}let Zt={value:W,lineWidth:lt,old:P,force:Ct,acrossPanes:I.acrossPanes,translatedValue:xt};return v(this,"getPlotLinePath",Zt,function(ne){Tt=gt=(xt=w(xt=k(xt,Y.translate(W,void 0,void 0,P)),-1e9,1e9))+pt,Nt=wt=it-xt-pt,l(xt)?Y.horiz?(Nt=D,wt=it-Y.bottom+(Y.options.isInternal?0:rt.scrollablePixelsY||0),Tt=gt=jt(Tt,ot,ot+Y.width)):(Tt=ot,gt=vt-Y.right+(rt.scrollablePixelsX||0),Nt=wt=jt(Nt,D,D+Y.height)):(Rt=!0,Ct=!1),ne.path=Rt&&!Ct?void 0:rt.renderer.crispLine([["M",Tt,Nt],["L",gt,wt]],lt||1)}),Zt.path}getLinearTickPositions(I,Y,rt){let ot,D,P,W=_(Math.floor(Y/I)*I),lt=_(Math.ceil(rt/I)*I),it=[];if(_(W+I)===W&&(P=20),this.single)return[Y];for(ot=W;ot<=lt&&(it.push(ot),(ot=_(ot+I,P))!==D);)D=ot;return it}getMinorTickInterval(){let{minorTicks:I,minorTickInterval:Y}=this.options;return I===!0?k(Y,"auto"):I!==!1?Y:void 0}getMinorTickPositions(){let I=this.options,Y=this.tickPositions,rt=this.minorTickInterval,ot=this.pointRangePadding||0,D=(this.min||0)-ot,P=(this.max||0)+ot,W=P-D,lt=[],it;if(W&&W/rt{var pt;return(vt.xIncrement?(pt=vt.xData)==null?void 0:pt.slice(0,2):vt.xData)||[]}))||0),this.dataMax-this.dataMin)),l(rt)&&l(ot)&&l(D)&&rt-ot=D,P=(D-rt+ot)/2,lt=[ot-P,k(I.min,ot-P)],W&&(lt[2]=Y?Y.log2lin(this.dataMin):this.dataMin),it=[(ot=M(lt))+D,k(I.max,ot+D)],W&&(it[2]=Y?Y.log2lin(this.dataMax):this.dataMax),(rt=s(it))-otot-D),I=g([rt]))}return I&&Y?Math.min(I,Y):I||Y}nameToX(I){let Y=p(this.options.categories),rt=Y?this.categories:this.names,ot=I.options.x,D;return I.series.requireSorting=!1,o(ot)||(ot=this.uniqueNames&&rt?Y?rt.indexOf(I.name):k(rt.keys[I.name],-1):I.series.autoIncrement()),ot===-1?!Y&&rt&&(D=rt.length):D=ot,D!==void 0?(this.names[D]=I.name,this.names.keys[I.name]=D):I.x&&(D=I.x),D}updateNames(){let I=this,Y=this.names;Y.length>0&&(Object.keys(Y.keys).forEach(function(rt){delete Y.keys[rt]}),Y.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(rt=>{rt.xIncrement=null,(!rt.points||rt.isDirtyData)&&(I.max=Math.max(I.max,rt.xData.length-1),rt.processData(),rt.generatePoints()),rt.data.forEach(function(ot,D){let P;ot!=null&&ot.options&&ot.name!==void 0&&(P=I.nameToX(ot))!==void 0&&P!==ot.x&&(ot.x=P,rt.xData[D]=P)})}))}setAxisTranslation(){let I=this,Y=I.max-I.min,rt=I.linkedParent,ot=!!I.categories,D=I.isXAxis,P=I.axisPointRange||0,W,lt=0,it=0,vt,pt=I.transA;(D||ot||P)&&(W=I.getClosest(),rt?(lt=rt.minPointOffset,it=rt.pointRangePadding):I.series.forEach(function(xt){let Ct=ot?1:D?k(xt.options.pointRange,W,0):I.axisPointRange||0,Tt=xt.options.pointPlacement;if(P=Math.max(P,Ct),!I.single||ot){let Nt=xt.is("xrange")?!D:D;lt=Math.max(lt,Nt&&f(Tt)?0:Ct/2),it=Math.max(it,Nt&&Tt==="on"?0:Ct)}}),vt=I.ordinal&&I.ordinal.slope&&W?I.ordinal.slope/W:1,I.minPointOffset=lt*=vt,I.pointRangePadding=it*=vt,I.pointRange=Math.min(P,I.single&&ot?1:Y),D&&W&&(I.closestPointRange=W)),I.translationSlope=I.transA=pt=I.staticScale||I.len/(Y+it||1),I.transB=I.horiz?I.left:I.bottom,I.minPixelPadding=pt*lt,v(this,"afterSetAxisTranslation")}minFromRange(){let{max:I,min:Y}=this;return l(I)&&l(Y)&&I-Y||void 0}setTickInterval(I){var Jt,Kt,te,Ot;let{categories:Y,chart:rt,dataMax:ot,dataMin:D,dateTime:P,isXAxis:W,logarithmic:lt,options:it,softThreshold:vt}=this,pt=l(this.threshold)?this.threshold:void 0,xt=this.minRange||0,{ceiling:Ct,floor:Tt,linkedTo:Nt,softMax:gt,softMin:wt}=it,Rt=l(Nt)&&((Jt=rt[this.coll])==null?void 0:Jt[Nt]),jt=it.tickPixelInterval,Zt=it.maxPadding,ne=it.minPadding,Wt=0,le,de=l(it.tickInterval)&&it.tickInterval>=0?it.tickInterval:void 0,xe,be,Ye,tn;if(P||Y||Rt||this.getTickAmount(),Ye=k(this.userMin,it.min),tn=k(this.userMax,it.max),Rt?(this.linkedParent=Rt,le=Rt.getExtremes(),this.min=k(le.min,le.dataMin),this.max=k(le.max,le.dataMax),this.type!==Rt.type&&E(11,!0,rt)):(vt&&o(pt)&&l(ot)&&l(D)&&(D>=pt?(xe=pt,ne=0):ot<=pt&&(be=pt,Zt=0)),this.min=k(Ye,xe,D),this.max=k(tn,be,ot)),l(this.max)&&l(this.min)&&(lt&&(this.positiveValuesOnly&&!I&&0>=Math.min(this.min,k(D,this.min))&&E(10,!0,rt),this.min=_(lt.log2lin(this.min),16),this.max=_(lt.log2lin(this.max),16)),this.range&&l(D)&&(this.userMin=this.min=Ye=Math.max(D,this.minFromRange()||0),this.userMax=tn=this.max,this.range=void 0)),v(this,"foundExtremes"),this.adjustForMinRange(),l(this.min)&&l(this.max)){if(!l(this.userMin)&&l(wt)&&wtthis.max&&(this.max=tn=gt),Y||this.axisPointRange||(Kt=this.stacking)!=null&&Kt.usePercentage||Rt||!(Wt=this.max-this.min)||(!o(Ye)&&ne&&(this.min-=Wt*ne),o(tn)||!Zt||(this.max+=Wt*Zt)),!l(this.userMin)&&l(Tt)&&(this.min=Math.max(this.min,Tt)),!l(this.userMax)&&l(Ct)&&(this.max=Math.min(this.max,Ct)),vt&&l(D)&&l(ot)){let Bt=pt||0;!o(Ye)&&this.min=Bt?this.min=it.minRange?Math.min(Bt,this.max-xt):Bt:!o(tn)&&this.max>Bt&&ot<=Bt&&(this.max=it.minRange?Math.max(Bt,this.min+xt):Bt)}!rt.polar&&this.min>this.max&&(o(it.min)?this.max=this.min:o(it.max)&&(this.min=this.max)),Wt=this.max-this.min}if(this.min!==this.max&&l(this.min)&&l(this.max)?Rt&&!de&&jt===Rt.options.tickPixelInterval?this.tickInterval=de=Rt.tickInterval:this.tickInterval=k(de,this.tickAmount?Wt/Math.max(this.tickAmount-1,1):void 0,Y?1:Wt*jt/Math.max(this.len,jt)):this.tickInterval=1,W&&!I){let Bt=this.min!==((te=this.old)==null?void 0:te.min)||this.max!==((Ot=this.old)==null?void 0:Ot.max);this.series.forEach(function(Ut){var zt;Ut.forceCrop=(zt=Ut.forceCropping)==null?void 0:zt.call(Ut),Ut.processData(Bt)}),v(this,"postProcessData",{hasExtremesChanged:Bt})}this.setAxisTranslation(),v(this,"initialAxisTranslation"),this.pointRange&&!de&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let an=k(it.minTickInterval,P&&!this.series.some(Bt=>Bt.noSharedTooltip)?this.closestPointRange:0);!de&&this.tickIntervalMath.max(2*this.len,200))lt=[this.min,this.max],E(19,!1,this.chart);else if(this.dateTime)lt=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,I.units),this.min,this.max,I.startOfWeek,(pt=this.ordinal)==null?void 0:pt.positions,this.closestPointRange,!0);else if(this.logarithmic)lt=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let xt=this.tickInterval,Ct=xt;for(;Ct<=2*xt&&(lt=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&<.length>this.tickAmount);)this.tickInterval=mt(this,Ct*=1.1)}lt.length>this.len&&(lt=[lt[0],lt[lt.length-1]])[0]===lt[1]&&(lt.length=1),rt&&(this.tickPositions=lt,(it=rt.apply(this,[this.min,this.max]))&&(lt=it))}this.tickPositions=lt,this.minorTickInterval=ot==="auto"&&this.tickInterval?this.tickInterval/I.minorTicksPerMajor:ot,this.paddedTicks=lt.slice(0),this.trimTicks(lt,P,W),!this.isLinked&&l(this.min)&&l(this.max)&&(this.single&<.length<2&&!this.categories&&!this.series.some(xt=>xt.is("heatmap")&&xt.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),Y||it||this.adjustTickAmount()),v(this,"afterSetTickPositions")}trimTicks(I,Y,rt){let ot=I[0],D=I[I.length-1],P=!this.isOrdinal&&this.minPointOffset||0;if(v(this,"trimTicks"),!this.isLinked){if(Y&&ot!==-1/0)this.min=ot;else for(;this.min-P>I[0];)I.shift();if(rt)this.max=D;else for(;this.max+P{let{horiz:xt,options:Ct}=pt;return[xt?Ct.left:Ct.top,Ct.width,Ct.height,Ct.pane].join(",")},vt=it(this);rt[this.coll].forEach(function(pt){let{series:xt}=pt;xt.length&&xt.some(Ct=>Ct.visible)&&pt!==Y&&it(pt)===vt&&(I=!0,ot.push(pt))})}if(I&&W){ot.forEach(vt=>{let pt=vt.getThresholdAlignment(Y);l(pt)&<.push(pt)});let it=lt.length>1?lt.reduce((vt,pt)=>vt+=pt,0)/lt.length:void 0;ot.forEach(vt=>{vt.thresholdAlignment=it})}return I}getThresholdAlignment(I){if((!l(this.dataMin)||this!==I&&this.series.some(Y=>Y.isDirty||Y.isDirtyData))&&this.getSeriesExtremes(),l(this.threshold)){let Y=w((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(Y=1-Y),Y}}getTickAmount(){let I=this.options,Y=I.tickPixelInterval,rt=I.tickAmount;o(I.tickInterval)||rt||!(this.lenP.push(_(P[P.length-1]+Ct)),gt=()=>P.unshift(_(P[0]-Ct));if(l(lt)&&(Tt=lt<.5?Math.ceil(lt*(W-1)):Math.floor(lt*(W-1)),D.reversed&&(Tt=W-1-Tt)),I.hasData()&&l(ot)&&l(rt)){let wt=()=>{I.transA*=(it-1)/(W-1),I.min=D.startOnTick?P[0]:Math.min(ot,P[0]),I.max=D.endOnTick?P[P.length-1]:Math.max(rt,P[P.length-1])};if(l(Tt)&&l(I.threshold)){for(;P[Tt]!==vt||P.length!==W||P[0]>ot||P[P.length-1]I.threshold?gt():Nt();if(Ct>8*I.tickInterval)break;Ct*=2}wt()}else if(it0&&xt{rt=rt||lt.isDirtyData||lt.isDirty,ot=ot||lt.xAxis&<.xAxis.isDirty||!1}),this.setAxisSize();let D=this.len!==(this.old&&this.old.len);D||rt||ot||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(Y&&I==="yAxis"&&Y.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),Y&&I==="xAxis"&&Y.buildStacks(),this.isDirty||(this.isDirty=D||this.min!==((P=this.old)==null?void 0:P.min)||this.max!==((W=this.old)==null?void 0:W.max))):Y&&Y.cleanStacks(),rt&&delete this.allExtremes,v(this,"afterSetScale")}setExtremes(I,Y,rt=!0,ot,D){this.series.forEach(P=>{delete P.kdTree}),v(this,"setExtremes",D=S(D,{min:I,max:Y}),P=>{this.userMin=P.min,this.userMax=P.max,this.eventArgs=P,rt&&this.chart.redraw(ot)})}setAxisSize(){let I=this.chart,Y=this.options,rt=Y.offsets||[0,0,0,0],ot=this.horiz,D=this.width=Math.round(Q(k(Y.width,I.plotWidth-rt[3]+rt[1]),I.plotWidth)),P=this.height=Math.round(Q(k(Y.height,I.plotHeight-rt[0]+rt[2]),I.plotHeight)),W=this.top=Math.round(Q(k(Y.top,I.plotTop+rt[0]),I.plotHeight,I.plotTop)),lt=this.left=Math.round(Q(k(Y.left,I.plotLeft+rt[3]),I.plotWidth,I.plotLeft));this.bottom=I.chartHeight-P-W,this.right=I.chartWidth-D-lt,this.len=Math.max(ot?D:P,0),this.pos=ot?lt:W}getExtremes(){let I=this.logarithmic;return{min:I?_(I.lin2log(this.min)):this.min,max:I?_(I.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(I){let Y=this.logarithmic,rt=Y?Y.lin2log(this.min):this.min,ot=Y?Y.lin2log(this.max):this.max;return I===null||I===-1/0?I=rt:I===1/0?I=ot:rt>I?I=rt:ot15&&Y<165?ot.align="right":Y>195&&Y<345&&(ot.align="left")}),rt.align}tickSize(I){let Y=this.options,rt=k(Y[I==="tick"?"tickWidth":"minorTickWidth"],I==="tick"&&this.isXAxis&&!this.categories?1:0),ot=Y[I==="tick"?"tickLength":"minorTickLength"],D;rt&&ot&&(Y[I+"Position"]==="inside"&&(ot=-ot),D=[ot,rt]);let P={tickSize:D};return v(this,"afterTickSize",P),P.tickSize}labelMetrics(){let I=this.chart.renderer,Y=this.ticks,rt=Y[Object.keys(Y)[0]]||{};return this.chart.renderer.fontMetrics(rt.label||rt.movedLabel||I.box)}unsquish(){let I=this.options.labels,Y=I.padding||0,rt=this.horiz,ot=this.tickInterval,D=this.len/(((this.categories?1:0)+this.max-this.min)/ot),P=I.rotation,W=_(.8*this.labelMetrics().h),lt=Math.max(this.max-this.min,0),it=function(Tt){let Nt=(Tt+2*Y)/(D||1);return(Nt=Nt>1?Math.ceil(Nt):1)*ot>lt&&Tt!==1/0&&D!==1/0&<&&(Nt=Math.ceil(lt/ot)),_(Nt*ot)},vt=ot,pt,xt=Number.MAX_VALUE,Ct;if(rt){if(!I.staggerLines&&(l(P)?Ct=[P]:D=-90&><=90)&&(Nt=(Tt=it(Math.abs(W/Math.sin(L*gt))))+Math.abs(gt/360))Nt&&(Nt=jt.label.textPxLength)}),this.maxLabelLength=Nt,this.autoRotation)Nt>it&&Nt>pt.h?vt.rotation=this.labelRotation:this.labelRotation=0;else if(lt&&(Ct=it,!xt))for(Tt="clip",wt=rt.length;!W&&wt--;)(gt=ot[rt[wt]].label)&&(gt.styles.textOverflow==="ellipsis"?gt.css({textOverflow:"clip"}):gt.textPxLength>lt&>.css({width:lt+"px"}),gt.getBBox().height>this.len/rt.length-(pt.h-pt.f)&&(gt.specificTextOverflow="ellipsis"));vt.rotation&&(Ct=Nt>.5*I.chartHeight?.33*I.chartHeight:Nt,xt||(Tt="ellipsis")),this.labelAlign=D.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(vt.align=this.labelAlign),rt.forEach(function(Rt){let jt=ot[Rt],Zt=jt&&jt.label,ne=P.width,Wt={};Zt&&(Zt.attr(vt),jt.shortenLabel?jt.shortenLabel():Ct&&!ne&&P.whiteSpace!=="nowrap"&&(CtD.g(W).attr({zIndex:it}).addClass(`highcharts-${rt.toLowerCase()}${lt} `+(this.isRadial?`highcharts-radial-axis${lt} `:"")+(ot.className||"")).add(I);this.axisGroup||(this.gridGroup=P("grid","-grid",ot.gridZIndex),this.axisGroup=P("axis","",ot.zIndex),this.labelGroup=P("axis-labels","-labels",ot.labels.zIndex))}getOffset(){let I=this,{chart:Y,horiz:rt,options:ot,side:D,ticks:P,tickPositions:W,coll:lt}=I,it=Y.inverted&&!I.isZAxis?[1,0,3,2][D]:D,vt=I.hasData(),pt=ot.title,xt=ot.labels,Ct=l(ot.crossing),Tt=Y.axisOffset,Nt=Y.clipOffset,gt=[-1,1,1,-1][D],wt,Rt=0,jt,Zt=0,ne=0,Wt,le;if(I.showAxis=wt=vt||ot.showEmpty,I.staggerLines=I.horiz&&xt.staggerLines||void 0,I.createGroups(),vt||I.isLinked?(W.forEach(function(de){I.generateTick(de)}),I.renderUnsquish(),I.reserveSpaceDefault=D===0||D===2||{1:"left",3:"right"}[D]===I.labelAlign,k(xt.reserveSpace,!Ct&&null,I.labelAlign==="center"||null,I.reserveSpaceDefault)&&W.forEach(function(de){ne=Math.max(P[de].getLabelSize(),ne)}),I.staggerLines&&(ne*=I.staggerLines),I.labelOffset=ne*(I.opposite?-1:1)):T(P,function(de,xe){de.destroy(),delete P[xe]}),pt!=null&&pt.text&&pt.enabled!==!1&&(I.addTitle(wt),wt&&!Ct&&pt.reserveSpace!==!1&&(I.titleOffset=Rt=I.axisTitle.getBBox()[rt?"height":"width"],Zt=o(jt=pt.offset)?0:k(pt.margin,rt?5:10))),I.renderLine(),I.offset=gt*k(ot.offset,Tt[D]?Tt[D]+(ot.margin||0):0),I.tickRotCorr=I.tickRotCorr||{x:0,y:0},le=D===0?-I.labelMetrics().h:D===2?I.tickRotCorr.y:0,Wt=Math.abs(ne)+Zt,ne&&(Wt-=le,Wt+=gt*(rt?k(xt.y,I.tickRotCorr.y+gt*xt.distance):k(xt.x,gt*xt.distance))),I.axisTitleMargin=k(jt,Wt),I.getMaxLabelDimensions&&(I.maxLabelDimensions=I.getMaxLabelDimensions(P,W)),lt!=="colorAxis"&&Nt){let de=this.tickSize("tick");Tt[D]=Math.max(Tt[D],(I.axisTitleMargin||0)+Rt+gt*I.offset,Wt,W&&W.length&&de?de[0]+gt*I.offset:0);let xe=!I.axisLine||ot.offset?0:I.axisLine.strokeWidth()/2;Nt[it]=Math.max(Nt[it],xe)}v(this,"afterGetOffset")}getLinePath(I){let Y=this.chart,rt=this.opposite,ot=this.offset,D=this.horiz,P=this.left+(rt?this.width:0)+ot,W=Y.chartHeight-this.bottom-(rt?this.height:0)+ot;return rt&&(I*=-1),Y.renderer.crispLine([["M",D?this.left:P,D?W:this.top],["L",D?Y.chartWidth-this.right:P,D?W:Y.chartHeight-this.bottom]],I)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(I){let Y=this.horiz,rt=this.left,ot=this.top,D=this.len,P=this.options.title,W=Y?rt:ot,lt=this.opposite,it=this.offset,vt=P.x,pt=P.y,xt=this.chart.renderer.fontMetrics(I),Ct=I?Math.max(I.getBBox(!1,0).height-xt.h-1,0):0,Tt={low:W+(Y?0:D),middle:W+D/2,high:W+(Y?D:0)}[P.align],Nt=(Y?ot+this.height:rt)+(Y?1:-1)*(lt?-1:1)*(this.axisTitleMargin||0)+[-Ct,Ct,xt.f,-Ct][this.side],gt={x:Y?Tt+vt:Nt+(lt?this.width:0)+it+vt,y:Y?Nt+pt-(lt?this.height:0)+it:Tt+pt};return v(this,"afterGetTitlePosition",{titlePosition:gt}),gt}renderMinorTick(I,Y){let rt=this.minorTicks;rt[I]||(rt[I]=new Z(this,I,"minor")),Y&&rt[I].isNew&&rt[I].render(null,!0),rt[I].render(null,!1,1)}renderTick(I,Y,rt){let ot=this.isLinked,D=this.ticks;(!ot||I>=this.min&&I<=this.max||this.grid&&this.grid.isColumn)&&(D[I]||(D[I]=new Z(this,I)),rt&&D[I].isNew&&D[I].render(Y,!0,-1),D[I].render(Y))}render(){let I,Y,rt=this,ot=rt.chart,D=rt.logarithmic,P=ot.renderer,W=rt.options,lt=rt.isLinked,it=rt.tickPositions,vt=rt.axisTitle,pt=rt.ticks,xt=rt.minorTicks,Ct=rt.alternateBands,Tt=W.stackLabels,Nt=W.alternateGridColor,gt=W.crossing,wt=rt.tickmarkOffset,Rt=rt.axisLine,jt=rt.showAxis,Zt=H(P.globalAnimation);if(rt.labelEdge.length=0,rt.overlap=!1,[pt,xt,Ct].forEach(function(ne){T(ne,function(Wt){Wt.isActive=!1})}),l(gt)){let ne=this.isXAxis?ot.yAxis[0]:ot.xAxis[0],Wt=[1,-1,-1,1][this.side];if(ne){let le=ne.toPixels(gt,!0);rt.horiz&&(le=ne.len-le),rt.offset=Wt*le}}if(rt.hasData()||lt){let ne=rt.chart.hasRendered&&rt.old&&l(rt.old.min);rt.minorTickInterval&&!rt.categories&&rt.getMinorTickPositions().forEach(function(Wt){rt.renderMinorTick(Wt,ne)}),it.length&&(it.forEach(function(Wt,le){rt.renderTick(Wt,le,ne)}),wt&&(rt.min===0||rt.single)&&(pt[-1]||(pt[-1]=new Z(rt,-1,null,!0)),pt[-1].render(-1))),Nt&&it.forEach(function(Wt,le){Y=it[le+1]!==void 0?it[le+1]+wt:rt.max-wt,le%2==0&&Wt=.5)B=Math.round(B),_=M.getLinearTickPositions(B,U,d);else if(B>=.08){let o,u,C,E,S,v,g,x=Math.floor(U);for(o=B>.3?[1,2,4]:B>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],u=x;uU&&(!L||v<=d)&&v!==void 0&&_.push(v),v>d&&(g=!0),v=S}else{let o=this.lin2log(U),u=this.lin2log(d),C=L?M.getMinorTickInterval():w.tickInterval,E=w.tickPixelInterval/(L?5:1),S=L?s/M.tickPositions.length:s;B=K(B=J(C==="auto"?null:C,this.minorAutoInterval,(u-o)*E/(S||1))),_=M.getLinearTickPositions(B,o,u).map(this.log2lin),L||(this.minorAutoInterval=B/5)}return L||(M.tickInterval=B),_}lin2log(B){return Math.pow(10,B)}log2lin(B){return Math.log(B)/Math.LN10}}q.Additions=H}(j||(j={})),j}),y(m,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[m["Core/Utilities.js"]],function(R){var j;let{erase:et,extend:K,isNumber:J}=R;return function(q){let Z;function tt(M){return this.addPlotBandOrLine(M,"plotBands")}function H(M,s){let w=this.userOptions,_=new Z(this,M);if(this.visible&&(_=_.render()),_){if(this._addedPlotLB||(this._addedPlotLB=!0,(w.plotLines||[]).concat(w.plotBands||[]).forEach(o=>{this.addPlotBandOrLine(o)})),s){let o=w[s]||[];o.push(M),w[s]=o}this.plotLinesAndBands.push(_)}return _}function X(M){return this.addPlotBandOrLine(M,"plotLines")}function B(M,s,w){w=w||this.options;let _=this.getPlotLinePath({value:s,force:!0,acrossPanes:w.acrossPanes}),o=[],u=this.horiz,C=!J(this.min)||!J(this.max)||Mthis.max&&s>this.max,E=this.getPlotLinePath({value:M,force:!0,acrossPanes:w.acrossPanes}),S,v=1,g;if(E&&_)for(C&&(g=E.toString()===_.toString(),v=0),S=0;S{var _;let w=[];for(let o of this.axes)for(let{label:u,options:C}of o.plotLinesAndBands)u&&!((_=C==null?void 0:C.label)!=null&&_.allowOverlap)&&w.push(u);return w})}),R.compose(d,s)}constructor(M,s){this.axis=M,this.options=s,this.id=s.id}render(){var mt,Et,Mt;H(this,"render");let{axis:M,options:s}=this,{horiz:w,logarithmic:_}=M,{color:o,events:u,zIndex:C=0}=s,E={},S=M.chart.renderer,v=s.to,g=s.from,x=s.value,p=s.borderWidth,l=s.label,{label:f,svgElem:b}=this,F=[],T,k=q(g)&&q(v),Q=q(x),st=!b,nt={class:"highcharts-plot-"+(k?"band ":"line ")+(s.className||"")},dt=k?"bands":"lines";if(!M.chart.styledMode&&(Q?(nt.stroke=o||"#999999",nt["stroke-width"]=U(s.width,1),s.dashStyle&&(nt.dashstyle=s.dashStyle)):k&&(nt.fill=o||"#e6e9ff",p&&(nt.stroke=s.borderColor,nt["stroke-width"]=p))),E.zIndex=C,dt+="-"+C,(T=M.plotLinesAndBandsGroups[dt])||(M.plotLinesAndBandsGroups[dt]=T=S.g("plot-"+dt).attr(E).add()),b||(this.svgElem=b=S.path().attr(nt).add(T)),q(x))F=M.getPlotLinePath({value:(mt=_==null?void 0:_.log2lin(x))!=null?mt:x,lineWidth:b.strokeWidth(),acrossPanes:s.acrossPanes});else{if(!(q(g)&&q(v)))return;F=M.getPlotBandPath((Et=_==null?void 0:_.log2lin(g))!=null?Et:g,(Mt=_==null?void 0:_.log2lin(v))!=null?Mt:v,s)}return!this.eventsAdded&&u&&(B(u,(I,Y)=>{b==null||b.on(Y,rt=>{u[Y].apply(this,[rt])})}),this.eventsAdded=!0),(st||!b.d)&&(F!=null&&F.length)?b.attr({d:F}):b&&(F?(b.show(),b.animate({d:F})):b.d&&(b.hide(),f&&(this.label=f=f.destroy()))),l&&(q(l.text)||q(l.formatter))&&(F!=null&&F.length)&&M.width>0&&M.height>0&&!F.isFlat?(l=X(zr({align:w&&k?"center":void 0,x:w?!k&&4:10,verticalAlign:!w&&k?"middle":void 0,y:w?k?16:10:k?6:-4,rotation:w&&!k?90:0},k?{inside:!0}:{}),l),this.renderLabel(l,F,k,C)):f&&f.hide(),this}renderLabel(M,s,w,_){var l;let o=this.axis,u=o.chart.renderer,C=M.inside,E=this.label;E||(this.label=E=u.text(this.getLabelText(M),0,0,M.useHTML).attr({align:M.textAlign||M.align,rotation:M.rotation,class:"highcharts-plot-"+(w?"band":"line")+"-label "+(M.className||""),zIndex:_}),o.chart.styledMode||E.css(X({fontSize:"0.8em",textOverflow:w&&!C?"":"ellipsis"},M.style)),E.add());let S=s.xBounds||[s[0][1],s[1][1],w?s[2][1]:s[0][1]],v=s.yBounds||[s[0][2],s[1][2],w?s[2][2]:s[0][2]],g=J(S),x=J(v),p=K(S)-g;E.align(M,!1,{x:g,y:x,width:p,height:K(v)-x}),(!E.alignValue||E.alignValue==="left"||q(C))&&E.css({width:(((l=M.style)==null?void 0:l.width)||(w&&C?p:E.rotation===90?o.height-(E.alignAttr.y-o.top):(M.clip?o.width:o.chart.chartWidth)-(E.alignAttr.x-o.left)))+"px"}),E.show(!0)}getLabelText(M){return q(M.formatter)?M.formatter.call(this):M.text}destroy(){tt(this.axis.plotLinesAndBands,this),delete this.axis,Z(this)}}return d}),y(m,"Core/Tooltip.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Templating.js"],m["Core/Globals.js"],m["Core/Renderer/RendererUtilities.js"],m["Core/Renderer/RendererRegistry.js"],m["Core/Utilities.js"]],function(R,j,et,K,J,q){var Z;let{animObject:tt}=R,{format:H}=j,{composed:X,doc:B,isSafari:U}=et,{distribute:d}=K,{addEvent:L,clamp:M,css:s,discardElement:w,extend:_,fireEvent:o,isArray:u,isNumber:C,isString:E,merge:S,pick:v,pushUnique:g,splat:x,syncTimeout:p}=q;class l{constructor(b,F,T){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=b,this.init(b,F),this.pointer=T}bodyFormatter(b){return b.map(function(F){let T=F.series.tooltipOptions;return(T[(F.point.formatPrefix||"point")+"Formatter"]||F.point.tooltipFormatter).call(F.point,T[(F.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(b){this.chart.series.forEach(function(F){let T=F&&F.tt;T&&(!T.isActive||b?F.tt=T.destroy():T.isActive=!1)})}defaultFormatter(b){let F,T=this.points||x(this);return(F=(F=[b.tooltipFooterHeaderFormatter(T[0])]).concat(b.bodyFormatter(T))).push(b.tooltipFooterHeaderFormatter(T[0],!0)),F}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(),w(this.container)),q.clearTimeout(this.hideTimer)}getAnchor(b,F){let T,{chart:k,pointer:Q}=this,st=k.inverted,nt=k.plotTop,dt=k.plotLeft;if((b=x(b))[0].series&&b[0].series.yAxis&&!b[0].series.yAxis.options.reversedStacks&&(b=b.slice().reverse()),this.followPointer&&F)F.chartX===void 0&&(F=Q.normalize(F)),T=[F.chartX-dt,F.chartY-nt];else if(b[0].tooltipPos)T=b[0].tooltipPos;else{let mt=0,Et=0;b.forEach(function(Mt){let I=Mt.pos(!0);I&&(mt+=I[0],Et+=I[1])}),mt/=b.length,Et/=b.length,this.shared&&b.length>1&&F&&(st?mt=F.chartX:Et=F.chartY),T=[mt-dt,Et-nt]}return T.map(Math.round)}getClassName(b,F,T){let k=this.options,Q=b.series,st=Q.options;return[k.className,"highcharts-label",T&&"highcharts-tooltip-header",F?"highcharts-tooltip-box":"highcharts-tooltip",!T&&"highcharts-color-"+v(b.colorIndex,Q.colorIndex),st&&st.className].filter(E).join(" ")}getLabel({anchorX:b,anchorY:F}={anchorX:0,anchorY:0}){let T=this,k=this.chart.styledMode,Q=this.options,st=this.split&&this.allowShared,nt=this.container,dt=this.chart.renderer;if(this.label){let mt=!this.label.hasClass("highcharts-label");(!st&&mt||st&&!mt)&&this.destroy()}if(!this.label){if(this.outside){let mt=this.chart.options.chart.style,Et=J.getRendererType();this.container=nt=et.doc.createElement("div"),nt.className="highcharts-tooltip-container",s(nt,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(mt&&mt.zIndex||0)+3)}),this.renderer=dt=new Et(nt,0,0,mt,void 0,void 0,dt.styledMode)}if(st?this.label=dt.g("tooltip"):(this.label=dt.label("",b,F,Q.shape,void 0,void 0,Q.useHTML,void 0,"tooltip").attr({padding:Q.padding,r:Q.borderRadius}),k||this.label.attr({fill:Q.backgroundColor,"stroke-width":Q.borderWidth||0}).css(Q.style).css({pointerEvents:Q.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),T.outside){let mt=this.label;[mt.xSetter,mt.ySetter].forEach((Et,Mt)=>{mt[Mt?"ySetter":"xSetter"]=I=>{Et.call(mt,T.distance),mt[Mt?"y":"x"]=I,nt&&(nt.style[Mt?"top":"left"]=`${I}px`)}})}this.label.attr({zIndex:8}).shadow(Q.shadow).add()}return nt&&!nt.parentElement&&et.doc.body.appendChild(nt),this.label}getPlayingField(){let{body:b,documentElement:F}=B,{chart:T,distance:k,outside:Q}=this;return{width:Q?Math.max(b.scrollWidth,F.scrollWidth,b.offsetWidth,F.offsetWidth,F.clientWidth)-2*k:T.chartWidth,height:Q?Math.max(b.scrollHeight,F.scrollHeight,b.offsetHeight,F.offsetHeight,F.clientHeight):T.chartHeight}}getPosition(b,F,T){var Zt,ne;let{distance:k,chart:Q,outside:st,pointer:nt}=this,{inverted:dt,plotLeft:mt,plotTop:Et,polar:Mt}=Q,{plotX:I=0,plotY:Y=0}=T,rt={},ot=dt&&T.h||0,{height:D,width:P}=this.getPlayingField(),W=nt.getChartPosition(),lt=Wt=>Wt*W.scaleX,it=Wt=>Wt*W.scaleY,vt=Wt=>{let le=Wt==="x";return[Wt,le?P:D,le?b:F].concat(st?[le?lt(b):it(F),le?W.left-k+lt(I+mt):W.top-k+it(Y+Et),0,le?P:D]:[le?b:F,le?I+mt:Y+Et,le?mt:Et,le?mt+Q.plotWidth:Et+Q.plotHeight])},pt=vt("y"),xt=vt("x"),Ct,Tt=!!T.negative;!Mt&&((ne=(Zt=Q.hoverSeries)==null?void 0:Zt.yAxis)!=null&&ne.reversed)&&(Tt=!Tt);let Nt=!this.followPointer&&v(T.ttBelow,!Mt&&!dt===Tt),gt=function(Wt,le,de,xe,be,Ye,tn){let an=st?Wt==="y"?it(k):lt(k):k,Jt=(de-xe)/2,Kt=xele?Bt:Bt+ot)}},wt=function(Wt,le,de,xe,be){if(bele-k)return!1;bele-xe/2?rt[Wt]=le-xe-2:rt[Wt]=be-de/2},Rt=function(Wt){[pt,xt]=[xt,pt],Ct=Wt},jt=()=>{gt.apply(0,pt)!==!1?wt.apply(0,xt)!==!1||Ct||(Rt(!0),jt()):Ct?rt.x=rt.y=0:(Rt(!0),jt())};return(dt&&!Mt||this.len>1)&&Rt(),jt(),rt}hide(b){let F=this;q.clearTimeout(this.hideTimer),b=v(b,this.options.hideDelay),this.isHidden||(this.hideTimer=p(function(){let T=F.getLabel();F.getLabel().animate({opacity:0},{duration:b&&150,complete:()=>{T.hide(),F.container&&F.container.remove()}}),F.isHidden=!0},b))}init(b,F){this.chart=b,this.options=F,this.crosshairs=[],this.isHidden=!0,this.split=F.split&&!b.inverted&&!b.polar,this.shared=F.shared||this.split,this.outside=v(F.outside,!!(b.scrollablePixelsX||b.scrollablePixelsY))}shouldStickOnContact(b){return!!(!this.followPointer&&this.options.stickOnContact&&(!b||this.pointer.inClass(b.target,"highcharts-tooltip")))}move(b,F,T,k){let Q=this,st=tt(!Q.isHidden&&Q.options.animation),nt=Q.followPointer||(Q.len||0)>1,dt={x:b,y:F};nt||(dt.anchorX=T,dt.anchorY=k),st.step=()=>Q.drawTracker(),Q.getLabel().animate(dt,st)}refresh(b,F){let{chart:T,options:k,pointer:Q,shared:st}=this,nt=x(b),dt=nt[0],mt=[],Et=k.format,Mt=k.formatter||this.defaultFormatter,I=T.styledMode,Y={},rt=this.allowShared;if(!k.enabled||!dt.series)return;q.clearTimeout(this.hideTimer),this.allowShared=!(!u(b)&&b.series&&b.series.noSharedTooltip),rt=rt&&!this.allowShared,this.followPointer=!this.split&&dt.series.tooltipOptions.followPointer;let ot=this.getAnchor(b,F),D=ot[0],P=ot[1];st&&this.allowShared?(Q.applyInactiveState(nt),nt.forEach(function(it){it.setState("hover"),mt.push(it.getLabelConfig())}),(Y=dt.getLabelConfig()).points=mt):Y=dt.getLabelConfig(),this.len=mt.length;let W=E(Et)?H(Et,Y,T):Mt.call(Y,this),lt=dt.series;if(this.distance=v(lt.tooltipOptions.distance,16),W===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(W,nt);else{let it=D,vt=P;if(F&&Q.isDirectTouch&&(it=F.chartX-T.plotLeft,vt=F.chartY-T.plotTop),T.polar||lt.options.clip===!1||nt.some(pt=>Q.isDirectTouch||pt.series.shouldShowTooltip(it,vt))){let pt=this.getLabel(rt&&this.tt||{});(!k.style.width||I)&&pt.css({width:(this.outside?this.getPlayingField():T.spacingBox).width+"px"}),pt.attr({class:this.getClassName(dt),text:W&&W.join?W.join(""):W}),this.outside&&pt.attr({x:M(pt.x||0,0,this.getPlayingField().width-(pt.width||0))}),I||pt.attr({stroke:k.borderColor||dt.color||lt.color||"#666666"}),this.updatePosition({plotX:D,plotY:P,negative:dt.negative,ttBelow:dt.ttBelow,h:ot[2]||0})}else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}o(this,"refresh")}renderSplit(b,F){var le;let T=this,{chart:k,chart:{chartWidth:Q,chartHeight:st,plotHeight:nt,plotLeft:dt,plotTop:mt,scrollablePixelsY:Et=0,scrollablePixelsX:Mt,styledMode:I},distance:Y,options:rt,options:{positioner:ot},pointer:D}=T,{scrollLeft:P=0,scrollTop:W=0}=((le=k.scrollablePlotArea)==null?void 0:le.scrollingContainer)||{},lt=T.outside&&typeof Mt!="number"?B.documentElement.getBoundingClientRect():{left:P,right:P+Q,top:W,bottom:W+st},it=T.getLabel(),vt=this.renderer||k.renderer,pt=!!(k.xAxis[0]&&k.xAxis[0].opposite),{left:xt,top:Ct}=D.getChartPosition(),Tt=mt+W,Nt=0,gt=nt-Et;function wt(de,xe,be,Ye,tn=!0){let an,Jt;return be?(an=pt?0:gt,Jt=M(de-Ye/2,lt.left,lt.right-Ye-(T.outside?xt:0))):(an=xe-Tt,Jt=M(Jt=tn?de-Ye-Y:de+Y,tn?Jt:lt.left,lt.right)),{x:Jt,y:an}}E(b)&&(b=[!1,b]);let Rt=b.slice(0,F.length+1).reduce(function(de,xe,be){if(xe!==!1&&xe!==""){let Ye=F[be-1]||{isHeader:!0,plotX:F[0].plotX,plotY:nt,series:{}},tn=Ye.isHeader,an=tn?T:Ye.series,Jt=an.tt=function(Ut,zt,ce){var hn;let _e=Ut,{isHeader:ye,series:qe}=zt;if(!_e){let yn={padding:rt.padding,r:rt.borderRadius};I||(yn.fill=rt.backgroundColor,yn["stroke-width"]=(hn=rt.borderWidth)!=null?hn:1),_e=vt.label("",0,0,rt[ye?"headerShape":"shape"],void 0,void 0,rt.useHTML).addClass(T.getClassName(zt,!0,ye)).attr(yn).add(it)}return _e.isActive=!0,_e.attr({text:ce}),I||_e.css(rt.style).attr({stroke:rt.borderColor||zt.color||qe.color||"#333333"}),_e}(an.tt,Ye,xe.toString()),Kt=Jt.getBBox(),te=Kt.width+Jt.strokeWidth();tn&&(Nt=Kt.height,gt+=Nt,pt&&(Tt-=Nt));let{anchorX:Ot,anchorY:Bt}=function(Ut){let zt,ce,{isHeader:_e,plotX:ye=0,plotY:qe=0,series:hn}=Ut;if(_e)zt=Math.max(dt+ye,dt),ce=mt+nt/2;else{let{xAxis:yn,yAxis:Nn}=hn;zt=yn.pos+M(ye,-Y,yn.len+Y),hn.shouldShowTooltip(0,Nn.pos-mt+qe,{ignoreX:!0})&&(ce=Nn.pos+qe)}return{anchorX:zt=M(zt,lt.left-Y,lt.right+Y),anchorY:ce}}(Ye);if(typeof Bt=="number"){let Ut=Kt.height+1,zt=ot?ot.call(T,te,Ut,Ye):wt(Ot,Bt,tn,te);de.push({align:ot?0:void 0,anchorX:Ot,anchorY:Bt,boxWidth:te,point:Ye,rank:v(zt.rank,tn?1:0),size:Ut,target:zt.y,tt:Jt,x:zt.x})}else Jt.isActive=!1}return de},[]);!ot&&Rt.some(de=>{let{outside:xe}=T,be=(xe?xt:0)+de.anchorX;return bebe})&&(Rt=Rt.map(de=>{let{x:xe,y:be}=wt(de.anchorX,de.anchorY,de.point.isHeader,de.boxWidth,!1);return _(de,{target:be,x:xe})})),T.cleanSplit(),d(Rt,gt);let jt={left:xt,right:xt};Rt.forEach(function(de){let{x:xe,boxWidth:be,isHeader:Ye}=de;!Ye&&(T.outside&&xt+xejt.right&&(jt.right=xt+xe))}),Rt.forEach(function(de){let{x:xe,anchorX:be,anchorY:Ye,pos:tn,point:{isHeader:an}}=de,Jt={visibility:tn===void 0?"hidden":"inherit",x:xe,y:(tn||0)+Tt,anchorX:be,anchorY:Ye};if(T.outside&&xe0&&(an||(Jt.x=xe+Kt,Jt.anchorX=be+Kt),an&&(Jt.x=(jt.right-jt.left)/2,Jt.anchorX=be+Kt))}de.tt.attr(Jt)});let{container:Zt,outside:ne,renderer:Wt}=T;if(ne&&Zt&&Wt){let{width:de,height:xe,x:be,y:Ye}=it.getBBox();Wt.setSize(de+be,xe+Ye,!1),Zt.style.left=jt.left+"px",Zt.style.top=Ct+"px"}U&&it.attr({opacity:it.opacity===1?.999:1})}drawTracker(){if(!this.shouldStickOnContact()){this.tracker&&(this.tracker=this.tracker.destroy());return}let b=this.chart,F=this.label,T=this.shared?b.hoverPoints:b.hoverPoint;if(!F||!T)return;let k={x:0,y:0,width:0,height:0},Q=this.getAnchor(T),st=F.getBBox();Q[0]+=b.plotLeft-(F.translateX||0),Q[1]+=b.plotTop-(F.translateY||0),k.x=Math.min(0,Q[0]),k.y=Math.min(0,Q[1]),k.width=Q[0]<0?Math.max(Math.abs(Q[0]),st.width-Q[0]):Math.max(Math.abs(Q[0]),st.width),k.height=Q[1]<0?Math.max(Math.abs(Q[1]),st.height-Math.abs(Q[1])):Math.max(Math.abs(Q[1]),st.height),this.tracker?this.tracker.attr(k):(this.tracker=F.renderer.rect(k).addClass("highcharts-tracker").add(F),b.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(b){return b.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}"')}tooltipFooterHeaderFormatter(b,F){let T=b.series,k=T.tooltipOptions,Q=T.xAxis,st=Q&&Q.dateTime,nt={isFooter:F,labelConfig:b},dt=k.xDateFormat,mt=k[F?"footerFormat":"headerFormat"];return o(this,"headerFormatter",nt,function(Et){st&&!dt&&C(b.key)&&(dt=st.getXDateFormat(b.key,k.dateTimeLabelFormats)),st&&dt&&(b.point&&b.point.tooltipDateKeys||["key"]).forEach(function(Mt){mt=mt.replace("{point."+Mt+"}","{point."+Mt+":"+dt+"}")}),T.chart.styledMode&&(mt=this.styledModeFormat(mt)),Et.text=H(mt,{point:b,series:T},this.chart)}),nt.text}update(b){this.destroy(),this.init(this.chart,S(!0,this.options,b))}updatePosition(b){let{chart:F,container:T,distance:k,options:Q,pointer:st,renderer:nt}=this,{height:dt=0,width:mt=0}=this.getLabel(),{left:Et,top:Mt,scaleX:I,scaleY:Y}=st.getChartPosition(),rt=(Q.positioner||this.getPosition).call(this,mt,dt,b),ot=(b.plotX||0)+F.plotLeft,D=(b.plotY||0)+F.plotTop,P;nt&&T&&(Q.positioner&&(rt.x+=Et-k,rt.y+=Mt-k),P=(Q.borderWidth||0)+2*k+2,nt.setSize(mt+P,dt+P,!1),(I!==1||Y!==1)&&(s(T,{transform:`scale(${I}, ${Y})`}),ot*=I,D*=Y),ot+=Et-rt.x,D+=Mt-rt.y),this.move(Math.round(rt.x),Math.round(rt.y||0),ot,D)}}return(Z=l||(l={})).compose=function(f){g(X,"Core.Tooltip")&&L(f,"afterInit",function(){let b=this.chart;b.options.tooltip&&(b.tooltip=new Z(b,b.options.tooltip,this))})},l}),y(m,"Core/Series/Point.js",[m["Core/Renderer/HTML/AST.js"],m["Core/Animation/AnimationUtilities.js"],m["Core/Defaults.js"],m["Core/Templating.js"],m["Core/Utilities.js"]],function(R,j,et,K,J){let{animObject:q}=j,{defaultOptions:Z}=et,{format:tt}=K,{addEvent:H,crisp:X,erase:B,extend:U,fireEvent:d,getNestedProperty:L,isArray:M,isFunction:s,isNumber:w,isObject:_,merge:o,pick:u,syncTimeout:C,removeEvent:E,uniqueKey:S}=J;class v{animateBeforeDestroy(){let x=this,p={x:x.startXPos,opacity:0},l=x.getGraphicalProps();l.singular.forEach(function(f){x[f]=x[f].animate(f==="dataLabel"?{x:x[f].startXPos,y:x[f].startYPos,opacity:0}:p)}),l.plural.forEach(function(f){x[f].forEach(function(b){b.element&&b.animate(U({x:x.startXPos},b.startYPos?{x:b.startXPos,y:b.startYPos}:{}))})})}applyOptions(x,p){let l=this.series,f=l.options.pointValKey||l.pointValKey;return U(this,x=v.prototype.optionsToObject.call(this,x)),this.options=this.options?U(this.options,x):x,x.group&&delete this.group,x.dataLabels&&delete this.dataLabels,f&&(this.y=v.prototype.getNestedProperty.call(this,f)),this.selected&&(this.state="select"),"name"in this&&p===void 0&&l.xAxis&&l.xAxis.hasNames&&(this.x=l.xAxis.nameToX(this)),this.x===void 0&&l?this.x=p!=null?p:l.autoIncrement():w(x.x)&&l.options.relativeXValue&&(this.x=l.autoIncrement(x.x)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let x=this,p=x.series,l=p.chart,f=p.options.dataSorting,b=l.hoverPoints,F=q(x.series.chart.renderer.globalAnimation),T=()=>{for(let k in(x.graphic||x.graphics||x.dataLabel||x.dataLabels)&&(E(x),x.destroyElements()),x)delete x[k]};x.legendItem&&l.legend.destroyItem(x),b&&(x.setState(),B(b,x),b.length||(l.hoverPoints=null)),x===l.hoverPoint&&x.onMouseOut(),f&&f.enabled?(this.animateBeforeDestroy(),C(T,F.duration)):T(),l.pointCount--}this.destroyed=!0}destroyElements(x){let p=this,l=p.getGraphicalProps(x);l.singular.forEach(function(f){p[f]=p[f].destroy()}),l.plural.forEach(function(f){p[f].forEach(function(b){b&&b.element&&b.destroy()}),delete p[f]})}firePointEvent(x,p,l){let f=this,b=this.series.options;f.manageEvent(x),x==="click"&&b.allowPointSelect&&(l=function(F){!f.destroyed&&f.select&&f.select(null,F.ctrlKey||F.metaKey||F.shiftKey)}),d(f,x,p,l)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(x){let p,l,f=this,b=[],F={singular:[],plural:[]};for((x=x||{graphic:1,dataLabel:1}).graphic&&b.push("graphic","connector"),x.dataLabel&&b.push("dataLabel","dataLabelPath","dataLabelUpper"),l=b.length;l--;)f[p=b[l]]&&F.singular.push(p);return["graphic","dataLabel"].forEach(function(T){let k=T+"s";x[T]&&f[k]&&F.plural.push(k)}),F}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(x){return x?x.indexOf("custom.")===0?L(x,this.options):this[x]:void 0}getZone(){let x=this.series,p=x.zones,l=x.zoneAxis||"y",f,b=0;for(f=p[0];this[l]>=f.value;)f=p[++b];return this.nonZonedColor||(this.nonZonedColor=this.color),f&&f.color&&!this.options.color?this.color=f.color:this.color=this.nonZonedColor,f}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(x,p,l){var f;this.formatPrefix="point",this.visible=!0,this.series=x,this.applyOptions(p,l),(f=this.id)!=null||(this.id=S()),this.resolveColor(),x.chart.pointCount++,d(this,"afterInit")}isValid(){return(w(this.x)||this.x instanceof Date)&&w(this.y)}optionsToObject(x){let p=this.series,l=p.options.keys,f=l||p.pointArrayMap||["y"],b=f.length,F={},T,k=0,Q=0;if(w(x)||x===null)F[f[0]]=x;else if(M(x))for(!l&&x.length>b&&((T=typeof x[0])=="string"?F.name=x[0]:T==="number"&&(F.x=x[0]),k++);Q0?v.prototype.setNestedProperty(F,x[k],f[Q]):F[f[Q]]=x[k]),k++,Q++;else typeof x=="object"&&(F=x,x.dataLabels&&(p.hasDataLabels=()=>!0),x.marker&&(p._hasPointMarkers=!0));return F}pos(x,p=this.plotY){if(!this.destroyed){let{plotX:l,series:f}=this,{chart:b,xAxis:F,yAxis:T}=f,k=0,Q=0;if(w(l)&&w(p))return x&&(k=F?F.pos:b.plotLeft,Q=T?T.pos:b.plotTop),b.inverted&&F&&T?[T.len-p+Q,F.len-l+k]:[l+k,p+Q]}}resolveColor(){let x=this.series,p=x.chart.options.chart,l=x.chart.styledMode,f,b,F=p.colorCount,T;delete this.nonZonedColor,x.options.colorByPoint?(l||(f=(b=x.options.colors||x.chart.options.colors)[x.colorCounter],F=b.length),T=x.colorCounter,x.colorCounter++,x.colorCounter===F&&(x.colorCounter=0)):(l||(f=x.color),T=x.colorIndex),this.colorIndex=u(this.options.colorIndex,T),this.color=u(this.options.color,f)}setNestedProperty(x,p,l){return l.split(".").reduce(function(f,b,F,T){let k=T.length-1===F;return f[b]=k?p:_(f[b],!0)?f[b]:{},f[b]},x),x}shouldDraw(){return!this.isNull}tooltipFormatter(x){let p=this.series,l=p.tooltipOptions,f=u(l.valueDecimals,""),b=l.valuePrefix||"",F=l.valueSuffix||"";return p.chart.styledMode&&(x=p.chart.tooltip.styledModeFormat(x)),(p.pointArrayMap||["y"]).forEach(function(T){T="{point."+T,(b||F)&&(x=x.replace(RegExp(T+"}","g"),b+T+"}"+F)),x=x.replace(RegExp(T+"}","g"),T+":,."+f+"f}")}),tt(x,{point:this,series:this.series},p.chart)}update(x,p,l,f){let b,F=this,T=F.series,k=F.graphic,Q=T.chart,st=T.options;function nt(){F.applyOptions(x);let dt=k&&F.hasMockGraphic,mt=F.y===null?!dt:dt;k&&mt&&(F.graphic=k.destroy(),delete F.hasMockGraphic),_(x,!0)&&(k&&k.element&&x&&x.marker&&x.marker.symbol!==void 0&&(F.graphic=k.destroy()),x!=null&&x.dataLabels&&F.dataLabel&&(F.dataLabel=F.dataLabel.destroy())),b=F.index,T.updateParallelArrays(F,b),st.data[b]=_(st.data[b],!0)||_(x,!0)?F.options:u(x,st.data[b]),T.isDirty=T.isDirtyData=!0,!T.fixedBox&&T.hasCartesianSeries&&(Q.isDirtyBox=!0),st.legendType==="point"&&(Q.isDirtyLegend=!0),p&&Q.redraw(l)}p=u(p,!0),f===!1?nt():F.firePointEvent("update",{options:x},nt)}remove(x,p){this.series.removePoint(this.series.data.indexOf(this),x,p)}select(x,p){let l=this,f=l.series,b=f.chart;x=u(x,!l.selected),this.selectedStaging=x,l.firePointEvent(x?"select":"unselect",{accumulate:p},function(){l.selected=l.options.selected=x,f.options.data[f.data.indexOf(l)]=l.options,l.setState(x&&"select"),p||b.getSelectedPoints().forEach(function(F){let T=F.series;F.selected&&F!==l&&(F.selected=F.options.selected=!1,T.options.data[T.data.indexOf(F)]=F.options,F.setState(b.hoverPoints&&T.options.inactiveOtherPoints?"inactive":""),F.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(x){let{inverted:p,pointer:l}=this.series.chart;l&&(x=x?l.normalize(x):l.getChartCoordinatesFromPoint(this,p),l.runPointActions(x,this))}onMouseOut(){let x=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(x.hoverPoints||[]).forEach(function(p){p.setState()}),x.hoverPoints=x.hoverPoint=null}manageEvent(x){var f,b,F,T,k,Q;let p=o(this.series.options.point,this.options),l=(f=p.events)==null?void 0:f[x];s(l)&&(!((b=this.hcEvents)!=null&&b[x])||((T=(F=this.hcEvents)==null?void 0:F[x])==null?void 0:T.map(st=>st.fn).indexOf(l))===-1)?((k=this.importedUserEvent)==null||k.call(this),this.importedUserEvent=H(this,x,l)):this.importedUserEvent&&!l&&((Q=this.hcEvents)!=null&&Q[x])&&(E(this,x),delete this.hcEvents[x],Object.keys(this.hcEvents)||delete this.importedUserEvent)}setState(x,p){var W;let l=this.series,f=this.state,b=l.options.states[x||"normal"]||{},F=Z.plotOptions[l.type].marker&&l.options.marker,T=F&&F.enabled===!1,k=F&&F.states&&F.states[x||"normal"]||{},Q=k.enabled===!1,st=this.marker||{},nt=l.chart,dt=F&&l.markerAttribs,mt=l.halo,Et,Mt,I,Y=l.stateMarkerGraphic,rt;if((x=x||"")===this.state&&!p||this.selected&&x!=="select"||b.enabled===!1||x&&(Q||T&&k.enabled===!1)||x&&st.states&&st.states[x]&&st.states[x].enabled===!1)return;if(this.state=x,dt&&(Et=l.markerAttribs(this,x)),this.graphic&&!this.hasMockGraphic){if(f&&this.graphic.removeClass("highcharts-point-"+f),x&&this.graphic.addClass("highcharts-point-"+x),!nt.styledMode){Mt=l.pointAttribs(this,x),I=u(nt.options.chart.animation,b.animation);let lt=Mt.opacity;l.options.inactiveOtherPoints&&w(lt)&&(this.dataLabels||[]).forEach(function(it){it&&!it.hasClass("highcharts-data-label-hidden")&&(it.animate({opacity:lt},I),it.connector&&it.connector.animate({opacity:lt},I))}),this.graphic.animate(Mt,I)}Et&&this.graphic.animate(Et,u(nt.options.chart.animation,k.animation,F.animation)),Y&&Y.hide()}else x&&k&&(rt=st.symbol||l.symbol,Y&&Y.currentSymbol!==rt&&(Y=Y.destroy()),Et&&(Y?Y[p?"animate":"attr"]({x:Et.x,y:Et.y}):rt&&(l.stateMarkerGraphic=Y=nt.renderer.symbol(rt,Et.x,Et.y,Et.width,Et.height).add(l.markerGroup),Y.currentSymbol=rt)),!nt.styledMode&&Y&&this.state!=="inactive"&&Y.attr(l.pointAttribs(this,x))),Y&&(Y[x&&this.isInside?"show":"hide"](),Y.element.point=this,Y.addClass(this.getClassName(),!0));let ot=b.halo,D=this.graphic||Y,P=D&&D.visibility||"inherit";ot&&ot.size&&D&&P!=="hidden"&&!this.isCluster?(mt||(l.halo=mt=nt.renderer.path().add(D.parentGroup)),mt.show()[p?"animate":"attr"]({d:this.haloPath(ot.size)}),mt.attr({class:"highcharts-halo highcharts-color-"+u(this.colorIndex,l.colorIndex)+(this.className?" "+this.className:""),visibility:P,zIndex:-1}),mt.point=this,nt.styledMode||mt.attr(U({fill:this.color||l.color,"fill-opacity":ot.opacity},R.filterUserAttributes(ot.attributes||{})))):(W=mt==null?void 0:mt.point)!=null&&W.haloPath&&!mt.point.destroyed&&mt.animate({d:mt.point.haloPath(0)},null,mt.hide),d(this,"afterSetState",{state:x})}haloPath(x){let p=this.pos();return p?this.series.chart.renderer.symbols.circle(X(p[0],1)-x,p[1]-x,2*x,2*x):[]}}return v}),y(m,"Core/Pointer.js",[m["Core/Color/Color.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j,et){var K;let{parse:J}=R,{charts:q,composed:Z,isTouchDevice:tt}=j,{addEvent:H,attr:X,css:B,extend:U,find:d,fireEvent:L,isNumber:M,isObject:s,objectEach:w,offset:_,pick:o,pushUnique:u,splat:C}=et;class E{applyInactiveState(v){let g=[],x;(v||[]).forEach(function(p){x=p.series,g.push(x),x.linkedParent&&g.push(x.linkedParent),x.linkedSeries&&(g=g.concat(x.linkedSeries)),x.navigatorSeries&&g.push(x.navigatorSeries)}),this.chart.series.forEach(function(p){g.indexOf(p)===-1?p.setState("inactive",!0):p.options.inactiveOtherPoints&&p.setAllPointsToState("inactive")})}destroy(){let v=this;this.eventsToUnbind.forEach(g=>g()),this.eventsToUnbind=[],!j.chartCount&&(E.unbindDocumentMouseUp&&E.unbindDocumentMouseUp.forEach(g=>g()),E.unbindDocumentTouchEnd&&(E.unbindDocumentTouchEnd=E.unbindDocumentTouchEnd())),clearInterval(v.tooltipTimeout),w(v,function(g,x){v[x]=void 0})}getSelectionMarkerAttrs(v,g){let x={args:{chartX:v,chartY:g},attrs:{},shapeType:"rect"};return L(this,"getSelectionMarkerAttrs",x,p=>{let l,{chart:f,zoomHor:b,zoomVert:F}=this,{mouseDownX:T=0,mouseDownY:k=0}=f,Q=p.attrs;Q.x=f.plotLeft,Q.y=f.plotTop,Q.width=b?1:f.plotWidth,Q.height=F?1:f.plotHeight,b&&(l=v-T,Q.width=Math.max(1,Math.abs(l)),Q.x=(l>0?0:l)+T),F&&(l=g-k,Q.height=Math.max(1,Math.abs(l)),Q.y=(l>0?0:l)+k)}),x}drag(v){let{chart:g}=this,{mouseDownX:x=0,mouseDownY:p=0}=g,{panning:l,panKey:f,selectionMarkerFill:b}=g.options.chart,F=g.plotLeft,T=g.plotTop,k=g.plotWidth,Q=g.plotHeight,st=s(l)?l.enabled:l,nt=f&&v[`${f}Key`],dt=v.chartX,mt=v.chartY,Et,Mt=this.selectionMarker;if((!Mt||!Mt.touch)&&(dtF+k&&(dt=F+k),mtT+Q&&(mt=T+Q),this.hasDragged=Math.sqrt(Math.pow(x-dt,2)+Math.pow(p-mt,2)),this.hasDragged>10)){Et=g.isInsidePlot(x-F,p-T,{visiblePlotOnly:!0});let{shapeType:I,attrs:Y}=this.getSelectionMarkerAttrs(dt,mt);(g.hasCartesianSeries||g.mapView)&&this.hasZoom&&Et&&!nt&&!Mt&&(this.selectionMarker=Mt=g.renderer[I](),Mt.attr({class:"highcharts-selection-marker",zIndex:7}).add(),g.styledMode||Mt.attr({fill:b||J("#334eff").setOpacity(.25).get()})),Mt&&Mt.attr(Y),Et&&!Mt&&st&&g.pan(v,l)}}dragStart(v){let g=this.chart;g.mouseIsDown=v.type,g.cancelClick=!1,g.mouseDownX=v.chartX,g.mouseDownY=v.chartY}getSelectionBox(v){let g={args:{marker:v},result:v.getBBox()};return L(this,"getSelectionBox",g),g.result}drop(v){let g,{chart:x,selectionMarker:p}=this;for(let l of x.axes)l.isPanning&&(l.isPanning=!1,(l.options.startOnTick||l.options.endOnTick||l.series.some(f=>f.boosted))&&(l.forceRedraw=!0,l.setExtremes(l.userMin,l.userMax,!1),g=!0));if(g&&x.redraw(),p&&v){if(this.hasDragged){let l=this.getSelectionBox(p);x.transform({axes:x.axes.filter(f=>f.zoomEnabled&&(f.coll==="xAxis"&&this.zoomX||f.coll==="yAxis"&&this.zoomY)),selection:zr({originalEvent:v,xAxis:[],yAxis:[]},l),from:l})}M(x.index)&&(this.selectionMarker=p.destroy())}x&&M(x.index)&&(B(x.container,{cursor:x._cursor}),x.cancelClick=this.hasDragged>10,x.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(v,g,x){let p;return v.forEach(function(l){let f=!(l.noSharedTooltip&&g)&&0>l.options.findNearestPointBy.indexOf("y"),b=l.searchPoint(x,f);s(b,!0)&&b.series&&(!s(p,!0)||function(F,T){var nt,dt;let k=F.distX-T.distX,Q=F.dist-T.dist,st=((nt=T.series.group)==null?void 0:nt.zIndex)-((dt=F.series.group)==null?void 0:dt.zIndex);return k!==0&&g?k:Q!==0?Q:st!==0?st:F.series.index>T.series.index?-1:1}(p,b)>0)&&(p=b)}),p}getChartCoordinatesFromPoint(v,g){var f,b;let{xAxis:x,yAxis:p}=v.series,l=v.shapeArgs;if(x&&p){let F=(b=(f=v.clientX)!=null?f:v.plotX)!=null?b:0,T=v.plotY||0;return v.isNode&&l&&M(l.x)&&M(l.y)&&(F=l.x,T=l.y),g?{chartX:p.len+p.pos-T,chartY:x.len+x.pos-F}:{chartX:F+x.pos,chartY:T+p.pos}}if(l&&l.x&&l.y)return{chartX:l.x,chartY:l.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:v}=this.chart,g=_(v);this.chartPosition={left:g.left,top:g.top,scaleX:1,scaleY:1};let{offsetHeight:x,offsetWidth:p}=v;return p>2&&x>2&&(this.chartPosition.scaleX=g.width/p,this.chartPosition.scaleY=g.height/x),this.chartPosition}getCoordinates(v){let g={xAxis:[],yAxis:[]};for(let x of this.chart.axes)g[x.isXAxis?"xAxis":"yAxis"].push({axis:x,value:x.toValue(v[x.horiz?"chartX":"chartY"])});return g}getHoverData(v,g,x,p,l,f){let b=[],F=function(nt){return nt.visible&&!(!l&&nt.directTouch)&&o(nt.options.enableMouseTracking,!0)},T=g,k,Q={chartX:f?f.chartX:void 0,chartY:f?f.chartY:void 0,shared:l};L(this,"beforeGetHoverData",Q),k=T&&!T.stickyTracking?[T]:x.filter(nt=>nt.stickyTracking&&(Q.filter||F)(nt));let st=p&&v||!f?v:this.findNearestKDPoint(k,l,f);return T=st&&st.series,st&&(l&&!T.noSharedTooltip?(k=x.filter(function(nt){return Q.filter?Q.filter(nt):F(nt)&&!nt.noSharedTooltip})).forEach(function(nt){let dt=d(nt.points,function(mt){return mt.x===st.x&&!mt.isNull});s(dt)&&(nt.boosted&&nt.boost&&(dt=nt.boost.getPoint(dt)),b.push(dt))}):b.push(st)),L(this,"afterGetHoverData",Q={hoverPoint:st}),{hoverPoint:Q.hoverPoint,hoverSeries:T,hoverPoints:b}}getPointFromEvent(v){let g=v.target,x;for(;g&&!x;)x=g.point,g=g.parentNode;return x}onTrackerMouseOut(v){let g=this.chart,x=v.relatedTarget,p=g.hoverSeries;this.isDirectTouch=!1,!p||!x||p.stickyTracking||this.inClass(x,"highcharts-tooltip")||this.inClass(x,"highcharts-series-"+p.index)&&this.inClass(x,"highcharts-tracker")||p.onMouseOut()}inClass(v,g){let x=v,p;for(;x;){if(p=X(x,"class")){if(p.indexOf(g)!==-1)return!0;if(p.indexOf("highcharts-container")!==-1)return!1}x=x.parentElement}}constructor(v,g){var x;this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=g,this.chart=v,this.runChartClick=!!((x=g.chart.events)!=null&&x.click),this.pinchDown=[],this.setDOMEvents(),L(this,"afterInit")}normalize(v,g){let x=v.touches,p=x?x.length?x.item(0):o(x.changedTouches,v.changedTouches)[0]:v;g||(g=this.getChartPosition());let l=p.pageX-g.left,f=p.pageY-g.top;return U(v,{chartX:Math.round(l/=g.scaleX),chartY:Math.round(f/=g.scaleY)})}onContainerClick(v){let g=this.chart,x=g.hoverPoint,p=this.normalize(v),l=g.plotLeft,f=g.plotTop;!g.cancelClick&&(x&&this.inClass(p.target,"highcharts-tracker")?(L(x.series,"click",U(p,{point:x})),g.hoverPoint&&x.firePointEvent("click",p)):(U(p,this.getCoordinates(p)),g.isInsidePlot(p.chartX-l,p.chartY-f,{visiblePlotOnly:!0})&&L(g,"click",p)))}onContainerMouseDown(v){var x;let g=(1&(v.buttons||v.button))==1;v=this.normalize(v),j.isFirefox&&v.button!==0&&this.onContainerMouseMove(v),(v.button===void 0||g)&&(this.zoomOption(v),g&&((x=v.preventDefault)==null||x.call(v)),this.dragStart(v))}onContainerMouseLeave(v){let{pointer:g}=q[o(E.hoverChartIndex,-1)]||{};v=this.normalize(v),this.onContainerMouseMove(v),g&&!this.inClass(v.relatedTarget,"highcharts-tooltip")&&(g.reset(),g.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(v){let g=this.chart,x=g.tooltip,p=this.normalize(v);this.setHoverChartIndex(v),(g.mouseIsDown==="mousedown"||this.touchSelect(p))&&this.drag(p),!g.openMenu&&(this.inClass(p.target,"highcharts-tracker")||g.isInsidePlot(p.chartX-g.plotLeft,p.chartY-g.plotTop,{visiblePlotOnly:!0}))&&!(x&&x.shouldStickOnContact(p))&&(this.inClass(p.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(p))}onDocumentTouchEnd(v){this.onDocumentMouseUp(v)}onContainerTouchMove(v){this.touchSelect(v)?this.onContainerMouseMove(v):this.touch(v)}onContainerTouchStart(v){this.touchSelect(v)?this.onContainerMouseDown(v):(this.zoomOption(v),this.touch(v,!0))}onDocumentMouseMove(v){let g=this.chart,x=g.tooltip,p=this.chartPosition,l=this.normalize(v,p);!p||g.isInsidePlot(l.chartX-g.plotLeft,l.chartY-g.plotTop,{visiblePlotOnly:!0})||x&&x.shouldStickOnContact(l)||l.target!==g.container.ownerDocument&&this.inClass(l.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(v){var g,x;(x=(g=q[o(E.hoverChartIndex,-1)])==null?void 0:g.pointer)==null||x.drop(v)}pinch(v){let g=this,{chart:x,hasZoom:p,lastTouches:l}=g,f=[].map.call(v.touches||[],Q=>g.normalize(Q)),b=f.length,F=b===1&&(g.inClass(v.target,"highcharts-tracker")&&x.runTrackerClick||g.runChartClick),T=x.tooltip,k=b===1&&o(T==null?void 0:T.options.followTouchMove,!0);b>1?g.initiated=!0:k&&(g.initiated=!1),p&&g.initiated&&!F&&v.cancelable!==!1&&v.preventDefault(),v.type==="touchstart"?(g.pinchDown=f,g.res=!0,x.mouseDownX=v.chartX):k?this.runPointActions(g.normalize(v)):l&&(L(x,"touchpan",{originalEvent:v,touches:f},()=>{let Q=st=>{let nt=st[0],dt=st[1]||nt;return{x:nt.chartX,y:nt.chartY,width:dt.chartX-nt.chartX,height:dt.chartY-nt.chartY}};x.transform({axes:x.axes.filter(st=>st.zoomEnabled&&(this.zoomHor&&st.horiz||this.zoomVert&&!st.horiz)),to:Q(f),from:Q(l),trigger:v.type})}),g.res&&(g.res=!1,this.reset(!1,0))),g.lastTouches=f}reset(v,g){let x=this.chart,p=x.hoverSeries,l=x.hoverPoint,f=x.hoverPoints,b=x.tooltip,F=b&&b.shared?f:l;v&&F&&C(F).forEach(function(T){T.series.isCartesian&&T.plotX===void 0&&(v=!1)}),v?b&&F&&C(F).length&&(b.refresh(F),b.shared&&f?f.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))}):l&&(l.setState(l.state,!0),x.axes.forEach(function(T){T.crosshair&&l.series[T.coll]===T&&T.drawCrosshair(null,l)}))):(l&&l.onMouseOut(),f&&f.forEach(function(T){T.setState()}),p&&p.onMouseOut(),b&&b.hide(g),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),x.axes.forEach(function(T){T.hideCrosshair()}),x.hoverPoints=x.hoverPoint=void 0)}runPointActions(v,g,x){let p=this.chart,l=p.series,f=p.tooltip&&p.tooltip.options.enabled?p.tooltip:void 0,b=!!f&&f.shared,F=g||p.hoverPoint,T=F&&F.series||p.hoverSeries,k=(!v||v.type!=="touchmove")&&(!!g||T&&T.directTouch&&this.isDirectTouch),Q=this.getHoverData(F,T,l,k,b,v);F=Q.hoverPoint,T=Q.hoverSeries;let st=Q.hoverPoints,nt=T&&T.tooltipOptions.followPointer&&!T.tooltipOptions.split,dt=b&&T&&!T.noSharedTooltip;if(F&&(x||F!==p.hoverPoint||f&&f.isHidden)){if((p.hoverPoints||[]).forEach(function(mt){st.indexOf(mt)===-1&&mt.setState()}),p.hoverSeries!==T&&T.onMouseOver(),this.applyInactiveState(st),(st||[]).forEach(function(mt){mt.setState("hover")}),p.hoverPoint&&p.hoverPoint.firePointEvent("mouseOut"),!F.series)return;p.hoverPoints=st,p.hoverPoint=F,F.firePointEvent("mouseOver",void 0,()=>{f&&F&&f.refresh(dt?st:F,v)})}else if(nt&&f&&!f.isHidden){let mt=f.getAnchor([{}],v);p.isInsidePlot(mt[0],mt[1],{visiblePlotOnly:!0})&&f.updatePosition({plotX:mt[0],plotY:mt[1]})}this.unDocMouseMove||(this.unDocMouseMove=H(p.container.ownerDocument,"mousemove",mt=>{var Et,Mt,I;return(I=(Mt=q[(Et=E.hoverChartIndex)!=null?Et:-1])==null?void 0:Mt.pointer)==null?void 0:I.onDocumentMouseMove(mt)}),this.eventsToUnbind.push(this.unDocMouseMove)),p.axes.forEach(function(mt){let Et,Mt=o((mt.crosshair||{}).snap,!0);!Mt||(Et=p.hoverPoint)&&Et.series[mt.coll]===mt||(Et=d(st,I=>I.series&&I.series[mt.coll]===mt)),Et||!Mt?mt.drawCrosshair(v,Et):mt.hideCrosshair()})}setDOMEvents(){let v=this.chart.container,g=v.ownerDocument;v.onmousedown=this.onContainerMouseDown.bind(this),v.onmousemove=this.onContainerMouseMove.bind(this),v.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(H(v,"mouseenter",this.onContainerMouseEnter.bind(this)),H(v,"mouseleave",this.onContainerMouseLeave.bind(this))),E.unbindDocumentMouseUp||(E.unbindDocumentMouseUp=[]),E.unbindDocumentMouseUp.push(H(g,"mouseup",this.onDocumentMouseUp.bind(this)));let x=this.chart.renderTo.parentElement;for(;x&&x.tagName!=="BODY";)this.eventsToUnbind.push(H(x,"scroll",()=>{delete this.chartPosition})),x=x.parentElement;this.eventsToUnbind.push(H(v,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),H(v,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),E.unbindDocumentTouchEnd||(E.unbindDocumentTouchEnd=H(g,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),H(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){var l,f;if(!tt)return;let v=this.pointerCaptureEventsToUnbind,g=this.chart,x=g.container,p=o((l=g.options.tooltip)==null?void 0:l.followTouchMove,!0)&&g.series.some(b=>b.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&p?(v.push(H(x,"pointerdown",b=>{var F,T;(F=b.target)!=null&&F.hasPointerCapture(b.pointerId)&&((T=b.target)==null||T.releasePointerCapture(b.pointerId))}),H(x,"pointermove",b=>{var F,T;(T=(F=g.pointer)==null?void 0:F.getPointFromEvent(b))==null||T.onMouseOver(b)})),g.styledMode||B(x,{"touch-action":"none"}),x.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!p&&(v.forEach(b=>b()),v.length=0,g.styledMode||B(x,{"touch-action":o((f=g.options.chart.style)==null?void 0:f["touch-action"],"manipulation")}),x.className=x.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(v){var p;let g=this.chart,x=j.charts[o(E.hoverChartIndex,-1)];if(x&&x!==g){let l={relatedTarget:g.container};v&&!(v!=null&&v.relatedTarget)&&(v=zr(zr({},l),v)),(p=x.pointer)==null||p.onContainerMouseLeave(v||l)}x&&x.mouseIsDown||(E.hoverChartIndex=g.index)}touch(v,g){let x,{chart:p,pinchDown:l=[]}=this;this.setHoverChartIndex(),(v=this.normalize(v)).touches.length===1?p.isInsidePlot(v.chartX-p.plotLeft,v.chartY-p.plotTop,{visiblePlotOnly:!0})&&!p.openMenu?(g&&this.runPointActions(v),v.type==="touchmove"&&(x=!!l[0]&&Math.pow(l[0].chartX-v.chartX,2)+Math.pow(l[0].chartY-v.chartY,2)>=16),o(x,!0)&&this.pinch(v)):g&&this.reset():v.touches.length===2&&this.pinch(v)}touchSelect(v){return!!(this.chart.zooming.singleTouch&&v.touches&&v.touches.length===1)}zoomOption(v){let g=this.chart,x=g.inverted,p=g.zooming.type||"",l,f;/touch/.test(v.type)&&(p=o(g.zooming.pinchType,p)),this.zoomX=l=/x/.test(p),this.zoomY=f=/y/.test(p),this.zoomHor=l&&!x||f&&x,this.zoomVert=f&&!x||l&&x,this.hasZoom=l||f}}return(K=E||(E={})).compose=function(S){u(Z,"Core.Pointer")&&H(S,"beforeRender",function(){this.pointer=new K(this,this.options)})},E}),y(m,"Core/Legend/LegendSymbol.js",[m["Core/Utilities.js"]],function(R){var j;let{extend:et,merge:K,pick:J}=R;return function(q){function Z(tt,H,X){var x,p;let B=this.legendItem=this.legendItem||{},{chart:U,options:d}=this,{baseline:L=0,symbolWidth:M,symbolHeight:s}=tt,w=this.symbol||"circle",_=s/2,o=U.renderer,u=B.group,C=L-Math.round((((x=tt.fontMetrics)==null?void 0:x.b)||s)*(X?.4:.3)),E={},S,v=d.marker,g=0;if(U.styledMode||(E["stroke-width"]=Math.min(d.lineWidth||0,24),d.dashStyle?E.dashstyle=d.dashStyle:d.linecap==="square"||(E["stroke-linecap"]="round")),B.line=o.path().addClass("highcharts-graph").attr(E).add(u),X&&(B.area=o.path().addClass("highcharts-area").add(u)),E["stroke-linecap"]&&(g=Math.min(B.line.strokeWidth(),M)/2),M){let l=[["M",g,C],["L",M-g,C]];B.line.attr({d:l}),(p=B.area)==null||p.attr({d:[...l,["L",M-g,L],["L",g,L]]})}if(v&&v.enabled!==!1&&M){let l=Math.min(J(v.radius,_),_);w.indexOf("url")===0&&(v=K(v,{width:s,height:s}),l=0),B.symbol=S=o.symbol(w,M/2-l,C-l,2*l,2*l,et({context:"legend"},v)).addClass("highcharts-point").add(u),S.isMarker=!0}}q.areaMarker=function(tt,H){Z.call(this,tt,H,!0)},q.lineMarker=Z,q.rectangle=function(tt,H){let X=H.legendItem||{},B=tt.options,U=tt.symbolHeight,d=B.squareSymbol,L=d?U:tt.symbolWidth;X.symbol=this.chart.renderer.rect(d?(tt.symbolWidth-U)/2:0,tt.baseline-U+1,L,U,J(tt.options.symbolRadius,U/2)).addClass("highcharts-point").attr({zIndex:3}).add(X.group)}}(j||(j={})),j}),y(m,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:R}=this.series.chart;return typeof this.y!="number"?"":R(this.y,-1)},padding:5,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"}}),y(m,"Core/Series/SeriesRegistry.js",[m["Core/Globals.js"],m["Core/Defaults.js"],m["Core/Series/Point.js"],m["Core/Utilities.js"]],function(R,j,et,K){var J;let{defaultOptions:q}=j,{extend:Z,extendClass:tt,merge:H}=K;return function(X){function B(U,d){let L=q.plotOptions||{},M=d.defaultOptions,s=d.prototype;return s.type=U,s.pointClass||(s.pointClass=et),!X.seriesTypes[U]&&(M&&(L[U]=M),X.seriesTypes[U]=d,!0)}X.seriesTypes=R.seriesTypes,X.registerSeriesType=B,X.seriesType=function(U,d,L,M,s){let w=q.plotOptions||{};if(d=d||"",w[U]=H(w[d],L),delete X.seriesTypes[U],B(U,tt(X.seriesTypes[d]||function(){},M)),X.seriesTypes[U].prototype.type=U,s){class _ extends et{}Z(_.prototype,s),X.seriesTypes[U].prototype.pointClass=_}return X.seriesTypes[U]}}(J||(J={})),J}),y(m,"Core/Series/Series.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Defaults.js"],m["Core/Foundation.js"],m["Core/Globals.js"],m["Core/Legend/LegendSymbol.js"],m["Core/Series/Point.js"],m["Core/Series/SeriesDefaults.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Renderer/SVG/SVGElement.js"],m["Core/Utilities.js"]],function(R,j,et,K,J,q,Z,tt,H,X){let{animObject:B,setAnimation:U}=R,{defaultOptions:d}=j,{registerEventOptions:L}=et,{svg:M,win:s}=K,{seriesTypes:w}=tt,{arrayMax:_,arrayMin:o,clamp:u,correctFloat:C,crisp:E,defined:S,destroyObjectProperties:v,diffObjects:g,erase:x,error:p,extend:l,find:f,fireEvent:b,getClosestDistance:F,getNestedProperty:T,insertItem:k,isArray:Q,isNumber:st,isString:nt,merge:dt,objectEach:mt,pick:Et,removeEvent:Mt,splat:I,syncTimeout:Y}=X;class rt{constructor(){this.zoneAxis="y"}init(D,P){let W;b(this,"init",{options:P});let lt=this,it=D.series;this.eventsToUnbind=[],lt.chart=D,lt.options=lt.setOptions(P);let vt=lt.options,pt=vt.visible!==!1;lt.linkedSeries=[],lt.bindAxes(),l(lt,{name:vt.name,state:"",visible:pt,selected:vt.selected===!0}),L(this,vt);let xt=vt.events;(xt&&xt.click||vt.point&&vt.point.events&&vt.point.events.click||vt.allowPointSelect)&&(D.runTrackerClick=!0),lt.getColor(),lt.getSymbol(),lt.parallelArrays.forEach(function(Ct){lt[Ct+"Data"]||(lt[Ct+"Data"]=[])}),lt.isCartesian&&(D.hasCartesianSeries=!0),it.length&&(W=it[it.length-1]),lt._i=Et(W&&W._i,-1)+1,lt.opacity=lt.options.opacity,D.orderItems("series",k(this,it)),vt.dataSorting&&vt.dataSorting.enabled?lt.setDataSortingOptions():lt.points||lt.data||lt.setData(vt.data,!1),b(this,"afterInit")}is(D){return w[D]&&this instanceof w[D]}bindAxes(){let D,P=this,W=P.options,lt=P.chart;b(this,"bindAxes",null,function(){(P.axisTypes||[]).forEach(function(it){(lt[it]||[]).forEach(function(vt){D=vt.options,(Et(W[it],0)===vt.index||W[it]!==void 0&&W[it]===D.id)&&(k(P,vt.series),P[it]=vt,vt.isDirty=!0)}),P[it]||P.optionalAxis===it||p(18,!0,lt)})}),b(this,"afterBindAxes")}updateParallelArrays(D,P,W){let lt=D.series,it=st(P)?function(vt){let pt=vt==="y"&<.toYData?lt.toYData(D):D[vt];lt[vt+"Data"][P]=pt}:function(vt){Array.prototype[P].apply(lt[vt+"Data"],W)};lt.parallelArrays.forEach(it)}hasData(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&this.yData.length>0}hasMarkerChanged(D,P){let W=D.marker,lt=P.marker||{};return W&&(lt.enabled&&!W.enabled||lt.symbol!==W.symbol||lt.height!==W.height||lt.width!==W.width)}autoIncrement(D){let P=this.options,W=P.pointIntervalUnit,lt=P.relativeXValue,it=this.chart.time,vt=this.xIncrement,pt,xt;return vt=Et(vt,P.pointStart,0),this.pointInterval=xt=Et(this.pointInterval,P.pointInterval,1),lt&&st(D)&&(xt*=D),W&&(pt=new it.Date(vt),W==="day"?it.set("Date",pt,it.get("Date",pt)+xt):W==="month"?it.set("Month",pt,it.get("Month",pt)+xt):W==="year"&&it.set("FullYear",pt,it.get("FullYear",pt)+xt),xt=pt.getTime()-vt),lt&&st(D)?vt+xt:(this.xIncrement=vt+xt,vt)}setDataSortingOptions(){let D=this.options;l(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),S(D.pointRange)||(D.pointRange=1)}setOptions(D){var Zt,ne;let P,W=this.chart,lt=W.options.plotOptions,it=W.userOptions||{},vt=dt(D),pt=W.styledMode,xt={plotOptions:lt,userOptions:vt};b(this,"setOptions",xt);let Ct=xt.plotOptions[this.type],Tt=it.plotOptions||{},Nt=Tt.series||{},gt=d.plotOptions[this.type]||{},wt=Tt[this.type]||{};this.userOptions=xt.userOptions;let Rt=dt(Ct,lt.series,wt,vt);this.tooltipOptions=dt(d.tooltip,(Zt=d.plotOptions.series)==null?void 0:Zt.tooltip,gt==null?void 0:gt.tooltip,W.userOptions.tooltip,(ne=Tt.series)==null?void 0:ne.tooltip,wt.tooltip,vt.tooltip),this.stickyTracking=Et(vt.stickyTracking,wt.stickyTracking,Nt.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||Rt.stickyTracking),Ct.marker===null&&delete Rt.marker,this.zoneAxis=Rt.zoneAxis||"y";let jt=this.zones=(Rt.zones||[]).map(Wt=>zr({},Wt));return(Rt.negativeColor||Rt.negativeFillColor)&&!Rt.zones&&(P={value:Rt[this.zoneAxis+"Threshold"]||Rt.threshold||0,className:"highcharts-negative"},pt||(P.color=Rt.negativeColor,P.fillColor=Rt.negativeFillColor),jt.push(P)),jt.length&&S(jt[jt.length-1].value)&&jt.push(pt?{}:{color:this.color,fillColor:this.fillColor}),b(this,"afterSetOptions",{options:Rt}),Rt}getName(){return Et(this.options.name,"Series "+(this.index+1))}getCyclic(D,P,W){let lt,it,vt=this.chart,pt=`${D}Index`,xt=`${D}Counter`,Ct=(W==null?void 0:W.length)||vt.options.chart.colorCount;!P&&(S(it=Et(D==="color"?this.options.colorIndex:void 0,this[pt]))?lt=it:(vt.series.length||(vt[xt]=0),lt=vt[xt]%Ct,vt[xt]+=1),W&&(P=W[lt])),lt!==void 0&&(this[pt]=lt),this[D]=P}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||d.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let D=this.options.marker;this.getCyclic("symbol",D.symbol,this.chart.options.symbols)}findPointIndex(D,P){let W,lt,it,vt=D.id,pt=D.x,xt=this.points,Ct=this.options.dataSorting;if(vt){let Tt=this.chart.get(vt);Tt instanceof q&&(W=Tt)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let Tt=Nt=>!Nt.touched&&Nt.index===D.index;if(Ct&&Ct.matchByName?Tt=Nt=>!Nt.touched&&Nt.name===D.name:this.options.relativeXValue&&(Tt=Nt=>!Nt.touched&&Nt.options.x===D.x),!(W=f(xt,Tt)))return}return W&&(it=W&&W.index)!==void 0&&(lt=!0),it===void 0&&st(pt)&&(it=this.xData.indexOf(pt,P)),it!==-1&&it!==void 0&&this.cropped&&(it=it>=this.cropStart?it-this.cropStart:it),!lt&&st(it)&&xt[it]&&xt[it].touched&&(it=void 0),it}updateData(D,P){let W=this.options,lt=W.dataSorting,it=this.points,vt=[],pt=this.requireSorting,xt=D.length===it.length,Ct,Tt,Nt,gt,wt=!0;if(this.xIncrement=null,D.forEach(function(Rt,jt){let Zt,ne=S(Rt)&&this.pointClass.prototype.optionsToObject.call({series:this},Rt)||{},Wt=ne.x;ne.id||st(Wt)?((Zt=this.findPointIndex(ne,gt))===-1||Zt===void 0?vt.push(Rt):it[Zt]&&Rt!==W.data[Zt]?(it[Zt].update(Rt,!1,null,!1),it[Zt].touched=!0,pt&&(gt=Zt+1)):it[Zt]&&(it[Zt].touched=!0),(!xt||jt!==Zt||lt&<.enabled||this.hasDerivedData)&&(Ct=!0)):vt.push(Rt)},this),Ct)for(Tt=it.length;Tt--;)(Nt=it[Tt])&&!Nt.touched&&Nt.remove&&Nt.remove(!1,P);else!xt||lt&<.enabled?wt=!1:(D.forEach(function(Rt,jt){Rt===it[jt].y||it[jt].destroyed||it[jt].update(Rt,!1,null,!1)}),vt.length=0);return it.forEach(function(Rt){Rt&&(Rt.touched=!1)}),!!wt&&(vt.forEach(function(Rt){this.addPoint(Rt,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=_(this.xData),this.autoIncrement()),!0)}setData(D,P=!0,W,lt){var an;let it=this,vt=it.points,pt=vt&&vt.length||0,xt=it.options,Ct=it.chart,Tt=xt.dataSorting,Nt=it.xAxis,gt=xt.turboThreshold,wt=this.xData,Rt=this.yData,jt=it.pointArrayMap,Zt=jt&&jt.length,ne=xt.keys,Wt,le,de,xe=0,be=1,Ye;Ct.options.chart.allowMutatingData||(xt.data&&delete it.options.data,it.userOptions.data&&delete it.userOptions.data,Ye=dt(!0,D));let tn=(D=Ye||D||[]).length;if(Tt&&Tt.enabled&&(D=this.sortData(D)),Ct.options.chart.allowMutatingData&<!==!1&&tn&&pt&&!it.cropped&&!it.hasGroupedData&&it.visible&&!it.boosted&&(de=this.updateData(D,W)),!de){it.xIncrement=null,it.colorCounter=0,this.parallelArrays.forEach(function(Kt){it[Kt+"Data"].length=0});let Jt=gt&&tn>gt;if(Jt){let Kt=it.getFirstValidPoint(D),te=it.getFirstValidPoint(D,tn-1,-1),Ot=Bt=>!!(Q(Bt)&&(ne||st(Bt[0])));if(st(Kt)&&st(te))for(Wt=0;Wt=0?xe:0,be=be>=0?be:1),Kt.length===1&&(be=0),xe===be)for(Wt=0;Wt{let pt=T(W,it),xt=T(W,vt);return xtpt?1:0}).forEach(function(it,vt){it.x=vt},this),P.linkedSeries&&P.linkedSeries.forEach(function(it){let vt=it.options,pt=vt.data;vt.dataSorting&&vt.dataSorting.enabled||!pt||(pt.forEach(function(xt,Ct){pt[Ct]=lt(it,xt),D[Ct]&&(pt[Ct].x=D[Ct].x,pt[Ct].index=Ct)}),it.setData(pt,!1))}),D}getProcessedData(D){let P=this,W=P.xAxis,lt=P.options.cropThreshold,it=W==null?void 0:W.logarithmic,vt=P.isCartesian,pt,xt,Ct=0,Tt,Nt,gt,wt=P.xData,Rt=P.yData,jt=!1,Zt=wt.length;W&&(Nt=(Tt=W.getExtremes()).min,gt=Tt.max,jt=!!(W.categories&&!W.names.length)),vt&&P.sorted&&!D&&(!lt||Zt>lt||P.forceCrop)&&(wt[Zt-1]gt?(wt=[],Rt=[]):P.yData&&(wt[0]gt)&&(wt=(pt=this.cropData(P.xData,P.yData,Nt,gt)).xData,Rt=pt.yData,Ct=pt.start,xt=!0));let ne=F([it?wt.map(it.log2lin):wt],()=>P.requireSorting&&!jt&&p(15,!1,P.chart));return{xData:wt,yData:Rt,cropped:xt,cropStart:Ct,closestPointRange:ne}}processData(D){let P=this.xAxis;if(this.isCartesian&&!this.isDirty&&!P.isDirty&&!this.yAxis.isDirty&&!D)return!1;let W=this.getProcessedData();this.cropped=W.cropped,this.cropStart=W.cropStart,this.processedXData=W.xData,this.processedYData=W.yData,this.closestPointRange=this.basePointRange=W.closestPointRange,b(this,"afterProcessData")}cropData(D,P,W,lt){let it=D.length,vt,pt,xt=0,Ct=it;for(vt=0;vt=W){xt=Math.max(0,vt-1);break}for(pt=vt;ptlt){Ct=pt+1;break}return{xData:D.slice(xt,Ct),yData:P.slice(xt,Ct),start:xt,end:Ct}}generatePoints(){let D=this.options,P=this.processedData||D.data,W=this.processedXData,lt=this.processedYData,it=this.pointClass,vt=W.length,pt=this.cropStart||0,xt=this.hasGroupedData,Ct=D.keys,Tt=[],Nt=D.dataGrouping&&D.dataGrouping.groupAll?pt:0,gt,wt,Rt,jt,Zt=this.data;if(!Zt&&!xt){let ne=[];ne.length=P.length,Zt=this.data=ne}for(Ct&&xt&&(this.options.keys=!1),jt=0;jt0:jt.length)||!pt),wt=P||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!W||(be[Zt+vt]||Rt)>=Wt&&(be[Zt-vt]||Rt)<=le,gt&&wt)if(ne=jt.length)for(;ne--;)st(jt[ne])&&(it[de++]=jt[ne]);else it[de++]=jt;let Ye={activeYData:it,dataMin:o(it),dataMax:_(it)};return b(this,"afterGetExtremes",{dataExtremes:Ye}),Ye}applyExtremes(){let D=this.getExtremes();return this.dataMin=D.dataMin,this.dataMax=D.dataMax,D}getFirstValidPoint(D,P=0,W=1){let lt=D.length,it=P;for(;it>=0&&it1)&&(vt.step=function(gt,wt){Nt&&Nt.apply(wt,arguments),wt.prop==="width"&&(Ct!=null&&Ct.element)&&Ct.attr(it?"height":"width",gt+99)}),xt.addClass("highcharts-animating").animate(Tt,vt)}}afterAnimate(){this.setClip(),mt(this.chart.sharedClips,(D,P,W)=>{D&&!this.chart.container.querySelector(`[clip-path="url(#${D.id})"]`)&&(D.destroy(),delete W[P])}),this.finishedAnimating=!0,b(this,"afterAnimate")}drawPoints(D=this.points){let P,W,lt,it,vt,pt,xt,Ct=this.chart,Tt=Ct.styledMode,{colorAxis:Nt,options:gt}=this,wt=gt.marker,Rt=this[this.specialGroup||"markerGroup"],jt=this.xAxis,Zt=Et(wt.enabled,!jt||!!jt.isRadial||null,this.closestPointRangePx>=wt.enabledThreshold*wt.radius);if(wt.enabled!==!1||this._hasPointMarkers)for(P=0;P0||W.hasImage)&&(W.graphic=lt=Ct.renderer.symbol(ne,xt.x,xt.y,xt.width,xt.height,pt?vt:wt).add(Rt),this.enabledDataSorting&&Ct.hasRendered&&(lt.attr({x:W.startXPos}),it="animate")),lt&&it==="animate"&<[Wt?"show":"hide"](Wt).animate(xt),lt){let le=this.pointAttribs(W,Tt||!W.selected?void 0:"select");Tt?Nt&<.css({fill:le.fill}):lt[it](le)}lt&<.addClass(W.getClassName(),!0)}else lt&&(W.graphic=lt.destroy())}markerAttribs(D,P){let W=this.options,lt=W.marker,it=D.marker||{},vt=it.symbol||lt.symbol,pt={},xt,Ct,Tt=Et(it.radius,lt&<.radius);P&&(xt=lt.states[P],Tt=Et((Ct=it.states&&it.states[P])&&Ct.radius,xt&&xt.radius,Tt&&Tt+(xt&&xt.radiusPlus||0))),D.hasImage=vt&&vt.indexOf("url")===0,D.hasImage&&(Tt=0);let Nt=D.pos();return st(Tt)&&Nt&&(W.crisp&&(Nt[0]=E(Nt[0],D.hasImage?0:vt==="rect"?(lt==null?void 0:lt.lineWidth)||0:1)),pt.x=Nt[0]-Tt,pt.y=Nt[1]-Tt),Tt&&(pt.width=pt.height=2*Tt),pt}pointAttribs(D,P){let W=this.options.marker,lt=D&&D.options,it=lt&<.marker||{},vt=lt&<.color,pt=D&&D.color,xt=D&&D.zone&&D.zone.color,Ct,Tt,Nt=this.color,gt,wt,Rt=Et(it.lineWidth,W.lineWidth),jt=1;return Nt=vt||xt||pt||Nt,gt=it.fillColor||W.fillColor||Nt,wt=it.lineColor||W.lineColor||Nt,P=P||"normal",Ct=W.states[P]||{},Rt=Et((Tt=it.states&&it.states[P]||{}).lineWidth,Ct.lineWidth,Rt+Et(Tt.lineWidthPlus,Ct.lineWidthPlus,0)),gt=Tt.fillColor||Ct.fillColor||gt,{stroke:wt=Tt.lineColor||Ct.lineColor||wt,"stroke-width":Rt,fill:gt,opacity:jt=Et(Tt.opacity,Ct.opacity,jt)}}destroy(D){let P,W,lt,it=this,vt=it.chart,pt=/AppleWebKit\/533/.test(s.navigator.userAgent),xt=it.data||[];for(b(it,"destroy",{keepEventsForUpdate:D}),this.removeEvents(D),(it.axisTypes||[]).forEach(function(Ct){(lt=it[Ct])&<.series&&(x(lt.series,it),lt.isDirty=lt.forceRedraw=!0)}),it.legendItem&&it.chart.legend.destroyItem(it),P=xt.length;P--;)(W=xt[P])&&W.destroy&&W.destroy();for(let Ct of it.zones)v(Ct,void 0,!0);X.clearTimeout(it.animationTimeout),mt(it,function(Ct,Tt){Ct instanceof H&&!Ct.survive&&Ct[pt&&Tt==="group"?"hide":"destroy"]()}),vt.hoverSeries===it&&(vt.hoverSeries=void 0),x(vt.series,it),vt.orderItems("series"),mt(it,function(Ct,Tt){D&&Tt==="hcEvents"||delete it[Tt]})}applyZones(){let{area:D,chart:P,graph:W,zones:lt,points:it,xAxis:vt,yAxis:pt,zoneAxis:xt}=this,{inverted:Ct,renderer:Tt}=P,Nt=this[`${xt}Axis`],{isXAxis:gt,len:wt=0}=Nt||{},Rt=((W==null?void 0:W.strokeWidth())||0)/2+1,jt=(Zt,ne=0,Wt=0)=>{Ct&&(Wt=wt-Wt);let{translated:le=0,lineClip:de}=Zt,xe=Wt-le;de==null||de.push(["L",ne,Math.abs(xe){de.forEach((xe,be)=>{(xe[0]==="M"||xe[0]==="L")&&(de[be]=[xe[0],gt?wt-xe[1]:xe[1],gt?xe[2]:wt-xe[2]])})};if(lt.forEach(de=>{de.lineClip=[],de.translated=u(Nt.toPixels(Et(de.value,Zt),!0)||0,0,wt)}),W&&!this.showLine&&W.hide(),D&&D.hide(),xt==="y"&&it.length{var Ut,zt;let xe=de.lineClip||[],be=Math.round(de.translated||0);vt.reversed&&xe.reverse();let{clip:Ye,simpleClip:tn}=de,an=0,Jt=0,Kt=vt.len,te=pt.len;gt?(an=be,Kt=le):(Jt=be,te=le);let Ot=[["M",an,Jt],["L",Kt,Jt],["L",Kt,te],["L",an,te],["Z"]],Bt=[Ot[0],...xe,Ot[1],Ot[2],...Wt,Ot[3],Ot[4]];Wt=xe.reverse(),le=be,Ct&&(ne(Bt),D&&ne(Ot)),Ye?(Ye.animate({d:Bt}),tn==null||tn.animate({d:Ot})):(Ye=de.clip=Tt.path(Bt),D&&(tn=de.simpleClip=Tt.path(Ot))),W&&((Ut=de.graph)==null||Ut.clip(Ye)),D&&((zt=de.area)==null||zt.clip(tn))})}else this.visible&&(W&&W.show(),D&&D.show())}plotGroup(D,P,W,lt,it){let vt=this[D],pt=!vt,xt={visibility:W,zIndex:lt||.1};return S(this.opacity)&&!this.chart.styledMode&&this.state!=="inactive"&&(xt.opacity=this.opacity),vt||(this[D]=vt=this.chart.renderer.g().add(it)),vt.addClass("highcharts-"+P+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(S(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(vt.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),vt.attr(xt)[pt?"attr":"animate"](this.getPlotBox(P)),vt}getPlotBox(D){let P=this.xAxis,W=this.yAxis,lt=this.chart,it=lt.inverted&&!lt.polar&&P&&this.invertible&&D==="series";return lt.inverted&&(P=W,W=this.xAxis),{translateX:P?P.left:lt.plotLeft,translateY:W?W.top:lt.plotTop,rotation:it?90:0,rotationOriginX:it?(P.len-W.len)/2:0,rotationOriginY:it?(P.len+W.len)/2:0,scaleX:it?-1:1,scaleY:1}}removeEvents(D){let{eventsToUnbind:P}=this;D||Mt(this),P.length&&(P.forEach(W=>{W()}),P.length=0)}render(){var Tt,Nt,gt,wt,Rt;let D=this,{chart:P,options:W,hasRendered:lt}=D,it=B(W.animation),vt=D.visible?"inherit":"hidden",pt=W.zIndex,xt=P.seriesGroup,Ct=D.finishedAnimating?0:it.duration;b(this,"render"),D.plotGroup("group","series",vt,pt,xt),D.markerGroup=D.plotGroup("markerGroup","markers",vt,pt,xt),W.clip!==!1&&D.setClip(),Ct&&((Tt=D.animate)==null||Tt.call(D,!0)),D.drawGraph&&(D.drawGraph(),D.applyZones()),D.visible&&D.drawPoints(),(Nt=D.drawDataLabels)==null||Nt.call(D),(gt=D.redrawPoints)==null||gt.call(D),W.enableMouseTracking&&((wt=D.drawTracker)==null||wt.call(D)),Ct&&((Rt=D.animate)==null||Rt.call(D)),lt||(Ct&&it.defer&&(Ct+=it.defer),D.animationTimeout=Y(()=>{D.afterAnimate()},Ct||0)),D.isDirty=!1,D.hasRendered=!0,b(D,"afterRender")}redraw(){let D=this.isDirty||this.isDirtyData;this.translate(),this.render(),D&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(D,P){let{xAxis:W,yAxis:lt}=this,it=this.chart.inverted;return this.searchKDTree({clientX:it?W.len-D.chartY+W.pos:D.chartX-W.pos,plotY:it?lt.len-D.chartX+lt.pos:D.chartY-lt.pos},P,D)}buildKDTree(D){this.buildingKdTree=!0;let P=this,W=P.options.findNearestPointBy.indexOf("y")>-1?2:1;delete P.kdTree,Y(function(){P.kdTree=function lt(it,vt,pt){let xt,Ct,Tt=it==null?void 0:it.length;if(Tt)return xt=P.kdAxisArray[vt%pt],it.sort((Nt,gt)=>(Nt[xt]||0)-(gt[xt]||0)),{point:it[Ct=Math.floor(Tt/2)],left:lt(it.slice(0,Ct),vt+1,pt),right:lt(it.slice(Ct+1),vt+1,pt)}}(P.getValidPoints(void 0,!P.directTouch),W,W),P.buildingKdTree=!1},P.options.kdNow||(D==null?void 0:D.type)==="touchstart"?0:1)}searchKDTree(D,P,W){let lt=this,[it,vt]=this.kdAxisArray,pt=P?"distX":"dist",xt=(lt.options.findNearestPointBy||"").indexOf("y")>-1?2:1,Ct=!!lt.isBubble;if(this.kdTree||this.buildingKdTree||this.buildKDTree(W),this.kdTree)return function Tt(Nt,gt,wt,Rt){var Ye;let jt=gt.point,Zt=lt.kdAxisArray[wt%Rt],ne,Wt,le=jt;(function(tn,an){var ce;let Jt=tn[it],Kt=an[it],te=S(Jt)&&S(Kt)?Jt-Kt:null,Ot=tn[vt],Bt=an[vt],Ut=S(Ot)&&S(Bt)?Ot-Bt:0,zt=Ct&&((ce=an.marker)==null?void 0:ce.radius)||0;an.dist=Math.sqrt((te&&te*te||0)+Ut*Ut)-zt,an.distX=S(te)?Math.abs(te)-zt:Number.MAX_VALUE})(Nt,jt);let de=(Nt[Zt]||0)-(jt[Zt]||0)+(Ct&&((Ye=jt.marker)==null?void 0:Ye.radius)||0),xe=de<0?"left":"right",be=de<0?"right":"left";return gt[xe]&&(le=(ne=Tt(Nt,gt[xe],wt+1,Rt))[pt]=0&&vt<=(lt?lt.len:P.plotHeight)&&it>=0&&it<=(W?W.len:P.plotWidth)}drawTracker(){var gt;let D=this,P=D.options,W=P.trackByArea,lt=[].concat((W?D.areaPath:D.graphPath)||[]),it=D.chart,vt=it.pointer,pt=it.renderer,xt=((gt=it.options.tooltip)==null?void 0:gt.snap)||0,Ct=()=>{P.enableMouseTracking&&it.hoverSeries!==D&&D.onMouseOver()},Tt="rgba(192,192,192,"+(M?1e-4:.002)+")",Nt=D.tracker;Nt?Nt.attr({d:lt}):D.graph&&(D.tracker=Nt=pt.path(lt).attr({visibility:D.visible?"inherit":"hidden",zIndex:2}).addClass(W?"highcharts-tracker-area":"highcharts-tracker-line").add(D.group),it.styledMode||Nt.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:Tt,fill:W?Tt:"none","stroke-width":D.graph.strokeWidth()+(W?0:2*xt)}),[D.tracker,D.markerGroup,D.dataLabelsGroup].forEach(wt=>{wt&&(wt.addClass("highcharts-tracker").on("mouseover",Ct).on("mouseout",Rt=>{vt==null||vt.onTrackerMouseOut(Rt)}),P.cursor&&!it.styledMode&&wt.css({cursor:P.cursor}),wt.on("touchstart",Ct))})),b(this,"afterDrawTracker")}addPoint(D,P,W,lt,it){let vt,pt,xt=this.options,Ct=this.data,Tt=this.chart,Nt=this.xAxis,gt=Nt&&Nt.hasNames&&Nt.names,wt=xt.data,Rt=this.xData;P=Et(P,!0);let jt={series:this};this.pointClass.prototype.applyOptions.apply(jt,[D]);let Zt=jt.x;if(pt=Rt.length,this.requireSorting&&ZtZt;)pt--;this.updateParallelArrays(jt,"splice",[pt,0,0]),this.updateParallelArrays(jt,pt),gt&&jt.name&&(gt[Zt]=jt.name),wt.splice(pt,0,D),(vt||this.processedData)&&(this.data.splice(pt,0,null),this.processData()),xt.legendType==="point"&&this.generatePoints(),W&&(Ct[0]&&Ct[0].remove?Ct[0].remove(!1):(Ct.shift(),this.updateParallelArrays(jt,"shift"),wt.shift())),it!==!1&&b(this,"addPoint",{point:jt}),this.isDirty=!0,this.isDirtyData=!0,P&&Tt.redraw(lt)}removePoint(D,P,W){let lt=this,it=lt.data,vt=it[D],pt=lt.points,xt=lt.chart,Ct=function(){pt&&pt.length===it.length&&pt.splice(D,1),it.splice(D,1),lt.options.data.splice(D,1),lt.updateParallelArrays(vt||{series:lt},"splice",[D,1]),vt&&vt.destroy(),lt.isDirty=!0,lt.isDirtyData=!0,P&&xt.redraw()};U(W,xt),P=Et(P,!0),vt?vt.firePointEvent("remove",null,Ct):Ct()}remove(D,P,W,lt){let it=this,vt=it.chart;function pt(){it.destroy(lt),vt.isDirtyLegend=vt.isDirtyBox=!0,vt.linkSeries(lt),Et(D,!0)&&vt.redraw(P)}W!==!1?b(it,"remove",null,pt):pt()}update(D,P){var ne,Wt,le,de,xe;b(this,"update",{options:D=g(D,this.userOptions)});let W=this,lt=W.chart,it=W.userOptions,vt=W.initialType||W.type,pt=lt.options.plotOptions,xt=w[vt].prototype,Ct=W.finishedAnimating&&{animation:!1},Tt={},Nt,gt,wt=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],Rt=D.type||it.type||lt.options.chart.type,jt=!(this.hasDerivedData||Rt&&Rt!==this.type||D.pointStart!==void 0||D.pointInterval!==void 0||D.relativeXValue!==void 0||D.joinBy||D.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(be=>W.hasOptionChanged(be)));Rt=Rt||vt,jt&&(wt.push("data","isDirtyData","isDirtyCanvas","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),D.visible!==!1&&wt.push("area","graph"),W.parallelArrays.forEach(function(be){wt.push(be+"Data")}),D.data&&(D.dataSorting&&l(W.options.dataSorting,D.dataSorting),this.setData(D.data,!1))),D=dt(it,{index:it.index===void 0?W.index:it.index,pointStart:(de=(Wt=(ne=pt==null?void 0:pt.series)==null?void 0:ne.pointStart)!=null?Wt:it.pointStart)!=null?de:(le=W.xData)==null?void 0:le[0]},!jt&&{data:W.options.data},D,Ct),jt&&D.data&&(D.data=W.options.data),(wt=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(wt)).forEach(function(be){wt[be]=W[be],delete W[be]});let Zt=!1;if(w[Rt]){if(Zt=Rt!==W.type,W.remove(!1,!1,!1,!0),Zt)if(lt.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(W,w[Rt].prototype);else{let be=Object.hasOwnProperty.call(W,"hcEvents")&&W.hcEvents;for(gt in xt)W[gt]=void 0;l(W,w[Rt].prototype),be?W.hcEvents=be:delete W.hcEvents}}else p(17,!0,lt,{missingModuleFor:Rt});if(wt.forEach(function(be){W[be]=wt[be]}),W.init(lt,D),jt&&this.points)for(let be of((Nt=W.options).visible===!1?(Tt.graphic=1,Tt.dataLabel=1):(this.hasMarkerChanged(Nt,it)&&(Tt.graphic=1),(xe=W.hasDataLabels)!=null&&xe.call(W)||(Tt.dataLabel=1)),this.points))be&&be.series&&(be.resolveColor(),Object.keys(Tt).length&&be.destroyElements(Tt),Nt.showInLegend===!1&&be.legendItem&<.legend.destroyItem(be));W.initialType=vt,lt.linkSeries(),lt.setSortedData(),Zt&&W.linkedSeries.length&&(W.isDirtyData=!0),b(this,"afterUpdate"),Et(P,!0)&<.redraw(!!jt&&void 0)}setName(D){this.name=this.options.name=this.userOptions.name=D,this.chart.isDirtyLegend=!0}hasOptionChanged(D){var pt,xt;let P=this.chart,W=this.options[D],lt=P.options.plotOptions,it=this.userOptions[D],vt=Et((pt=lt==null?void 0:lt[this.type])==null?void 0:pt[D],(xt=lt==null?void 0:lt.series)==null?void 0:xt[D]);return it&&!S(vt)?W!==it:W!==Et(vt,W)}onMouseOver(){let D=this.chart,P=D.hoverSeries,W=D.pointer;W==null||W.setHoverChartIndex(),P&&P!==this&&P.onMouseOut(),this.options.events.mouseOver&&b(this,"mouseOver"),this.setState("hover"),D.hoverSeries=this}onMouseOut(){let D=this.options,P=this.chart,W=P.tooltip,lt=P.hoverPoint;P.hoverSeries=null,lt&<.onMouseOut(),this&&D.events.mouseOut&&b(this,"mouseOut"),W&&!this.stickyTracking&&(!W.shared||this.noSharedTooltip)&&W.hide(),P.series.forEach(function(it){it.setState("",!0)})}setState(D,P){let W=this,lt=W.options,it=W.graph,vt=lt.inactiveOtherPoints,pt=lt.states,xt=Et(pt[D||"normal"]&&pt[D||"normal"].animation,W.chart.options.chart.animation),Ct=lt.lineWidth,Tt=lt.opacity;if(D=D||"",W.state!==D&&([W.group,W.markerGroup,W.dataLabelsGroup].forEach(function(Nt){Nt&&(W.state&&Nt.removeClass("highcharts-series-"+W.state),D&&Nt.addClass("highcharts-series-"+D))}),W.state=D,!W.chart.styledMode)){if(pt[D]&&pt[D].enabled===!1)return;if(D&&(Ct=pt[D].lineWidth||Ct+(pt[D].lineWidthPlus||0),Tt=Et(pt[D].opacity,Tt)),it&&!it.dashstyle&&st(Ct))for(let Nt of[it,...this.zones.map(gt=>gt.graph)])Nt==null||Nt.animate({"stroke-width":Ct},xt);vt||[W.group,W.markerGroup,W.dataLabelsGroup,W.labelBySeries].forEach(function(Nt){Nt&&Nt.animate({opacity:Tt},xt)})}P&&vt&&W.points&&W.setAllPointsToState(D||void 0)}setAllPointsToState(D){this.points.forEach(function(P){P.setState&&P.setState(D)})}setVisible(D,P){var xt;let W=this,lt=W.chart,it=lt.options.chart.ignoreHiddenSeries,vt=W.visible;W.visible=D=W.options.visible=W.userOptions.visible=D===void 0?!vt:D;let pt=D?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(Ct=>{var Tt;(Tt=W[Ct])==null||Tt[pt]()}),(lt.hoverSeries===W||((xt=lt.hoverPoint)==null?void 0:xt.series)===W)&&W.onMouseOut(),W.legendItem&<.legend.colorizeItem(W,D),W.isDirty=!0,W.options.stacking&<.series.forEach(Ct=>{Ct.options.stacking&&Ct.visible&&(Ct.isDirty=!0)}),W.linkedSeries.forEach(Ct=>{Ct.setVisible(D,!1)}),it&&(lt.isDirtyBox=!0),b(W,pt),P!==!1&<.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(D){this.selected=D=this.options.selected=D===void 0?!this.selected:D,this.checkbox&&(this.checkbox.checked=D),b(this,D?"select":"unselect")}shouldShowTooltip(D,P,W={}){return W.series=this,W.visiblePlotOnly=!0,this.chart.isInsidePlot(D,P,W)}drawLegendSymbol(D,P){var W;(W=J[this.options.legendSymbol||"rectangle"])==null||W.call(this,D,P)}}return rt.defaultOptions=Z,rt.types=tt.seriesTypes,rt.registerType=tt.registerSeriesType,l(rt.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:q,requireSorting:!0,sorted:!0}),tt.series=rt,rt}),y(m,"Core/Legend/Legend.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Foundation.js"],m["Core/Globals.js"],m["Core/Series/Series.js"],m["Core/Series/Point.js"],m["Core/Renderer/RendererUtilities.js"],m["Core/Templating.js"],m["Core/Utilities.js"]],function(R,j,et,K,J,q,Z,tt){var H;let{animObject:X,setAnimation:B}=R,{registerEventOptions:U}=j,{composed:d,marginNames:L}=et,{distribute:M}=q,{format:s}=Z,{addEvent:w,createElement:_,css:o,defined:u,discardElement:C,find:E,fireEvent:S,isNumber:v,merge:g,pick:x,pushUnique:p,relativeLength:l,stableSort:f,syncTimeout:b}=tt;class F{constructor(k,Q){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=k,this.setOptions(Q),Q.enabled&&(this.render(),U(this,Q),w(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),w(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(k){let Q=x(k.padding,8);this.options=k,this.chart.styledMode||(this.itemStyle=k.itemStyle,this.itemHiddenStyle=g(this.itemStyle,k.itemHiddenStyle)),this.itemMarginTop=k.itemMarginTop,this.itemMarginBottom=k.itemMarginBottom,this.padding=Q,this.initialItemY=Q-5,this.symbolWidth=x(k.symbolWidth,16),this.pages=[],this.proximate=k.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(k,Q){let st=this.chart;this.setOptions(g(!0,this.options,k)),"events"in this.options&&U(this,this.options),this.destroy(),st.isDirtyLegend=st.isDirtyBox=!0,x(Q,!0)&&st.redraw(),S(this,"afterUpdate",{redraw:Q})}colorizeItem(k,Q){let{area:st,group:nt,label:dt,line:mt,symbol:Et}=k.legendItem||{};if(nt==null||nt[Q?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:Mt={}}=this,I=Mt.color,{fillColor:Y,fillOpacity:rt,lineColor:ot,marker:D}=k.options,P=W=>(!Q&&(W.fill&&(W.fill=I),W.stroke&&(W.stroke=I)),W);dt==null||dt.css(g(Q?this.itemStyle:Mt)),mt==null||mt.attr(P({stroke:ot||k.color})),Et&&Et.attr(P(D&&Et.isMarker?k.pointAttribs():{fill:k.color})),st==null||st.attr(P({fill:Y||k.color,"fill-opacity":Y?1:rt!=null?rt:.75}))}S(this,"afterColorizeItem",{item:k,visible:Q})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(k){let{group:Q,x:st=0,y:nt=0}=k.legendItem||{},dt=this.options,mt=dt.symbolPadding,Et=!dt.rtl,Mt=k.checkbox;if(Q&&Q.element){let I={translateX:Et?st:this.legendWidth-st-2*mt-4,translateY:nt};Q[u(Q.translateY)?"animate":"attr"](I,void 0,()=>{S(this,"afterPositionItem",{item:k})})}Mt&&(Mt.x=st,Mt.y=nt)}destroyItem(k){let Q=k.checkbox,st=k.legendItem||{};for(let nt of["group","label","line","symbol"])st[nt]&&(st[nt]=st[nt].destroy());Q&&C(Q),k.legendItem=void 0}destroy(){for(let k of this.getAllItems())this.destroyItem(k);for(let k of["clipRect","up","down","pager","nav","box","title","group"])this[k]&&(this[k]=this[k].destroy());this.display=null}positionCheckboxes(){let k,Q=this.group&&this.group.alignAttr,st=this.clipHeight||this.legendHeight,nt=this.titleHeight;Q&&(k=Q.translateY,this.allItems.forEach(function(dt){let mt,Et=dt.checkbox;Et&&(mt=k+nt+Et.y+(this.scrollOffset||0)+3,o(Et,{left:Q.translateX+dt.checkboxOffset+Et.x-20+"px",top:mt+"px",display:this.proximate||mt>k-6&&mt1.5*Tt?Ct.height:Tt))}layoutItem(k){let Q=this.options,st=this.padding,nt=Q.layout==="horizontal",dt=k.itemHeight,mt=this.itemMarginBottom,Et=this.itemMarginTop,Mt=nt?x(Q.itemDistance,20):0,I=this.maxLegendWidth,Y=Q.alignColumns&&this.totalItemWidth>I?this.maxItemWidth:k.itemWidth,rt=k.legendItem||{};nt&&this.itemX-st+Y>I&&(this.itemX=st,this.lastLineHeight&&(this.itemY+=Et+this.lastLineHeight+mt),this.lastLineHeight=0),this.lastItemY=Et+this.itemY+mt,this.lastLineHeight=Math.max(dt,this.lastLineHeight),rt.x=this.itemX,rt.y=this.itemY,nt?this.itemX+=Y:(this.itemY+=Et+dt+mt,this.lastLineHeight=dt),this.offsetWidth=this.widthOption||Math.max((nt?this.itemX-st-(k.checkbox?0:Mt):Y)+st,this.offsetWidth)}getAllItems(){let k=[];return this.chart.series.forEach(function(Q){let st=Q&&Q.options;Q&&x(st.showInLegend,!u(st.linkedTo)&&void 0,!0)&&(k=k.concat((Q.legendItem||{}).labels||(st.legendType==="point"?Q.data:Q)))}),S(this,"afterGetAllItems",{allItems:k}),k}getAlignment(){let k=this.options;return this.proximate?k.align.charAt(0)+"tv":k.floating?"":k.align.charAt(0)+k.verticalAlign.charAt(0)+k.layout.charAt(0)}adjustMargins(k,Q){let st=this.chart,nt=this.options,dt=this.getAlignment();dt&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(mt,Et){mt.test(dt)&&!u(k[Et])&&(st[L[Et]]=Math.max(st[L[Et]],st.legend[(Et+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][Et]*nt[Et%2?"x":"y"]+x(nt.margin,12)+Q[Et]+(st.titleOffset[Et]||0)))})}proximatePositions(){let k,Q=this.chart,st=[],nt=this.options.align==="left";for(let dt of(this.allItems.forEach(function(mt){let Et,Mt,I=nt,Y,rt;mt.yAxis&&(mt.xAxis.options.reversed&&(I=!I),mt.points&&(Et=E(I?mt.points:mt.points.slice(0).reverse(),function(ot){return v(ot.plotY)})),Mt=this.itemMarginTop+mt.legendItem.label.getBBox().height+this.itemMarginBottom,rt=mt.yAxis.top-Q.plotTop,Y=mt.visible?(Et?Et.plotY:mt.yAxis.height)+(rt-.3*Mt):rt+mt.yAxis.height,st.push({target:Y,size:Mt,item:mt}))},this),M(st,Q.plotHeight)))k=dt.item.legendItem||{},v(dt.pos)&&(k.y=Q.plotTop-Q.spacing[0]+dt.pos)}render(){let k=this.chart,Q=k.renderer,st=this.options,nt=this.padding,dt=this.getAllItems(),mt,Et,Mt,I=this.group,Y,rt=this.box;this.itemX=nt,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=l(st.width,k.spacingBox.width-nt),Y=k.spacingBox.width-2*nt-st.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(Y/=2),this.maxLegendWidth=this.widthOption||Y,I||(this.group=I=Q.g("legend").addClass(st.className||"").attr({zIndex:7}).add(),this.contentGroup=Q.g().attr({zIndex:1}).add(I),this.scrollGroup=Q.g().add(this.contentGroup)),this.renderTitle(),f(dt,(ot,D)=>(ot.options&&ot.options.legendIndex||0)-(D.options&&D.options.legendIndex||0)),st.reversed&&dt.reverse(),this.allItems=dt,this.display=mt=!!dt.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,dt.forEach(this.renderItem,this),dt.forEach(this.layoutItem,this),Et=(this.widthOption||this.offsetWidth)+nt,Mt=this.lastItemY+this.lastLineHeight+this.titleHeight,Mt=this.handleOverflow(Mt)+nt,rt||(this.box=rt=Q.rect().addClass("highcharts-legend-box").attr({r:st.borderRadius}).add(I)),k.styledMode||rt.attr({stroke:st.borderColor,"stroke-width":st.borderWidth||0,fill:st.backgroundColor||"none"}).shadow(st.shadow),Et>0&&Mt>0&&rt[rt.placed?"animate":"attr"](rt.crisp.call({},{x:0,y:0,width:Et,height:Mt},rt.strokeWidth())),I[mt?"show":"hide"](),k.styledMode&&I.getStyle("display")==="none"&&(Et=Mt=0),this.legendWidth=Et,this.legendHeight=Mt,mt&&this.align(),this.proximate||this.positionItems(),S(this,"afterRender")}align(k=this.chart.spacingBox){let Q=this.chart,st=this.options,nt=k.y;/(lth|ct|rth)/.test(this.getAlignment())&&Q.titleOffset[0]>0?nt+=Q.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&Q.titleOffset[2]>0&&(nt-=Q.titleOffset[2]),nt!==k.y&&(k=g(k,{y:nt})),Q.hasRendered||(this.group.placed=!1),this.group.align(g(st,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":st.verticalAlign}),!0,k)}handleOverflow(k){let Q=this,st=this.chart,nt=st.renderer,dt=this.options,mt=dt.y,Et=dt.verticalAlign==="top",Mt=this.padding,I=dt.maxHeight,Y=dt.navigation,rt=x(Y.animation,!0),ot=Y.arrowSize||12,D=this.pages,P=this.allItems,W=function(Nt){typeof Nt=="number"?Tt.attr({height:Nt}):Tt&&(Q.clipRect=Tt.destroy(),Q.contentGroup.clip()),Q.contentGroup.div&&(Q.contentGroup.div.style.clip=Nt?"rect("+Mt+"px,9999px,"+(Mt+Nt)+"px,0)":"auto")},lt=function(Nt){return Q[Nt]=nt.circle(0,0,1.3*ot).translate(ot/2,ot/2).add(Ct),st.styledMode||Q[Nt].attr("fill","rgba(0,0,0,0.0001)"),Q[Nt]},it,vt,pt,xt=st.spacingBox.height+(Et?-mt:mt)-Mt,Ct=this.nav,Tt=this.clipRect;return dt.layout!=="horizontal"||dt.verticalAlign==="middle"||dt.floating||(xt/=2),I&&(xt=Math.min(xt,I)),D.length=0,k&&xt>0&&k>xt&&Y.enabled!==!1?(this.clipHeight=it=Math.max(xt-20-this.titleHeight-Mt,0),this.currentPage=x(this.currentPage,1),this.fullHeight=k,P.forEach((Nt,gt)=>{let wt=(pt=Nt.legendItem||{}).y||0,Rt=Math.round(pt.label.getBBox().height),jt=D.length;(!jt||wt-D[jt-1]>it&&(vt||wt)!==D[jt-1])&&(D.push(vt||wt),jt++),pt.pageIx=jt-1,vt&&((P[gt-1].legendItem||{}).pageIx=jt-1),gt===P.length-1&&wt+Rt-D[jt-1]>it&&wt>D[jt-1]&&(D.push(wt),pt.pageIx=jt),wt!==vt&&(vt=wt)}),Tt||(Tt=Q.clipRect=nt.clipRect(0,Mt-2,9999,0),Q.contentGroup.clip(Tt)),W(it),Ct||(this.nav=Ct=nt.g().attr({zIndex:1}).add(this.group),this.up=nt.symbol("triangle",0,0,ot,ot).add(Ct),lt("upTracker").on("click",function(){Q.scroll(-1,rt)}),this.pager=nt.text("",15,10).addClass("highcharts-legend-navigation"),!st.styledMode&&Y.style&&this.pager.css(Y.style),this.pager.add(Ct),this.down=nt.symbol("triangle-down",0,0,ot,ot).add(Ct),lt("downTracker").on("click",function(){Q.scroll(1,rt)})),Q.scroll(0),k=xt):Ct&&(W(),this.nav=Ct.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),k}scroll(k,Q){let st=this.chart,nt=this.pages,dt=nt.length,mt=this.clipHeight,Et=this.options.navigation,Mt=this.pager,I=this.padding,Y=this.currentPage+k;Y>dt&&(Y=dt),Y>0&&(Q!==void 0&&B(Q,st),this.nav.attr({translateX:I,translateY:mt+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(rt){rt.attr({class:Y===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),Mt.attr({text:Y+"/"+dt}),[this.down,this.downTracker].forEach(function(rt){rt.attr({x:18+this.pager.getBBox().width,class:Y===dt?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),st.styledMode||(this.up.attr({fill:Y===1?Et.inactiveColor:Et.activeColor}),this.upTracker.css({cursor:Y===1?"default":"pointer"}),this.down.attr({fill:Y===dt?Et.inactiveColor:Et.activeColor}),this.downTracker.css({cursor:Y===dt?"default":"pointer"})),this.scrollOffset=-nt[Y-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=Y,this.positionCheckboxes(),b(()=>{S(this,"afterScroll",{currentPage:Y})},X(x(Q,st.renderer.globalAnimation,!0)).duration))}setItemEvents(k,Q,st){let nt=this,dt=k.legendItem||{},mt=nt.chart.renderer.boxWrapper,Et=k instanceof J,Mt=k instanceof K,I="highcharts-legend-"+(Et?"point":"series")+"-active",Y=nt.chart.styledMode,rt=st?[Q,dt.symbol]:[dt.group],ot=D=>{nt.allItems.forEach(P=>{k!==P&&[P].concat(P.linkedSeries||[]).forEach(W=>{W.setState(D,!Et)})})};for(let D of rt)D&&D.on("mouseover",function(){k.visible&&ot("inactive"),k.setState("hover"),k.visible&&mt.addClass(I),Y||Q.css(nt.options.itemHoverStyle)}).on("mouseout",function(){nt.chart.styledMode||Q.css(g(k.visible?nt.itemStyle:nt.itemHiddenStyle)),ot(""),mt.removeClass(I),k.setState()}).on("click",function(P){let W=function(){k.setVisible&&k.setVisible(),ot(k.visible?"inactive":"")};mt.removeClass(I),S(nt,"itemClick",{browserEvent:P,legendItem:k},W),Et?k.firePointEvent("legendItemClick",{browserEvent:P}):Mt&&S(k,"legendItemClick",{browserEvent:P})})}createCheckboxForItem(k){k.checkbox=_("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:k.selected,defaultChecked:k.selected},this.options.itemCheckboxStyle,this.chart.container),w(k.checkbox,"click",function(Q){let st=Q.target;S(k.series||k,"checkboxClick",{checked:st.checked,item:k},function(){k.select()})})}}return(H=F||(F={})).compose=function(T){p(d,"Core.Legend")&&w(T,"beforeMargins",function(){this.legend=new H(this,this.options.legend)})},F}),y(m,"Core/Chart/Chart.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Axis/Axis.js"],m["Core/Defaults.js"],m["Core/Templating.js"],m["Core/Foundation.js"],m["Core/Globals.js"],m["Core/Renderer/RendererRegistry.js"],m["Core/Series/Series.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Renderer/SVG/SVGRenderer.js"],m["Core/Time.js"],m["Core/Utilities.js"],m["Core/Renderer/HTML/AST.js"],m["Core/Axis/Tick.js"]],function(R,j,et,K,J,q,Z,tt,H,X,B,U,d,L){let{animate:M,animObject:s,setAnimation:w}=R,{defaultOptions:_,defaultTime:o}=et,{numberFormat:u}=K,{registerEventOptions:C}=J,{charts:E,doc:S,marginNames:v,svg:g,win:x}=q,{seriesTypes:p}=H,{addEvent:l,attr:f,createElement:b,css:F,defined:T,diffObjects:k,discardElement:Q,erase:st,error:nt,extend:dt,find:mt,fireEvent:Et,getStyle:Mt,isArray:I,isNumber:Y,isObject:rt,isString:ot,merge:D,objectEach:P,pick:W,pInt:lt,relativeLength:it,removeEvent:vt,splat:pt,syncTimeout:xt,uniqueKey:Ct}=U;class Tt{static chart(gt,wt,Rt){return new Tt(gt,wt,Rt)}constructor(gt,wt,Rt){this.sharedClips={};let jt=[...arguments];(ot(gt)||gt.nodeName)&&(this.renderTo=jt.shift()),this.init(jt[0],jt[1])}setZoomOptions(){let gt=this.options.chart,wt=gt.zooming;this.zooming=ho(zr({},wt),{type:W(gt.zoomType,wt.type),key:W(gt.zoomKey,wt.key),pinchType:W(gt.pinchType,wt.pinchType),singleTouch:W(gt.zoomBySingleTouch,wt.singleTouch,!1),resetButton:D(wt.resetButton,gt.resetZoomButton)})}init(gt,wt){Et(this,"init",{args:arguments},function(){let Rt=D(_,gt),jt=Rt.chart;this.userOptions=dt({},gt),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=wt,this.isResizing=0,this.options=Rt,this.axes=[],this.series=[],this.time=gt.time&&Object.keys(gt.time).length?new B(gt.time):q.time,this.numberFormatter=jt.numberFormatter||u,this.styledMode=jt.styledMode,this.hasCartesianSeries=jt.showAxes,this.index=E.length,E.push(this),q.chartCount++,C(this,jt),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),Et(this,"afterInit"),this.firstRender()})}initSeries(gt){let wt=this.options.chart,Rt=gt.type||wt.type,jt=p[Rt];jt||nt(17,!0,this,{missingModuleFor:Rt});let Zt=new jt;return typeof Zt.init=="function"&&Zt.init(this,gt),Zt}setSortedData(){this.getSeriesOrderByLinks().forEach(function(gt){gt.points||gt.data||!gt.enabledDataSorting||gt.setData(gt.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(gt,wt){return gt.linkedSeries.length||wt.linkedSeries.length?wt.linkedSeries.length-gt.linkedSeries.length:0})}orderItems(gt,wt=0){let Rt=this[gt],jt=this.options[gt]=pt(this.options[gt]).slice(),Zt=this.userOptions[gt]=this.userOptions[gt]?pt(this.userOptions[gt]).slice():[];if(this.hasRendered&&(jt.splice(wt),Zt.splice(wt)),Rt)for(let ne=wt,Wt=Rt.length;ne=Math.max(de+ne,te.pos)&&Ot<=Math.min(de+ne+Ye.width,te.pos+te.len)||(Jt.isInsidePlot=!1)}if(!Rt.ignoreY&&Jt.isInsidePlot){let te=!jt&&Rt.axis&&!Rt.axis.isXAxis&&Rt.axis||be&&(jt?be.xAxis:be.yAxis)||{pos:Wt,len:1/0},Ot=Rt.paneCoordinates?te.pos+an:Wt+an;Ot>=Math.max(xe+Wt,te.pos)&&Ot<=Math.min(xe+Wt+Ye.height,te.pos+te.len)||(Jt.isInsidePlot=!1)}return Et(this,"afterIsInsidePlot",Jt),Jt.isInsidePlot}redraw(gt){Et(this,"beforeRedraw");let wt=this.hasCartesianSeries?this.axes:this.colorAxis||[],Rt=this.series,jt=this.pointer,Zt=this.legend,ne=this.userOptions.legend,Wt=this.renderer,le=Wt.isHidden(),de=[],xe,be,Ye,tn=this.isDirtyBox,an=this.isDirtyLegend,Jt;for(Wt.rootFontSize=Wt.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),w(!!this.hasRendered&>,this),le&&this.temporaryDisplay(),this.layOutTitles(!1),Ye=Rt.length;Ye--;)if(((Jt=Rt[Ye]).options.stacking||Jt.options.centerInCategory)&&(be=!0,Jt.isDirty)){xe=!0;break}if(xe)for(Ye=Rt.length;Ye--;)(Jt=Rt[Ye]).options.stacking&&(Jt.isDirty=!0);Rt.forEach(function(Kt){Kt.isDirty&&(Kt.options.legendType==="point"?(typeof Kt.updateTotals=="function"&&Kt.updateTotals(),an=!0):ne&&(ne.labelFormatter||ne.labelFormat)&&(an=!0)),Kt.isDirtyData&&Et(Kt,"updatedData")}),an&&Zt&&Zt.options.enabled&&(Zt.render(),this.isDirtyLegend=!1),be&&this.getStacks(),wt.forEach(function(Kt){Kt.updateNames(),Kt.setScale()}),this.getMargins(),wt.forEach(function(Kt){Kt.isDirty&&(tn=!0)}),wt.forEach(function(Kt){let te=Kt.min+","+Kt.max;Kt.extKey!==te&&(Kt.extKey=te,de.push(function(){Et(Kt,"afterSetExtremes",dt(Kt.eventArgs,Kt.getExtremes())),delete Kt.eventArgs})),(tn||be)&&Kt.redraw()}),tn&&this.drawChartBox(),Et(this,"predraw"),Rt.forEach(function(Kt){(tn||Kt.isDirty)&&Kt.visible&&Kt.redraw(),Kt.isDirtyData=!1}),jt&&jt.reset(!0),Wt.draw(),Et(this,"redraw"),Et(this,"render"),le&&this.temporaryDisplay(!0),de.forEach(function(Kt){Kt.call()})}get(gt){let wt=this.series;function Rt(Zt){return Zt.id===gt||Zt.options&&Zt.options.id===gt}let jt=mt(this.axes,Rt)||mt(this.series,Rt);for(let Zt=0;!jt&&Zt(wt.getPointsCollection().forEach(Rt=>{W(Rt.selectedStaging,Rt.selected)&>.push(Rt)}),gt),[])}getSelectedSeries(){return this.series.filter(function(gt){return gt.selected})}setTitle(gt,wt,Rt){this.applyDescription("title",gt),this.applyDescription("subtitle",wt),this.applyDescription("caption",void 0),this.layOutTitles(Rt)}applyDescription(gt,wt){let Rt=this,jt=this.options[gt]=D(this.options[gt],wt),Zt=this[gt];Zt&&wt&&(this[gt]=Zt=Zt.destroy()),jt&&!Zt&&((Zt=this.renderer.text(jt.text,0,0,jt.useHTML).attr({align:jt.align,class:"highcharts-"+gt,zIndex:jt.zIndex||4}).add()).update=function(ne,Wt){Rt.applyDescription(gt,ne),Rt.layOutTitles(Wt)},this.styledMode||Zt.css(dt(gt==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},jt.style)),this[gt]=Zt)}layOutTitles(gt=!0){let wt=[0,0,0],Rt=this.renderer,jt=this.spacingBox;["title","subtitle","caption"].forEach(function(ne){let Wt=this[ne],le=this.options[ne],de=le.verticalAlign||"top",xe=ne==="title"?de==="top"?-3:0:de==="top"?wt[0]+2:0;if(Wt){Wt.css({width:(le.width||jt.width+(le.widthAdjust||0))+"px"});let be=Rt.fontMetrics(Wt).b,Ye=Math.round(Wt.getBBox(le.useHTML).height);Wt.align(dt({y:de==="bottom"?be:xe+be,height:Ye},le),!1,"spacingBox"),le.floating||(de==="top"?wt[0]=Math.ceil(wt[0]+Ye):de==="bottom"&&(wt[2]=Math.ceil(wt[2]+Ye)))}},this),wt[0]&&(this.options.title.verticalAlign||"top")==="top"&&(wt[0]+=this.options.title.margin),wt[2]&&this.options.caption.verticalAlign==="bottom"&&(wt[2]+=this.options.caption.margin);let Zt=!this.titleOffset||this.titleOffset.join(",")!==wt.join(",");this.titleOffset=wt,Et(this,"afterLayOutTitles"),!this.isDirtyBox&&Zt&&(this.isDirtyBox=this.isDirtyLegend=Zt,this.hasRendered&>&&this.isDirtyBox&&this.redraw())}getContainerBox(){let gt=[].map.call(this.renderTo.children,Rt=>{if(Rt!==this.container){let jt=Rt.style.display;return Rt.style.display="none",[Rt,jt]}}),wt={width:Mt(this.renderTo,"width",!0)||0,height:Mt(this.renderTo,"height",!0)||0};return gt.filter(Boolean).forEach(([Rt,jt])=>{Rt.style.display=jt}),wt}getChartSize(){var ne;let gt=this.options.chart,wt=gt.width,Rt=gt.height,jt=this.getContainerBox(),Zt=jt.height>1&&!(!((ne=this.renderTo.parentElement)!=null&&ne.style.height)&&this.renderTo.style.height==="100%");this.chartWidth=Math.max(0,wt||jt.width||600),this.chartHeight=Math.max(0,it(Rt,this.chartWidth)||(Zt?jt.height:400)),this.containerBox=jt}temporaryDisplay(gt){let wt=this.renderTo,Rt;if(gt)for(;wt&&wt.style;)wt.hcOrigStyle&&(F(wt,wt.hcOrigStyle),delete wt.hcOrigStyle),wt.hcOrigDetached&&(S.body.removeChild(wt),wt.hcOrigDetached=!1),wt=wt.parentNode;else for(;wt&&wt.style&&(S.body.contains(wt)||wt.parentNode||(wt.hcOrigDetached=!0,S.body.appendChild(wt)),(Mt(wt,"display",!1)==="none"||wt.hcOricDetached)&&(wt.hcOrigStyle={display:wt.style.display,height:wt.style.height,overflow:wt.style.overflow},Rt={display:"block",overflow:"hidden"},wt!==this.renderTo&&(Rt.height=0),F(wt,Rt),wt.offsetWidth||wt.style.setProperty("display","block","important")),(wt=wt.parentNode)!==S.body););}setClassName(gt){this.container.className="highcharts-container "+(gt||"")}getContainer(){var Ye;let gt=this.options,wt=gt.chart,Rt="data-highcharts-chart",jt=Ct(),Zt,ne=this.renderTo;ne||(this.renderTo=ne=wt.renderTo),ot(ne)&&(this.renderTo=ne=S.getElementById(ne)),ne||nt(13,!0,this);let Wt=lt(f(ne,Rt));Y(Wt)&&E[Wt]&&E[Wt].hasRendered&&E[Wt].destroy(),f(ne,Rt,this.index),ne.innerHTML=d.emptyHTML,wt.skipClone||ne.offsetWidth||this.temporaryDisplay(),this.getChartSize();let le=this.chartHeight,de=this.chartWidth;F(ne,{overflow:"hidden"}),this.styledMode||(Zt=dt({position:"relative",overflow:"hidden",width:de+"px",height:le+"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"},wt.style||{}));let xe=b("div",{id:jt},Zt,ne);this.container=xe,this.getChartSize(),de===this.chartWidth||(de=this.chartWidth,this.styledMode||F(xe,{width:W((Ye=wt.style)==null?void 0:Ye.width,de+"px")})),this.containerBox=this.getContainerBox(),this._cursor=xe.style.cursor;let be=wt.renderer||!g?Z.getRendererType(wt.renderer):X;if(this.renderer=new be(xe,de,le,void 0,wt.forExport,gt.exporting&>.exporting.allowHTML,this.styledMode),w(void 0,this),this.setClassName(wt.className),this.styledMode)for(let tn in gt.defs)this.renderer.definition(gt.defs[tn]);else this.renderer.setStyle(wt.style);this.renderer.chartIndex=this.index,Et(this,"afterGetContainer")}getMargins(gt){let{spacing:wt,margin:Rt,titleOffset:jt}=this;this.resetMargins(),jt[0]&&!T(Rt[0])&&(this.plotTop=Math.max(this.plotTop,jt[0]+wt[0])),jt[2]&&!T(Rt[2])&&(this.marginBottom=Math.max(this.marginBottom,jt[2]+wt[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(Rt,wt),Et(this,"getMargins"),gt||this.getAxisMargins()}getAxisMargins(){let gt=this,wt=gt.axisOffset=[0,0,0,0],Rt=gt.colorAxis,jt=gt.margin,Zt=function(ne){ne.forEach(function(Wt){Wt.visible&&Wt.getOffset()})};gt.hasCartesianSeries?Zt(gt.axes):Rt&&Rt.length&&Zt(Rt),v.forEach(function(ne,Wt){T(jt[Wt])||(gt[ne]+=wt[Wt])}),gt.setChartSize()}getOptions(){return k(this.userOptions,_)}reflow(gt){var Zt;let wt=this,Rt=wt.containerBox,jt=wt.getContainerBox();(Zt=wt.pointer)==null||delete Zt.chartPosition,!wt.isPrinting&&!wt.isResizing&&Rt&&jt.width&&((jt.width!==Rt.width||jt.height!==Rt.height)&&(U.clearTimeout(wt.reflowTimeout),wt.reflowTimeout=xt(function(){wt.container&&wt.setSize(void 0,void 0,!1)},gt?100:0)),wt.containerBox=jt)}setReflow(){let gt=this,wt=Rt=>{var jt;(jt=gt.options)!=null&&jt.chart.reflow&>.hasLoaded&>.reflow(Rt)};if(typeof ResizeObserver=="function")new ResizeObserver(wt).observe(gt.renderTo);else{let Rt=l(x,"resize",wt);l(this,"destroy",Rt)}}setSize(gt,wt,Rt){let jt=this,Zt=jt.renderer;jt.isResizing+=1,w(Rt,jt);let ne=Zt.globalAnimation;jt.oldChartHeight=jt.chartHeight,jt.oldChartWidth=jt.chartWidth,gt!==void 0&&(jt.options.chart.width=gt),wt!==void 0&&(jt.options.chart.height=wt),jt.getChartSize();let{chartWidth:Wt,chartHeight:le,scrollablePixelsX:de=0,scrollablePixelsY:xe=0}=jt;(jt.isDirtyBox||Wt!==jt.oldChartWidth||le!==jt.oldChartHeight)&&(jt.styledMode||(ne?M:F)(jt.container,{width:`${Wt+de}px`,height:`${le+xe}px`},ne),jt.setChartSize(!0),Zt.setSize(Wt,le,ne),jt.axes.forEach(function(be){be.isDirty=!0,be.setScale()}),jt.isDirtyLegend=!0,jt.isDirtyBox=!0,jt.layOutTitles(),jt.getMargins(),jt.redraw(ne),jt.oldChartHeight=void 0,Et(jt,"resize"),setTimeout(()=>{jt&&Et(jt,"endResize")},s(ne).duration)),jt.isResizing-=1}setChartSize(gt){let wt,Rt,jt,Zt,{chartHeight:ne,chartWidth:Wt,inverted:le,spacing:de,renderer:xe}=this,be=this.clipOffset,Ye=Math[le?"floor":"round"];this.plotLeft=wt=Math.round(this.plotLeft),this.plotTop=Rt=Math.round(this.plotTop),this.plotWidth=jt=Math.max(0,Math.round(Wt-wt-this.marginRight)),this.plotHeight=Zt=Math.max(0,Math.round(ne-Rt-this.marginBottom)),this.plotSizeX=le?Zt:jt,this.plotSizeY=le?jt:Zt,this.spacingBox=xe.spacingBox={x:de[3],y:de[0],width:Wt-de[3]-de[1],height:ne-de[0]-de[2]},this.plotBox=xe.plotBox={x:wt,y:Rt,width:jt,height:Zt},be&&(this.clipBox={x:Ye(be[3]),y:Ye(be[0]),width:Ye(this.plotSizeX-be[1]-be[3]),height:Ye(this.plotSizeY-be[0]-be[2])}),gt||(this.axes.forEach(function(tn){tn.setAxisSize(),tn.setAxisTranslation()}),xe.alignElements()),Et(this,"afterSetChartSize",{skipAxes:gt})}resetMargins(){Et(this,"resetMargins");let gt=this,wt=gt.options.chart,Rt=wt.plotBorderWidth||0,jt=Rt/2;["margin","spacing"].forEach(function(Zt){let ne=wt[Zt],Wt=rt(ne)?ne:[ne,ne,ne,ne];["Top","Right","Bottom","Left"].forEach(function(le,de){gt[Zt][de]=W(wt[Zt+le],Wt[de])})}),v.forEach(function(Zt,ne){gt[Zt]=W(gt.margin[ne],gt.spacing[ne])}),gt.axisOffset=[0,0,0,0],gt.clipOffset=[jt,jt,jt,jt],gt.plotBorderWidth=Rt}drawChartBox(){let gt=this.options.chart,wt=this.renderer,Rt=this.chartWidth,jt=this.chartHeight,Zt=this.styledMode,ne=this.plotBGImage,Wt=gt.backgroundColor,le=gt.plotBackgroundColor,de=gt.plotBackgroundImage,xe=this.plotLeft,be=this.plotTop,Ye=this.plotWidth,tn=this.plotHeight,an=this.plotBox,Jt=this.clipRect,Kt=this.clipBox,te=this.chartBackground,Ot=this.plotBackground,Bt=this.plotBorder,Ut,zt,ce,_e="animate";te||(this.chartBackground=te=wt.rect().addClass("highcharts-background").add(),_e="attr"),Zt?Ut=zt=te.strokeWidth():(zt=(Ut=gt.borderWidth||0)+(gt.shadow?8:0),ce={fill:Wt||"none"},(Ut||te["stroke-width"])&&(ce.stroke=gt.borderColor,ce["stroke-width"]=Ut),te.attr(ce).shadow(gt.shadow)),te[_e]({x:zt/2,y:zt/2,width:Rt-zt-Ut%2,height:jt-zt-Ut%2,r:gt.borderRadius}),_e="animate",Ot||(_e="attr",this.plotBackground=Ot=wt.rect().addClass("highcharts-plot-background").add()),Ot[_e](an),!Zt&&(Ot.attr({fill:le||"none"}).shadow(gt.plotShadow),de&&(ne?(de!==ne.attr("href")&&ne.attr("href",de),ne.animate(an)):this.plotBGImage=wt.image(de,xe,be,Ye,tn).add())),Jt?Jt.animate({width:Kt.width,height:Kt.height}):this.clipRect=wt.clipRect(Kt),_e="animate",Bt||(_e="attr",this.plotBorder=Bt=wt.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),Zt||Bt.attr({stroke:gt.plotBorderColor,"stroke-width":gt.plotBorderWidth||0,fill:"none"}),Bt[_e](Bt.crisp({x:xe,y:be,width:Ye,height:tn},-Bt.strokeWidth())),this.isDirtyBox=!1,Et(this,"afterDrawChartBox")}propFromSeries(){let gt,wt,Rt,jt=this,Zt=jt.options.chart,ne=jt.options.series;["inverted","angular","polar"].forEach(function(Wt){for(wt=p[Zt.type],Rt=Zt[Wt]||wt&&wt.prototype[Wt],gt=ne&&ne.length;!Rt&>--;)(wt=p[ne[gt].type])&&wt.prototype[Wt]&&(Rt=!0);jt[Wt]=Rt})}linkSeries(gt){let wt=this,Rt=wt.series;Rt.forEach(function(jt){jt.linkedSeries.length=0}),Rt.forEach(function(jt){let{linkedTo:Zt}=jt.options;if(ot(Zt)){let ne;(ne=Zt===":previous"?wt.series[jt.index-1]:wt.get(Zt))&&ne.linkedParent!==jt&&(ne.linkedSeries.push(jt),jt.linkedParent=ne,ne.enabledDataSorting&&jt.setDataSortingOptions(),jt.visible=W(jt.options.visible,ne.options.visible,jt.visible))}}),Et(this,"afterLinkSeries",{isUpdating:gt})}renderSeries(){this.series.forEach(function(gt){gt.translate(),gt.render()})}render(){var xe;let gt=this.axes,wt=this.colorAxis,Rt=this.renderer,jt=this.options.chart.axisLayoutRuns||2,Zt=be=>{be.forEach(Ye=>{Ye.visible&&Ye.render()})},ne=0,Wt=!0,le,de=0;for(let be of(this.setTitle(),Et(this,"beforeMargins"),(xe=this.getStacks)==null||xe.call(this),this.getMargins(!0),this.setChartSize(),gt)){let{options:Ye}=be,{labels:tn}=Ye;if(this.hasCartesianSeries&&be.horiz&&be.visible&&tn.enabled&&be.series.length&&be.coll!=="colorAxis"&&!this.polar){ne=Ye.tickLength,be.createGroups();let an=new L(be,0,"",!0),Jt=an.createLabel("x",tn);if(an.destroy(),Jt&&W(tn.reserveSpace,!Y(Ye.crossing))&&(ne=Jt.getBBox().height+tn.distance+Math.max(Ye.offset||0,0)),ne){Jt==null||Jt.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-ne,0);(Wt||le||jt>1)&&de(de?1:1.1),le=Ye/this.plotHeight>(de?1:1.05),de++}this.drawChartBox(),this.hasCartesianSeries?Zt(gt):wt&&wt.length&&Zt(wt),this.seriesGroup||(this.seriesGroup=Rt.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(gt){let wt=this,Rt=D(!0,this.options.credits,gt);Rt.enabled&&!this.credits&&(this.credits=this.renderer.text(Rt.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){Rt.href&&(x.location.href=Rt.href)}).attr({align:Rt.position.align,zIndex:8}),wt.styledMode||this.credits.css(Rt.style),this.credits.add().align(Rt.position),this.credits.update=function(jt){wt.credits=wt.credits.destroy(),wt.addCredits(jt)})}destroy(){let gt,wt=this,Rt=wt.axes,jt=wt.series,Zt=wt.container,ne=Zt&&Zt.parentNode;for(Et(wt,"destroy"),wt.renderer.forExport?st(E,wt):E[wt.index]=void 0,q.chartCount--,wt.renderTo.removeAttribute("data-highcharts-chart"),vt(wt),gt=Rt.length;gt--;)Rt[gt]=Rt[gt].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),gt=jt.length;gt--;)jt[gt]=jt[gt].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(Wt){let le=wt[Wt];le&&le.destroy&&(wt[Wt]=le.destroy())}),Zt&&(Zt.innerHTML=d.emptyHTML,vt(Zt),ne&&Q(Zt)),P(wt,function(Wt,le){delete wt[le]})}firstRender(){var jt;let gt=this,wt=gt.options;gt.getContainer(),gt.resetMargins(),gt.setChartSize(),gt.propFromSeries(),gt.getAxes();let Rt=I(wt.series)?wt.series:[];wt.series=[],Rt.forEach(function(Zt){gt.initSeries(Zt)}),gt.linkSeries(),gt.setSortedData(),Et(gt,"beforeRender"),gt.render(),(jt=gt.pointer)==null||jt.getChartPosition(),gt.renderer.imgCount||gt.hasLoaded||gt.onload(),gt.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(gt){gt&&this.index!==void 0&>.apply(this,[this])},this),Et(this,"load"),Et(this,"render"),T(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:gt,title:wt}=this;!gt||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(wt&&wt.element.textContent||"").replace(/this.transform({reset:!0,trigger:"zoom"}))}pan(gt,wt){let Rt=this,jt=typeof wt=="object"?wt:{enabled:wt,type:"x"},Zt=jt.type,ne=Zt&&Rt[{x:"xAxis",xy:"axes",y:"yAxis"}[Zt]].filter(le=>le.options.panningEnabled&&!le.options.isInternal),Wt=Rt.options.chart;Wt!=null&&Wt.panning&&(Wt.panning=jt),Et(this,"pan",{originalEvent:gt},()=>{Rt.transform({axes:ne,event:gt,to:{x:gt.chartX-(Rt.mouseDownX||0),y:gt.chartY-(Rt.mouseDownY||0)},trigger:"pan"}),F(Rt.container,{cursor:"move"})})}transform(gt){var tn,an,Jt,Kt,te;let{axes:wt=this.axes,event:Rt,from:jt={},reset:Zt,selection:ne,to:Wt={},trigger:le}=gt,{inverted:de}=this,xe=!1,be,Ye;for(let Ot of((tn=this.hoverPoints)==null||tn.forEach(Bt=>Bt.setState()),wt)){let{horiz:Bt,len:Ut,minPointOffset:zt=0,options:ce,reversed:_e}=Ot,ye=Bt?"width":"height",qe=Bt?"x":"y",hn=W(Wt[ye],Ot.len),yn=W(jt[ye],Ot.len),Nn=10>Math.abs(hn)?1:hn/yn,pn=(jt[qe]||0)+yn/2-Ot.pos,Mn=pn-(((an=Wt[qe])!=null?an:Ot.pos)+hn/2-Ot.pos)/Nn,Kn=_e&&!de||!_e&&de?-1:1;if(!Zt&&(pn<0||pn>Ot.len))continue;let fr=Ot.toValue(Mn,!0)+(ne||Ot.isOrdinal?0:zt*Kn),ge=Ot.toValue(Mn+Ut/Nn,!0)-(ne||Ot.isOrdinal?0:zt*Kn||0),Ie=Ot.allExtremes;if(fr>ge&&([fr,ge]=[ge,fr]),Nn===1&&!Zt&&Ot.coll==="yAxis"&&!Ie){for(let nn of Ot.series){let fn=nn.getExtremes(nn.getProcessedData(!0).yData,!0);Ie!=null||(Ie={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),Y(fn.dataMin)&&Y(fn.dataMax)&&(Ie.dataMin=Math.min(fn.dataMin,Ie.dataMin),Ie.dataMax=Math.max(fn.dataMax,Ie.dataMax))}Ot.allExtremes=Ie}let{dataMin:Ge,dataMax:ve,min:Re,max:ze}=dt(Ot.getExtremes(),Ie||{}),Oe=Ge!=null?Ge:ce.min,De=ve!=null?ve:ce.max,Ze=ge-fr,Sn=Ot.categories?0:Math.min(Ze,De-Oe),Me=Oe-Sn*(T(ce.min)?0:ce.minPadding),en=De+Sn*(T(ce.max)?0:ce.maxPadding),xn=Ot.allowZoomOutside||Nn===1||le!=="zoom"&&Nn>1,Te=Math.min((Jt=ce.min)!=null?Jt:Me,Me,xn?Re:Me),bn=Math.max((Kt=ce.max)!=null?Kt:en,en,xn?ze:en);(!Ot.isOrdinal||Ot.options.overscroll||Nn!==1||Zt)&&(fr=1&&(ge=fr+Ze)),ge>bn&&(ge=bn,Nn>=1&&(fr=ge-Ze)),(Zt||Ot.series.length&&(fr!==Re||ge!==ze)&&fr>=Te&&ge<=bn)&&(ne?ne[Ot.coll].push({axis:Ot,min:fr,max:ge}):(Ot.isPanning=le!=="zoom",Ot.isPanning&&(Ye=!0),Ot.setExtremes(Zt?void 0:fr,Zt?void 0:ge,!1,!1,{move:Mn,trigger:le,scale:Nn}),!Zt&&(fr>Te||ge{delete gt.selection,gt.trigger="zoom",this.transform(gt)}):(!be||Ye||this.resetZoomButton?!be&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw(le==="zoom"&&((te=this.options.chart.animation)!=null?te:this.pointCount<100)))),xe}}return dt(Tt.prototype,{callbacks:[],collectionsWithInit:{xAxis:[Tt.prototype.addAxis,[!0]],yAxis:[Tt.prototype.addAxis,[!1]],series:[Tt.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","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"]}),Tt}),y(m,"Extensions/ScrollablePlotArea.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Globals.js"],m["Core/Renderer/RendererRegistry.js"],m["Core/Utilities.js"]],function(R,j,et,K){let{stop:J}=R,{composed:q}=j,{addEvent:Z,createElement:tt,css:H,defined:X,merge:B,pushUnique:U}=K;function d(){let s=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!s&&(this.scrollablePlotArea=s=new M(this)),s==null||s.applyFixed()}function L(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class M{static compose(w,_,o){U(q,this.compose)&&(Z(w,"afterInit",L),Z(_,"afterSetChartSize",u=>this.afterSetSize(u.target,u)),Z(_,"render",d),Z(o,"show",L))}static afterSetSize(w,_){let o,u,C,{minWidth:E,minHeight:S}=w.options.chart.scrollablePlotArea||{},{clipBox:v,plotBox:g,inverted:x,renderer:p}=w;if(!p.forExport&&(E?(w.scrollablePixelsX=o=Math.max(0,E-w.chartWidth),o&&(w.scrollablePlotBox=B(w.plotBox),g.width=w.plotWidth+=o,v[x?"height":"width"]+=o,C=!0)):S&&(w.scrollablePixelsY=u=Math.max(0,S-w.chartHeight),X(u)&&(w.scrollablePlotBox=B(w.plotBox),g.height=w.plotHeight+=u,v[x?"width":"height"]+=u,C=!1)),X(C)&&!_.skipAxes))for(let l of w.axes)l.horiz===C&&(l.setAxisSize(),l.setAxisTranslation())}constructor(w){var f,b;let _,o=w.options.chart,u=et.getRendererType(),C=o.scrollablePlotArea||{},E=this.moveFixedElements.bind(this),S={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};w.scrollablePixelsX&&(S.overflowX="auto"),w.scrollablePixelsY&&(S.overflowY="auto"),this.chart=w;let v=this.parentDiv=tt("div",{className:"highcharts-scrolling-parent"},{position:"relative"},w.renderTo),g=this.scrollingContainer=tt("div",{className:"highcharts-scrolling"},S,v),x=this.innerContainer=tt("div",{className:"highcharts-inner-container"},void 0,g),p=this.fixedDiv=tt("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(((f=o.style)==null?void 0:f.zIndex)||0)+2,top:0},void 0,!0),l=this.fixedRenderer=new u(p,w.chartWidth,w.chartHeight,o.style);this.mask=l.path().attr({fill:o.backgroundColor||"#fff","fill-opacity":(b=C.opacity)!=null?b:.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),g.parentNode.insertBefore(p,g),H(w.renderTo,{overflow:"visible"}),Z(w,"afterShowResetZoom",E),Z(w,"afterApplyDrilldown",E),Z(w,"afterLayOutTitles",E),Z(g,"scroll",()=>{let{pointer:F,hoverPoint:T}=w;F&&(delete F.chartPosition,T&&(_=T),F.runPointActions(void 0,_,!0))}),x.appendChild(w.container)}applyFixed(){var Y;let{chart:w,fixedRenderer:_,isDirty:o,scrollingContainer:u}=this,{axisOffset:C,chartWidth:E,chartHeight:S,container:v,plotHeight:g,plotLeft:x,plotTop:p,plotWidth:l,scrollablePixelsX:f=0,scrollablePixelsY:b=0}=w,{scrollPositionX:F=0,scrollPositionY:T=0}=w.options.chart.scrollablePlotArea||{},k=E+f,Q=S+b;_.setSize(E,S),(o==null||o)&&(this.isDirty=!1,this.moveFixedElements()),J(w.container),H(v,{width:`${k}px`,height:`${Q}px`}),w.renderer.boxWrapper.attr({width:k,height:Q,viewBox:[0,0,k,Q].join(" ")}),(Y=w.chartBackground)==null||Y.attr({width:k,height:Q}),H(u,{width:`${E}px`,height:`${S}px`}),X(o)||(u.scrollLeft=f*F,u.scrollTop=b*T);let st=p-C[0]-1,nt=x-C[3]-1,dt=p+g+C[2]+1,mt=x+l+C[1]+1,Et=x+l-f,Mt=p+g-b,I=[["M",0,0]];f?I=[["M",0,st],["L",x-1,st],["L",x-1,dt],["L",0,dt],["Z"],["M",Et,st],["L",E,st],["L",E,dt],["L",Et,dt],["Z"]]:b&&(I=[["M",nt,0],["L",nt,p-1],["L",mt,p-1],["L",mt,0],["Z"],["M",nt,Mt],["L",nt,S],["L",mt,S],["L",mt,Mt],["Z"]]),w.redrawTrigger!=="adjustHeight"&&this.mask.attr({d:I})}moveFixedElements(){let w,{container:_,inverted:o,scrollablePixelsX:u,scrollablePixelsY:C}=this.chart,E=this.fixedRenderer,S=M.fixedSelectors;for(let v of(u&&!o?w=".highcharts-yaxis":u&&o||C&&!o?w=".highcharts-xaxis":C&&o&&(w=".highcharts-yaxis"),w&&S.push(`${w}:not(.highcharts-radial-axis)`,`${w}-labels:not(.highcharts-radial-axis-labels)`),S))[].forEach.call(_.querySelectorAll(v),g=>{(g.namespaceURI===E.SVG_NS?E.box:E.box.parentNode).appendChild(g),g.style.pointerEvents="auto"})}}return M.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"],M}),y(m,"Core/Axis/Stacking/StackItem.js",[m["Core/Templating.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j,et){let{format:K}=R,{series:J}=j,{destroyObjectProperties:q,fireEvent:Z,isNumber:tt,pick:H}=et;return class{constructor(X,B,U,d,L){let M=X.chart.inverted,s=X.reversed;this.axis=X;let w=this.isNegative=!!U!=!!s;this.options=B=B||{},this.x=d,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=L,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:B.align||(M?w?"left":"right":"center"),verticalAlign:B.verticalAlign||(M?"middle":w?"bottom":"top"),y:B.y,x:B.x},this.textAlign=B.textAlign||(M?w?"right":"left":"center")}destroy(){q(this,this.axis)}render(X){let B=this.axis.chart,U=this.options,d=U.format,L=d?K(d,this,B):U.formatter.call(this);if(this.label)this.label.attr({text:L,visibility:"hidden"});else{this.label=B.renderer.label(L,null,void 0,U.shape,void 0,void 0,U.useHTML,!1,"stack-labels");let M={r:U.borderRadius||0,text:L,padding:H(U.padding,5),visibility:"hidden"};B.styledMode||(M.fill=U.backgroundColor,M.stroke=U.borderColor,M["stroke-width"]=U.borderWidth,this.label.css(U.style||{})),this.label.attr(M),this.label.added||this.label.add(X)}this.label.labelrank=B.plotSizeY,Z(this,"afterRender")}setOffset(X,B,U,d,L,M){let{alignOptions:s,axis:w,label:_,options:o,textAlign:u}=this,C=w.chart,E=this.getStackBox({xOffset:X,width:B,boxBottom:U,boxTop:d,defaultX:L,xAxis:M}),{verticalAlign:S}=s;if(_&&E){let v=_.getBBox(void 0,0),g=_.padding,x=H(o.overflow,"justify")==="justify",p;s.x=o.x||0,s.y=o.y||0;let{x:l,y:f}=this.adjustStackPosition({labelBox:v,verticalAlign:S,textAlign:u});E.x-=l,E.y-=f,_.align(s,!1,E),(p=C.isInsidePlot(_.alignAttr.x+s.x+l,_.alignAttr.y+s.y+f))||(x=!1),x&&J.prototype.justifyDataLabel.call(w,_,s,_.alignAttr,v,E),_.attr({x:_.alignAttr.x,y:_.alignAttr.y,rotation:o.rotation,rotationOriginX:v.width*{left:0,center:.5,right:1}[o.textAlign||"center"],rotationOriginY:v.height/2}),H(!x&&o.crop,!0)&&(p=tt(_.x)&&tt(_.y)&&C.isInsidePlot(_.x-g+(_.width||0),_.y)&&C.isInsidePlot(_.x+g,_.y)),_[p?"show":"hide"]()}Z(this,"afterSetOffset",{xOffset:X,width:B})}adjustStackPosition({labelBox:X,verticalAlign:B,textAlign:U}){let d={bottom:0,middle:1,top:2,right:1,center:0,left:-1},L=d[B],M=d[U];return{x:X.width/2+X.width/2*M,y:X.height/2*L}}getStackBox(X){let B=this.axis,U=B.chart,{boxTop:d,defaultX:L,xOffset:M,width:s,boxBottom:w}=X,_=B.stacking.usePercentage?100:H(d,this.total,0),o=B.toPixels(_),u=X.xAxis||U.xAxis[0],C=H(L,u.translate(this.x))+M,E=Math.abs(o-B.toPixels(w||tt(B.min)&&B.logarithmic&&B.logarithmic.lin2log(B.min)||0)),S=U.inverted,v=this.isNegative;return S?{x:(v?o:o-E)-U.plotLeft,y:u.height-C-s+u.top-U.plotTop,width:E,height:s}:{x:C+u.transB-U.plotLeft,y:(v?o-E:o)-U.plotTop,width:s,height:E}}}}),y(m,"Core/Axis/Stacking/StackingAxis.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Axis/Axis.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Axis/Stacking/StackItem.js"],m["Core/Utilities.js"]],function(R,j,et,K,J){var q;let{getDeferredAnimation:Z}=R,{series:{prototype:tt}}=et,{addEvent:H,correctFloat:X,defined:B,destroyObjectProperties:U,fireEvent:d,isArray:L,isNumber:M,objectEach:s,pick:w}=J;function _(){let p=this.inverted;this.axes.forEach(l=>{l.stacking&&l.stacking.stacks&&l.hasVisibleSeries&&(l.stacking.oldStacks=l.stacking.stacks)}),this.series.forEach(l=>{let f=l.xAxis&&l.xAxis.options||{};l.options.stacking&&l.reserveSpace()&&(l.stackKey=[l.type,w(l.options.stack,""),p?f.top:f.left,p?f.height:f.width].join(","))})}function o(){var l;let p=this.stacking;if(p){let f=p.stacks;s(f,(b,F)=>{U(b),delete f[F]}),(l=p.stackTotalGroup)==null||l.destroy()}}function u(){this.stacking||(this.stacking=new x(this))}function C(p,l,f,b){return!B(p)||p.x!==l||b&&p.stackKey!==b?p={x:l,index:0,key:b,stackKey:b}:p.index++,p.key=[f,l,p.index].join(","),p}function E(){let p,l=this,f=l.yAxis,b=l.stackKey||"",F=f.stacking.stacks,T=l.processedXData,k=l.options.stacking,Q=l[k+"Stacker"];Q&&[b,"-"+b].forEach(st=>{var Mt;let nt=T.length,dt,mt,Et;for(;nt--;)dt=T[nt],p=l.getStackIndicator(p,dt,l.index,st),mt=(Mt=F[st])==null?void 0:Mt[dt],(Et=mt==null?void 0:mt.points[p.key||""])&&Q.call(l,Et,mt,nt)})}function S(p,l,f){let b=l.total?100/l.total:0;p[0]=X(p[0]*b),p[1]=X(p[1]*b),this.stackedYData[f]=p[1]}function v(p){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&!this.options.stacking&&this.chart.series.length>1?tt.setStackedPoints.call(this,p,"group"):p.stacking.resetStacks())}function g(p,l){var Ct,Tt;let f,b,F,T,k,Q,st,nt,dt,mt=l||this.options.stacking;if(!mt||!this.reserveSpace()||({group:"xAxis"}[mt]||"yAxis")!==p.coll)return;let Et=this.processedXData,Mt=this.processedYData,I=[],Y=Mt.length,rt=this.options,ot=rt.threshold||0,D=rt.startFromThreshold?ot:0,P=rt.stack,W=l?`${this.type},${mt}`:this.stackKey||"",lt="-"+W,it=this.negStacks,vt=p.stacking,pt=vt.stacks,xt=vt.oldStacks;for(vt.stacksTouched+=1,st=0;st0&&this.singleStacks===!1&&(F.points[Q][0]=F.points[this.index+","+nt+",0"][0])):(delete F.points[Q],delete F.points[this.index]);let Nt=F.total||0;mt==="percent"?(T=b?W:lt,Nt=it&&((Tt=pt[T])!=null&&Tt[nt])?(T=pt[T][nt]).total=Math.max(T.total||0,Nt)+Math.abs(dt)||0:X(Nt+(Math.abs(dt)||0))):mt==="group"?(L(dt)&&(dt=dt[0]),dt!==null&&Nt++):Nt=X(Nt+(dt||0)),mt==="group"?F.cumulative=(Nt||1)-1:F.cumulative=X(w(F.cumulative,D)+(dt||0)),F.total=Nt,dt!==null&&(F.points[Q].push(F.cumulative),I[st]=F.cumulative,F.hasValidPoints=!0)}mt==="percent"&&(vt.usePercentage=!0),mt!=="group"&&(this.stackedYData=I),vt.oldStacks={}}class x{constructor(l){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=l}buildStacks(){let l,f,b=this.axis,F=b.series,T=b.coll==="xAxis",k=b.options.reversedStacks,Q=F.length;for(this.resetStacks(),this.usePercentage=!1,f=Q;f--;)l=F[k?f:Q-f-1],T&&l.setGroupedPoints(b),l.setStackedPoints(b);if(!T)for(f=0;f{s(l,f=>{f.cumulative=f.total})}))}resetStacks(){s(this.stacks,l=>{s(l,(f,b)=>{M(f.touched)&&f.touched{s(st,nt=>{nt.render(k)})}),k.animate({opacity:1},T)}}return(q||(q={})).compose=function(p,l,f){let b=l.prototype,F=f.prototype;b.getStacks||(H(p,"init",u),H(p,"destroy",o),b.getStacks=_,F.getStackIndicator=C,F.modifyStacks=E,F.percentStacker=S,F.setGroupedPoints=v,F.setStackedPoints=g)},q}),y(m,"Series/Line/LineSeries.js",[m["Core/Series/Series.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j,et){let{defined:K,merge:J,isObject:q}=et;class Z extends R{drawGraph(){let H=this.options,X=(this.gappedPath||this.getGraphPath).call(this),B=this.chart.styledMode;[this,...this.zones].forEach((U,d)=>{let L,M=U.graph,s=M?"animate":"attr",w=U.dashStyle||H.dashStyle;M?(M.endX=this.preventGraphAnimation?null:X.xMap,M.animate({d:X})):X.length&&(U.graph=M=this.chart.renderer.path(X).addClass("highcharts-graph"+(d?` highcharts-zone-graph-${d-1} `:" ")+(d&&U.className||"")).attr({zIndex:1}).add(this.group)),M&&!B&&(L={stroke:!d&&H.lineColor||U.color||this.color||"#cccccc","stroke-width":H.lineWidth||0,fill:this.fillGraph&&this.color||"none"},w?L.dashstyle=w:H.linecap!=="square"&&(L["stroke-linecap"]=L["stroke-linejoin"]="round"),M[s](L).shadow(d<2&&H.shadow&&J({filterUnits:"userSpaceOnUse"},q(H.shadow)?H.shadow:{}))),M&&(M.startX=X.xMap,M.isArea=X.isArea)})}getGraphPath(H,X,B){let U=this,d=U.options,L=[],M=[],s,w=d.step,_=(H=H||U.points).reversed;return _&&H.reverse(),(w={right:1,center:2}[w]||w&&3)&&_&&(w=4-w),(H=this.getValidPoints(H,!1,!(d.connectNulls&&!X&&!B))).forEach(function(o,u){let C,E=o.plotX,S=o.plotY,v=H[u-1],g=o.isNull||typeof S!="number";(o.leftCliff||v&&v.rightCliff)&&!B&&(s=!0),g&&!K(X)&&u>0?s=!d.connectNulls:g&&!X?s=!0:(u===0||s?C=[["M",o.plotX,o.plotY]]:U.getPointSpline?C=[U.getPointSpline(H,o,u)]:w?(C=w===1?[["L",v.plotX,S]]:w===2?[["L",(v.plotX+E)/2,v.plotY],["L",(v.plotX+E)/2,S]]:[["L",E,v.plotY]]).push(["L",E,S]):C=[["L",E,S]],M.push(o.x),w&&(M.push(o.x),w===2&&M.push(o.x)),L.push.apply(L,C),s=!1)}),L.xMap=M,U.graphPath=L,L}}return Z.defaultOptions=J(R.defaultOptions,{legendSymbol:"lineMarker"}),j.registerSeriesType("line",Z),Z}),y(m,"Series/Area/AreaSeriesDefaults.js",[],function(){return{threshold:0,legendSymbol:"areaMarker"}}),y(m,"Series/Area/AreaSeries.js",[m["Series/Area/AreaSeriesDefaults.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j,et){let{seriesTypes:{line:K}}=j,{extend:J,merge:q,objectEach:Z,pick:tt}=et;class H extends K{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:B,options:U}=this;[this,...this.zones].forEach((d,L)=>{var o;let M={},s=d.fillColor||U.fillColor,w=d.area,_=w?"animate":"attr";w?(w.endX=this.preventGraphAnimation?null:B.xMap,w.animate({d:B})):(M.zIndex=0,(w=d.area=this.chart.renderer.path(B).addClass("highcharts-area"+(L?` highcharts-zone-area-${L-1} `:" ")+(L&&d.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(M.fill=s||d.color||this.color,M["fill-opacity"]=s?1:(o=U.fillOpacity)!=null?o:.75,w.css({pointerEvents:this.stickyTracking?"none":"auto"})),w[_](M),w.startX=B.xMap,w.shiftUnit=U.step?2:1})}getGraphPath(B){let U,d,L,M=K.prototype.getGraphPath,s=this.options,w=s.stacking,_=this.yAxis,o=[],u=[],C=this.index,E=_.stacking.stacks[this.stackKey],S=s.threshold,v=Math.round(_.getThreshold(s.threshold)),g=tt(s.connectNulls,w==="percent"),x=function(T,k,Q){let st=B[T],nt=w&&E[st.x].points[C],dt=st[Q+"Null"]||0,mt=st[Q+"Cliff"]||0,Et,Mt,I=!0;mt||dt?(Et=(dt?nt[0]:nt[1])+mt,Mt=nt[0]+mt,I=!!dt):!w&&B[k]&&B[k].isNull&&(Et=Mt=S),Et!==void 0&&(u.push({plotX:U,plotY:Et===null?v:_.getThreshold(Et),isNull:I,isCliff:!0}),o.push({plotX:U,plotY:Mt===null?v:_.getThreshold(Mt),doCurve:!1}))};B=B||this.points,w&&(B=this.getStackPoints(B));for(let T=0,k=B.length;T1&&w&&u.some(T=>T.isCliff)&&(b.hasStackedCliffs=F.hasStackedCliffs=!0),b.xMap=p.xMap,this.areaPath=b,F}getStackPoints(B){let U=this,d=[],L=[],M=this.xAxis,s=this.yAxis,w=s.stacking.stacks[this.stackKey],_={},o=s.series,u=o.length,C=s.options.reversedStacks?1:-1,E=o.indexOf(U);if(B=B||this.points,this.options.stacking){for(let v=0;vv.visible);L.forEach(function(v,g){let x=0,p,l;if(_[v]&&!_[v].isNull)d.push(_[v]),[-1,1].forEach(function(f){let b=f===1?"rightNull":"leftNull",F=w[L[g+f]],T=0;if(F){let k=E;for(;k>=0&&k=0&&fE&&U>s?(U=Math.max(E,s),L=2*s-U):Uv&&L>s?(L=Math.max(v,s),U=2*s-L):L1){let l=this.xAxis.series.filter(T=>T.visible).map(T=>T.index),f=0,b=0;u((p=this.xAxis.stacking)==null?void 0:p.stacks,T=>{if(typeof g.x=="number"){let k=T[g.x.toString()];if(k&&s(k.points[this.index])){let Q=Object.keys(k.points).filter(st=>!st.match(",")&&k.points[st]&&k.points[st].length>1).map(parseFloat).filter(st=>l.indexOf(st)!==-1).sort((st,nt)=>nt-st);f=Q.indexOf(this.index),b=Q.length}}}),f=this.xAxis.reversed?b-1-f:f;let F=(b-1)*x.paddedWidth+v;S=(g.plotX||0)+F/2-v-f*x.paddedWidth}return S}translate(){let S=this,v=S.chart,g=S.options,x=S.dense=S.closestPointRange*S.xAxis.transA<2,p=S.borderWidth=o(g.borderWidth,x?0:1),l=S.xAxis,f=S.yAxis,b=g.threshold,F=o(g.minPointLength,5),T=S.getColumnMetrics(),k=T.width,Q=S.pointXOffset=T.offset,st=S.dataMin,nt=S.dataMax,dt=S.translatedThreshold=f.getThreshold(b),mt=S.barW=Math.max(k,1+2*p);g.pointPadding&&(mt=Math.ceil(mt)),J.prototype.translate.apply(S),S.points.forEach(function(Et){let Mt=o(Et.yBottom,dt),I=999+Math.abs(Mt),Y=Et.plotX||0,rt=B(Et.plotY,-I,f.len+I),ot,D=Math.min(rt,Mt),P=Math.max(rt,Mt)-D,W=k,lt=Y+Q,it=mt;F&&Math.abs(P)F?Mt-F:dt-(ot?F:0)),d(Et.options.pointWidth)&&(lt-=Math.round(((W=it=Math.ceil(Et.options.pointWidth))-k)/2)),g.centerInCategory&&!g.stacking&&(lt=S.adjustForMissingColumns(lt,W,Et,T)),Et.barX=lt,Et.pointWidth=W,Et.tooltipPos=v.inverted?[B(f.len+f.pos-v.plotLeft-rt,f.pos-v.plotLeft,f.len+f.pos-v.plotLeft),l.len+l.pos-v.plotTop-lt-it/2,P]:[l.left-v.plotLeft+lt+it/2,B(rt+f.pos-v.plotTop,f.pos-v.plotTop,f.len+f.pos-v.plotTop),P],Et.shapeType=S.pointClass.prototype.shapeType||"roundedRect",Et.shapeArgs=S.crispCol(lt,Et.isNull?dt:D,it,Et.isNull?0:P)}),M(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(S,v){let g=this.options,x=this.pointAttrToOptions||{},p=x.stroke||"borderColor",l=x["stroke-width"]||"borderWidth",f,b,F,T=S&&S.color||this.color,k=S&&S[p]||g[p]||T,Q=S&&S.options.dashStyle||g.dashStyle,st=S&&S[l]||g[l]||this[l]||0,nt=o(S&&S.opacity,g.opacity,1);S&&this.zones.length&&(b=S.getZone(),T=S.options.color||b&&(b.color||S.nonZonedColor)||this.color,b&&(k=b.borderColor||k,Q=b.dashStyle||Q,st=b.borderWidth||st)),v&&S&&(F=(f=_(g.states[v],S.options.states&&S.options.states[v]||{})).brightness,T=f.color||F!==void 0&&H(T).brighten(f.brightness).get()||T,k=f[p]||k,st=f[l]||st,Q=f.dashStyle||Q,nt=o(f.opacity,nt));let dt={fill:T,stroke:k,"stroke-width":st,opacity:nt};return Q&&(dt.dashstyle=Q),dt}drawPoints(S=this.points){let v,g=this,x=this.chart,p=g.options,l=x.renderer,f=p.animationLimit||250;S.forEach(function(b){let F=b.plotY,T=b.graphic,k=!!T,Q=T&&x.pointCountp==null?void 0:p.enabled)}function o(p,l,f,b,F){var rt;let{chart:T,enabledDataSorting:k}=this,Q=this.isCartesian&&T.inverted,st=p.plotX,nt=p.plotY,dt=f.rotation||0,mt=Z(st)&&Z(nt)&&T.isInsidePlot(st,Math.round(nt),{inverted:Q,paneCoordinates:!0,series:this}),Et=dt===0&&L(f.overflow,k?"none":"justify")==="justify",Mt=this.visible&&p.visible!==!1&&Z(st)&&(p.series.forceDL||k&&!Et||mt||L(f.inside,!!this.options.stacking)&&b&&T.isInsidePlot(st,Q?b.x+1:b.y+b.height-1,{inverted:Q,paneCoordinates:!0,series:this})),I=p.pos();if(Mt&&I){var Y;let ot=l.getBBox(),D=l.getBBox(void 0,0),P={right:1,center:.5}[f.align||0]||0,W={bottom:1,middle:.5}[f.verticalAlign||0]||0;if(b=tt({x:I[0],y:Math.round(I[1]),width:0,height:0},b||{}),f.alignTo==="plotEdges"&&this.isCartesian&&(b[Q?"x":"y"]=0,b[Q?"width":"height"]=((rt=this.yAxis)==null?void 0:rt.len)||0),tt(f,{width:ot.width,height:ot.height}),Y=b,k&&this.xAxis&&!Et&&this.setDataLabelStartPos(p,l,F,mt,Y),l.align(U(f,{width:D.width,height:D.height}),!1,b,!1),l.alignAttr.x+=P*(D.width-ot.width),l.alignAttr.y+=W*(D.height-ot.height),l[l.placed?"animate":"attr"]({x:l.alignAttr.x+(ot.width-D.width)/2,y:l.alignAttr.y+(ot.height-D.height)/2,rotationOriginX:(l.width||0)/2,rotationOriginY:(l.height||0)/2}),Et&&b.height>=0)this.justifyDataLabel(l,f,l.alignAttr,ot,b,F);else if(L(f.crop,!0)){let{x:lt,y:it}=l.alignAttr;Mt=T.isInsidePlot(lt,it,{paneCoordinates:!0,series:this})&&T.isInsidePlot(lt+ot.width-1,it+ot.height-1,{paneCoordinates:!0,series:this})}f.shape&&!dt&&l[F?"attr":"animate"]({anchorX:I[0],anchorY:I[1]})}F&&k&&(l.placed=!1),Mt||k&&!Et?(l.show(),l.placed=!0):(l.hide(),l.placed=!1)}function u(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function C(p){let l=this.hasRendered||0,f=this.initDataLabelsGroup().attr({opacity:+l});return!l&&f&&(this.visible&&f.show(),this.options.animation?f.animate({opacity:1},p):f.attr({opacity:1})),f}function E(p){var Mt;let l;p=p||this.points;let f=this,b=f.chart,F=f.options,T=b.renderer,{backgroundColor:k,plotBackgroundColor:Q}=b.options.chart,st=T.getContrast(B(Q)&&Q||B(k)&&k||"#000000"),nt=g(f),{animation:dt,defer:mt}=nt[0],Et=mt?J(b,dt,f):{defer:0,duration:0};H(this,"drawDataLabels"),(Mt=f.hasDataLabels)!=null&&Mt.call(f)&&(l=this.initDataLabels(Et),p.forEach(I=>{var ot,D;let Y=I.dataLabels||[];s(v(nt,I.dlOptions||((ot=I.options)==null?void 0:ot.dataLabels))).forEach((P,W)=>{let lt=P.enabled&&(I.visible||I.dataLabelOnHidden)&&(!I.isNull||I.dataLabelOnNull)&&function(ne,Wt){let le=Wt.filter;if(le){let de=le.operator,xe=ne[le.property],be=le.value;return de===">"&&xe>be||de==="<"&&xe="&&xe>=be||de==="<="&&xe<=be||de==="=="&&xe==be||de==="==="&&xe===be||de==="!="&&xe!=be||de==="!=="&&xe!==be}return!0}(I,P),{backgroundColor:it,borderColor:vt,distance:pt,style:xt={}}=P,Ct,Tt,Nt,gt,wt={},Rt=Y[W],jt=!Rt,Zt;lt&&(Tt=L(P[I.formatPrefix+"Format"],P.format),Ct=I.getLabelConfig(),Nt=Z(Tt)?q(Tt,Ct,b):(P[I.formatPrefix+"Formatter"]||P.formatter).call(Ct,P),gt=P.rotation,!b.styledMode&&(xt.color=L(P.color,xt.color,B(f.color)?f.color:void 0,"#000000"),xt.color==="contrast"?(it!=="none"&&(Zt=it),I.contrastColor=T.getContrast(Zt!=="auto"&&Zt||I.color||f.color),xt.color=Zt||!Z(pt)&&P.inside||0>M(pt||0)||F.stacking?I.contrastColor:st):delete I.contrastColor,F.cursor&&(xt.cursor=F.cursor)),wt={r:P.borderRadius||0,rotation:gt,padding:P.padding,zIndex:1},b.styledMode||(wt.fill=it==="auto"?I.color:it,wt.stroke=vt==="auto"?I.color:vt,wt["stroke-width"]=P.borderWidth),d(wt,(ne,Wt)=>{ne===void 0&&delete wt[Wt]})),!Rt||lt&&Z(Nt)&&!!Rt.div==!!P.useHTML&&(Rt.rotation&&P.rotation||Rt.rotation===P.rotation)||(Rt=void 0,jt=!0),lt&&Z(Nt)&&(Rt?wt.text=Nt:(Rt=T.label(Nt,0,0,P.shape,void 0,void 0,P.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+I.colorIndex+" "+(P.className||"")+(P.useHTML?" highcharts-tracker":"")),Rt&&(Rt.options=P,Rt.attr(wt),b.styledMode?xt.width&&Rt.css({width:xt.width,textOverflow:xt.textOverflow}):Rt.css(xt).shadow(P.shadow),H(Rt,"beforeAddingDataLabel",{labelOptions:P,point:I}),Rt.added||Rt.add(l),f.alignDataLabel(I,Rt,P,void 0,jt),Rt.isActive=!0,Y[W]&&Y[W]!==Rt&&Y[W].destroy(),Y[W]=Rt))});let rt=Y.length;for(;rt--;)Y[rt]&&Y[rt].isActive?Y[rt].isActive=!1:((D=Y[rt])==null||D.destroy(),Y.splice(rt,1));I.dataLabel=Y[0],I.dataLabels=Y})),H(this,"afterDrawDataLabels")}function S(p,l,f,b,F,T){let k=this.chart,Q=l.align,st=l.verticalAlign,nt=p.box?0:p.padding||0,dt=k.inverted?this.yAxis:this.xAxis,mt=dt?dt.left-k.plotLeft:0,Et=k.inverted?this.xAxis:this.yAxis,Mt=Et?Et.top-k.plotTop:0,{x:I=0,y:Y=0}=l,rt,ot;return(rt=(f.x||0)+nt+mt)<0&&(Q==="right"&&I>=0?(l.align="left",l.inside=!0):I-=rt,ot=!0),(rt=(f.x||0)+b.width-nt+mt)>k.plotWidth&&(Q==="left"&&I<=0?(l.align="right",l.inside=!0):I+=k.plotWidth-rt,ot=!0),(rt=f.y+nt+Mt)<0&&(st==="bottom"&&Y>=0?(l.verticalAlign="top",l.inside=!0):Y-=rt,ot=!0),(rt=(f.y||0)+b.height-nt+Mt)>k.plotHeight&&(st==="top"&&Y<=0?(l.verticalAlign="bottom",l.inside=!0):Y+=k.plotHeight-rt,ot=!0),ot&&(l.x=I,l.y=Y,p.placed=!T,p.align(l,void 0,F)),ot}function v(p,l){let f=[],b;if(X(p)&&!X(l))f=p.map(function(F){return U(F,l)});else if(X(l)&&!X(p))f=l.map(function(F){return U(p,F)});else if(X(p)||X(l)){if(X(p)&&X(l))for(b=Math.max(p.length,l.length);b--;)f[b]=U(p[b],l[b])}else f=U(p,l);return f}function g(p){var f,b;let l=p.chart.options.plotOptions;return s(v(v((f=l==null?void 0:l.series)==null?void 0:f.dataLabels,(b=l==null?void 0:l[p.type])==null?void 0:b.dataLabels),p.options.dataLabels))}function x(p,l,f,b,F){let T=this.chart,k=T.inverted,Q=this.xAxis,st=Q.reversed,nt=((k?l.height:l.width)||0)/2,dt=p.pointWidth,mt=dt?dt/2:0;l.startXPos=k?F.x:st?-nt-mt:Q.width-nt+mt,l.startYPos=k?st?this.yAxis.height-nt+mt:-nt-mt:F.y,b?l.visibility==="hidden"&&(l.show(),l.attr({opacity:0}).animate({opacity:1})):l.attr({opacity:1}).animate({opacity:0},void 0,l.hide),T.hasRendered&&(f&&l.attr({x:l.startXPos,y:l.startYPos}),l.placed=!0)}w.compose=function(p){let l=p.prototype;l.initDataLabels||(l.initDataLabels=C,l.initDataLabelsGroup=u,l.alignDataLabel=o,l.drawDataLabels=E,l.justifyDataLabel=S,l.setDataLabelStartPos=x,l.hasDataLabels=_)}}(K||(K={})),K}),y(m,"Series/Column/ColumnDataLabel.js",[m["Core/Series/DataLabel.js"],m["Core/Globals.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j,et,K){var J;let{composed:q}=j,{series:Z}=et,{merge:tt,pick:H,pushUnique:X}=K;return function(B){function U(d,L,M,s,w){let _=this.chart.inverted,o=d.series,u=(o.xAxis?o.xAxis.len:this.chart.plotSizeX)||0,C=(o.yAxis?o.yAxis.len:this.chart.plotSizeY)||0,E=d.dlBox||d.shapeArgs,S=H(d.below,d.plotY>H(this.translatedThreshold,C)),v=H(M.inside,!!this.options.stacking);if(E){if(s=tt(E),!(M.overflow==="allow"&&M.crop===!1)){s.y<0&&(s.height+=s.y,s.y=0);let g=s.y+s.height-C;g>0&&g\u25CF {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}}),y(m,"Series/Scatter/ScatterSeries.js",[m["Series/Scatter/ScatterSeriesDefaults.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j,et){let{column:K,line:J}=j.seriesTypes,{addEvent:q,extend:Z,merge:tt}=et;class H extends J{applyJitter(){let B=this,U=this.options.jitter,d=this.points.length;U&&this.points.forEach(function(L,M){["x","y"].forEach(function(s,w){if(U[s]&&!L.isNull){let _=`plot${s.toUpperCase()}`,o=B[`${s}Axis`],u=U[s]*o.transA;if(o&&!o.logarithmic){let C=Math.max(0,(L[_]||0)-u),E=Math.min(o.len,(L[_]||0)+u);L[_]=C+(E-C)*function(S){let v=1e4*Math.sin(S);return v-Math.floor(v)}(M+w*d),s==="x"&&(L.clientX=L.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return H.defaultOptions=tt(J.defaultOptions,R),Z(H.prototype,{drawTracker:K.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),q(H,"afterTranslate",function(){this.applyJitter()}),j.registerSeriesType("scatter",H),H}),y(m,"Series/CenteredUtilities.js",[m["Core/Globals.js"],m["Core/Series/Series.js"],m["Core/Utilities.js"]],function(R,j,et){var K,J;let{deg2rad:q}=R,{fireEvent:Z,isNumber:tt,pick:H,relativeLength:X}=et;return(J=K||(K={})).getCenter=function(){let B=this.options,U=this.chart,d=2*(B.slicedOffset||0),L=U.plotWidth-2*d,M=U.plotHeight-2*d,s=B.center,w=Math.min(L,M),_=B.thickness,o,u=B.size,C=B.innerSize||0,E,S;typeof u=="string"&&(u=parseFloat(u)),typeof C=="string"&&(C=parseFloat(C));let v=[H(s[0],"50%"),H(s[1],"50%"),H(u&&u<0?void 0:B.size,"100%"),H(C&&C<0?void 0:B.innerSize||0,"0%")];for(!U.angular||this instanceof j||(v[3]=0),E=0;E<4;++E)S=v[E],o=E<2||E===2&&/%$/.test(S),v[E]=X(S,[L,M,w,v[2]][E])+(o?d:0);return v[3]>v[2]&&(v[3]=v[2]),tt(_)&&2*_0&&(v[3]=v[2]-2*_),Z(this,"afterGetCenter",{positions:v}),v},J.getStartAndEndRadians=function(B,U){let d=tt(B)?B:0,L=tt(U)&&U>d&&U-d<360?U:d+360;return{start:q*(d+-90),end:q*(L+-90)}},K}),y(m,"Series/Pie/PiePoint.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Series/Point.js"],m["Core/Utilities.js"]],function(R,j,et){let{setAnimation:K}=R,{addEvent:J,defined:q,extend:Z,isNumber:tt,pick:H,relativeLength:X}=et;class B extends j{getConnectorPath(d){let L=d.dataLabelPosition,M=d.options||{},s=M.connectorShape,w=this.connectorShapes[s]||s;return L&&w.call(this,ho(zr({},L.computed),{alignment:L.alignment}),L.connectorPosition,M)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(d){let L=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(L.x,L.y,L.r+d,L.r+d,{innerR:L.r-1,start:L.start,end:L.end,borderRadius:L.borderRadius})}constructor(d,L,M){var w;super(d,L,M),this.half=0,(w=this.name)!=null||(this.name="Slice");let s=_=>{this.slice(_.type==="select")};J(this,"select",s),J(this,"unselect",s)}isValid(){return tt(this.y)&&this.y>=0}setVisible(d,L=!0){d!==this.visible&&this.update({visible:d!=null?d:!this.visible},L,void 0,!1)}slice(d,L,M){let s=this.series;K(M,s.chart),L=H(L,!0),this.sliced=this.options.sliced=d=q(d)?d:!this.sliced,s.options.data[s.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return Z(B.prototype,{connectorShapes:{fixedOffset:function(U,d,L){let M=d.breakAt,s=d.touchingSliceAt,w=L.softConnector?["C",U.x+(U.alignment==="left"?-5:5),U.y,2*M.x-s.x,2*M.y-s.y,M.x,M.y]:["L",M.x,M.y];return[["M",U.x,U.y],w,["L",s.x,s.y]]},straight:function(U,d){let L=d.touchingSliceAt;return[["M",U.x,U.y],["L",L.x,L.y]]},crookedLine:function(U,d,L){let{breakAt:M,touchingSliceAt:s}=d,{series:w}=this,[_,o,u]=w.center,C=u/2,{plotLeft:E,plotWidth:S}=w.chart,v=U.alignment==="left",{x:g,y:x}=U,p=M.x;if(L.crookDistance){let f=X(L.crookDistance,1);p=v?_+C+(S+E-_-C)*(1-f):E+(_-C)*f}else p=_+(o-x)*Math.tan((this.angle||0)-Math.PI/2);let l=[["M",g,x]];return(v?p<=g&&p>=M.x:p>=g&&p<=M.x)&&l.push(["L",p,x]),l.push(["L",M.x,M.y],["L",s.x,s.y]),l}}}),B}),y(m,"Series/Pie/PieSeriesDefaults.js",[],function(){return{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.point.isNull?void 0:this.point.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:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),y(m,"Series/Pie/PieSeries.js",[m["Series/CenteredUtilities.js"],m["Series/Column/ColumnSeries.js"],m["Core/Globals.js"],m["Series/Pie/PiePoint.js"],m["Series/Pie/PieSeriesDefaults.js"],m["Core/Series/Series.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Renderer/SVG/Symbols.js"],m["Core/Utilities.js"]],function(R,j,et,K,J,q,Z,tt,H){let{getStartAndEndRadians:X}=R,{noop:B}=et,{clamp:U,extend:d,fireEvent:L,merge:M,pick:s}=H;class w extends q{animate(o){let u=this,C=u.points,E=u.startAngleRad;o||C.forEach(function(S){let v=S.graphic,g=S.shapeArgs;v&&g&&(v.attr({r:s(S.startR,u.center&&u.center[3]/2),start:E,end:E}),v.animate({r:g.r,start:g.start,end:g.end},u.options.animation))})}drawEmpty(){let o,u,C=this.startAngleRad,E=this.endAngleRad,S=this.options;this.total===0&&this.center?(o=this.center[0],u=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(o,u,this.center[1]/2,0,C,E).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:tt.arc(o,u,this.center[2]/2,0,{start:C,end:E,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":S.borderWidth,fill:S.fillColor||"none",stroke:S.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let o=this.chart.renderer;this.points.forEach(function(u){u.graphic&&u.hasNewShapeType()&&(u.graphic=u.graphic.destroy()),u.graphic||(u.graphic=o[u.shapeType](u.shapeArgs).add(u.series.group),u.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(o,u,C,E){let S=this.center,v=this.radii?this.radii[C.index]||0:S[2]/2,g=E.dataLabelPosition,x=(g==null?void 0:g.distance)||0,p=Math.asin(U((o-S[1])/(v+x),-1,1));return S[0]+Math.cos(p)*(v+x)*(u?-1:1)+(x>0?(u?-1:1)*(E.padding||0):0)}hasData(){return!!this.processedXData.length}redrawPoints(){let o,u,C,E,S=this,v=S.chart;this.drawEmpty(),S.group&&!v.styledMode&&S.group.shadow(S.options.shadow),S.points.forEach(function(g){let x={};u=g.graphic,!g.isNull&&u?(E=g.shapeArgs,o=g.getTranslate(),v.styledMode||(C=S.pointAttribs(g,g.selected&&"select")),g.delayedRendering?(u.setRadialReference(S.center).attr(E).attr(o),v.styledMode||u.attr(C).attr({"stroke-linejoin":"round"}),g.delayedRendering=!1):(u.setRadialReference(S.center),v.styledMode||M(!0,x,C),M(!0,x,E,o),u.animate(x)),u.attr({visibility:g.visible?"inherit":"hidden"}),u.addClass(g.getClassName(),!0)):u&&(g.graphic=u.destroy())})}sortByAngle(o,u){o.sort(function(C,E){return C.angle!==void 0&&(E.angle-C.angle)*u})}translate(o){L(this,"translate"),this.generatePoints();let u=this.options,C=u.slicedOffset,E=X(u.startAngle,u.endAngle),S=this.startAngleRad=E.start,v=(this.endAngleRad=E.end)-S,g=this.points,x=u.ignoreHiddenPoint,p=g.length,l,f,b,F,T,k,Q,st=0;for(o||(this.center=o=this.getCenter()),k=0;k1.5*Math.PI?b-=2*Math.PI:b<-Math.PI/2&&(b+=2*Math.PI),Q.slicedTranslation={translateX:Math.round(Math.cos(b)*C),translateY:Math.round(Math.sin(b)*C)},F=Math.cos(b)*o[2]/2,T=Math.sin(b)*o[2]/2,Q.tooltipPos=[o[0]+.7*F,o[1]+.7*T],Q.half=b<-Math.PI/2||b>Math.PI/2?1:0,Q.angle=b}L(this,"afterTranslate")}updateTotals(){let o=this.points,u=o.length,C=this.options.ignoreHiddenPoint,E,S,v=0;for(E=0;E0&&(S.visible||!C)?S.y/v*100:0,S.total=v}}return w.defaultOptions=M(q.defaultOptions,J),d(w.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:j.prototype.drawTracker,getCenter:R.getCenter,getSymbol:B,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:j.prototype.pointAttribs,pointClass:K,requireSorting:!1,searchPoint:B,trackerGroups:["group","dataLabelsGroup"]}),Z.registerSeriesType("pie",w),w}),y(m,"Series/Pie/PieDataLabel.js",[m["Core/Series/DataLabel.js"],m["Core/Globals.js"],m["Core/Renderer/RendererUtilities.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j,et,K,J){var q;let{composed:Z,noop:tt}=j,{distribute:H}=et,{series:X}=K,{arrayMax:B,clamp:U,defined:d,pick:L,pushUnique:M,relativeLength:s}=J;return function(w){let _={radialDistributionY:function(S,v){var g;return(((g=v.dataLabelPosition)==null?void 0:g.top)||0)+S.distributeBox.pos},radialDistributionX:function(S,v,g,x,p){let l=p.dataLabelPosition;return S.getX(g<((l==null?void 0:l.top)||0)+2||g>((l==null?void 0:l.bottom)||0)-2?x:g,v.half,v,p)},justify:function(S,v,g,x){var p;return x[0]+(S.half?-1:1)*(g+(((p=v.dataLabelPosition)==null?void 0:p.distance)||0))},alignToPlotEdges:function(S,v,g,x){let p=S.getBBox().width;return v?p+x:g-p-x},alignToConnectors:function(S,v,g,x){let p=0,l;return S.forEach(function(f){(l=f.dataLabel.getBBox().width)>p&&(p=l)}),v?p+x:g-p-x}};function o(S,v){let{center:g,options:x}=this,p=g[2]/2,l=S.angle||0,f=Math.cos(l),b=Math.sin(l),F=g[0]+f*p,T=g[1]+b*p,k=Math.min((x.slicedOffset||0)+(x.borderWidth||0),v/5);return{natural:{x:F+f*v,y:T+b*v},computed:{},alignment:v<0?"center":S.half?"right":"left",connectorPosition:{breakAt:{x:F+f*k,y:T+b*k},touchingSliceAt:{x:F,y:T}},distance:v}}function u(){var Mt;let S=this,v=S.points,g=S.chart,x=g.plotWidth,p=g.plotHeight,l=g.plotLeft,f=Math.round(g.chartWidth/3),b=S.center,F=b[2]/2,T=b[1],k=[[],[]],Q=[0,0,0,0],st=S.dataLabelPositioners,nt,dt,mt,Et=0;S.visible&&((Mt=S.hasDataLabels)!=null&&Mt.call(S))&&(v.forEach(I=>{(I.dataLabels||[]).forEach(Y=>{Y.shortened&&(Y.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),Y.shortened=!1)})}),X.prototype.drawDataLabels.apply(S),v.forEach(I=>{(I.dataLabels||[]).forEach((Y,rt)=>{var W;let ot=b[2]/2,D=Y.options,P=s((D==null?void 0:D.distance)||0,ot);rt===0&&k[I.half].push(I),!d((W=D==null?void 0:D.style)==null?void 0:W.width)&&Y.getBBox().width>f&&(Y.css({width:Math.round(.7*f)+"px"}),Y.shortened=!0),Y.dataLabelPosition=this.getDataLabelPosition(I,P),Et=Math.max(Et,P)})}),k.forEach((I,Y)=>{let rt=I.length,ot=[],D,P,W=0,lt;rt&&(S.sortByAngle(I,Y-.5),Et>0&&(D=Math.max(0,T-F-Et),P=Math.min(T+F+Et,g.plotHeight),I.forEach(it=>{(it.dataLabels||[]).forEach(vt=>{var xt;let pt=vt.dataLabelPosition;pt&&pt.distance>0&&(pt.top=Math.max(0,T-F-pt.distance),pt.bottom=Math.min(T+F+pt.distance,g.plotHeight),W=vt.getBBox().height||21,vt.lineHeight=g.renderer.fontMetrics(vt.text||vt).h+2*vt.padding,it.distributeBox={target:(((xt=vt.dataLabelPosition)==null?void 0:xt.natural.y)||0)-pt.top+vt.lineHeight/2,size:W,rank:it.y},ot.push(it.distributeBox))})}),H(ot,lt=P+W-D,lt/5)),I.forEach(it=>{(it.dataLabels||[]).forEach(vt=>{let pt=vt.options||{},xt=it.distributeBox,Ct=vt.dataLabelPosition,Tt=(Ct==null?void 0:Ct.natural.y)||0,Nt=pt.connectorPadding||0,gt=vt.lineHeight||21,wt=(gt-vt.getBBox().height)/2,Rt=0,jt=Tt,Zt="inherit";if(Ct){if(ot&&d(xt)&&Ct.distance>0&&(xt.pos===void 0?Zt="hidden":(mt=xt.size,jt=st.radialDistributionY(it,vt))),pt.justify)Rt=st.justify(it,vt,F,b);else switch(pt.alignTo){case"connectors":Rt=st.alignToConnectors(I,Y,x,l);break;case"plotEdges":Rt=st.alignToPlotEdges(vt,Y,x,l);break;default:Rt=st.radialDistributionX(S,it,jt-wt,Tt,vt)}if(Ct.attribs={visibility:Zt,align:Ct.alignment},Ct.posAttribs={x:Rt+(pt.x||0)+({left:Nt,right:-Nt}[Ct.alignment]||0),y:jt+(pt.y||0)-gt/2},Ct.computed.x=Rt,Ct.computed.y=jt-wt,L(pt.crop,!0)){let ne;Rt-(dt=vt.getBBox().width)x-Nt&&Y===0&&(ne=Math.round(Rt+dt-x+Nt),Q[1]=Math.max(ne,Q[1])),jt-mt/2<0?Q[0]=Math.max(Math.round(-jt+mt/2),Q[0]):jt+mt/2>p&&(Q[2]=Math.max(Math.round(jt+mt/2-p),Q[2])),Ct.sideOverflow=ne}}})}))}),(B(Q)===0||this.verifyDataLabelOverflow(Q))&&(this.placeDataLabels(),this.points.forEach(I=>{(I.dataLabels||[]).forEach(Y=>{var P;let{connectorColor:rt,connectorWidth:ot=1}=Y.options||{},D=Y.dataLabelPosition;if(ot){let W;nt=Y.connector,D&&D.distance>0?(W=!nt,nt||(Y.connector=nt=g.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+I.colorIndex+(I.className?" "+I.className:"")).add(S.dataLabelsGroup)),g.styledMode||nt.attr({"stroke-width":ot,stroke:rt||I.color||"#666666"}),nt[W?"attr":"animate"]({d:I.getConnectorPath(Y)}),nt.attr({visibility:(P=D.attribs)==null?void 0:P.visibility})):nt&&(Y.connector=nt.destroy())}})})))}function C(){this.points.forEach(S=>{(S.dataLabels||[]).forEach(v=>{var x;let g=v.dataLabelPosition;g?(g.sideOverflow&&(v.css({width:Math.max(v.getBBox().width-g.sideOverflow,0)+"px",textOverflow:(((x=v.options)==null?void 0:x.style)||{}).textOverflow||"ellipsis"}),v.shortened=!0),v.attr(g.attribs),v[v.moved?"animate":"attr"](g.posAttribs),v.moved=!0):v&&v.attr({y:-9999})}),delete S.distributeBox},this)}function E(S){let v=this.center,g=this.options,x=g.center,p=g.minSize||80,l=p,f=g.size!==null;return!f&&(x[0]!==null?l=Math.max(v[2]-Math.max(S[1],S[3]),p):(l=Math.max(v[2]-S[1]-S[3],p),v[0]+=(S[3]-S[1])/2),x[1]!==null?l=U(l,p,v[2]-Math.max(S[0],S[2])):(l=U(l,p,v[2]-S[0]-S[2]),v[1]+=(S[0]-S[2])/2),l(J.x+=q.x,J.y+=q.y,J),{x:0,y:0});return{x:K.x/et.length,y:K.y/et.length}},j.getDistanceBetweenPoints=function(et,K){return Math.sqrt(Math.pow(K.x-et.x,2)+Math.pow(K.y-et.y,2))},j.getAngleBetweenPoints=function(et,K){return Math.atan2(K.x-et.x,K.y-et.y)},j.pointInPolygon=function({x:et,y:K},J){let q=J.length,Z,tt,H=!1;for(Z=0,tt=q-1;ZK!=d>K&&et<(U-X)*(K-B)/(d-B)+X&&(H=!H)}return H},R}),y(m,"Extensions/OverlappingDataLabels.js",[m["Core/Geometry/GeometryUtilities.js"],m["Core/Utilities.js"]],function(R,j){let{pointInPolygon:et}=R,{addEvent:K,fireEvent:J,objectEach:q,pick:Z}=j;function tt(B){let U=B.length,d=(C,E)=>!(E.x>=C.x+C.width||E.x+E.width<=C.x||E.y>=C.y+C.height||E.y+E.height<=C.y),L=(C,E)=>{for(let S of C)if(et({x:S[0],y:S[1]},E))return!0;return!1},M,s,w,_,o,u=!1;for(let C=0;C(E.labelrank||0)-(C.labelrank||0));for(let C=0;C{q(M,s=>{s.label&&U.push(s.label)})});for(let L of B.series||[])if(L.visible&&((d=L.hasDataLabels)!=null&&d.call(L))){let M=s=>{for(let w of s)w.visible&&(w.dataLabels||[]).forEach(_=>{var u,C;let o=_.options||{};_.labelrank=Z(o.labelrank,w.labelrank,(u=w.shapeArgs)==null?void 0:u.height),((C=o.allowOverlap)!=null?C:Number(o.distance)>0)?(_.oldOpacity=_.opacity,_.newOpacity=1,H(_,B)):U.push(_)})};M(L.nodes||[]),M(L.points)}this.hideOverlappingLabels(U)}return{compose:function(B){let U=B.prototype;U.hideOverlappingLabels||(U.hideOverlappingLabels=tt,K(B,"render",X))}}}),y(m,"Extensions/BorderRadius.js",[m["Core/Defaults.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j,et){let{defaultOptions:K}=R,{noop:J}=j,{addEvent:q,extend:Z,isObject:tt,merge:H,relativeLength:X}=et,B={radius:0,scope:"stack",where:void 0},U=J,d=J;function L(o,u,C,E,S={}){let v=U(o,u,C,E,S),{innerR:g=0,r:x=C,start:p=0,end:l=0}=S;if(S.open||!S.borderRadius)return v;let f=l-p,b=Math.sin(f/2),F=Math.max(Math.min(X(S.borderRadius||0,x-g),(x-g)/2,x*b/(1+b)),0),T=Math.min(F,f/Math.PI*2*g),k=v.length-1;for(;k--;)(function(Q,st,nt){let dt,mt,Et,Mt=Q[st],I=Q[st+1];if(I[0]==="Z"&&(I=Q[0]),(Mt[0]==="M"||Mt[0]==="L")&&I[0]==="A"?(dt=Mt,mt=I,Et=!0):Mt[0]==="A"&&(I[0]==="M"||I[0]==="L")&&(dt=I,mt=Mt),dt&&mt&&mt.params){let Y=mt[1],rt=mt[5],ot=mt.params,{start:D,end:P,cx:W,cy:lt}=ot,it=rt?Y-nt:Y+nt,vt=it?Math.asin(nt/it):0,pt=rt?vt:-vt,xt=Math.cos(vt)*it;Et?(ot.start=D+pt,dt[1]=W+xt*Math.cos(D),dt[2]=lt+xt*Math.sin(D),Q.splice(st+1,0,["A",nt,nt,0,0,1,W+Y*Math.cos(ot.start),lt+Y*Math.sin(ot.start)])):(ot.end=P-pt,mt[6]=W+Y*Math.cos(ot.end),mt[7]=lt+Y*Math.sin(ot.end),Q.splice(st+1,0,["A",nt,nt,0,0,1,W+xt*Math.cos(P),lt+xt*Math.sin(P)])),mt[4]=Math.abs(ot.end-ot.start)1?T:F);return v}function M(){var o,u;if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:C,yAxis:E}=this,S=C.stacking==="percent",v=(u=(o=K.plotOptions)==null?void 0:o[this.type])==null?void 0:u.borderRadius,g=s(C.borderRadius,tt(v)?v:{}),x=E.options.reversed;for(let p of this.points){let{shapeArgs:l}=p;if(p.shapeType==="roundedRect"&&l){let{width:f=0,height:b=0,y:F=0}=l,T=F,k=b;if(g.scope==="stack"&&p.stackTotal){let dt=E.translate(S?100:p.stackTotal,!1,!0,!1,!0),mt=E.translate(C.threshold||0,!1,!0,!1,!0),Et=this.crispCol(0,Math.min(dt,mt),0,Math.abs(dt-mt));T=Et.y,k=Et.height}let Q=(p.negative?-1:1)*(x?-1:1)==-1,st=g.where;!st&&this.is("waterfall")&&Math.abs((p.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(st="all"),st||(st="end");let nt=Math.min(X(g.radius,f),f/2,st==="all"?b/2:1/0)||0;st==="end"&&(Q&&(T-=nt),k+=nt),Z(l,{brBoxHeight:k,brBoxY:T,r:nt})}}}}function s(o,u){return tt(o)||(o={radius:o||0}),H(B,u,o)}function w(){let o=s(this.options.borderRadius);for(let u of this.points){let C=u.shapeArgs;C&&(C.borderRadius=X(o.radius,(C.r||0)-(C.innerR||0)))}}function _(o,u,C,E,S={}){let v=d(o,u,C,E,S),{r:g=0,brBoxHeight:x=E,brBoxY:p=u}=S,l=u-p,f=p+x-(u+E),b=l-g>-.1?0:g,F=f-g>-.1?0:g,T=Math.max(b&&l,0),k=Math.max(F&&f,0),Q=[o+b,u],st=[o+C-b,u],nt=[o+C,u+b],dt=[o+C,u+E-F],mt=[o+C-F,u+E],Et=[o+F,u+E],Mt=[o,u+E-F],I=[o,u+b],Y=(rt,ot)=>Math.sqrt(Math.pow(rt,2)-Math.pow(ot,2));if(T){let rt=Y(b,b-T);Q[0]-=rt,st[0]+=rt,nt[1]=I[1]=u+b-T}if(E=Z(L.minWidth,0)&&this.chartHeight>=Z(L.minHeight,0)}).call(this)&&d.push(U._id)}function B(U,d){let L=this.options.responsive,M=this.currentResponsive,s=[],w;!d&&L&&L.rules&&L.rules.forEach(u=>{u._id===void 0&&(u._id=tt()),this.matchResponsiveRule(u,s)},this);let _=q(...s.map(u=>J((L||{}).rules||[],C=>C._id===u)).map(u=>u&&u.chartOptions));_.isResponsiveOptions=!0,s=s.toString()||void 0;let o=M&&M.ruleIds;s===o||(M&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(M.undoOptions,U,!0),this.updatingResponsive=!1),s?((w=et(_,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:_,undoOptions:w},this.updatingResponsive||this.update(_,U,!0)):this.currentResponsive=void 0)}H.compose=function(U){let d=U.prototype;return d.matchResponsiveRule||K(d,{matchResponsiveRule:X,setResponsive:B}),U}}(j||(j={})),j}),y(m,"masters/highcharts.src.js",[m["Core/Globals.js"],m["Core/Utilities.js"],m["Core/Defaults.js"],m["Core/Animation/Fx.js"],m["Core/Animation/AnimationUtilities.js"],m["Core/Renderer/HTML/AST.js"],m["Core/Templating.js"],m["Core/Renderer/RendererRegistry.js"],m["Core/Renderer/RendererUtilities.js"],m["Core/Renderer/SVG/SVGElement.js"],m["Core/Renderer/SVG/SVGRenderer.js"],m["Core/Renderer/HTML/HTMLElement.js"],m["Core/Axis/Axis.js"],m["Core/Axis/DateTimeAxis.js"],m["Core/Axis/LogarithmicAxis.js"],m["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],m["Core/Axis/Tick.js"],m["Core/Tooltip.js"],m["Core/Series/Point.js"],m["Core/Pointer.js"],m["Core/Legend/Legend.js"],m["Core/Legend/LegendSymbol.js"],m["Core/Chart/Chart.js"],m["Extensions/ScrollablePlotArea.js"],m["Core/Axis/Stacking/StackingAxis.js"],m["Core/Axis/Stacking/StackItem.js"],m["Core/Series/Series.js"],m["Core/Series/SeriesRegistry.js"],m["Series/Column/ColumnDataLabel.js"],m["Series/Pie/PieDataLabel.js"],m["Core/Series/DataLabel.js"],m["Extensions/OverlappingDataLabels.js"],m["Extensions/BorderRadius.js"],m["Core/Responsive.js"],m["Core/Color/Color.js"],m["Core/Time.js"]],function(R,j,et,K,J,q,Z,tt,H,X,B,U,d,L,M,s,w,_,o,u,C,E,S,v,g,x,p,l,f,b,F,T,k,Q,st,nt){return R.AST=q,R.Axis=d,R.Chart=S,R.Color=st,R.DataLabel=F,R.Fx=K,R.HTMLElement=U,R.Legend=C,R.LegendSymbol=E,R.OverlappingDataLabels=R.OverlappingDataLabels||T,R.PlotLineOrBand=s,R.Point=o,R.Pointer=u,R.RendererRegistry=tt,R.Series=p,R.SeriesRegistry=l,R.StackItem=x,R.SVGElement=X,R.SVGRenderer=B,R.Templating=Z,R.Tick=w,R.Time=nt,R.Tooltip=_,R.animate=J.animate,R.animObject=J.animObject,R.chart=S.chart,R.color=st.parse,R.dateFormat=Z.dateFormat,R.defaultOptions=et.defaultOptions,R.distribute=H.distribute,R.format=Z.format,R.getDeferredAnimation=J.getDeferredAnimation,R.getOptions=et.getOptions,R.numberFormat=Z.numberFormat,R.seriesType=l.seriesType,R.setAnimation=J.setAnimation,R.setOptions=et.setOptions,R.stop=J.stop,R.time=et.defaultTime,R.timers=K.timers,k.compose(R.Series,R.SVGElement,R.SVGRenderer),f.compose(R.Series.types.column),F.compose(R.Series),L.compose(R.Axis),U.compose(R.SVGRenderer),C.compose(R.Chart),M.compose(R.Axis),T.compose(R.Chart),b.compose(R.Series.types.pie),s.compose(R.Chart,R.Axis),u.compose(R.Chart),Q.compose(R.Chart),v.compose(R.Axis,R.Chart,R.Series),g.compose(R.Axis,R.Chart,R.Series),_.compose(R.Pointer),j.extend(R,j),R}),y(m,"Core/Axis/Color/ColorAxisComposition.js",[m["Core/Color/Color.js"],m["Core/Utilities.js"]],function(R,j){var et;let{parse:K}=R,{addEvent:J,extend:q,merge:Z,pick:tt,splat:H}=j;return function(X){let B;function U(){let{userOptions:E}=this;this.colorAxis=[],E.colorAxis&&(E.colorAxis=H(E.colorAxis),E.colorAxis.map(S=>new B(this,S)))}function d(E){let S=this.chart.colorAxis||[],v=l=>{let f=E.allItems.indexOf(l);f!==-1&&(this.destroyItem(E.allItems[f]),E.allItems.splice(f,1))},g=[],x,p;for(S.forEach(function(l){(x=l.options)&&x.showInLegend&&(x.dataClasses&&x.visible?g=g.concat(l.getDataClassLegendSymbols()):x.visible&&g.push(l),l.series.forEach(function(f){(!f.options.showInLegend||x.dataClasses)&&(f.options.legendType==="point"?f.points.forEach(function(b){v(b)}):v(f))}))}),p=g.length;p--;)E.allItems.unshift(g[p])}function L(E){E.visible&&E.item.legendColor&&E.item.legendItem.symbol.attr({fill:E.item.legendColor})}function M(E){var S;(S=this.chart.colorAxis)==null||S.forEach(v=>{v.update({},E.redraw)})}function s(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function w(){let E=this.axisTypes;E?E.indexOf("colorAxis")===-1&&E.push("colorAxis"):this.axisTypes=["colorAxis"]}function _(E){let S=this,v=E?"show":"hide";S.visible=S.options.visible=!!E,["graphic","dataLabel"].forEach(function(g){S[g]&&S[g][v]()}),this.series.buildKDTree()}function o(){let E=this,S=this.getPointsCollection(),v=this.options.nullColor,g=this.colorAxis,x=this.colorKey;S.forEach(p=>{let l=p.getNestedProperty(x),f=p.options.color||(p.isNull||p.value===null?v:g&&l!==void 0?g.toColor(l,p):p.color||E.color);f&&p.color!==f&&(p.color=f,E.options.legendType==="point"&&p.legendItem&&p.legendItem.label&&E.chart.legend.colorizeItem(p,p.visible))})}function u(){this.elem.attr("fill",K(this.start).tweenTo(K(this.end),this.pos),void 0,!0)}function C(){this.elem.attr("stroke",K(this.start).tweenTo(K(this.end),this.pos),void 0,!0)}X.compose=function(E,S,v,g,x){let p=S.prototype,l=v.prototype,f=x.prototype;p.collectionsWithUpdate.includes("colorAxis")||(B=E,p.collectionsWithUpdate.push("colorAxis"),p.collectionsWithInit.colorAxis=[p.addColorAxis],J(S,"afterGetAxes",U),function(b){let F=b.prototype.createAxis;b.prototype.createAxis=function(T,k){if(T!=="colorAxis")return F.apply(this,arguments);let Q=new B(this,Z(k.axis,{index:this[T].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(st=>{st.series=[]}),this.series.forEach(st=>{st.bindAxes(),st.isDirtyData=!0}),tt(k.redraw,!0)&&this.redraw(k.animation),Q}}(S),l.fillSetter=u,l.strokeSetter=C,J(g,"afterGetAllItems",d),J(g,"afterColorizeItem",L),J(g,"afterUpdate",M),q(f,{optionalAxis:"colorAxis",translateColors:o}),q(f.pointClass.prototype,{setVisible:_}),J(x,"afterTranslate",s,{order:1}),J(x,"bindAxes",w))},X.pointSetVisible=_}(et||(et={})),et}),y(m,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineColor:"#ffffff",gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{distance:8,overflow:"justify",rotation:0},minColor:"#e6e9ff",maxColor:"#0022ff",tickLength:5,showInLegend:!0}}),y(m,"Core/Axis/Color/ColorAxisLike.js",[m["Core/Color/Color.js"],m["Core/Utilities.js"]],function(R,j){var et,K;let{parse:J}=R,{merge:q}=j;return(K=et||(et={})).initDataClasses=function(Z){let tt=this.chart,H=this.legendItem=this.legendItem||{},X=this.options,B=Z.dataClasses||[],U,d,L=tt.options.chart.colorCount,M=0,s;this.dataClasses=d=[],H.labels=[];for(let w=0,_=B.length;w<_;++w)U=q(U=B[w]),d.push(U),(tt.styledMode||!U.color)&&(X.dataClassColor==="category"?(tt.styledMode||(L=(s=tt.options.colors||[]).length,U.color=s[M]),U.colorIndex=M,++M===L&&(M=0)):U.color=J(X.minColor).tweenTo(J(X.maxColor),_<2?.5:w/(_-1)))},K.initStops=function(){let Z=this.options,tt=this.stops=Z.stops||[[0,Z.minColor||""],[1,Z.maxColor||""]];for(let H=0,X=tt.length;H=X)&&(B===void 0||Z<=B)){U=d.color,tt&&(tt.dataClass=L,tt.colorIndex=d.colorIndex);break}}else{for(H=this.normalizedValue(Z),L=s.length;L--&&!(H>s[L][0]););X=s[L]||s[L+1],H=1-((B=s[L+1]||X)[0]-H)/(B[0]-X[0]||1),U=X.color.tweenTo(B.color,H)}return U},et}),y(m,"Core/Axis/Color/ColorAxis.js",[m["Core/Axis/Axis.js"],m["Core/Axis/Color/ColorAxisComposition.js"],m["Core/Axis/Color/ColorAxisDefaults.js"],m["Core/Axis/Color/ColorAxisLike.js"],m["Core/Defaults.js"],m["Core/Legend/LegendSymbol.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j,et,K,J,q,Z,tt){let{defaultOptions:H}=J,{series:X}=Z,{defined:B,extend:U,fireEvent:d,isArray:L,isNumber:M,merge:s,pick:w,relativeLength:_}=tt;H.colorAxis=s(H.xAxis,et);class o extends R{static compose(C,E,S,v){j.compose(o,C,E,S,v)}constructor(C,E){super(C,E),this.coll="colorAxis",this.visible=!0,this.init(C,E)}init(C,E){let S=C.options.legend||{},v=E.layout?E.layout!=="vertical":S.layout!=="vertical";this.side=E.side||v?2:1,this.reversed=E.reversed||!v,this.opposite=!v,super.init(C,E,"colorAxis"),this.userOptions=E,L(C.userOptions.colorAxis)&&(C.userOptions.colorAxis[this.index]=E),E.dataClasses&&this.initDataClasses(E),this.initStops(),this.horiz=v,this.zoomEnabled=!1}hasData(){return!!(this.tickPositions||[]).length}setTickPositions(){if(!this.dataClasses)return super.setTickPositions()}setOptions(C){let E=s(H.colorAxis,C,{showEmpty:!1,title:null,visible:this.chart.options.legend.enabled&&C.visible!==!1});super.setOptions(E),this.options.crosshair=this.options.marker}setAxisSize(){var g;let C=this.chart,E=(g=this.legendItem)==null?void 0:g.symbol,{width:S,height:v}=this.getSize();E&&(this.left=+E.attr("x"),this.top=+E.attr("y"),this.width=S=+E.attr("width"),this.height=v=+E.attr("height"),this.right=C.chartWidth-this.left-S,this.bottom=C.chartHeight-this.top-v,this.pos=this.horiz?this.left:this.top),this.len=(this.horiz?S:v)||o.defaultLegendLength}getOffset(){var S;let C=(S=this.legendItem)==null?void 0:S.group,E=this.chart.axisOffset[this.side];if(C){this.axisParent=C,super.getOffset();let v=this.chart.legend;v.allItems.forEach(function(g){g instanceof o&&g.drawLegendSymbol(v,g)}),v.render(),this.chart.getMargins(!0),this.chart.series.some(g=>g.isDrilling)||(this.isDirty=!0),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=E}}setLegendColor(){let C=this.horiz,E=this.reversed,S=E?1:0,v=E?0:1,g=C?[S,0,v,0]:[0,v,0,S];this.legendColor={linearGradient:{x1:g[0],y1:g[1],x2:g[2],y2:g[3]},stops:this.stops}}drawLegendSymbol(C,E){var T;let S=E.legendItem||{},v=C.padding,g=C.options,x=this.options.labels,p=w(g.itemDistance,10),l=this.horiz,{width:f,height:b}=this.getSize(),F=w(g.labelPadding,l?16:30);this.setLegendColor(),S.symbol||(S.symbol=this.chart.renderer.symbol("roundedRect").attr({r:(T=g.symbolRadius)!=null?T:3,zIndex:1}).add(S.group)),S.symbol.attr({x:0,y:(C.baseline||0)-11,width:f,height:b}),S.labelWidth=f+v+(l?p:w(x.x,x.distance)+(this.maxLabelLength||0)),S.labelHeight=b+v+(l?F:0)}setState(C){this.series.forEach(function(E){E.setState(C)})}setVisible(){}getSeriesExtremes(){let C=this.series,E,S,v,g,x,p,l=C.length,f,b;for(this.dataMin=1/0,this.dataMax=-1/0;l--;){if(S=(p=C[l]).colorKey=w(p.options.colorKey,p.colorKey,p.pointValKey,p.zoneAxis,"y"),g=p.pointArrayMap,x=p[S+"Min"]&&p[S+"Max"],p[S+"Data"])E=p[S+"Data"];else if(g){if(E=[],v=g.indexOf(S),f=p.yData,v>=0&&f)for(b=0;bp+l&&(S=p+l+2),E.plotX=S,E.plotY=this.len-S,super.drawCrosshair(C,E),E.plotX=g,E.plotY=x,this.cross&&!this.cross.addedToColorAxis&&v.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(v.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||typeof this.crosshair!="object"||this.cross.attr({fill:this.crosshair.color})))}getPlotLinePath(C){let E=this.left,S=C.translatedValue,v=this.top;return M(S)?this.horiz?[["M",S-4,v-6],["L",S+4,v-6],["L",S,v],["Z"]]:[["M",E,S],["L",E-6,S+6],["L",E-6,S-6],["Z"]]:super.getPlotLinePath(C)}update(C,E){let S=this.chart.legend;this.series.forEach(v=>{v.isDirtyData=!0}),(C.dataClasses&&S.allItems||this.dataClasses)&&this.destroyItems(),super.update(C,E),this.legendItem&&this.legendItem.label&&(this.setLegendColor(),S.colorizeItem(this,!0))}destroyItems(){let C=this.chart,E=this.legendItem||{};if(E.label)C.legend.destroyItem(this);else if(E.labels)for(let S of E.labels)C.legend.destroyItem(S);C.isDirtyLegend=!0}destroy(){this.chart.isDirtyLegend=!0,this.destroyItems(),super.destroy(...[].slice.call(arguments))}remove(C){this.destroyItems(),super.remove(C)}getDataClassLegendSymbols(){let C,E=this,S=E.chart,v=E.legendItem&&E.legendItem.labels||[],g=S.options.legend,x=w(g.valueDecimals,-1),p=w(g.valueSuffix,""),l=f=>E.series.reduce((b,F)=>(b.push(...F.points.filter(T=>T.dataClass===f)),b),[]);return v.length||E.dataClasses.forEach((f,b)=>{let F=f.from,T=f.to,{numberFormatter:k}=S,Q=!0;C="",F===void 0?C="< ":T===void 0&&(C="> "),F!==void 0&&(C+=k(F,x)+p),F!==void 0&&T!==void 0&&(C+=" - "),T!==void 0&&(C+=k(T,x)+p),v.push(U({chart:S,name:C,options:{},drawLegendSymbol:q.rectangle,visible:!0,isDataClass:!0,setState:st=>{for(let nt of l(b))nt.setState(st)},setVisible:function(){this.visible=Q=E.visible=!Q;let st=[];for(let nt of l(b))nt.setVisible(Q),nt.hiddenInDataClass=!Q,st.indexOf(nt.series)===-1&&st.push(nt.series);S.legend.colorizeItem(this,Q),st.forEach(nt=>{d(nt,"afterDataClassLegendClick")})}},f))}),v}getSize(){let{chart:C,horiz:E}=this,{height:S,width:v}=this.options,{legend:g}=C.options;return{width:w(B(v)?_(v,C.chartWidth):void 0,g==null?void 0:g.symbolWidth,E?o.defaultLegendLength:12),height:w(B(S)?_(S,C.chartHeight):void 0,g==null?void 0:g.symbolHeight,E?12:o.defaultLegendLength)}}}return o.defaultLegendLength=200,o.keepProps=["legendItem"],U(o.prototype,K),Array.prototype.push.apply(R.keepProps,o.keepProps),o}),y(m,"masters/modules/coloraxis.src.js",[m["Core/Globals.js"],m["Core/Axis/Color/ColorAxis.js"]],function(R,j){return R.ColorAxis=R.ColorAxis||j,R.ColorAxis.compose(R.Chart,R.Fx,R.Legend,R.Series),R}),y(m,"Maps/MapNavigationDefaults.js",[],function(){return{lang:{zoomIn:"Zoom in",zoomOut:"Zoom out"},mapNavigation:{buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{color:"#666666",fontSize:"1em",fontWeight:"bold"},theme:{fill:"#ffffff",stroke:"#e6e6e6","stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1}}}),y(m,"Maps/MapPointer.js",[m["Core/Utilities.js"]],function(R){var j;let{defined:et,extend:K,pick:J,wrap:q}=R;return function(Z){let tt,H=0;function X(L){let M=this.chart;L=this.normalize(L),M.options.mapNavigation.enableDoubleClickZoomTo?M.pointer.inClass(L.target,"highcharts-tracker")&&M.hoverPoint&&M.hoverPoint.zoomTo():M.isInsidePlot(L.chartX-M.plotLeft,L.chartY-M.plotTop)&&M.mapZoom(.5,void 0,void 0,L.chartX,L.chartY)}function B(L){let M=this.chart,s=et((L=this.normalize(L)).wheelDelta)&&-L.wheelDelta/120||L.deltaY||L.detail;Math.abs(s)>=1&&(H+=Math.abs(s),tt&&clearTimeout(tt),tt=setTimeout(()=>{H=0},50)),H<10&&M.isInsidePlot(L.chartX-M.plotLeft,L.chartY-M.plotTop)&&M.mapView&&M.mapView.zoomBy(-((M.options.mapNavigation.mouseWheelSensitivity-1)*s),void 0,[L.chartX,L.chartY],!(1>Math.abs(s))&&void 0)}function U(L,M,s){let w=this.chart;if(M=L.call(this,M,s),w&&w.mapView){let _=w.mapView.pixelsToLonLat({x:M.chartX-w.plotLeft,y:M.chartY-w.plotTop});_&&K(M,_)}return M}function d(L){let M=this.chart.options.mapNavigation;M&&J(M.enableTouchZoom,M.enabled)&&(this.chart.zooming.pinchType="xy"),L.apply(this,[].slice.call(arguments,1))}Z.compose=function(L){let M=L.prototype;M.onContainerDblClick||(K(M,{onContainerDblClick:X,onContainerMouseWheel:B}),q(M,"normalize",U),q(M,"zoomOption",d))}}(j||(j={})),j}),y(m,"Maps/MapSymbols.js",[],function(){let R;function j(K,J,q,Z,tt){if(tt){let H=(tt==null?void 0:tt.r)||0;tt.brBoxY=J-H,tt.brBoxHeight=Z+H}return R.roundedRect(K,J,q,Z,tt)}function et(K,J,q,Z,tt){if(tt){let H=(tt==null?void 0:tt.r)||0;tt.brBoxHeight=Z+H}return R.roundedRect(K,J,q,Z,tt)}return{compose:function(K){(R=K.prototype.symbols).bottombutton=j,R.topbutton=et}}}),y(m,"Maps/MapNavigation.js",[m["Core/Defaults.js"],m["Core/Globals.js"],m["Maps/MapNavigationDefaults.js"],m["Maps/MapPointer.js"],m["Maps/MapSymbols.js"],m["Core/Utilities.js"]],function(R,j,et,K,J,q){let{setOptions:Z}=R,{composed:tt}=j,{addEvent:H,extend:X,merge:B,objectEach:U,pick:d,pushUnique:L}=q;function M(w){w&&(w.preventDefault&&w.preventDefault(),w.stopPropagation&&w.stopPropagation(),w.cancelBubble=!0)}class s{static compose(_,o,u){K.compose(o),J.compose(u),L(tt,"Map.Navigation")&&(H(_,"beforeRender",function(){this.mapNavigation=new s(this),this.mapNavigation.update()}),Z(et))}constructor(_){this.chart=_,this.navButtons=[]}update(_){let o=this,u=o.chart,C=o.navButtons,E=function(v){this.handler.call(u,v),M(v)},S=u.options.mapNavigation;for(_&&(S=u.options.mapNavigation=B(u.options.mapNavigation,_));C.length;)C.pop().destroy();if(!u.renderer.forExport&&d(S.enableButtons,S.enabled)){o.navButtonsGroup||(o.navButtonsGroup=u.renderer.g().attr({zIndex:7}).add()),U(S.buttons,(g,x)=>{var k;let p={padding:(g=B(S.buttonOptions,g)).padding};!u.styledMode&&g.theme&&(X(p,g.theme),p.style=B(g.theme.style,g.style));let{text:l,width:f=0,height:b=0,padding:F=0}=g,T=u.renderer.button(l!=="+"&&l!=="-"&&l||"",0,0,E,p,void 0,void 0,void 0,x==="zoomIn"?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[x]).attr({width:f,height:b,title:u.options.lang[x],zIndex:5}).add(o.navButtonsGroup);if(l==="+"||l==="-"){let Q=f+1,st=[["M",F+3,F+b/2],["L",F+Q-3,F+b/2]];l==="+"&&st.push(["M",F+Q/2,F+3],["L",F+Q/2,F+b-3]),u.renderer.path(st).addClass("highcharts-button-symbol").attr(u.styledMode?{}:{stroke:(k=g.style)==null?void 0:k.color,"stroke-width":3,"stroke-linecap":"round"}).add(T)}if(T.handler=g.onclick,H(T.element,"dblclick",M),C.push(T),X(g,{width:T.width,height:2*(T.height||0)}),u.hasLoaded)T.align(g,!1,g.alignTo);else{let Q=H(u,"load",()=>{T.element&&T.align(g,!1,g.alignTo),Q()})}});let v=(g,x)=>!(x.x>=g.x+g.width||x.x+x.width<=g.x||x.y>=g.y+g.height||x.y+x.height<=g.y);u.hasLoaded||H(u,"render",function(){let g=u.exportingGroup&&u.exportingGroup.getBBox();if(g){let x=o.navButtonsGroup.getBBox();if(v(g,x)){let p=-x.y-x.height+g.y-5,l=g.y+g.height-x.y+5,f=S.buttonOptions&&S.buttonOptions.verticalAlign;o.navButtonsGroup.attr({translateY:f==="bottom"?p:l})}}})}this.updateEvents(S)}updateEvents(_){let o=this.chart;d(_.enableDoubleClickZoom,_.enabled)||_.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||H(o.container,"dblclick",function(u){o.pointer.onContainerDblClick(u)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),d(_.enableMouseWheelZoom,_.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||H(o.container,"wheel",function(u){return o.pointer.inClass(u.target,"highcharts-no-mousewheel")||(o.pointer.onContainerMouseWheel(u),M(u)),!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())}}return s}),y(m,"Series/ColorMapComposition.js",[m["Core/Series/SeriesRegistry.js"],m["Core/Renderer/SVG/SVGElement.js"],m["Core/Utilities.js"]],function(R,j,et){var K;let{column:{prototype:J}}=R.seriesTypes,{addEvent:q,defined:Z}=et;return function(tt){function H(X){let B=this.series,U=B.chart.renderer;this.moveToTopOnHover&&this.graphic&&(B.stateMarkerGraphic||(B.stateMarkerGraphic=new j(U,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),(X==null?void 0:X.state)==="hover"?(this.graphic.attr({id:this.id}),B.stateMarkerGraphic.attr({href:`${U.url}#${this.id}`,visibility:"visible"})):B.stateMarkerGraphic.attr({href:""}))}tt.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return this.value!==null&&this.value!==1/0&&this.value!==-1/0&&(this.value===void 0||!isNaN(this.value))}},tt.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(X){let B={};return Z(X.color)&&(!X.state||X.state==="normal")&&(B[this.colorProp||"fill"]=X.color),B},pointAttribs:J.pointAttribs},tt.compose=function(X){return q(X.prototype.pointClass,"afterSetState",H),X}}(K||(K={})),K}),y(m,"Core/Chart/MapChart.js",[m["Core/Chart/Chart.js"],m["Core/Defaults.js"],m["Core/Renderer/SVG/SVGRenderer.js"],m["Core/Utilities.js"]],function(R,j,et,K){var J;let{getOptions:q}=j,{isNumber:Z,merge:tt,pick:H}=K;class X extends R{init(U,d){let L=q().credits,M=tt({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:H(L.mapText,' \xA9 {geojson.copyrightShort}'),mapTextFull:H(L.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},U);super.init(M,d)}mapZoom(U,d,L,M,s){this.mapView&&(Z(U)&&(U=Math.log(U)/Math.log(.5)),this.mapView.zoomBy(U,Z(d)&&Z(L)?this.mapView.projection.inverse([d,L]):void 0,Z(M)&&Z(s)?[M,s]:void 0))}update(U){var d;U.chart&&"map"in U.chart&&((d=this.mapView)==null||d.recommendMapView(this,[U.chart.map,...(this.options.series||[]).map(L=>L.mapData)],!0)),super.update.apply(this,arguments)}}return(J=X||(X={})).maps={},J.mapChart=function(B,U,d){return new J(B,U,d)},J.splitPath=function(B){let U;return U=typeof B=="string"?(B=B.replace(/([A-Z])/gi," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(d=>/[A-Z]/i.test(d)?d:parseFloat(d)):B,et.prototype.pathToSegments(U)},X}),y(m,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(R){let j=-Number.MAX_VALUE,et=Number.MAX_VALUE,K=-Number.MAX_VALUE,J=Number.MAX_VALUE,q;if(R.forEach(Z=>{let tt=Z[Z.length-2],H=Z[Z.length-1];typeof tt=="number"&&typeof H=="number"&&(et=Math.min(et,tt),j=Math.max(j,tt),J=Math.min(J,H),K=Math.max(K,H),q=!0)}),q)return{x1:et,y1:J,x2:j,y2:K}}}}),y(m,"Series/Map/MapPoint.js",[m["Series/ColorMapComposition.js"],m["Maps/MapUtilities.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j,et,K){let{boundsFromPath:J}=j,q=et.seriesTypes.scatter.prototype.pointClass,{extend:Z,isNumber:tt,pick:H}=K;class X extends q{static getProjectedPath(U,d){return U.projectedPath||(d&&U.geometry?(d.hasCoordinates=!0,U.projectedPath=d.path(U.geometry)):U.projectedPath=U.path),U.projectedPath||[]}applyOptions(U,d){var w;let L=this.series,M=super.applyOptions(U,d),s=L.joinBy;if(L.mapData&&L.mapMap){let _=s[1],o=super.getNestedProperty(_),u=o!==void 0&&L.mapMap[o];u?Z(M,ho(zr({},u),{name:(w=M.name)!=null?w:u.name})):L.pointArrayMap.indexOf("value")!==-1&&(M.value=M.value||null)}return M}getProjectedBounds(U){let d=J(X.getProjectedPath(this,U)),L=this.properties,M=this.series.chart.mapView;if(d){let s=L&&L["hc-middle-lon"],w=L&&L["hc-middle-lat"];if(M&&tt(s)&&tt(w)){let _=U.forward([s,w]);d.midX=_[0],d.midY=_[1]}else{let _=L&&L["hc-middle-x"],o=L&&L["hc-middle-y"];d.midX=d.x1+(d.x2-d.x1)*H(this.middleX,tt(_)?_:.5);let u=H(this.middleY,tt(o)?o:.5);this.geometry||(u=1-u),d.midY=d.y2-(d.y2-d.y1)*u}return d}}onMouseOver(U){K.clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?super.onMouseOver.call(this,U):this.series.onMouseOut()}setVisible(U){this.visible=this.options.visible=!!U,this.dataLabel&&this.dataLabel[U?"show":"hide"](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))}zoomTo(U){let d=this.series.chart,L=d.mapView,M=this.bounds;if(L&&M){let s=tt(this.insetIndex)&&L.insets[this.insetIndex];if(s){let w=s.projectedUnitsToPixels({x:M.x1,y:M.y1}),_=s.projectedUnitsToPixels({x:M.x2,y:M.y2}),o=L.pixelsToProjectedUnits({x:w.x,y:w.y}),u=L.pixelsToProjectedUnits({x:_.x,y:_.y});M={x1:o.x,y1:o.y,x2:u.x,y2:u.y}}L.fitToBounds(M,void 0,!1),this.series.isDirty=!0,d.redraw(U)}}}return Z(X.prototype,{dataLabelOnNull:R.pointMembers.dataLabelOnNull,moveToTopOnHover:R.pointMembers.moveToTopOnHover,isValid:R.pointMembers.isValid}),X}),y(m,"Series/Map/MapSeriesDefaults.js",[m["Core/Utilities.js"]],function(R){let{isNumber:j}=R;return{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){let{numberFormatter:et}=this.series.chart,{value:K}=this.point;return j(K)?et(K,-1):this.point.name},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},linecap:"round",marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}
"},turboThreshold:0,allAreas:!0,borderColor:"#e6e6e6",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:void 0,borderColor:"#666666",borderWidth:2},normal:{animation:!0},select:{color:"#cccccc"}},legendSymbol:"rectangle"}}),y(m,"Maps/MapViewDefaults.js",[],function(){return{center:[0,0],fitToGeometry:void 0,maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0,insetOptions:{borderColor:"#cccccc",borderWidth:1,padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}}}),y(m,"Maps/GeoJSONComposition.js",[m["Core/Globals.js"],m["Core/Templating.js"],m["Core/Utilities.js"]],function(R,j,et){var K;let{win:J}=R,{format:q}=j,{error:Z,extend:tt,merge:H,wrap:X}=et;return function(B){function U(_){return this.mapView&&this.mapView.lonLatToProjectedUnits(_)}function d(_){return this.mapView&&this.mapView.projectedUnitsToLonLat(_)}function L(_,o){let u=this.options.chart.proj4||J.proj4;if(!u){Z(21,!1,this);return}let{jsonmarginX:C=0,jsonmarginY:E=0,jsonres:S=1,scale:v=1,xoffset:g=0,xpan:x=0,yoffset:p=0,ypan:l=0}=o,f=u(o.crs,[_.lon,_.lat]),b=o.cosAngle||o.rotation&&Math.cos(o.rotation),F=o.sinAngle||o.rotation&&Math.sin(o.rotation),T=o.rotation?[f[0]*b+f[1]*F,-f[0]*F+f[1]*b]:f;return{x:((T[0]-g)*v+x)*S+C,y:-(((p-T[1])*v+l)*S-E)}}function M(_,o){let u=this.options.chart.proj4||J.proj4;if(!u){Z(21,!1,this);return}if(_.y===null)return;let{jsonmarginX:C=0,jsonmarginY:E=0,jsonres:S=1,scale:v=1,xoffset:g=0,xpan:x=0,yoffset:p=0,ypan:l=0}=o,f={x:((_.x-C)/S-x)/v+g,y:((_.y-E)/S+l)/v+p},b=o.cosAngle||o.rotation&&Math.cos(o.rotation),F=o.sinAngle||o.rotation&&Math.sin(o.rotation),T=u(o.crs,"WGS84",o.rotation?{x:f.x*b+-(f.y*F),y:f.x*F+f.y*b}:f);return{lat:T.y,lon:T.x}}function s(_,o){o||(o=Object.keys(_.objects)[0]);let u=_.objects[o];if(u["hc-decoded-geojson"]&&u["hc-decoded-geojson"].title===_.title)return u["hc-decoded-geojson"];let C=_.arcs;if(_.transform){let x,p,l,f=_.arcs,{scale:b,translate:F}=_.transform;C=[];for(let T=0,k=f.length;Ttypeof x[0]=="number"?x.reduce((p,l,f)=>{let b=l<0?C[~l]:C[l];return l<0?(b=b.slice(0,f===0?b.length:b.length-1)).reverse():f&&(b=b.slice(1)),p.concat(b)},[]):x.map(E),S=u.geometries,v=[];for(let x=0,p=S.length;x(J[1]-K[1])*(q[0]-K[0])}function et(K,J,q,Z){let tt=[K[0]-J[0],K[1]-J[1]],H=[q[0]-Z[0],q[1]-Z[1]],X=K[0]*J[1]-K[1]*J[0],B=q[0]*Z[1]-q[1]*Z[0],U=1/(tt[0]*H[1]-tt[1]*H[0]),d=[(X*H[0]-B*tt[0])*U,(X*H[1]-B*tt[1])*U];return d.isIntersection=!0,d}return{clipLineString:function(K,J){let q=[],Z=R(K,J,!1);for(let tt=1;ttJ===0?0:J>0?1:-1),j=Math.PI/180,et=Math.PI/2,K=J=>Math.tan((et+J)/2);return class{constructor(J){var B;let q=(J.parallels||[]).map(U=>U*j),Z=q[0]||0,tt=(B=q[1])!=null?B:Z,H=Math.cos(Z);typeof J.projectedBounds=="object"&&(this.projectedBounds=J.projectedBounds);let X=Z===tt?Math.sin(Z):Math.log(H/Math.cos(tt))/Math.log(K(tt)/K(Z));1e-10>Math.abs(X)&&(X=1e-10*(R(X)||1)),this.n=X,this.c=H*Math.pow(K(Z),X)/X}forward(J){let{c:q,n:Z,projectedBounds:tt}=this,H=J[0]*j,X=J[1]*j;q>0?X<-et+1e-6&&(X=-et+1e-6):X>et-1e-6&&(X=et-1e-6);let B=q/Math.pow(K(X),Z),U=B*Math.sin(Z*H)*63.78137,d=(q-B*Math.cos(Z*H))*63.78137,L=[U,d];return tt&&(Utt.x2||dtt.y2)&&(L.outside=!0),L}inverse(J){let{c:q,n:Z}=this,tt=J[0]/63.78137,H=q-J[1]/63.78137,X=R(Z)*Math.sqrt(tt*tt+H*H),B=Math.atan2(tt,Math.abs(H))*R(H);return H*Z<0&&(B-=Math.PI*R(tt)*R(H)),[B/Z/j,(2*Math.atan(Math.pow(q/X,1/Z))-et)/j]}}}),y(m,"Maps/Projections/EqualEarth.js",[],function(){let R=Math.sqrt(3)/2;return class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}forward(j){let et=Math.PI/180,K=Math.asin(R*Math.sin(j[1]*et)),J=K*K,q=J*J*J;return[j[0]*et*Math.cos(K)*74.03120656864502/(R*(1.340264+-.24331799999999998*J+q*(.0062510000000000005+.034164*J))),74.03120656864502*K*(1.340264+-.081106*J+q*(893e-6+.003796*J))]}inverse(j){let et=j[0]/74.03120656864502,K=j[1]/74.03120656864502,J=180/Math.PI,q=K,Z,tt,H,X;for(let d=0;d<12&&(tt=(Z=q*q)*Z*Z,H=q*(1.340264+-.081106*Z+tt*(893e-6+.003796*Z))-K,q-=X=H/(1.340264+-.24331799999999998*Z+tt*(.0062510000000000005+.034164*Z)),!(1e-9>Math.abs(X)));++d);tt=(Z=q*q)*Z*Z;let B=J*R*et*(1.340264+-.24331799999999998*Z+tt*(.0062510000000000005+.034164*Z))/Math.cos(q),U=J*Math.asin(Math.sin(q)/R);return Math.abs(B)>180?[NaN,NaN]:[B,U]}}}),y(m,"Maps/Projections/Miller.js",[],function(){let R=Math.PI/4,j=Math.PI/180;return class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}forward(et){return[et[0]*j*63.78137,79.7267125*Math.log(Math.tan(R+.4*et[1]*j))]}inverse(et){return[et[0]/63.78137/j,2.5*(Math.atan(Math.exp(.8*(et[1]/63.78137)))-R)/j]}}}),y(m,"Maps/Projections/Orthographic.js",[],function(){let R=Math.PI/180;return class{constructor(){this.antimeridianCutting=!1,this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}forward(j){let et=j[0],K=j[1]*R,J=[Math.cos(K)*Math.sin(et*R)*63.78460826781007,63.78460826781007*Math.sin(K)];return(et<-90||et>90)&&(J.outside=!0),J}inverse(j){let et=j[0]/63.78460826781007,K=j[1]/63.78460826781007,J=Math.sqrt(et*et+K*K),q=Math.asin(J),Z=Math.sin(q);return[Math.atan2(et*Z,J*Math.cos(q))/R,Math.asin(J&&K*Z/J)/R]}}}),y(m,"Maps/Projections/WebMercator.js",[],function(){let R=Math.PI/180;return class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071},this.maxLatitude=85.0511287798}forward(j){let et=Math.sin(j[1]*R),K=[63.78137*j[0]*R,63.78137*Math.log((1+et)/(1-et))/2];return Math.abs(j[1])>this.maxLatitude&&(K.outside=!0),K}inverse(j){return[j[0]/(63.78137*R),(2*Math.atan(Math.exp(j[1]/63.78137))-Math.PI/2)/R]}}}),y(m,"Maps/Projections/ProjectionRegistry.js",[m["Maps/Projections/LambertConformalConic.js"],m["Maps/Projections/EqualEarth.js"],m["Maps/Projections/Miller.js"],m["Maps/Projections/Orthographic.js"],m["Maps/Projections/WebMercator.js"]],function(R,j,et,K,J){return{EqualEarth:j,LambertConformalConic:R,Miller:et,Orthographic:K,WebMercator:J}}),y(m,"Maps/Projection.js",[m["Core/Geometry/PolygonClip.js"],m["Maps/Projections/ProjectionRegistry.js"],m["Core/Utilities.js"]],function(R,j,et){let{clipLineString:K,clipPolygon:J}=R,{clamp:q,erase:Z}=et,tt=2*Math.PI/360,H=d=>(d<-180&&(d+=360),d>180&&(d-=360),d),X=d=>(1-Math.cos(d))/2,B=(d,L)=>{let M=Math.cos,s=d[1]*tt,w=d[0]*tt,_=L[1]*tt,o=L[0]*tt;return X(_-s)+M(s)*M(_)*X(o-w)};class U{static add(L,M){U.registry[L]=M}static distance(L,M){let{atan2:s,sqrt:w}=Math,_=B(L,M);return 6371e3*(2*s(w(_),w(1-_)))}static geodesic(L,M,s,w=5e5){let{atan2:_,cos:o,sin:u,sqrt:C}=Math,E=U.distance,S=L[1]*tt,v=L[0]*tt,g=M[1]*tt,x=M[0]*tt,p=o(S)*o(v),l=o(g)*o(x),f=o(S)*u(v),b=o(g)*u(x),F=u(S),T=u(g),k=E(L,M),Q=k/6371e3,st=u(Q),nt=Math.round(k/w),dt=[];if(s&&dt.push(L),nt>1){let mt=1/nt;for(let Et=mt;Et<.999;Et+=mt){let Mt=u((1-Et)*Q)/st,I=u(Et*Q)/st,Y=Mt*p+I*l,rt=Mt*f+I*b,ot=_(Mt*F+I*T,C(Y*Y+rt*rt)),D=_(rt,Y);dt.push([D/tt,ot/tt])}}return s&&dt.push(M),dt}static insertGeodesics(L){let M=L.length-1;for(;M--;)if(Math.max(Math.abs(L[M][0]-L[M+1][0]),Math.abs(L[M][1]-L[M+1][1]))>10){let s=U.geodesic(L[M],L[M+1]);s.length&&L.splice(M+1,0,...s)}}static toString(L){let{name:M,rotation:s}=L||{};return[M,s&&s.join(",")].join(";")}constructor(L={}){this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=L;let{name:M,projectedBounds:s,rotation:w}=L;this.rotator=w?this.getRotator(w):void 0;let _=M?U.registry[M]:void 0;_&&(this.def=new _(L));let{def:o,rotator:u}=this;o&&(this.maxLatitude=o.maxLatitude||90,this.hasGeoProjection=!0),u&&o?(this.forward=C=>o.forward(u.forward(C)),this.inverse=C=>u.inverse(o.inverse(C))):o?(this.forward=C=>o.forward(C),this.inverse=C=>o.inverse(C)):u&&(this.forward=u.forward,this.inverse=u.inverse),this.bounds=s==="world"?o&&o.bounds:s}lineIntersectsBounds(L){let{x1:M,x2:s,y1:w,y2:_}=this.bounds||{},o=(E,S,v)=>{let[g,x]=E,p=S?0:1;if(typeof v=="number"&&g[S]>=v!=x[S]>=v){let l=(v-g[S])/(x[S]-g[S]),f=g[p]+l*(x[p]-g[p]);return S?[f,v]:[v,f]}},u,C=L[0];return((u=o(L,0,M))||(u=o(L,0,s)))&&(C=u,L[1]=u),((u=o(L,1,w))||(u=o(L,1,_)))&&(C=u),C}getRotator(L){let M=L[0]*tt,s=(L[1]||0)*tt,w=(L[2]||0)*tt,_=Math.cos(s),o=Math.sin(s),u=Math.cos(w),C=Math.sin(w);if(M!==0||s!==0||w!==0)return{forward:E=>{let S=E[0]*tt+M,v=E[1]*tt,g=Math.cos(v),x=Math.cos(S)*g,p=Math.sin(S)*g,l=Math.sin(v),f=l*_+x*o;return[Math.atan2(p*u-f*C,x*_-l*o)/tt,Math.asin(f*u+p*C)/tt]},inverse:E=>{let S=E[0]*tt,v=E[1]*tt,g=Math.cos(v),x=Math.cos(S)*g,p=Math.sin(S)*g,l=Math.sin(v),f=l*u-p*C;return[(Math.atan2(p*u+l*C,x*_+f*o)-M)/tt,Math.asin(f*_-x*o)/tt]}}}forward(L){return L}inverse(L){return L}cutOnAntimeridian(L,M){let s,w=[],_=[L];for(let o=0,u=L.length;o90)&&(v<-90||v>90)&&S>0!=v>0){let g=q((180-(S+360)%360)/((v+360)%360-(S+360)%360),0,1),x=E[1]+g*(C[1]-E[1]);w.push({i:o,lat:x,direction:S<0?1:-1,previousLonLat:E,lonLat:C})}}if(w.length)if(M){w.length%2==1&&(s=w.slice().sort((u,C)=>Math.abs(C.lat)-Math.abs(u.lat))[0],Z(w,s));let o=w.length-2;for(;o>=0;){let u=w[o].i,C=H(180+1e-6*w[o].direction),E=H(180-1e-6*w[o].direction),S=L.splice(u,w[o+1].i-u,...U.geodesic([C,w[o].lat],[C,w[o+1].lat],!0));S.push(...U.geodesic([E,w[o+1].lat],[E,w[o].lat],!0)),_.push(S),o-=2}if(s)for(let u=0;u<_.length;u++){let{direction:C,lat:E}=s,S=_[u],v=S.indexOf(s.lonLat);if(v>-1){let g=(E<0?-1:1)*this.maxLatitude,x=H(180+1e-6*C),p=H(180-1e-6*C),l=U.geodesic([x,E],[x,g],!0);for(let f=x+120*C;f>-180&&f<180;f+=120*C)l.push([f,g]);l.push(...U.geodesic([p,g],[p,s.lat],!0)),S.splice(v,0,...l);break}}}else{let o=w.length;for(;o--;){let u=w[o].i,C=L.splice(u,L.length,[H(180+1e-6*w[o].direction),w[o].lat]);C.unshift([H(180-1e-6*w[o].direction),w[o].lat]),_.push(C)}}return _}path(L){let M,{bounds:s,def:w,rotator:_}=this,o=[],u=L.type==="Polygon"||L.type==="MultiPolygon",C=this.hasGeoProjection,E=!w||w.antimeridianCutting!==!1,S=E?_:void 0,v=E&&w||this;s&&(M=[[s.x1,s.y1],[s.x2,s.y1],[s.x2,s.y2],[s.x1,s.y2]]);let g=x=>{let p=x.map(f=>{if(E){S&&(f=S.forward(f));let b=f[0];1e-6>Math.abs(b-180)&&(b=b<180?179.999999:180.000001),f=[b,f[1]]}return f}),l=[p];C&&(U.insertGeodesics(p),E&&(l=this.cutOnAntimeridian(p,u))),l.forEach(f=>{let b,F;if(f.length<2)return;let T=!1,k=!1,Q=mt=>{T?o.push(["L",mt[0],mt[1]]):(o.push(["M",mt[0],mt[1]]),T=!0)},st=!1,nt=!1,dt=f.map(mt=>{let Et=v.forward(mt);return Et.outside?st=!0:nt=!0,Et[1]===1/0?Et[1]=1e10:Et[1]===-1/0&&(Et[1]=-1e10),Et});if(E){if(u&&dt.push(dt[0]),st){if(!nt)return;if(M){if(u)dt=J(dt,M);else if(s){K(dt,M).forEach(mt=>{T=!1,mt.forEach(Q)});return}}}dt.forEach(Q)}else for(let mt=0;mtQ(v.forward(I))):T=!1),Q(Mt),F=Et,k=!1)}})};return L.type==="LineString"?g(L.coordinates):L.type==="MultiLineString"?L.coordinates.forEach(x=>g(x)):L.type==="Polygon"?(L.coordinates.forEach(x=>g(x)),o.length&&o.push(["Z"])):L.type==="MultiPolygon"&&(L.coordinates.forEach(x=>{x.forEach(p=>g(p))}),o.length&&o.push(["Z"])),o}}return U.registry=j,U}),y(m,"Maps/MapView.js",[m["Core/Globals.js"],m["Maps/MapViewDefaults.js"],m["Maps/GeoJSONComposition.js"],m["Core/Geometry/GeometryUtilities.js"],m["Maps/MapUtilities.js"],m["Maps/Projection.js"],m["Core/Utilities.js"]],function(R,j,et,K,J,q,Z){let{composed:tt}=R,{pointInPolygon:H}=K,{topo2geo:X}=et,{boundsFromPath:B}=J,{addEvent:U,clamp:d,crisp:L,fireEvent:M,isArray:s,isNumber:w,isObject:_,isString:o,merge:u,pick:C,pushUnique:E,relativeLength:S}=Z,v={};function g(f,b){let{width:F,height:T}=b;return Math.log(400.979322/Math.max((f.x2-f.x1)/(F/256),(f.y2-f.y1)/(T/256)))/Math.log(2)}function x(f){var b,F;f.seriesOptions.mapData&&((F=this.mapView)==null||F.recommendMapView(this,[this.options.chart.map,f.seriesOptions.mapData],(b=this.options.drilldown)==null?void 0:b.mapZooming))}class p{static compose(b){E(tt,"MapView")&&(v=b.maps,U(b,"afterInit",function(){this.mapView=new p(this,this.options.mapView)},{order:0}),U(b,"addSeriesAsDrilldown",x),U(b,"afterDrillUp",x))}static compositeBounds(b){if(b.length)return b.slice(1).reduce((F,T)=>(F.x1=Math.min(F.x1,T.x1),F.y1=Math.min(F.y1,T.y1),F.x2=Math.max(F.x2,T.x2),F.y2=Math.max(F.y2,T.y2),F),u(b[0]))}static mergeInsets(b,F){let T=Q=>{let st={};return Q.forEach((nt,dt)=>{st[nt&&nt.id||`i${dt}`]=nt}),st},k=u(T(b),T(F));return Object.keys(k).map(Q=>k[Q])}constructor(b,F){var st;this.allowTransformAnimation=!0,this.eventsToUnbind=[],this.insets=[],this.padding=[0,0,0,0],this.recommendedMapView={},this instanceof l||this.recommendMapView(b,[b.options.chart.map,...(b.options.series||[]).map(nt=>nt.mapData)]),this.userOptions=F||{};let T=u(j,this.recommendedMapView,F),k=(st=this.recommendedMapView)==null?void 0:st.insets,Q=F&&F.insets;k&&Q&&(T.insets=p.mergeInsets(k,Q)),this.chart=b,this.center=T.center,this.options=T,this.projection=new q(T.projection),this.playingField=b.plotBox,this.zoom=T.zoom||0,this.minZoom=T.minZoom,this.createInsets(),this.eventsToUnbind.push(U(b,"afterSetChartSize",()=>{this.playingField=this.getField(),(this.minZoom===void 0||this.minZoom===this.zoom)&&(this.fitToBounds(void 0,void 0,!1),!this.chart.hasRendered&&w(this.userOptions.zoom)&&(this.zoom=this.userOptions.zoom),this.userOptions.center&&u(!0,this.center,this.userOptions.center))})),this.setUpEvents()}createInsets(){let b=this.options,F=b.insets;F&&F.forEach(T=>{let k=new l(this,u(b.insetOptions,T));this.insets.push(k)})}fitToBounds(b,F,T=!0,k){let Q=b||this.getProjectedBounds();if(Q){let st=C(F,b?0:this.options.padding),nt=this.getField(!1),dt=s(st)?st:[st,st,st,st];this.padding=[S(dt[0],nt.height),S(dt[1],nt.width),S(dt[2],nt.height),S(dt[3],nt.width)],this.playingField=this.getField();let mt=g(Q,this.playingField);b||(this.minZoom=mt);let Et=this.projection.inverse([(Q.x2+Q.x1)/2,(Q.y2+Q.y1)/2]);this.setView(Et,mt,T,k)}}getField(b=!0){let F=b?this.padding:[0,0,0,0];return{x:F[3],y:F[0],width:this.chart.plotWidth-F[1]-F[3],height:this.chart.plotHeight-F[0]-F[2]}}getGeoMap(b){if(o(b))return v[b]&&v[b].type==="Topology"?X(v[b]):v[b];if(_(b,!0)){if(b.type==="FeatureCollection")return b;if(b.type==="Topology")return X(b)}}getMapBBox(){let b=this.getProjectedBounds(),F=this.getScale();if(b){let T=this.padding,k=this.projectedUnitsToPixels({x:b.x1,y:b.y2});return{width:(b.x2-b.x1)*F+T[1]+T[3],height:(b.y2-b.y1)*F+T[0]+T[2],x:k.x-T[3],y:k.y-T[0]}}}getProjectedBounds(){let b=this.projection,F=this.chart.series.reduce((k,Q)=>{let st=Q.getProjectedBounds&&Q.getProjectedBounds();return st&&Q.options.affectsMapView!==!1&&k.push(st),k},[]),T=this.options.fitToGeometry;if(T){if(!this.fitToGeometryCache)if(T.type==="MultiPoint"){let k=T.coordinates.map(nt=>b.forward(nt)),Q=k.map(nt=>nt[0]),st=k.map(nt=>nt[1]);this.fitToGeometryCache={x1:Math.min.apply(0,Q),x2:Math.max.apply(0,Q),y1:Math.min.apply(0,st),y2:Math.max.apply(0,st)}}else this.fitToGeometryCache=B(b.path(T));return this.fitToGeometryCache}return this.projection.bounds||p.compositeBounds(F)}getScale(){return .638436911716859*Math.pow(2,this.zoom)}getSVGTransform(){let{x:b,y:F,width:T,height:k}=this.playingField,Q=this.projection.forward(this.center),st=this.projection.hasCoordinates?-1:1,nt=this.getScale(),dt=nt*st,mt=b+T/2-Q[0]*nt,Et=F+k/2-Q[1]*dt;return{scaleX:nt,scaleY:dt,translateX:mt,translateY:Et}}lonLatToPixels(b){let F=this.lonLatToProjectedUnits(b);if(F)return this.projectedUnitsToPixels(F)}lonLatToProjectedUnits(b){let F=this.chart,T=F.mapTransforms;if(T){for(let Q in T)if(Object.hasOwnProperty.call(T,Q)&&T[Q].hitZone){let st=F.transformFromLatLon(b,T[Q]);if(st&&H(st,T[Q].hitZone.coordinates[0]))return st}return F.transformFromLatLon(b,T.default)}for(let Q of this.insets)if(Q.options.geoBounds&&H({x:b.lon,y:b.lat},Q.options.geoBounds.coordinates[0])){let st=Q.projection.forward([b.lon,b.lat]),nt=Q.projectedUnitsToPixels({x:st[0],y:st[1]});return this.pixelsToProjectedUnits(nt)}let k=this.projection.forward([b.lon,b.lat]);if(!k.outside)return{x:k[0],y:k[1]}}projectedUnitsToLonLat(b){let F=this.chart,T=F.mapTransforms;if(T){for(let st in T)if(Object.hasOwnProperty.call(T,st)&&T[st].hitZone&&H(b,T[st].hitZone.coordinates[0]))return F.transformToLatLon(b,T[st]);return F.transformToLatLon(b,T.default)}let k=this.projectedUnitsToPixels(b);for(let st of this.insets)if(st.hitZone&&H(k,st.hitZone.coordinates[0])){let nt=st.pixelsToProjectedUnits(k),dt=st.projection.inverse([nt.x,nt.y]);return{lon:dt[0],lat:dt[1]}}let Q=this.projection.inverse([b.x,b.y]);return{lon:Q[0],lat:Q[1]}}recommendMapView(b,F,T=!1){var nt;this.recommendedMapView={};let k=F.map(dt=>this.getGeoMap(dt)),Q=[];k.forEach(dt=>{if(dt&&(Object.keys(this.recommendedMapView).length||(this.recommendedMapView=dt["hc-recommended-mapview"]||{}),dt.bbox)){let[mt,Et,Mt,I]=dt.bbox;Q.push({x1:mt,y1:Et,x2:Mt,y2:I})}});let st=Q.length&&p.compositeBounds(Q);M(this,"onRecommendMapView",{geoBounds:st,chart:b},function(){if(st&&this.recommendedMapView){if(!this.recommendedMapView.projection){let{x1:dt,y1:mt,x2:Et,y2:Mt}=st;this.recommendedMapView.projection=Et-dt>180&&Mt-mt>90?{name:"EqualEarth",parallels:[0,0],rotation:[0]}:{name:"LambertConformalConic",parallels:[mt,Mt],rotation:[-(dt+Et)/2]}}this.recommendedMapView.insets||(this.recommendedMapView.insets=void 0)}}),this.geoMap=k[0],T&&b.hasRendered&&!((nt=b.userOptions.mapView)!=null&&nt.projection)&&this.recommendedMapView&&this.update(this.recommendedMapView)}redraw(b){this.chart.series.forEach(F=>{F.useMapGeometry&&(F.isDirty=!0)}),this.chart.redraw(b)}setView(b,F,T=!0,k){b&&(this.center=b),typeof F=="number"&&(typeof this.minZoom=="number"&&(F=Math.max(F,this.minZoom)),typeof this.options.maxZoom=="number"&&(F=Math.min(F,this.options.maxZoom)),w(F)&&(this.zoom=F));let Q=this.getProjectedBounds();if(Q){let st=this.projection.forward(this.center),{x:nt,y:dt,width:mt,height:Et}=this.playingField,Mt=this.getScale(),I=this.projectedUnitsToPixels({x:Q.x1,y:Q.y1}),Y=this.projectedUnitsToPixels({x:Q.x2,y:Q.y2}),rt=[(Q.x1+Q.x2)/2,(Q.y1+Q.y2)/2];if(!this.chart.series.some(ot=>ot.isDrilling)){let ot=I.x,D=Y.y,P=Y.x,W=I.y;P-otnt+mt&&ot>nt&&(st[0]+=Math.min(P-mt-nt,ot-nt)/Mt),W-Ddt+Et&&D>dt&&(st[1]-=Math.min(W-Et-dt,D-dt)/Mt),this.center=this.projection.inverse(st)}this.insets.forEach(ot=>{ot.options.field&&(ot.hitZone=ot.getHitZone(),ot.playingField=ot.getField())}),this.render()}M(this,"afterSetView"),T&&this.redraw(k)}projectedUnitsToPixels(b){let F=this.getScale(),T=this.projection.forward(this.center),k=this.playingField,Q=k.x+k.width/2,st=k.y+k.height/2;return{x:Q-F*(T[0]-b.x),y:st+F*(T[1]-b.y)}}pixelsToLonLat(b){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(b))}pixelsToProjectedUnits(b){let{x:F,y:T}=b,k=this.getScale(),Q=this.projection.forward(this.center),st=this.playingField,nt=st.x+st.width/2,dt=st.y+st.height/2;return{x:Q[0]+(F-nt)/k,y:Q[1]-(T-dt)/k}}setUpEvents(){let b,F,T,{chart:k}=this,Q=st=>{let{lastTouches:nt,pinchDown:dt}=k.pointer,mt=this.projection,Et=st.touches,{mouseDownX:Mt,mouseDownY:I}=k,Y=0;if((dt==null?void 0:dt.length)===1?(Mt=dt[0].chartX,I=dt[0].chartY):(dt==null?void 0:dt.length)===2&&(Mt=(dt[0].chartX+dt[1].chartX)/2,I=(dt[0].chartY+dt[1].chartY)/2),(Et==null?void 0:Et.length)===2&&nt&&(Y=Math.log(Math.sqrt(Math.pow(nt[0].chartX-nt[1].chartX,2)+Math.pow(nt[0].chartY-nt[1].chartY,2))/Math.sqrt(Math.pow(Et[0].chartX-Et[1].chartX,2)+Math.pow(Et[0].chartY-Et[1].chartY,2)))/Math.log(.5)),w(Mt)&&w(I)){let rt=`${Mt},${I}`,{chartX:ot,chartY:D}=st.originalEvent;(Et==null?void 0:Et.length)===2&&(ot=(Et[0].chartX+Et[1].chartX)/2,D=(Et[0].chartY+Et[1].chartY)/2),rt!==F&&(F=rt,b=this.projection.forward(this.center),T=(this.projection.options.rotation||[0,0]).slice());let P=mt.def&&mt.def.bounds,W=P&&g(P,this.playingField)||-1/0;if(mt.options.name==="Orthographic"&&2>((Et==null?void 0:Et.length)||0)&&(this.minZoom||1/0)<1.3*W){let lt=440/(this.getScale()*Math.min(k.plotWidth,k.plotHeight));if(T){let it=(Mt-ot)*lt-T[0],vt=d(-T[1]-(I-D)*lt,-80,80),pt=this.zoom;this.update({projection:{rotation:[-it,-vt]}},!1),this.fitToBounds(void 0,void 0,!1),this.zoom=pt,k.redraw(!1)}}else if(w(ot)&&w(D)){let lt=this.getScale(),it=this.projection.hasCoordinates?1:-1,vt=this.projection.inverse([b[0]+(Mt-ot)/lt,b[1]-(I-D)/lt*it]);isNaN(vt[0]+vt[1])||this.zoomBy(Y,vt,void 0,!1)}st.preventDefault()}};U(k,"pan",Q),U(k,"touchpan",Q),U(k,"selection",st=>{if(st.resetSelection)this.zoomBy();else{let nt=st.x-k.plotLeft,dt=st.y-k.plotTop,{y:mt,x:Et}=this.pixelsToProjectedUnits({x:nt,y:dt}),{y:Mt,x:I}=this.pixelsToProjectedUnits({x:nt+st.width,y:dt+st.height});this.fitToBounds({x1:Et,y1:mt,x2:I,y2:Mt},void 0,!0,!st.originalEvent.touches&&void 0),/^touch/.test(st.originalEvent.type)||k.showResetZoom(),st.preventDefault()}})}render(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())}update(b,F=!0,T){let k=b.projection,Q=k&&q.toString(k)!==q.toString(this.options.projection),st=!1;u(!0,this.userOptions,b),u(!0,this.options,b),"insets"in b&&(this.insets.forEach(nt=>nt.destroy()),this.insets.length=0,st=!0),(Q||"fitToGeometry"in b)&&delete this.fitToGeometryCache,(Q||st)&&(this.chart.series.forEach(nt=>{let dt=nt.transformGroups;if(nt.clearBounds&&nt.clearBounds(),nt.isDirty=!0,nt.isDirtyData=!0,st&&dt)for(;dt.length>1;){let mt=dt.pop();mt&&mt.destroy()}}),Q&&(this.projection=new q(this.options.projection)),st&&this.createInsets(),!b.center&&Object.hasOwnProperty.call(b,"zoom")&&!w(b.zoom)&&this.fitToBounds(void 0,void 0,!1)),b.center||w(b.zoom)?this.setView(this.options.center,b.zoom,!1):"fitToGeometry"in b&&this.fitToBounds(void 0,void 0,!1),F&&this.chart.redraw(T)}zoomBy(b,F,T,k){let Q=this.chart,st=this.projection.forward(this.center);if(typeof b=="number"){let nt,dt,mt,Et=this.zoom+b;if(T){let[Mt,I]=T,Y=this.getScale(),rt=Mt-Q.plotLeft-Q.plotWidth/2,ot=I-Q.plotTop-Q.plotHeight/2;dt=st[0]+rt/Y,mt=st[1]+ot/Y}if(typeof dt=="number"&&typeof mt=="number"){let Mt=1-Math.pow(2,this.zoom)/Math.pow(2,Et),I=st[0]-dt,Y=st[1]-mt;st[0]-=I*Mt,st[1]+=Y*Mt,nt=this.projection.inverse(st)}this.setView(F||nt,Et,void 0,k)}else this.fitToBounds(void 0,void 0,void 0,k)}}class l extends p{constructor(b,F){if(super(b.chart,F),this.id=F.id,this.mapView=b,this.options=u({center:[0,0]},b.options.insetOptions,F),this.allBounds=[],this.options.geoBounds){let T=b.projection.path(this.options.geoBounds);this.geoBoundsProjectedBox=B(T),this.geoBoundsProjectedPolygon=T.map(k=>[k[1]||0,k[2]||0])}}getField(b=!0){let F=this.hitZone;if(F){let T=b?this.padding:[0,0,0,0],k=F.coordinates[0],Q=k.map(Mt=>Mt[0]),st=k.map(Mt=>Mt[1]),nt=Math.min.apply(0,Q)+T[3],dt=Math.max.apply(0,Q)-T[1],mt=Math.min.apply(0,st)+T[0],Et=Math.max.apply(0,st)-T[2];if(w(nt)&&w(mt))return{x:nt,y:mt,width:dt-nt,height:Et-mt}}return super.getField.call(this,b)}getHitZone(){let{chart:b,mapView:F,options:T}=this,{coordinates:k}=T.field||{};if(k){let Q=k[0];if(T.units==="percent"){let st=T.relativeTo==="mapBoundingBox"&&F.getMapBBox()||u(b.plotBox,{x:0,y:0});Q=Q.map(nt=>[S(`${nt[0]}%`,st.width,st.x),S(`${nt[1]}%`,st.height,st.y)])}return{type:"Polygon",coordinates:[Q]}}}getProjectedBounds(){return p.compositeBounds(this.allBounds)}isInside(b){let{geoBoundsProjectedBox:F,geoBoundsProjectedPolygon:T}=this;return!!(F&&b.x>=F.x1&&b.x<=F.x2&&b.y>=F.y1&&b.y<=F.y2&&T&&H(b,T))}render(){let{chart:b,mapView:F,options:T}=this,k=T.borderPath||T.field;if(k&&F.group){let Q=!0;this.border||(this.border=b.renderer.path().addClass("highcharts-mapview-inset-border").add(F.group),Q=!1),b.styledMode||this.border.attr({stroke:T.borderColor,"stroke-width":T.borderWidth});let st=this.border.strokeWidth(),nt=T.relativeTo==="mapBoundingBox"&&F.getMapBBox()||F.playingField,dt=(k.coordinates||[]).reduce((mt,Et)=>Et.reduce((Mt,I,Y)=>{let[rt,ot]=I;return T.units==="percent"&&(rt=b.plotLeft+S(`${rt}%`,nt.width,nt.x),ot=b.plotTop+S(`${ot}%`,nt.height,nt.y)),rt=L(rt,st),ot=L(ot,st),Mt.push(Y===0?["M",rt,ot]:["L",rt,ot]),Mt},mt),[]);this.border[Q?"animate":"attr"]({d:dt})}}destroy(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(b=>b())}setUpEvents(){}}return p}),y(m,"Series/Map/MapSeries.js",[m["Core/Animation/AnimationUtilities.js"],m["Series/ColorMapComposition.js"],m["Series/CenteredUtilities.js"],m["Core/Globals.js"],m["Core/Chart/MapChart.js"],m["Series/Map/MapPoint.js"],m["Series/Map/MapSeriesDefaults.js"],m["Maps/MapView.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j,et,K,J,q,Z,tt,H,X){let{animObject:B,stop:U}=R,{noop:d}=K,{splitPath:L}=J,{column:M,scatter:s}=H.seriesTypes,{extend:w,find:_,fireEvent:o,getNestedProperty:u,isArray:C,defined:E,isNumber:S,isObject:v,merge:g,objectEach:x,pick:p,splat:l}=X;class f extends s{constructor(){super(...arguments),this.processedData=[]}animate(F){let{chart:T,group:k}=this,Q=B(this.options.animation);F?k.attr({translateX:T.plotLeft+T.plotWidth/2,translateY:T.plotTop+T.plotHeight/2,scaleX:.001,scaleY:.001}):k.animate({translateX:T.plotLeft,translateY:T.plotTop,scaleX:1,scaleY:1},Q)}clearBounds(){this.points.forEach(F=>{delete F.bounds,delete F.insetIndex,delete F.projectedPath}),delete this.bounds}doFullTranslate(){return!!(this.isDirtyData||this.chart.isResizing||!this.hasRendered)}drawMapDataLabels(){super.drawDataLabels(),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)}drawPoints(){let F=this,{chart:T,group:k,transformGroups:Q=[]}=this,{mapView:st,renderer:nt}=T;if(st){this.transformGroups=Q,Q[0]||(Q[0]=nt.g().add(k));for(let dt=0,mt=st.insets.length;dt{let{graphic:mt}=dt;dt.group=Q[typeof dt.insetIndex=="number"?dt.insetIndex+1:0],mt&&mt.parentGroup!==dt.group&&mt.add(dt.group)}),M.prototype.drawPoints.apply(this),this.points.forEach(dt=>{let mt=dt.graphic;if(mt){let Et=mt.animate,Mt="";dt.name&&(Mt+="highcharts-name-"+dt.name.replace(/ /g,"-").toLowerCase()),dt.properties&&dt.properties["hc-key"]&&(Mt+=" highcharts-key-"+dt.properties["hc-key"].toString().toLowerCase()),Mt&&mt.addClass(Mt),T.styledMode&&mt.css(this.pointAttribs(dt,dt.selected&&"select"||void 0)),mt.attr({visibility:!dt.visible&&(dt.visible||dt.isNull)?"hidden":"inherit"}),mt.animate=function(I,Y,rt){let ot=S(I["stroke-width"])&&!S(mt["stroke-width"]),D=S(mt["stroke-width"])&&!S(I["stroke-width"]);if(ot||D){let P=p(F.getStrokeWidth(F.options),1)/(T.mapView&&T.mapView.getScale()||1);ot&&(mt["stroke-width"]=P),D&&(I["stroke-width"]=P)}return Et.call(mt,I,Y,D?function(){mt.element.removeAttribute("stroke-width"),delete mt["stroke-width"],rt&&rt.apply(this,arguments)}:rt)}}})),Q.forEach((dt,mt)=>{let Et=(mt===0?st:st.insets[mt-1]).getSVGTransform(),Mt=p(this.getStrokeWidth(this.options),1),I=Et.scaleX,Y=Et.scaleY>0?1:-1,rt=ot=>{(F.points||[]).forEach(D=>{let P,W=D.graphic;W&&W["stroke-width"]&&(P=this.getStrokeWidth(D.options))&&W.attr({"stroke-width":P/ot})})};if(nt.globalAnimation&&T.hasRendered&&st.allowTransformAnimation){let ot=Number(dt.attr("translateX")),D=Number(dt.attr("translateY")),P=Number(dt.attr("scaleX")),W=(vt,pt)=>{let xt=P+(I-P)*pt.pos;dt.attr({translateX:ot+(Et.translateX-ot)*pt.pos,translateY:D+(Et.translateY-D)*pt.pos,scaleX:xt,scaleY:xt*Y,"stroke-width":Mt/xt}),rt(xt)},lt=g(B(nt.globalAnimation)),it=lt.step;lt.step=function(){it&&it.apply(this,arguments),W.apply(this,arguments)},dt.attr({animator:0}).animate({animator:1},lt,function(){typeof nt.globalAnimation!="boolean"&&nt.globalAnimation.complete&&nt.globalAnimation.complete({applyDrilldown:!0}),o(this,"mapZoomComplete")}.bind(this))}else U(dt),dt.attr(g(Et,{"stroke-width":Mt/I})),rt(I)}),this.isDrilling||this.drawMapDataLabels()}}getProjectedBounds(){if(!this.bounds&&this.chart.mapView){let{insets:F,projection:T}=this.chart.mapView,k=[];(this.points||[]).forEach(Q=>{if(Q.path||Q.geometry){if(typeof Q.path=="string"?Q.path=L(Q.path):C(Q.path)&&Q.path[0]==="M"&&(Q.path=this.chart.renderer.pathToSegments(Q.path)),!Q.bounds){let st=Q.getProjectedBounds(T);if(st){Q.labelrank=p(Q.labelrank,(st.x2-st.x1)*(st.y2-st.y1));let{midX:nt,midY:dt}=st;if(F&&S(nt)&&S(dt)){let mt=_(F,Et=>Et.isInside({x:nt,y:dt}));mt&&(delete Q.projectedPath,(st=Q.getProjectedBounds(mt.projection))&&mt.allBounds.push(st),Q.insetIndex=F.indexOf(mt))}Q.bounds=st}}Q.bounds&&Q.insetIndex===void 0&&k.push(Q.bounds)}}),this.bounds=tt.compositeBounds(k)}return this.bounds}getStrokeWidth(F){let T=this.pointAttrToOptions;return F[T&&T["stroke-width"]||"borderWidth"]}hasData(){return!!this.processedXData.length}pointAttribs(F,T){var mt;let{mapView:k,styledMode:Q}=F.series.chart,st=Q?this.colorAttribs(F):M.prototype.pointAttribs.call(this,F,T),nt=this.getStrokeWidth(F.options);if(T){let Et=g(this.options.states&&this.options.states[T],F.options.states&&F.options.states[T]||{}),Mt=this.getStrokeWidth(Et);E(Mt)&&(nt=Mt),st.stroke=(mt=Et.borderColor)!=null?mt:F.color}nt&&k&&(nt/=k.getScale());let dt=this.getStrokeWidth(this.options);return st.dashstyle&&k&&S(dt)&&(nt=dt/k.getScale()),F.visible||(st.fill=this.options.nullColor),E(nt)?st["stroke-width"]=nt:delete st["stroke-width"],st["stroke-linecap"]=st["stroke-linejoin"]=this.options.linecap,st}updateData(){return!this.processedData&&super.updateData.apply(this,arguments)}setData(F,T=!0,k,Q){delete this.bounds,super.setData(F,!1,void 0,Q),this.processData(),this.generatePoints(),T&&this.chart.redraw(k)}processData(){let F,T,k,Q=this.options,st=Q.data,nt=this.chart,dt=nt.options.chart,mt=this.joinBy,Et=Q.keys||this.pointArrayMap,Mt=[],I={},Y=this.chart.mapView,rt=Y&&(v(Q.mapData,!0)?Y.getGeoMap(Q.mapData):Y.geoMap),ot=nt.mapTransforms=dt.mapTransforms||rt&&rt["hc-transform"]||nt.mapTransforms;ot&&x(ot,P=>{P.rotation&&(P.cosAngle=Math.cos(P.rotation),P.sinAngle=Math.sin(P.rotation))}),C(Q.mapData)?k=Q.mapData:rt&&rt.type==="FeatureCollection"&&(this.mapTitle=rt.title,k=K.geojson(rt,this.type,this)),this.processedData=[];let D=this.processedData;if(st){let P;for(let W=0,lt=st.length;WEt.length&&typeof P[0]=="string"&&(D[W]["hc-key"]=P[0],++it);for(let vt=0;vt0?q.prototype.setNestedProperty(D[W],P[it],Et[vt]):D[W][Et[vt]]=P[it])}else D[W]=st[W];mt&&mt[0]==="_i"&&(D[W]._i=W)}}if(k){this.mapData=k,this.mapMap={};for(let P=0;P{let lt=u(P,W);I[lt]&&Mt.push(I[lt])})}if(Q.allAreas){if(mt[1]){let W=mt[1];D.forEach(lt=>{Mt.push(u(W,lt))})}let P="|"+Mt.map(function(W){return W&&W[mt[0]]}).join("|")+"|";k.forEach(W=>{mt[0]&&P.indexOf("|"+W[mt[0]]+"|")!==-1||D.push(g(W,{value:null}))})}}this.processedXData=Array(D.length)}setOptions(F){let T=super.setOptions(F),k=T.joinBy;return T.joinBy===null&&(k="_i"),(k=this.joinBy=l(k))[1]||(k[1]=k[0]),T}translate(){let F=this.doFullTranslate(),T=this.chart.mapView,k=T&&T.projection;if(this.chart.hasRendered&&(this.isDirtyData||!this.hasRendered)&&(this.processData(),this.generatePoints(),delete this.bounds,!T||T.userOptions.center||S(T.userOptions.zoom)||T.zoom!==T.minZoom?this.getProjectedBounds():T.fitToBounds(void 0,void 0,!1)),T){let Q=T.getSVGTransform();this.points.forEach(st=>{let nt=S(st.insetIndex)&&T.insets[st.insetIndex].getSVGTransform()||Q;nt&&st.bounds&&S(st.bounds.midX)&&S(st.bounds.midY)&&(st.plotX=st.bounds.midX*nt.scaleX+nt.translateX,st.plotY=st.bounds.midY*nt.scaleY+nt.translateY),F&&(st.shapeType="path",st.shapeArgs={d:q.getProjectedPath(st,k)}),st.hiddenInDataClass||(st.projectedPath&&!st.projectedPath.length?st.setVisible(!1):st.visible||st.setVisible(!0))})}o(this,"afterTranslate")}update(F){var T;F.mapData&&((T=this.chart.mapView)==null||T.recommendMapView(this.chart,[this.chart.options.chart.map,...(this.chart.options.series||[]).map((k,Q)=>Q===this._i?F.mapData:k.mapData)],!0)),super.update.apply(this,arguments)}}return f.defaultOptions=g(s.defaultOptions,Z),w(f.prototype,{type:"map",axisTypes:j.seriesMembers.axisTypes,colorAttribs:j.seriesMembers.colorAttribs,colorKey:j.seriesMembers.colorKey,directTouch:!0,drawDataLabels:d,drawGraph:d,forceDL:!0,getCenter:et.getCenter,getExtremesFromAll:!0,getSymbol:d,isCartesian:!1,parallelArrays:j.seriesMembers.parallelArrays,pointArrayMap:j.seriesMembers.pointArrayMap,pointClass:q,preserveAspectRatio:!0,searchPoint:d,trackerGroups:j.seriesMembers.trackerGroups,useMapGeometry:!0}),j.compose(f),H.registerSeriesType("map",f),f}),y(m,"Series/MapLine/MapLineSeriesDefaults.js",[],function(){return{lineWidth:1,fillColor:"none",legendSymbol:"lineMarker"}}),y(m,"Series/MapLine/MapLineSeries.js",[m["Series/MapLine/MapLineSeriesDefaults.js"],m["Series/Map/MapSeries.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j,et,K){let{extend:J,merge:q}=K;class Z extends j{pointAttribs(H,X){let B=super.pointAttribs(H,X);return B.fill=this.options.fillColor,B}}return Z.defaultOptions=q(j.defaultOptions,R),J(Z.prototype,{type:"mapline",colorProp:"stroke",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),et.registerSeriesType("mapline",Z),Z}),y(m,"Series/MapPoint/MapPointPoint.js",[m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j){let{scatter:et}=R.seriesTypes,{isNumber:K}=j;class J extends et.prototype.pointClass{isValid(){return!!(this.options.geometry||K(this.x)&&K(this.y)||K(this.options.lon)&&K(this.options.lat))}}return J}),y(m,"Series/MapPoint/MapPointSeriesDefaults.js",[],function(){return{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}},legendSymbol:"lineMarker"}}),y(m,"Series/MapPoint/MapPointSeries.js",[m["Core/Globals.js"],m["Series/MapPoint/MapPointPoint.js"],m["Series/MapPoint/MapPointSeriesDefaults.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Renderer/SVG/SVGRenderer.js"],m["Core/Utilities.js"]],function(R,j,et,K,J,q){let{noop:Z}=R,{map:tt,scatter:H}=K.seriesTypes,{extend:X,fireEvent:B,isNumber:U,merge:d}=q;class L extends H{constructor(){super(...arguments),this.clearBounds=tt.prototype.clearBounds}drawDataLabels(){super.drawDataLabels(),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)}projectPoint(s){let w=this.chart.mapView;if(w){let{geometry:_,lon:o,lat:u}=s,C=_&&_.type==="Point"&&_.coordinates;if(U(o)&&U(u)&&(C=[o,u]),C)return w.lonLatToProjectedUnits({lon:C[0],lat:C[1]})}}translate(){let s=this.chart.mapView;if(this.processedXData||this.processData(),this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),s){let w=s.getSVGTransform(),{hasCoordinates:_}=s.projection;this.points.forEach(o=>{let u,{x:C,y:E}=o,S=U(o.insetIndex)&&s.insets[o.insetIndex].getSVGTransform()||w,v=this.projectPoint(o.options)||o.properties&&this.projectPoint(o.properties);if(v?(C=v.x,E=v.y):o.bounds&&(C=o.bounds.midX,E=o.bounds.midY,S&&U(C)&&U(E)&&(o.plotX=C*S.scaleX+S.translateX,o.plotY=E*S.scaleY+S.translateY,u=!0)),U(C)&&U(E)){if(!u){let g=s.projectedUnitsToPixels({x:C,y:E});o.plotX=g.x,o.plotY=_?g.y:this.chart.plotHeight-g.y}}else o.y=o.plotX=o.plotY=void 0;o.isInside=this.isPointInside(o),o.zone=this.zones.length?o.getZone():void 0})}B(this,"afterTranslate")}}return L.defaultOptions=d(H.defaultOptions,et),J.prototype.symbols.mapmarker=(M,s,w,_,o)=>{let u,C,E=o&&o.context==="legend";E?(u=M+w/2,C=s+_):o&&typeof o.anchorX=="number"&&typeof o.anchorY=="number"?(u=o.anchorX,C=o.anchorY):(u=M+w/2,C=s+_/2,s-=_);let S=E?_/3:_/2;return[["M",u,C],["C",u,C,u-S,s+1.5*S,u-S,s+S],["A",S,S,1,1,1,u+S,s+S],["C",u+S,s+1.5*S,u,C,u,C],["Z"]]},X(L.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:j,searchPoint:Z,useMapGeometry:!0}),K.registerSeriesType("mappoint",L),L}),y(m,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"0.9em",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),y(m,"Series/Bubble/BubbleLegendItem.js",[m["Core/Color/Color.js"],m["Core/Templating.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j,et,K){let{parse:J}=R,{noop:q}=et,{arrayMax:Z,arrayMin:tt,isNumber:H,merge:X,pick:B,stableSort:U}=K;return class{constructor(d,L){this.setState=q,this.init(d,L)}init(d,L){this.options=d,this.visible=!0,this.chart=L.chart,this.legend=L}addToLegend(d){d.splice(this.options.legendIndex,0,this)}drawLegendSymbol(d){let L,M=B(d.options.itemDistance,20),s=this.legendItem||{},w=this.options,_=w.ranges,o=w.connectorDistance;if(!_||!_.length||!H(_[0].value)){d.options.bubbleLegend.autoRanges=!0;return}U(_,function(S,v){return v.value-S.value}),this.ranges=_,this.setOptions(),this.render();let u=this.getMaxLabelSize(),C=this.ranges[0].radius,E=2*C;L=(L=o-C+u.width)>0?L:0,this.maxLabel=u,this.movementX=w.labels.align==="left"?L:0,s.labelWidth=E+L+M,s.labelHeight=E+u.height/2}setOptions(){let d=this.ranges,L=this.options,M=this.chart.series[L.seriesIndex],s=this.legend.baseline,w={zIndex:L.zIndex,"stroke-width":L.borderWidth},_={zIndex:L.zIndex,"stroke-width":L.connectorWidth},o={align:this.legend.options.rtl||L.labels.align==="left"?"right":"left",zIndex:L.zIndex},u=M.options.marker.fillOpacity,C=this.chart.styledMode;d.forEach(function(E,S){C||(w.stroke=B(E.borderColor,L.borderColor,M.color),w.fill=B(E.color,L.color,u!==1?J(M.color).setOpacity(u).get("rgba"):M.color),_.stroke=B(E.connectorColor,L.connectorColor,M.color)),d[S].radius=this.getRangeRadius(E.value),d[S]=X(d[S],{center:d[0].radius-d[S].radius+s}),C||X(!0,d[S],{bubbleAttribs:X(w),connectorAttribs:X(_),labelAttribs:o})},this)}getRangeRadius(d){let L=this.options,M=this.options.seriesIndex,s=this.chart.series[M],w=L.ranges[0].value,_=L.ranges[L.ranges.length-1].value,o=L.minSize,u=L.maxSize;return s.getRadius.call(this,_,w,o,u,d)}render(){let d=this.legendItem||{},L=this.chart.renderer,M=this.options.zThreshold;for(let s of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),d.symbol=L.g("bubble-legend"),d.label=L.g("bubble-legend-item").css(this.legend.itemStyle||{}),d.symbol.translateX=0,d.symbol.translateY=0,d.symbol.add(d.label),d.label.add(d.group),this.ranges))s.value>=M&&this.renderRange(s);this.hideOverlappingLabels()}renderRange(d){let L=this.ranges[0],M=this.legend,s=this.options,w=s.labels,_=this.chart,o=_.series[s.seriesIndex],u=_.renderer,C=this.symbols,E=C.labels,S=d.center,v=Math.abs(d.radius),g=s.connectorDistance||0,x=w.align,p=M.options.rtl,l=s.borderWidth,f=s.connectorWidth,b=L.radius||0,F=S-v-l/2+f/2,T=(F%1?1:.5)-(f%2?0:.5),k=u.styledMode,Q=p||x==="left"?-g:g;x==="center"&&(Q=0,s.connectorDistance=0,d.labelAttribs.align="center"),C.bubbleItems.push(u.circle(b,S+T,v).attr(k?{}:d.bubbleAttribs).addClass((k?"highcharts-color-"+o.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(s.className||"")).add(this.legendItem.symbol)),C.connectors.push(u.path(u.crispLine([["M",b,F],["L",b+Q,F]],s.connectorWidth)).attr(k?{}:d.connectorAttribs).addClass((k?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(s.connectorClassName||"")).add(this.legendItem.symbol));let st=u.text(this.formatLabel(d)).attr(k?{}:d.labelAttribs).css(k?{}:w.style).addClass("highcharts-bubble-legend-labels "+(s.labels.className||"")).add(this.legendItem.symbol),nt={x:b+Q+s.labels.x,y:F+s.labels.y+.4*st.getBBox().height};st.attr(nt),E.push(st),st.placed=!0,st.alignAttr=nt}getMaxLabelSize(){let d,L;return this.symbols.labels.forEach(function(M){L=M.getBBox(!0),d=d?L.width>d.width?L:d:L}),d||{}}formatLabel(d){let L=this.options,M=L.labels.formatter,s=L.labels.format,{numberFormatter:w}=this.chart;return s?j.format(s,d):M?M.call(d):w(d.value,1)}hideOverlappingLabels(){let d=this.chart,L=this.options.labels.allowOverlap,M=this.symbols;!L&&M&&(d.hideOverlappingLabels(M.labels),M.labels.forEach(function(s,w){s.newOpacity?s.newOpacity!==s.oldOpacity&&M.connectors[w].show():M.connectors[w].hide()}))}getRanges(){let d=this.legend.bubbleLegend,L=d.chart.series,M=d.options.ranges,s,w,_=Number.MAX_VALUE,o=-Number.MAX_VALUE;return L.forEach(function(u){u.isBubble&&!u.ignoreSeries&&(w=u.zData.filter(H)).length&&(_=B(u.options.zMin,Math.min(_,Math.max(tt(w),u.options.displayNegative===!1?u.options.zThreshold:-Number.MAX_VALUE))),o=B(u.options.zMax,Math.max(o,Z(w))))}),s=_===o?[{value:o}]:[{value:_},{value:(_+o)/2},{value:o,autoRanges:!0}],M.length&&M[0].radius&&s.reverse(),s.forEach(function(u,C){M&&M[C]&&(s[C]=X(M[C],u))}),s}predictBubbleSizes(){let d=this.chart,L=d.legend.options,M=L.floating,s=L.layout==="horizontal",w=s?d.legend.lastLineHeight:0,_=d.plotSizeX,o=d.plotSizeY,u=d.series[this.options.seriesIndex],C=u.getPxExtremes(),E=Math.ceil(C.minPxSize),S=Math.ceil(C.maxPxSize),v=Math.min(o,_),g,x=u.options.maxSize;return M||!/%$/.test(x)?g=S:(g=(v+w)*(x=parseFloat(x))/100/(x/100+1),(s&&o-g>=_||!s&&_-g>=o)&&(g=S)),[E,Math.ceil(g)]}updateRanges(d,L){let M=this.legend.options.bubbleLegend;M.minSize=d,M.maxSize=L,M.ranges=this.getRanges()}correctSizes(){let d=this.legend,L=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(L.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,L.maxPxSize),d.render())}}}),y(m,"Series/Bubble/BubbleLegendComposition.js",[m["Series/Bubble/BubbleLegendDefaults.js"],m["Series/Bubble/BubbleLegendItem.js"],m["Core/Defaults.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j,et,K,J){let{setOptions:q}=et,{composed:Z}=K,{addEvent:tt,objectEach:H,pushUnique:X,wrap:B}=J;function U(_,o,u){let C,E,S,v=this.legend,g=d(this)>=0;v&&v.options.enabled&&v.bubbleLegend&&v.options.bubbleLegend.autoRanges&&g?(C=v.bubbleLegend.options,E=v.bubbleLegend.predictBubbleSizes(),v.bubbleLegend.updateRanges(E[0],E[1]),C.placed||(v.group.placed=!1,v.allItems.forEach(x=>{(S=x.legendItem||{}).group&&(S.group.translateY=void 0)})),v.render(),C.placed||(this.getMargins(),this.axes.forEach(function(x){x.visible&&x.render(),C.placed||(x.setScale(),x.updateNames(),H(x.ticks,function(p){p.isNew=!0,p.isNewLabel=!0}))}),this.getMargins()),C.placed=!0,_.call(this,o,u),v.bubbleLegend.correctSizes(),w(v,L(v))):(_.call(this,o,u),v&&v.options.enabled&&v.bubbleLegend&&(v.render(),w(v,L(v))))}function d(_){let o=_.series,u=0;for(;uE.height&&(E.height=o[x].itemHeight);E.step=g}return u}function M(_){let o=this.bubbleLegend,u=this.options,C=u.bubbleLegend,E=d(this.chart);o&&o.ranges&&o.ranges.length&&(C.ranges.length&&(C.autoRanges=!!C.ranges[0].autoRanges),this.destroyItem(o)),E>=0&&u.enabled&&C.enabled&&(C.seriesIndex=E,this.bubbleLegend=new j(C,this),this.bubbleLegend.addToLegend(_.allItems))}function s(_){let o;if(_.defaultPrevented)return!1;let u=_.legendItem,C=this.chart,E=u.visible;this&&this.bubbleLegend&&(u.visible=!E,u.ignoreSeries=E,o=d(C)>=0,this.bubbleLegend.visible!==o&&(this.update({bubbleLegend:{enabled:o}}),this.bubbleLegend.visible=o),u.visible=E)}function w(_,o){let u=_.allItems,C=_.options.rtl,E,S,v,g,x=0;u.forEach((p,l)=>{(g=p.legendItem||{}).group&&(E=g.group.translateX||0,S=g.y||0,((v=p.movementX)||C&&p.ranges)&&(v=C?E-p.options.maxSize/2:E+v,g.group.attr({translateX:v})),l>o[x].step&&x++,g.group.attr({translateY:Math.round(S+o[x].height/2)}),g.y=S+o[x].height/2)})}return{compose:function(_,o){X(Z,"Series.BubbleLegend")&&(q({legend:{bubbleLegend:R}}),B(_.prototype,"drawChartBox",U),tt(o,"afterGetAllItems",M),tt(o,"itemClick",s))}}}),y(m,"Series/Bubble/BubblePoint.js",[m["Core/Series/Point.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j,et){let{seriesTypes:{scatter:{prototype:{pointClass:K}}}}=j,{extend:J}=et;class q extends K{haloPath(tt){let H=(tt&&this.marker&&this.marker.radius||0)+tt;if(this.series.chart.inverted){let X=this.pos()||[0,0],{xAxis:B,yAxis:U,chart:d}=this.series;return d.renderer.symbols.circle(B.len-X[1]-H,U.len-X[0]-H,2*H,2*H)}return R.prototype.haloPath.call(this,H)}}return J(q.prototype,{ttBelow:!1}),q}),y(m,"Series/Bubble/BubbleSeries.js",[m["Series/Bubble/BubbleLegendComposition.js"],m["Series/Bubble/BubblePoint.js"],m["Core/Color/Color.js"],m["Core/Globals.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j,et,K,J,q){let{parse:Z}=et,{composed:tt,noop:H}=K,{series:X,seriesTypes:{column:{prototype:B},scatter:U}}=J,{addEvent:d,arrayMax:L,arrayMin:M,clamp:s,extend:w,isNumber:_,merge:o,pick:u,pushUnique:C}=q;function E(){let v=this.len,{coll:g,isXAxis:x,min:p}=this,l=x?"xData":"yData",f=(this.max||0)-(p||0),b=0,F=v,T=v/f,k;(g==="xAxis"||g==="yAxis")&&(this.series.forEach(Q=>{if(Q.bubblePadding&&Q.reserveSpace()){this.allowZoomOutside=!0,k=!0;let st=Q[l];if(x&&((Q.onPoint||Q).getRadii(0,0,Q),Q.onPoint&&(Q.radii=Q.onPoint.radii)),f>0){let nt=st.length;for(;nt--;)if(_(st[nt])&&this.dataMin<=st[nt]&&st[nt]<=this.max){let dt=Q.radii&&Q.radii[nt]||0;b=Math.min((st[nt]-p)*T-dt,b),F=Math.max((st[nt]-p)*T+dt,F)}}}}),k&&f>0&&!this.logarithmic&&(F-=v,T*=(v+Math.max(0,b)-Math.min(F,v))/v,[["min","userMin",b],["max","userMax",F]].forEach(Q=>{u(this.options[Q[0]],this[Q[1]])===void 0&&(this[Q[0]]+=Q[2]/T)})))}class S extends U{static compose(g,x,p){R.compose(x,p),C(tt,"Series.Bubble")&&d(g,"foundExtremes",E)}animate(g){!g&&this.points.length{if(dt.bubblePadding&&dt.reserveSpace()){let mt=(dt.onPoint||dt).getZExtremes();mt&&(st=Math.min(u(st,mt.zMin),mt.zMin),nt=Math.max(u(nt,mt.zMax),mt.zMax),Q=!0)}}),Q?(F={zMin:st,zMax:nt},this.chart.bubbleZExtremes=F):F={zMin:0,zMax:0}}for(f=0,l=g.length;f0&&(st=(f-g)/Q)}return T&&st>=0&&(st=Math.sqrt(st)),Math.ceil(p+st*(l-p))/2}hasData(){return!!this.processedXData.length}markerAttribs(g,x){let p=super.markerAttribs(g,x),{height:l=0,width:f=0}=p;return this.chart.inverted?w(p,{x:(g.plotX||0)-f/2,y:(g.plotY||0)-l/2}):p}pointAttribs(g,x){let p=this.options.marker.fillOpacity,l=X.prototype.pointAttribs.call(this,g,x);return p!==1&&(l.fill=Z(l.fill).setOpacity(p).get("rgba")),l}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{data:g,options:x,radii:p}=this,{minPxSize:l}=this.getPxExtremes(),f=g.length;for(;f--;){let b=g[f],F=p?p[f]:0;this.zoneAxis==="z"&&(b.negative=(b.z||0)<(x.zThreshold||0)),_(F)&&F>=l/2?(b.marker=w(b.marker,{radius:F,width:2*F,height:2*F}),b.dlBox={x:b.plotX-F,y:b.plotY-F,width:2*F,height:2*F}):(b.shapeArgs=b.plotY=b.dlBox=void 0,b.isInside=!1)}}getPxExtremes(){let g=Math.min(this.chart.plotWidth,this.chart.plotHeight),x=f=>{let b;return typeof f=="string"&&(b=/%$/.test(f),f=parseInt(f,10)),b?g*f/100:f},p=x(u(this.options.minSize,8)),l=Math.max(x(u(this.options.maxSize,"20%")),p);return{minPxSize:p,maxPxSize:l}}getZExtremes(){let g=this.options,x=(this.zData||[]).filter(_);if(x.length){let p=u(g.zMin,s(M(x),g.displayNegative===!1?g.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),l=u(g.zMax,L(x));if(_(p)&&_(l))return{zMin:p,zMax:l}}}}return S.defaultOptions=o(U.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:v}=this.series.chart,{z:g}=this.point;return _(g)?v(g,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),w(S.prototype,{alignDataLabel:B.alignDataLabel,applyZones:H,bubblePadding:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:j,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),d(S,"updatedData",v=>{delete v.target.chart.bubbleZExtremes}),d(S,"remove",v=>{delete v.target.chart.bubbleZExtremes}),J.registerSeriesType("bubble",S),S}),y(m,"Series/MapBubble/MapBubblePoint.js",[m["Series/Bubble/BubblePoint.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j,et){let{seriesTypes:{map:{prototype:{pointClass:{prototype:K}}}}}=j,{extend:J}=et;class q extends R{isValid(){return typeof this.z=="number"}}return J(q.prototype,{applyOptions:K.applyOptions,getProjectedBounds:K.getProjectedBounds}),q}),y(m,"Series/MapBubble/MapBubbleSeries.js",[m["Series/Bubble/BubbleSeries.js"],m["Series/MapBubble/MapBubblePoint.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j,et,K){let{seriesTypes:{map:{prototype:J},mappoint:{prototype:q}}}=et,{extend:Z,merge:tt}=K;class H extends R{constructor(){super(...arguments),this.clearBounds=J.clearBounds}searchPoint(B,U){return this.searchKDTree({plotX:B.chartX-this.chart.plotLeft,plotY:B.chartY-this.chart.plotTop},U,B)}translate(){q.translate.call(this),this.getRadii(),this.translateBubble()}updateParallelArrays(B,U,d){super.updateParallelArrays.call(this,B,U,d);let L=this.processedXData,M=this.xData;L&&M&&(L.length=M.length)}}return H.defaultOptions=tt(R.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}}),Z(H.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:J.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:j,processData:J.processData,projectPoint:q.projectPoint,kdAxisArray:["plotX","plotY"],setData:J.setData,setOptions:J.setOptions,updateData:J.updateData,useMapGeometry:!0,xyFromShape:!0}),et.registerSeriesType("mapbubble",H),H}),y(m,"Series/Heatmap/HeatmapPoint.js",[m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,j){let{scatter:{prototype:{pointClass:et}}}=R.seriesTypes,{clamp:K,defined:J,extend:q,pick:Z}=j;class tt extends et{applyOptions(X,B){return(this.isNull||this.value===null)&&delete this.color,super.applyOptions(X,B),this.formatPrefix=this.isNull||this.value===null?"null":"point",this}getCellAttributes(){let X=this.series,B=X.options,U=(B.colsize||1)/2,d=(B.rowsize||1)/2,L=X.xAxis,M=X.yAxis,s=this.options.marker||X.options.marker,w=X.pointPlacementToXValue(),_=Z(this.pointPadding,B.pointPadding,0),o={x1:K(Math.round(L.len-L.translate(this.x-U,!1,!0,!1,!0,-w)),-L.len,2*L.len),x2:K(Math.round(L.len-L.translate(this.x+U,!1,!0,!1,!0,-w)),-L.len,2*L.len),y1:K(Math.round(M.translate(this.y-d,!1,!0,!1,!0)),-M.len,2*M.len),y2:K(Math.round(M.translate(this.y+d,!1,!0,!1,!0)),-M.len,2*M.len)};for(let u of[["width","x"],["height","y"]]){let C=u[0],E=u[1],S=E+"1",v=E+"2",g=Math.abs(o[S]-o[v]),x=s&&s.lineWidth||0,p=Math.abs(o[S]+o[v])/2,l=s&&s[C];if(J(l)&&l"},states:{hover:{halo:!1,brightness:.2}},legendSymbol:"rectangle"}}),y(m,"Series/InterpolationUtilities.js",[m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,j){let{doc:et}=R,{defined:K,pick:J}=j;return{colorFromPoint:function(q,Z){let tt=Z.series.colorAxis;if(tt){let H=tt.toColor(q||0,Z).split(")")[0].split("(")[1].split(",").map(X=>J(parseFloat(X),parseInt(X,10)));return H[3]=255*J(H[3],1),K(q)&&Z.visible||(H[3]=0),H}return[0,0,0,0]},getContext:function(q){let{canvas:Z,context:tt}=q;return Z&&tt?(tt.clearRect(0,0,Z.width,Z.height),tt):(q.canvas=et.createElement("canvas"),q.context=q.canvas.getContext("2d",{willReadFrequently:!0})||void 0,q.context)}}}),y(m,"Series/Heatmap/HeatmapSeries.js",[m["Core/Color/Color.js"],m["Series/ColorMapComposition.js"],m["Series/Heatmap/HeatmapPoint.js"],m["Series/Heatmap/HeatmapSeriesDefaults.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Renderer/SVG/SVGRenderer.js"],m["Core/Utilities.js"],m["Series/InterpolationUtilities.js"]],function(R,j,et,K,J,q,Z,tt){let{series:H,seriesTypes:{column:X,scatter:B}}=J,{prototype:{symbols:U}}=q,{addEvent:d,extend:L,fireEvent:M,isNumber:s,merge:w,pick:_}=Z,{colorFromPoint:o,getContext:u}=tt;class C extends B{constructor(){super(...arguments),this.valueMax=NaN,this.valueMin=NaN,this.isDirtyCanvas=!0}drawPoints(){let S=this,v=S.options,g=v.interpolation,x=v.marker||{};if(g){let{image:p,chart:l,xAxis:f,yAxis:b}=S,{reversed:F=!1,len:T}=f,{reversed:k=!1,len:Q}=b,st={width:T,height:Q};if(!p||S.isDirtyData||S.isDirtyCanvas){let nt=u(S),{canvas:dt,options:{colsize:mt=1,rowsize:Et=1},points:Mt,points:{length:I}}=S,Y=l.colorAxis&&l.colorAxis[0];if(dt&&nt&&Y){let{min:rt,max:ot}=f.getExtremes(),{min:D,max:P}=b.getExtremes(),W=ot-rt,lt=P-D,it=Math.round(W/mt/8*8),vt=Math.round(lt/Et/8*8),[pt,xt]=[[it,it/W,F,"ceil"],[vt,vt/lt,!k,"floor"]].map(([Rt,jt,Zt,ne])=>Zt?Wt=>Math[ne](Rt-jt*Wt):Wt=>Math[ne](jt*Wt)),Ct=dt.width=it+1,Tt=Ct*(dt.height=vt+1),Nt=(I-1)/Tt,gt=new Uint8ClampedArray(4*Tt),wt=(Rt,jt)=>4*Math.ceil(Ct*xt(jt-D)+pt(Rt-rt));S.buildKDTree();for(let Rt=0;Rt{p.graphic&&(p.graphic[S.chart.styledMode?"css":"animate"](S.colorAttribs(p)),p.value===null&&p.graphic.addClass("highcharts-null-point"))}))}getExtremes(){let{dataMin:S,dataMax:v}=H.prototype.getExtremes.call(this,this.valueData);return s(S)&&(this.valueMin=S),s(v)&&(this.valueMax=v),H.prototype.getExtremes.call(this)}getValidPoints(S,v){return H.prototype.getValidPoints.call(this,S,v,!0)}hasData(){return!!this.xData}init(){super.init.apply(this,arguments);let S=this.options;S.pointRange=_(S.pointRange,S.colsize||1),this.yAxis.axisPointRange=S.rowsize||1,U.ellipse=U.circle,S.marker&&s(S.borderRadius)&&(S.marker.r=S.borderRadius)}markerAttribs(S,v){let g=S.shapeArgs||{};if(S.hasImage)return{x:S.plotX,y:S.plotY};if(v&&v!=="normal"){let x=S.options.marker||{},p=this.options.marker||{},l=p.states&&p.states[v]||{},f=x.states&&x.states[v]||{},b=(f.width||l.width||g.width||0)+(f.widthPlus||l.widthPlus||0),F=(f.height||l.height||g.height||0)+(f.heightPlus||l.heightPlus||0);return{x:(g.x||0)+((g.width||0)-b)/2,y:(g.y||0)+((g.height||0)-F)/2,width:b,height:F}}return g}pointAttribs(S,v){let g=H.prototype.pointAttribs.call(this,S,v),x=this.options||{},p=this.chart.options.plotOptions||{},l=p.series||{},f=p.heatmap||{},b=S&&S.options.borderColor||x.borderColor||f.borderColor||l.borderColor,F=S&&S.options.borderWidth||x.borderWidth||f.borderWidth||l.borderWidth||g["stroke-width"];if(g.stroke=S&&S.marker&&S.marker.lineColor||x.marker&&x.marker.lineColor||b||this.color,g["stroke-width"]=F,v&&v!=="normal"){let T=w(x.states&&x.states[v],x.marker&&x.marker.states&&x.marker.states[v],S&&S.options.states&&S.options.states[v]||{});g.fill=T.color||R.parse(g.fill).brighten(T.brightness||0).get(),g.stroke=T.lineColor||g.stroke}return g}translate(){let{borderRadius:S,marker:v}=this.options,g=v&&v.symbol||"rect",x=U[g]?g:"rect",p=["circle","square"].indexOf(x)!==-1;if(!this.processedXData){let{xData:l,yData:f}=this.getProcessedData();this.processedXData=l,this.processedYData=f}for(let l of(this.generatePoints(),this.points)){let f=l.getCellAttributes(),b=Math.min(f.x1,f.x2),F=Math.min(f.y1,f.y2),T=Math.max(Math.abs(f.x2-f.x1),0),k=Math.max(Math.abs(f.y2-f.y1),0);if(l.hasImage=(l.marker&&l.marker.symbol||g||"").indexOf("url")===0,p){let Q=Math.abs(T-k);b=Math.min(f.x1,f.x2)+(T{var z,_t;(function(m){We.exports?(m.default=m,We.exports=m):(z=[ht(6193)],_t=function(y){return m(y),m.Highcharts=y,m}.apply(ue,z),_t!==void 0&&(We.exports=_t))})(function(m){"use strict";var y=m?m._modules:{};function R(j,et,K,J){j.hasOwnProperty(et)||(j[et]=J.apply(null,K),typeof CustomEvent=="function"&&m.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:et,module:j[et]}})))}R(y,"Accessibility/Utils/HTMLUtilities.js",[y["Core/Globals.js"],y["Core/Utilities.js"]],function(j,et){let{doc:K,win:J}=j,{css:q}=et,Z=J.EventTarget&&new J.EventTarget||"none";function tt(X){if(typeof J.MouseEvent=="function")return new J.MouseEvent(X.type,X);if(K.createEvent){let B=K.createEvent("MouseEvent");if(B.initMouseEvent)return B.initMouseEvent(X.type,X.bubbles,X.cancelable,X.view||J,X.detail,X.screenX,X.screenY,X.clientX,X.clientY,X.ctrlKey,X.altKey,X.shiftKey,X.metaKey,X.button,X.relatedTarget),B}return H(X.type)}function H(X,B,U){let d=B||{x:0,y:0};if(typeof J.MouseEvent=="function")return new J.MouseEvent(X,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:U||Z,view:J,detail:X==="click"?1:0,screenX:d.x,screenY:d.y,clientX:d.x,clientY:d.y});if(K.createEvent){let L=K.createEvent("MouseEvent");if(L.initMouseEvent)return L.initMouseEvent(X,!0,!0,J,X==="click"?1:0,d.x,d.y,d.x,d.y,!1,!1,!1,!1,0,null),L}return{type:X}}return{addClass:function(X,B){X.classList?X.classList.add(B):0>X.className.indexOf(B)&&(X.className+=" "+B)},cloneMouseEvent:tt,cloneTouchEvent:function(X){let B=d=>{let L=[];for(let M=0;M/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},getElement:function(X){return K.getElementById(X)},getFakeMouseEvent:H,getHeadingTagNameForElement:function(X){let B=M=>"h"+Math.min(6,parseInt(M.slice(1),10)+1),U=M=>/^H[1-6]$/i.test(M),d=M=>{let s=M;for(;s=s.previousSibling;){let w=s.tagName||"";if(U(w))return w}return""},L=M=>{let s=d(M);if(s)return B(s);let w=M.parentElement;if(!w)return"p";let _=w.tagName;return U(_)?B(_):L(w)};return L(X)},removeChildNodes:function(X){for(;X.lastChild;)X.removeChild(X.lastChild)},removeClass:function(X,B){X.classList?X.classList.remove(B):X.className=X.className.replace(RegExp(B,"g"),"")},removeElement:function(X){X&&X.parentNode&&X.parentNode.removeChild(X)},reverseChildNodes:function(X){let B=X.childNodes.length;for(;B--;)X.appendChild(X.childNodes[B])},simulatedEventTarget:Z,stripHTMLTagsFromString:function(X,B=!1){return typeof X=="string"?B?X.replace(/<\/?[^>]+(>|$)/g,""):X.replace(/<\/?(?!\s)[^>]+(>|$)/g,""):X},visuallyHideElement:function(X){q(X,{position:"absolute",width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(1px, 1px, 1px, 1px)",marginTop:"-3px","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",filter:"alpha(opacity=1)",opacity:.01})}}}),R(y,"Accessibility/A11yI18n.js",[y["Core/Templating.js"],y["Core/Utilities.js"]],function(j,et){var K;let{format:J}=j,{getNestedProperty:q,pick:Z}=et;return function(tt){function H(B,U,d){let L=(o,u)=>{let C=o.slice(u||0),E=C.indexOf("{"),S=C.indexOf("}");if(E>-1&&S>E)return{statement:C.substring(E+1,S),begin:u+E+1,end:u+S}},M=[],s,w,_=0;do s=L(B,_),(w=B.substring(_,s&&s.begin-1)).length&&M.push({value:w,type:"constant"}),s&&M.push({value:s.statement,type:"statement"}),_=s?s.end+1:_+1;while(s);return M.forEach(o=>{o.type==="statement"&&(o.value=function(u,C){let E,S,v=u.indexOf("#each("),g=u.indexOf("#plural("),x=u.indexOf("["),p=u.indexOf("]");if(v>-1){let f=u.slice(v).indexOf(")")+v,b=u.substring(0,v),F=u.substring(f+1),T=u.substring(v+6,f).split(","),k=Number(T[1]),Q;if(S="",E=q(T[0],C)){Q=(k=isNaN(k)?E.length:k)<0?E.length+k:Math.min(k,E.length);for(let st=0;st-1){var l;let f=u.slice(g).indexOf(")")+g,b=u.substring(g+8,f).split(",");switch(Number(q(b[0],C))){case 0:S=Z(b[4],b[1]);break;case 1:S=Z(b[2],b[1]);break;case 2:S=Z(b[3],b[1]);break;default:S=b[1]}return S?(l=S).trim&&l.trim()||l.replace(/^\s+|\s+$/g,""):""}if(x>-1){let f,b=u.substring(0,x),F=Number(u.substring(x+1,p));return E=q(b,C),!isNaN(F)&&E&&(F<0?(f=E[E.length+F])===void 0&&(f=E[0]):(f=E[F])===void 0&&(f=E[E.length-1])),f!==void 0?f:""}return"{"+u+"}"}(o.value,U))}),J(M.reduce((o,u)=>o+u.value,""),U,d)}function X(B,U){let d=B.split("."),L=this.options.lang,M=0;for(;M!!L.graphic);return d&&d.graphic&&d.graphic.element}}function B(U){let d=X(U);return d&&d.parentNode||U.graph&&U.graph.element||U.group&&U.group.element}return{fireEventOnWrappedOrUnwrappedElement:function U(d,L){let M=L.type,s=d.hcEvents;J.createEvent&&(d.dispatchEvent||d.fireEvent)?d.dispatchEvent?d.dispatchEvent(L):d.fireEvent(M,L):s&&s[M]?H(d,M,L):d.element&&U(d.element,L)},getChartTitle:function(U){return q(U.options.title.text||U.langFormat("accessibility.defaultChartTitle",{chart:U}),U.renderer.forExport)},getAxisDescription:function(U){var d,L;return U&&(((d=U.options.accessibility)==null?void 0:d.description)||((L=U.axisTitle)==null?void 0:L.textStr)||U.options.id||U.categories&&"categories"||U.dateTime&&"Time"||"values")},getAxisRangeDescription:function(U){let d=U.options||{};return d.accessibility&&d.accessibility.rangeDescription!==void 0?d.accessibility.rangeDescription:U.categories?function(L){let M=L.chart;return L.dataMax&&L.dataMin?M.langFormat("accessibility.axis.rangeCategories",{chart:M,axis:L,numCategories:L.dataMax-L.dataMin+1}):""}(U):U.dateTime&&(U.min===0||U.dataMin===0)?function(L){let M=L.chart,s={},w=L.dataMin||L.min||0,_=L.dataMax||L.max||0,o="Seconds";s.Seconds=(_-w)/1e3,s.Minutes=s.Seconds/60,s.Hours=s.Minutes/60,s.Days=s.Hours/24,["Minutes","Hours","Days"].forEach(function(C){s[C]>2&&(o=C)});let u=s[o].toFixed(o!=="Seconds"&&o!=="Minutes"?1:0);return M.langFormat("accessibility.axis.timeRange"+o,{chart:M,axis:L,range:u.replace(".0","")})}(U):function(L){let M=L.chart,s=M.options,w=s&&s.accessibility&&s.accessibility.screenReaderSection.axisRangeDateFormat||"",_={min:L.dataMin||L.min||0,max:L.dataMax||L.max||0},o=function(u){return L.dateTime?M.time.dateFormat(w,_[u]):_[u].toString()};return M.langFormat("accessibility.axis.rangeFromTo",{chart:M,axis:L,rangeFrom:o("min"),rangeTo:o("max")})}(U)},getPointFromXY:function(U,d,L){let M=U.length,s;for(;M--;)if(s=tt(U[M].points||[],function(w){return w.x===d&&w.y===L}))return s},getSeriesFirstPointElement:X,getSeriesFromName:function(U,d){return d?(U.series||[]).filter(function(L){return L.name===d}):U.series},getSeriesA11yElement:B,unhideChartElementFromAT:function U(d,L){L.setAttribute("aria-hidden",!1),L!==d.renderTo&&L.parentNode&&L.parentNode!==J.body&&(Array.prototype.forEach.call(L.parentNode.childNodes,function(M){M.hasAttribute("aria-hidden")||M.setAttribute("aria-hidden",!0)}),U(d,L.parentNode))},hideSeriesFromAT:function(U){let d=B(U);d&&d.setAttribute("aria-hidden",!0)},scrollAxisToPoint:function(U){let d=U.series.xAxis,L=U.series.yAxis,M=d&&d.scrollbar?d:L,s=M&&M.scrollbar;if(s&&Z(s.to)&&Z(s.from)){let w=s.to-s.from,_=function(o,u){if(!Z(o.dataMin)||!Z(o.dataMax))return 0;let C=o.toPixels(o.dataMin),E=o.toPixels(o.dataMax),S=o.coll==="xAxis"?"x":"y";return(o.toPixels(u[S]||0)-C)/(E-C)}(M,U);s.updatePosition(_-w/2,_+w/2),H(s,"changed",{from:s.from,to:s.to,trigger:"scrollbar",DOMEvent:null})}}}}),R(y,"Accessibility/Utils/DOMElementProvider.js",[y["Core/Globals.js"],y["Accessibility/Utils/HTMLUtilities.js"]],function(j,et){let{doc:K}=j,{removeElement:J}=et;return class{constructor(){this.elements=[]}createElement(){let q=K.createElement.apply(K,arguments);return this.elements.push(q),q}removeElement(q){J(q),this.elements.splice(this.elements.indexOf(q),1)}destroyCreatedElements(){this.elements.forEach(function(q){J(q)}),this.elements=[]}}}),R(y,"Accessibility/Utils/EventProvider.js",[y["Core/Globals.js"],y["Core/Utilities.js"]],function(j,et){let{addEvent:K}=et;return class{constructor(){this.eventRemovers=[]}addEvent(){let J=K.apply(j,arguments);return this.eventRemovers.push({element:arguments[0],remover:J}),J}removeEvent(J){let q=this.eventRemovers.map(Z=>Z.remover).indexOf(J);this.eventRemovers[q].remover(),this.eventRemovers.splice(q,1)}removeAddedEvents(){this.eventRemovers.map(J=>J.remover).forEach(J=>J()),this.eventRemovers=[]}}}),R(y,"Accessibility/AccessibilityComponent.js",[y["Accessibility/Utils/ChartUtilities.js"],y["Accessibility/Utils/DOMElementProvider.js"],y["Accessibility/Utils/EventProvider.js"],y["Accessibility/Utils/HTMLUtilities.js"]],function(j,et,K,J){let{fireEventOnWrappedOrUnwrappedElement:q}=j,{getFakeMouseEvent:Z}=J;return class{destroy(){}getKeyboardNavigation(){return[]}init(){}onChartRender(){}onChartUpdate(){}initBase(tt,H){this.chart=tt,this.eventProvider=new K,this.domElementProvider=new et,this.proxyProvider=H,this.keyCodes={left:37,right:39,up:38,down:40,enter:13,space:32,esc:27,tab:9,pageUp:33,pageDown:34,end:35,home:36}}addEvent(tt,H,X,B){return this.eventProvider.addEvent(tt,H,X,B)}createElement(tt,H){return this.domElementProvider.createElement(tt,H)}fakeClickEvent(tt){q(tt,Z("click"))}destroyBase(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()}}}),R(y,"Accessibility/KeyboardNavigationHandler.js",[y["Core/Utilities.js"]],function(j){let{find:et}=j;return class{constructor(K,J){this.chart=K,this.keyCodeMap=J.keyCodeMap||[],this.validate=J.validate,this.init=J.init,this.terminate=J.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}run(K){let J=K.which||K.keyCode,q=this.response.noHandler,Z=et(this.keyCodeMap,function(tt){return tt[0].indexOf(J)>-1});return Z?q=Z[1].call(this,J,K):J===9&&(q=this.response[K.shiftKey?"prev":"next"]),q}}}),R(y,"Accessibility/Components/ContainerComponent.js",[y["Accessibility/AccessibilityComponent.js"],y["Accessibility/KeyboardNavigationHandler.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Core/Globals.js"],y["Accessibility/Utils/HTMLUtilities.js"]],function(j,et,K,J,q){let{unhideChartElementFromAT:Z,getChartTitle:tt}=K,{doc:H}=J,{stripHTMLTagsFromString:X}=q;return class extends j{onChartUpdate(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()}handleSVGTitleElement(){let B=this.chart,U="highcharts-title-"+B.index,d=X(B.langFormat("accessibility.svgContainerTitle",{chartTitle:tt(B)}));if(d.length){let L=this.svgTitleElement=this.svgTitleElement||H.createElementNS("http://www.w3.org/2000/svg","title");L.textContent=d,L.id=U,B.renderTo.insertBefore(L,B.renderTo.firstChild)}}setSVGContainerLabel(){let B=this.chart,U=B.langFormat("accessibility.svgContainerLabel",{chartTitle:tt(B)});B.renderer.box&&U.length&&B.renderer.box.setAttribute("aria-label",U)}setGraphicContainerAttrs(){let B=this.chart,U=B.langFormat("accessibility.graphicContainerLabel",{chartTitle:tt(B)});U.length&&B.container.setAttribute("aria-label",U)}setRenderToAttrs(){let B=this.chart,U=B.options.accessibility.landmarkVerbosity!=="disabled",d=B.langFormat("accessibility.chartContainerLabel",{title:tt(B),chart:B});d&&(B.renderTo.setAttribute("role",U?"region":"group"),B.renderTo.setAttribute("aria-label",d))}makeCreditsAccessible(){let B=this.chart,U=B.credits;U&&(U.textStr&&U.element.setAttribute("aria-label",B.langFormat("accessibility.credits",{creditsStr:X(U.textStr,B.renderer.forExport)})),Z(B,U.element))}getKeyboardNavigation(){let B=this.chart;return new et(B,{keyCodeMap:[],validate:function(){return!0},init:function(){let U=B.accessibility;U&&U.keyboardNavigation.tabindexContainer.focus()}})}destroy(){this.chart.renderTo.setAttribute("aria-hidden",!0)}}}),R(y,"Accessibility/FocusBorder.js",[y["Core/Utilities.js"]],function(j){var et;let{addEvent:K,pick:J}=j;return function(q){let Z=["x","y","transform","width","height","r","d","stroke-width"];function tt(){let U=this.focusElement,d=this.options.accessibility.keyboardNavigation.focusBorder;U&&(U.removeFocusBorder(),d.enabled&&U.addFocusBorder(d.margin,{stroke:d.style.color,strokeWidth:d.style.lineWidth,r:d.style.borderRadius}))}function H(U,d){let L=this.options.accessibility.keyboardNavigation.focusBorder,M=d||U.element;M&&M.focus&&(M.hcEvents&&M.hcEvents.focusin||K(M,"focusin",function(){}),M.focus(),L.hideBrowserFocusOutline&&(M.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=U,this.renderFocusBorder()}function X(U,d){this.focusBorder&&this.removeFocusBorder();let L=this.getBBox(),M=J(U,3),s=this.parentGroup,w=this.scaleX||s&&s.scaleX,_=this.scaleY||s&&s.scaleY,o=(w?!_:_)?Math.abs(w||_||1):(Math.abs(w||1)+Math.abs(_||1))/2;L.x+=this.translateX?this.translateX:0,L.y+=this.translateY?this.translateY:0;let u=L.x-M,C=L.y-M,E=L.width+2*M,S=L.height+2*M,v=!!this.text;if(this.element.nodeName==="text"||v){let g,x,p=!!this.rotation,l=v?{x:p?1:0,y:0}:(g=0,x=0,this.attr("text-anchor")==="middle"?g=x=.5:this.rotation?g=.25:x=.75,{x:g,y:x}),f=+this.attr("x"),b=+this.attr("y");if(isNaN(f)||(u=f-L.width*l.x-M),isNaN(b)||(C=b-L.height*l.y-M),v&&p){let F=E;E=S,S=F,isNaN(f)||(u=f-L.height*l.x-M),isNaN(b)||(C=b-L.width*l.y-M)}}this.focusBorder=this.renderer.rect(u,C,E,S,parseInt((d&&d.r||0).toString(),10)/o).addClass("highcharts-focus-border").attr({zIndex:99}).add(s),this.renderer.styledMode||this.focusBorder.attr({stroke:d&&d.stroke,"stroke-width":(d&&d.strokeWidth||0)/o}),function(g,...x){g.focusBorderUpdateHooks||(g.focusBorderUpdateHooks={},Z.forEach(p=>{let l=p+"Setter",f=g[l]||g._defaultSetter;g.focusBorderUpdateHooks[l]=f,g[l]=function(){let b=f.apply(g,arguments);return g.addFocusBorder.apply(g,x),b}}))}(this,U,d),function(g){if(g.focusBorderDestroyHook)return;let x=g.destroy;g.destroy=function(){return g.focusBorder&&g.focusBorder.destroy&&g.focusBorder.destroy(),x.apply(g,arguments)},g.focusBorderDestroyHook=x}(this)}function B(){var U;U=this,U.focusBorderUpdateHooks&&(Object.keys(U.focusBorderUpdateHooks).forEach(d=>{let L=U.focusBorderUpdateHooks[d];L===U._defaultSetter?delete U[d]:U[d]=L}),delete U.focusBorderUpdateHooks),this.focusBorderDestroyHook&&(this.destroy=this.focusBorderDestroyHook,delete this.focusBorderDestroyHook),this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}q.compose=function(U,d){let L=U.prototype,M=d.prototype;L.renderFocusBorder||(L.renderFocusBorder=tt,L.setFocusToElement=H),M.addFocusBorder||(M.addFocusBorder=X,M.removeFocusBorder=B)}}(et||(et={})),et}),R(y,"Accessibility/Utils/Announcer.js",[y["Core/Renderer/HTML/AST.js"],y["Accessibility/Utils/DOMElementProvider.js"],y["Core/Globals.js"],y["Accessibility/Utils/HTMLUtilities.js"],y["Core/Utilities.js"]],function(j,et,K,J,q){let{doc:Z}=K,{addClass:tt,visuallyHideElement:H}=J,{attr:X}=q;return class{constructor(B,U){this.chart=B,this.domElementProvider=new et,this.announceRegion=this.addAnnounceRegion(U)}destroy(){this.domElementProvider.destroyCreatedElements()}announce(B){j.setElementHTML(this.announceRegion,B),this.clearAnnouncementRegionTimer&&clearTimeout(this.clearAnnouncementRegionTimer),this.clearAnnouncementRegionTimer=setTimeout(()=>{this.announceRegion.innerHTML=j.emptyHTML,delete this.clearAnnouncementRegionTimer},3e3)}addAnnounceRegion(B){let U=this.chart.announcerContainer||this.createAnnouncerContainer(),d=this.domElementProvider.createElement("div");return X(d,{"aria-hidden":!1,"aria-live":B,"aria-atomic":!0}),this.chart.styledMode?tt(d,"highcharts-visually-hidden"):H(d),U.appendChild(d),d}createAnnouncerContainer(){let B=this.chart,U=Z.createElement("div");return X(U,{"aria-hidden":!1,class:"highcharts-announcer-container"}),U.style.position="relative",B.renderTo.insertBefore(U,B.renderTo.firstChild),B.announcerContainer=U,U}}}),R(y,"Accessibility/Components/AnnotationsA11y.js",[y["Accessibility/Utils/HTMLUtilities.js"]],function(j){let{escapeStringForHTML:et,stripHTMLTagsFromString:K}=j;function J(H){return(H.annotations||[]).reduce((X,B)=>(B.options&&B.options.visible!==!1&&(X=X.concat(B.labels)),X),[])}function q(H){return H.options&&H.options.accessibility&&H.options.accessibility.description||H.graphic&&H.graphic.text&&H.graphic.text.textStr||""}function Z(H){let X=H.options&&H.options.accessibility&&H.options.accessibility.description;if(X)return X;let B=H.chart,U=q(H),d=H.points,L=o=>o.graphic&&o.graphic.element&&o.graphic.element.getAttribute("aria-label")||"",M=d.filter(o=>!!o.graphic).map(o=>{let u=o.accessibility&&o.accessibility.valueDescription||L(o),C=o&&o.series.name||"";return(C?C+", ":"")+"data point "+u}).filter(o=>!!o),s=M.length,w=s>1?"MultiplePoints":s?"SinglePoint":"NoPoints",_={annotationText:U,annotation:H,numPoints:s,annotationPoint:M[0],additionalAnnotationPoints:M.slice(1)};return B.langFormat("accessibility.screenReaderSection.annotations.description"+w,_)}function tt(H){return J(H).map(X=>{let B=et(K(Z(X),H.renderer.forExport));return B?`
  • ${B}
  • `:""})}return{getAnnotationsInfoHTML:function(H){let X=H.annotations;return X&&X.length?`
      ${tt(H).join(" ")}
    `:""},getAnnotationLabelDescription:Z,getAnnotationListItems:tt,getPointAnnotationTexts:function(H){let X=J(H.series.chart).filter(B=>B.points.indexOf(H)>-1);return X.length?X.map(B=>`${q(B)}`):[]}}}),R(y,"Accessibility/Components/InfoRegionsComponent.js",[y["Accessibility/A11yI18n.js"],y["Accessibility/AccessibilityComponent.js"],y["Accessibility/Utils/Announcer.js"],y["Accessibility/Components/AnnotationsA11y.js"],y["Core/Renderer/HTML/AST.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Core/Templating.js"],y["Core/Globals.js"],y["Accessibility/Utils/HTMLUtilities.js"],y["Core/Utilities.js"]],function(j,et,K,J,q,Z,tt,H,X,B){let{getAnnotationsInfoHTML:U}=J,{getAxisDescription:d,getAxisRangeDescription:L,getChartTitle:M,unhideChartElementFromAT:s}=Z,{format:w}=tt,{doc:_}=H,{addClass:o,getElement:u,getHeadingTagNameForElement:C,stripHTMLTagsFromString:E,visuallyHideElement:S}=X,{attr:v,pick:g,replaceNested:x}=B;function p(l){return x(l,[/<([\w\-.:!]+)\b[^<>]*>\s*<\/\1>/g,""])}return class extends et{constructor(){super(...arguments),this.screenReaderSections={}}init(){let l=this.chart,f=this;this.initRegionsDefinitions(),this.addEvent(l,"aftergetTableAST",function(b){f.onDataTableCreated(b)}),this.addEvent(l,"afterViewData",function(b){b.wasHidden&&(f.dataTableDiv=b.element,setTimeout(function(){f.focusDataTable()},300))}),this.addEvent(l,"afterHideData",function(){f.viewDataTableButton&&f.viewDataTableButton.setAttribute("aria-expanded","false")}),l.exporting&&this.addEvent(l,"afterPrint",function(){f.updateAllScreenReaderSections()}),this.announcer=new K(l,"assertive")}initRegionsDefinitions(){let l=this,f=this.chart.options.accessibility;this.screenReaderSections={before:{element:null,buildContent:function(b){let F=f.screenReaderSection.beforeChartFormatter;return F?F(b):l.defaultBeforeChartFormatter(b)},insertIntoDOM:function(b,F){F.renderTo.insertBefore(b,F.renderTo.firstChild)},afterInserted:function(){l.sonifyButtonId!==void 0&&l.initSonifyButton(l.sonifyButtonId),l.dataTableButtonId!==void 0&&l.initDataTableButton(l.dataTableButtonId)}},after:{element:null,buildContent:function(b){let F=f.screenReaderSection.afterChartFormatter;return F?F(b):l.defaultAfterChartFormatter()},insertIntoDOM:function(b,F){F.renderTo.insertBefore(b,F.container.nextSibling)},afterInserted:function(){l.chart.accessibility&&f.keyboardNavigation.enabled&&l.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}}onChartRender(){this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),this.updateAllScreenReaderSections()}updateAllScreenReaderSections(){let l=this;Object.keys(this.screenReaderSections).forEach(function(f){l.updateScreenReaderSection(f)})}getLinkedDescriptionElement(){let l=this.chart.options.accessibility.linkedDescription;if(!l)return;if(typeof l!="string")return l;let f=w(l,this.chart),b=_.querySelectorAll(f);if(b.length===1)return b[0]}setLinkedDescriptionAttrs(){let l=this.linkedDescriptionElement;l&&(l.setAttribute("aria-hidden","true"),o(l,"highcharts-linked-description"))}updateScreenReaderSection(l){let f=this.chart,b=this.screenReaderSections[l],F=b.buildContent(f),T=b.element=b.element||this.createElement("div"),k=T.firstChild||this.createElement("div");F?(this.setScreenReaderSectionAttribs(T,l),q.setElementHTML(k,F),T.appendChild(k),b.insertIntoDOM(T,f),f.styledMode?o(k,"highcharts-visually-hidden"):S(k),s(f,k),b.afterInserted&&b.afterInserted()):(T.parentNode&&T.parentNode.removeChild(T),b.element=null)}setScreenReaderSectionAttribs(l,f){let b=this.chart,F=b.langFormat("accessibility.screenReaderSection."+f+"RegionLabel",{chart:b,chartTitle:M(b)});v(l,{id:`highcharts-screen-reader-region-${f}-${b.index}`,"aria-label":F||void 0}),l.style.position="relative",F&&l.setAttribute("role",b.options.accessibility.landmarkVerbosity==="all"?"region":"group")}defaultBeforeChartFormatter(){let l=this.chart,f=l.options.accessibility.screenReaderSection.beforeChartFormat;if(!f)return"";let b=this.getAxesDescription(),F=l.sonify&&l.options.sonification&&l.options.sonification.enabled,T="highcharts-a11y-sonify-data-btn-"+l.index,k="hc-linkto-highcharts-data-table-"+l.index,Q=U(l),st=l.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:l}),nt={headingTagName:C(l.renderTo),chartTitle:M(l),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:b.xAxis,yAxisDescription:b.yAxis,playAsSoundButton:F?this.getSonifyButtonText(T):"",viewTableButton:l.getCSV?this.getDataTableButtonText(k):"",annotationsTitle:Q?st:"",annotationsList:Q},dt=j.i18nFormat(f,nt,l);return this.dataTableButtonId=k,this.sonifyButtonId=T,p(dt)}defaultAfterChartFormatter(){let l=this.chart,f=l.options.accessibility.screenReaderSection.afterChartFormat;if(!f)return"";let b={endOfChartMarker:this.getEndOfChartMarkerText()};return p(j.i18nFormat(f,b,l))}getLinkedDescription(){let l=this.linkedDescriptionElement;return E(l&&l.innerHTML||"",this.chart.renderer.forExport)}getLongdescText(){let l=this.chart.options,f=l.caption,b=f&&f.text,F=this.getLinkedDescription();return l.accessibility.description||F||b||""}getTypeDescriptionText(){let l=this.chart;return l.types?l.options.accessibility.typeDescription||function(f,b){let F=b[0],T=f.series&&f.series[0]||{},k=f.mapView&&f.mapView.geoMap&&f.mapView.geoMap.title,Q={numSeries:f.series.length,numPoints:T.points&&T.points.length,chart:f,mapTitle:k};return F?F==="map"||F==="tiledwebmap"?Q.mapTitle?f.langFormat("accessibility.chartTypes.mapTypeDescription",Q):f.langFormat("accessibility.chartTypes.unknownMap",Q):f.types.length>1?f.langFormat("accessibility.chartTypes.combinationChart",Q):function(st,nt,dt){let mt=nt[0],Et=st.langFormat("accessibility.seriesTypeDescriptions."+mt,dt),Mt=st.series&&st.series.length<2?"Single":"Multiple";return(st.langFormat("accessibility.chartTypes."+mt+Mt,dt)||st.langFormat("accessibility.chartTypes.default"+Mt,dt))+(Et?" "+Et:"")}(f,b,Q):f.langFormat("accessibility.chartTypes.emptyChart",Q)}(l,l.types):""}getDataTableButtonText(l){let f=this.chart;return'"}getSonifyButtonText(l){let f=this.chart;return f.options.sonification&&f.options.sonification.enabled===!1?"":'"}getSubtitleText(){let l=this.chart.options.subtitle;return E(l&&l.text||"",this.chart.renderer.forExport)}getEndOfChartMarkerText(){let l=u(`highcharts-end-of-chart-marker-${this.chart.index}`);if(l)return l.outerHTML;let f=this.chart,b=f.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:f});return'
    '+b+"
    "}onDataTableCreated(l){let f=this.chart;if(f.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");let b=l.tree.attributes||{};b.tabindex=-1,b.summary=f.langFormat("accessibility.table.tableSummary",{chart:f}),l.tree.attributes=b}}focusDataTable(){let l=this.dataTableDiv,f=l&&l.getElementsByTagName("table")[0];f&&f.focus&&f.focus()}initSonifyButton(l){let f=this.sonifyButton=u(l),b=this.chart,F=T=>{f&&(f.setAttribute("aria-hidden","true"),f.setAttribute("aria-label","")),T.preventDefault(),T.stopPropagation();let k=b.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:b});this.announcer.announce(k),setTimeout(()=>{f&&(f.removeAttribute("aria-hidden"),f.removeAttribute("aria-label")),b.sonify&&b.sonify()},1e3)};f&&b&&(f.setAttribute("tabindex",-1),f.onclick=function(T){(b.options.accessibility&&b.options.accessibility.screenReaderSection.onPlayAsSoundClick||F).call(this,T,b)})}initDataTableButton(l){let f=this.viewDataTableButton=u(l),b=this.chart,F=l.replace("hc-linkto-","");f&&(v(f,{tabindex:-1,"aria-expanded":!!u(F)}),f.onclick=b.options.accessibility.screenReaderSection.onViewDataTableClick||function(){b.viewData()})}getAxesDescription(){let l=this.chart,f=function(st,nt){let dt=l[st];return dt.length>1||dt[0]&&g(dt[0].options.accessibility&&dt[0].options.accessibility.enabled,nt)},b=!!l.types&&0>l.types.indexOf("map")&&0>l.types.indexOf("treemap")&&0>l.types.indexOf("tilemap"),F=!!l.hasCartesianSeries,T=f("xAxis",!l.angular&&F&&b),k=f("yAxis",F&&b),Q={};return T&&(Q.xAxis=this.getAxisDescriptionText("xAxis")),k&&(Q.yAxis=this.getAxisDescriptionText("yAxis")),Q}getAxisDescriptionText(l){let f=this.chart,b=f[l];return f.langFormat("accessibility.axis."+l+"Description"+(b.length>1?"Plural":"Singular"),{chart:f,names:b.map(function(F){return d(F)}),ranges:b.map(function(F){return L(F)}),numAxes:b.length})}destroy(){this.announcer&&this.announcer.destroy()}}}),R(y,"Accessibility/Components/MenuComponent.js",[y["Core/Utilities.js"],y["Accessibility/AccessibilityComponent.js"],y["Accessibility/KeyboardNavigationHandler.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Accessibility/Utils/HTMLUtilities.js"]],function(j,et,K,J,q){let{attr:Z}=j,{getChartTitle:tt,unhideChartElementFromAT:H}=J,{getFakeMouseEvent:X}=q;function B(d){return d.exportSVGElements&&d.exportSVGElements[0]}class U extends et{init(){let L=this.chart,M=this;this.addEvent(L,"exportMenuShown",function(){M.onMenuShown()}),this.addEvent(L,"exportMenuHidden",function(){M.onMenuHidden()}),this.createProxyGroup()}onMenuHidden(){let L=this.chart.exportContextMenu;L&&L.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")}onMenuShown(){let L=this.chart,M=L.exportContextMenu;M&&(this.addAccessibleContextMenuAttribs(),H(L,M)),this.setExportButtonExpandedState("true")}setExportButtonExpandedState(L){this.exportButtonProxy&&this.exportButtonProxy.innerElement.setAttribute("aria-expanded",L)}onChartRender(){let L=this.chart,M=L.focusElement,s=L.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&M&&M===L.exportingGroup&&(M.focusBorder?L.setFocusToElement(M,this.exportButtonProxy.innerElement):s&&s.keyboardNavigation.tabindexContainer.focus())}proxyMenuButton(){let L=this.chart,M=this.proxyProvider,s=B(L);(function(w){let _=w.options.exporting,o=B(w);return!!(_&&_.enabled!==!1&&_.accessibility&&_.accessibility.enabled&&o&&o.element)})(L)&&s&&(this.exportButtonProxy=M.addProxyElement("chartMenu",{click:s},"button",{"aria-label":L.langFormat("accessibility.exporting.menuButtonLabel",{chart:L,chartTitle:tt(L)}),"aria-expanded":!1,title:L.options.lang.contextButtonTitle||null}))}createProxyGroup(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu")}addAccessibleContextMenuAttribs(){let L=this.chart,M=L.exportDivElements;if(M&&M.length){M.forEach(w=>{w&&(w.tagName!=="LI"||w.children&&w.children.length?w.setAttribute("aria-hidden","true"):w.setAttribute("tabindex",-1))});let s=M[0]&&M[0].parentNode;s&&Z(s,{"aria-hidden":void 0,"aria-label":L.langFormat("accessibility.exporting.chartMenuLabel",{chart:L}),role:"list"})}}getKeyboardNavigation(){let L=this.keyCodes,M=this.chart,s=this;return new K(M,{keyCodeMap:[[[L.left,L.up],function(){return s.onKbdPrevious(this)}],[[L.right,L.down],function(){return s.onKbdNext(this)}],[[L.enter,L.space],function(){return s.onKbdClick(this)}]],validate:function(){return!!M.exporting&&M.options.exporting.enabled!==!1&&M.options.exporting.accessibility.enabled!==!1},init:function(){let w=s.exportButtonProxy,_=s.chart.exportingGroup;w&&_&&M.setFocusToElement(_,w.innerElement)},terminate:function(){M.hideExportMenu()}})}onKbdPrevious(L){let M=this.chart,s=M.options.accessibility,w=L.response,_=M.highlightedExportItemIx||0;for(;_--;)if(M.highlightExportItem(_))return w.success;return s.keyboardNavigation.wrapAround?(M.highlightLastExportItem(),w.success):w.prev}onKbdNext(L){let M=this.chart,s=M.options.accessibility,w=L.response;for(let _=(M.highlightedExportItemIx||0)+1;_{o&&o.className==="highcharts-menu-item"&&o.onmouseout&&o.onmouseout(X("mouseout"))}),this.highlightedExportItemIx=0,this.exportContextMenu.hideMenu(),this.container.focus())}function s(_){let o=this.exportDivElements&&this.exportDivElements[_],u=this.exportDivElements&&this.exportDivElements[this.highlightedExportItemIx];if(o&&o.tagName==="LI"&&!(o.children&&o.children.length)){let C=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;return o.focus&&C&&o.focus(),u&&u.onmouseout&&u.onmouseout(X("mouseout")),o.onmouseover&&o.onmouseover(X("mouseover")),this.highlightedExportItemIx=_,!0}return!1}function w(){if(this.exportDivElements){let _=this.exportDivElements.length;for(;_--;)if(this.highlightExportItem(_))return!0}return!1}d.compose=function(_){let o=_.prototype;o.hideExportMenu||(o.hideExportMenu=M,o.highlightExportItem=s,o.highlightLastExportItem=w,o.showExportMenu=L)}}(U||(U={})),U}),R(y,"Accessibility/KeyboardNavigation.js",[y["Core/Globals.js"],y["Accessibility/Components/MenuComponent.js"],y["Core/Utilities.js"],y["Accessibility/Utils/EventProvider.js"],y["Accessibility/Utils/HTMLUtilities.js"]],function(j,et,K,J,q){let{doc:Z,win:tt}=j,{addEvent:H,defined:X,fireEvent:B}=K,{getElement:U,simulatedEventTarget:d}=q;class L{constructor(s,w){this.currentModuleIx=NaN,this.modules=[],this.init(s,w)}init(s,w){let _=this.eventProvider=new J;this.chart=s,this.components=w,this.modules=[],this.currentModuleIx=0,this.update(),_.addEvent(this.tabindexContainer,"keydown",o=>this.onKeydown(o)),_.addEvent(this.tabindexContainer,"focus",o=>this.onFocus(o)),["mouseup","touchend"].forEach(o=>_.addEvent(Z,o,u=>this.onMouseUp(u))),["mousedown","touchstart"].forEach(o=>_.addEvent(s.renderTo,o,()=>{this.isClickingChart=!0}))}update(s){let w=this.chart.options.accessibility,_=w&&w.keyboardNavigation,o=this.components;this.updateContainerTabindex(),_&&_.enabled&&s&&s.length?(this.modules=s.reduce(function(u,C){let E=o[C].getKeyboardNavigation();return u.concat(E)},[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())}updateExitAnchor(){let s=U(`highcharts-end-of-chart-marker-${this.chart.index}`);this.removeExitAnchor(),s?(this.makeElementAnExitAnchor(s),this.exitAnchor=s):this.createExitAnchor()}move(s){let w=this.modules&&this.modules[this.currentModuleIx];w&&w.terminate&&w.terminate(s),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=s;let _=this.modules&&this.modules[this.currentModuleIx];if(_){if(_.validate&&!_.validate())return this.move(s);if(_.init)return _.init(s),!0}return this.currentModuleIx=0,this.exiting=!0,s>0?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus(),!1}onFocus(s){let w=this.chart,_=s.relatedTarget&&w.container.contains(s.relatedTarget),o=w.options.accessibility,u=o&&o.keyboardNavigation;if(u&&u.enabled&&!this.exiting&&!this.tabbingInBackwards&&!this.isClickingChart&&!_){let C=this.getFirstValidModuleIx();C!==null&&(this.currentModuleIx=C,this.modules[C].init(1))}this.keyboardReset=!1,this.exiting=!1}onMouseUp(s){if(delete this.isClickingChart,!this.keyboardReset&&s.relatedTarget!==d){let w=this.chart;if(!s.target||!w.container.contains(s.target)){let _=this.modules&&this.modules[this.currentModuleIx||0];_&&_.terminate&&_.terminate(),this.currentModuleIx=0}w.focusElement&&(w.focusElement.removeFocusBorder(),delete w.focusElement),this.keyboardReset=!0}}onKeydown(s){let w,_=s||tt.event,o=this.modules&&this.modules.length&&this.modules[this.currentModuleIx],u=_.target;if((!u||u.nodeName!=="INPUT"||u.classList.contains("highcharts-a11y-proxy-element"))&&(this.keyboardReset=!1,this.exiting=!1,o)){let C=o.run(_);C===o.response.success?w=!0:C===o.response.prev?w=this.move(-1):C===o.response.next&&(w=this.move(1)),w&&(_.preventDefault(),_.stopPropagation())}}updateContainerTabindex(){let s,w=this.chart.options.accessibility,_=w&&w.keyboardNavigation,o=!(_&&_.enabled===!1),u=this.chart,C=u.container;u.renderTo.hasAttribute("tabindex")?(C.removeAttribute("tabindex"),s=u.renderTo):s=C,this.tabindexContainer=s;let E=s.getAttribute("tabindex");o&&!E?s.setAttribute("tabindex","0"):o||u.container.removeAttribute("tabindex")}createExitAnchor(){let s=this.chart,w=this.exitAnchor=Z.createElement("div");s.renderTo.appendChild(w),this.makeElementAnExitAnchor(w)}makeElementAnExitAnchor(s){let w=this.tabindexContainer.getAttribute("tabindex")||0;s.setAttribute("class","highcharts-exit-anchor"),s.setAttribute("tabindex",w),s.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(s)}removeExitAnchor(){if(this.exitAnchor){let s=this.eventProvider.eventRemovers.find(w=>w.element===this.exitAnchor);s&&X(s.remover)&&this.eventProvider.removeEvent(s.remover),this.exitAnchor.parentNode&&this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor}}addExitAnchorEventsToEl(s){let w=this.chart,_=this;this.eventProvider.addEvent(s,"focus",function(o){let u=o||tt.event,C=!(u.relatedTarget&&w.container.contains(u.relatedTarget)||_.exiting);if(w.focusElement&&delete w.focusElement,C){if(_.tabbingInBackwards=!0,_.tabindexContainer.focus(),delete _.tabbingInBackwards,u.preventDefault(),_.modules&&_.modules.length){_.currentModuleIx=_.modules.length-1;let E=_.modules[_.currentModuleIx];E&&E.validate&&!E.validate()?_.move(-1):E&&E.init(-1)}}else _.exiting=!1})}getFirstValidModuleIx(){let s=this.modules.length;for(let w=0;w{o&&o.dismissPopupContent&&o.dismissPopupContent()})}M.compose=function(_){et.compose(_);let o=_.prototype;return o.dismissPopupContent||(o.dismissPopupContent=s,H(Z,"keydown",w)),_}}(L||(L={})),L}),R(y,"Accessibility/Components/LegendComponent.js",[y["Core/Animation/AnimationUtilities.js"],y["Core/Globals.js"],y["Core/Legend/Legend.js"],y["Core/Utilities.js"],y["Accessibility/AccessibilityComponent.js"],y["Accessibility/KeyboardNavigationHandler.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Accessibility/Utils/HTMLUtilities.js"]],function(j,et,K,J,q,Z,tt,H){let{animObject:X}=j,{doc:B}=et,{addEvent:U,fireEvent:d,isNumber:L,pick:M,syncTimeout:s}=J,{getChartTitle:w}=tt,{stripHTMLTagsFromString:_,addClass:o,removeClass:u}=H;function C(v){let g=v.legend&&v.legend.allItems,x=v.options.legend.accessibility||{},p=v.colorAxis&&v.colorAxis.some(l=>!l.dataClasses||!l.dataClasses.length);return!!(g&&g.length&&!p&&x.enabled!==!1)}function E(v,g){let x=g.legendItem||{};for(let p of(g.setState(v?"hover":"",!0),["group","label","symbol"])){let l=x[p],f=l&&l.element||l;f&&d(f,v?"mouseover":"mouseout")}}class S extends q{constructor(){super(...arguments),this.highlightedLegendItemIx=NaN,this.proxyGroup=null}init(){let g=this;this.recreateProxies(),this.addEvent(K,"afterScroll",function(){this.chart===g.chart&&(g.proxyProvider.updateGroupProxyElementPositions("legend"),g.updateLegendItemProxyVisibility(),g.highlightedLegendItemIx>-1&&this.chart.highlightLegendItem(g.highlightedLegendItemIx))}),this.addEvent(K,"afterPositionItem",function(x){this.chart===g.chart&&this.chart.renderer&&g.updateProxyPositionForItem(x.item)}),this.addEvent(K,"afterRender",function(){this.chart===g.chart&&this.chart.renderer&&g.recreateProxies()&&s(()=>g.proxyProvider.updateGroupProxyElementPositions("legend"),X(M(this.chart.renderer.globalAnimation,!0)).duration)})}updateLegendItemProxyVisibility(){let g,x=this.chart,p=x.legend,l=p.allItems||[],f=p.currentPage||1,b=p.clipHeight||0;l.forEach(F=>{if(F.a11yProxyElement){let T=p.pages&&p.pages.length,k=F.a11yProxyElement.element,Q=!1;if(g=F.legendItem||{},T){let st=g.pageIx||0;Q=(g.y||0)+(g.label?Math.round(g.label.getBBox().height):0)-p.pages[st]>b||st!==f-1}Q?x.styledMode?o(k,"highcharts-a11y-invisible"):k.style.visibility="hidden":(u(k,"highcharts-a11y-invisible"),k.style.visibility="")}})}onChartRender(){C(this.chart)||this.removeProxies()}highlightAdjacentLegendPage(g){let x=this.chart,p=x.legend,l=(p.currentPage||1)+g,f=p.pages||[];if(l>0&&l<=f.length){let b=0;for(let F of p.allItems)((F.legendItem||{}).pageIx||0)+1===l&&x.highlightLegendItem(b)&&(this.highlightedLegendItemIx=b),++b}}updateProxyPositionForItem(g){g.a11yProxyElement&&g.a11yProxyElement.refreshPosition()}recreateProxies(){let g=B.activeElement,x=this.proxyGroup,p=g&&x&&x.contains(g);return this.removeProxies(),!!C(this.chart)&&(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility(),this.updateLegendTitle(),p&&this.chart.highlightLegendItem(this.highlightedLegendItemIx),!0)}removeProxies(){this.proxyProvider.removeGroup("legend")}updateLegendTitle(){let g=this.chart,x=_((g.legend&&g.legend.options.title&&g.legend.options.title.text||"").replace(/
    /g," "),g.renderer.forExport),p=g.langFormat("accessibility.legend.legendLabel"+(x?"":"NoTitle"),{chart:g,legendTitle:x,chartTitle:w(g)});this.proxyProvider.updateGroupAttrs("legend",{"aria-label":p})}addLegendProxyGroup(){let g=this.chart.options.accessibility.landmarkVerbosity==="all"?"region":null;this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:g})}proxyLegendItems(){let g,x=this;((this.chart.legend||{}).allItems||[]).forEach(p=>{(g=p.legendItem||{}).label&&g.label.element&&x.proxyLegendItem(p)})}proxyLegendItem(g){let x=g.legendItem||{};if(!x.label||!x.group)return;let p=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:_(g.name,this.chart.renderer.forExport),item:g}),l={tabindex:-1,"aria-pressed":g.visible,"aria-label":p},f=x.group.div?x.label:x.group;g.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:x.label,visual:f.element},"button",l)}getKeyboardNavigation(){let g=this.keyCodes,x=this,p=this.chart;return new Z(p,{keyCodeMap:[[[g.left,g.right,g.up,g.down],function(l){return x.onKbdArrowKey(this,l)}],[[g.enter,g.space],function(){return x.onKbdClick(this)}],[[g.pageDown,g.pageUp],function(l){let f=l===g.pageDown?1:-1;return x.highlightAdjacentLegendPage(f),this.response.success}]],validate:function(){return x.shouldHaveLegendNavigation()},init:function(){p.highlightLegendItem(0),x.highlightedLegendItemIx=0},terminate:function(){x.highlightedLegendItemIx=-1,p.legend.allItems.forEach(l=>E(!1,l))}})}onKbdArrowKey(g,x){let{keyCodes:{left:p,up:l},highlightedLegendItemIx:f,chart:b}=this,F=b.legend.allItems.length,T=b.options.accessibility.keyboardNavigation.wrapAround,k=x===p||x===l?-1:1;return b.highlightLegendItem(f+k)?this.highlightedLegendItemIx+=k:T&&F>1&&(this.highlightedLegendItemIx=k>0?0:F-1,b.highlightLegendItem(this.highlightedLegendItemIx)),g.response.success}onKbdClick(g){let x=this.chart.legend.allItems[this.highlightedLegendItemIx];return x&&x.a11yProxyElement&&x.a11yProxyElement.click(),g.response.success}shouldHaveLegendNavigation(){if(!C(this.chart))return!1;let g=this.chart,x=(g.options.legend||{}).accessibility||{};return!!(g.legend.display&&x.keyboardNavigation&&x.keyboardNavigation.enabled)}destroy(){this.removeProxies()}}return function(v){function g(p){let l=this.legend.allItems,f=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,b=l[p],F=(b==null?void 0:b.legendItem)||{};if(b){L(f)&&l[f]&&E(!1,l[f]),function(Q,st){let nt=(Q.allItems[st].legendItem||{}).pageIx,dt=Q.currentPage;nt!==void 0&&nt+1!==dt&&Q.scroll(1+nt-dt)}(this.legend,p);let T=F.label,k=b.a11yProxyElement&&b.a11yProxyElement.innerElement;return T&&T.element&&k&&this.setFocusToElement(T,k),E(!0,b),!0}return!1}function x(p){let l=this.chart.options.accessibility,f=p.item;l.enabled&&f&&f.a11yProxyElement&&f.a11yProxyElement.innerElement.setAttribute("aria-pressed",p.visible?"true":"false")}v.compose=function(p,l){let f=p.prototype;f.highlightLegendItem||(f.highlightLegendItem=g,U(l,"afterColorizeItem",x))}}(S||(S={})),S}),R(y,"Stock/Navigator/ChartNavigatorComposition.js",[y["Core/Globals.js"],y["Core/Utilities.js"]],function(j,et){let K,{isTouchDevice:J}=j,{addEvent:q,merge:Z,pick:tt}=et,H=[];function X(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function B(){var E;let w,_,o,u=this.legend,C=this.navigator;if(C){w=u&&u.options,_=C.xAxis,o=C.yAxis;let{scrollbarHeight:S,scrollButtonSize:v}=C;this.inverted?(C.left=C.opposite?this.chartWidth-S-C.height:this.spacing[3]+S,C.top=this.plotTop+v):(C.left=tt(_.left,this.plotLeft+v),C.top=C.navigatorOptions.top||this.chartHeight-C.height-S-(((E=this.scrollbar)==null?void 0:E.options.margin)||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(w&&w.verticalAlign==="bottom"&&w.layout!=="proximate"&&w.enabled&&!w.floating?u.legendHeight+tt(w.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),_&&o&&(this.inverted?_.options.left=o.options.left=C.left:_.options.top=o.options.top=C.top,_.setAxisSize(),o.setAxisSize())}}function U(w){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new K(this),tt(w.redraw,!0)&&this.redraw(w.animation))}function d(){let w=this.options;(w.navigator.enabled||w.scrollbar.enabled)&&(this.scroller=this.navigator=new K(this))}function L(){let w=this.options,_=w.navigator,o=w.rangeSelector;if((_&&_.enabled||o&&o.enabled)&&(!J&&this.zooming.type==="x"||J&&this.zooming.pinchType==="x"))return!1}function M(w){let _=w.navigator;if(_&&w.xAxis[0]){let o=w.xAxis[0].getExtremes();_.render(o.min,o.max)}}function s(w){let _=w.options.navigator||{},o=w.options.scrollbar||{};!this.navigator&&!this.scroller&&(_.enabled||o.enabled)&&(Z(!0,this.options.navigator,_),Z(!0,this.options.scrollbar,o),delete w.options.navigator,delete w.options.scrollbar)}return{compose:function(w,_){if(et.pushUnique(H,w)){let o=w.prototype;K=_,o.callbacks.push(M),q(w,"afterAddSeries",X),q(w,"afterSetChartSize",B),q(w,"afterUpdate",U),q(w,"beforeRender",d),q(w,"beforeShowResetZoom",L),q(w,"update",s)}}}}),R(y,"Core/Axis/NavigatorAxisComposition.js",[y["Core/Globals.js"],y["Core/Utilities.js"]],function(j,et){let{isTouchDevice:K}=j,{addEvent:J,correctFloat:q,defined:Z,isNumber:tt,pick:H}=et;function X(){this.navigatorAxis||(this.navigatorAxis=new U(this))}function B(d){let L,M=this.chart,s=M.options,w=s.navigator,_=this.navigatorAxis,o=M.zooming.pinchType,u=s.rangeSelector,C=M.zooming.type;if(this.isXAxis&&(w!=null&&w.enabled||u!=null&&u.enabled)){if(C==="y"&&d.trigger==="zoom")L=!1;else if((d.trigger==="zoom"&&C==="xy"||K&&o==="xy")&&this.options.range){let E=_.previousZoom;Z(d.min)?_.previousZoom=[this.min,this.max]:E&&(d.min=E[0],d.max=E[1],_.previousZoom=void 0)}}L!==void 0&&d.preventDefault()}class U{static compose(L){L.keepProps.includes("navigatorAxis")||(L.keepProps.push("navigatorAxis"),J(L,"init",X),J(L,"setExtremes",B))}constructor(L){this.axis=L}destroy(){this.axis=void 0}toFixedRange(L,M,s,w){let _=this.axis,o=(_.pointRange||0)/2,u=H(s,_.translate(L,!0,!_.horiz)),C=H(w,_.translate(M,!0,!_.horiz));return Z(s)||(u=q(u+o)),Z(w)||(C=q(C-o)),tt(u)&&tt(C)||(u=C=void 0),{min:u,max:C}}}return U}),R(y,"Stock/Navigator/NavigatorDefaults.js",[y["Core/Color/Color.js"],y["Core/Series/SeriesRegistry.js"]],function(j,et){let{parse:K}=j,{seriesTypes:J}=et;return{height:40,margin:25,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:K("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:J.areaspline===void 0?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["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,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),R(y,"Stock/Navigator/NavigatorSymbols.js",[y["Core/Renderer/SVG/Symbols.js"],y["Core/Utilities.js"]],function(j,et){let{relativeLength:K}=et;return{"navigator-handle":function(J,q,Z,tt,H={}){let X=H.width?H.width/2:Z,B=K(H.borderRadius||0,Math.min(2*X,tt));return[["M",-1.5,(tt=H.height||tt)/2-3.5],["L",-1.5,tt/2+4.5],["M",.5,tt/2-3.5],["L",.5,tt/2+4.5],...j.rect(-X-1,.5,2*X+1,tt,{r:B})]}}}),R(y,"Stock/Utilities/StockUtilities.js",[y["Core/Utilities.js"]],function(j){let{defined:et}=j;return{setFixedRange:function(K){let J=this.xAxis[0];et(J.dataMax)&&et(J.dataMin)&&K?this.fixedRange=Math.min(K,J.dataMax-J.dataMin):this.fixedRange=K}}}),R(y,"Stock/Navigator/NavigatorComposition.js",[y["Core/Defaults.js"],y["Core/Globals.js"],y["Core/Axis/NavigatorAxisComposition.js"],y["Stock/Navigator/NavigatorDefaults.js"],y["Stock/Navigator/NavigatorSymbols.js"],y["Core/Renderer/RendererRegistry.js"],y["Stock/Utilities/StockUtilities.js"],y["Core/Utilities.js"]],function(j,et,K,J,q,Z,tt,H){let{setOptions:X}=j,{composed:B}=et,{getRendererType:U}=Z,{setFixedRange:d}=tt,{addEvent:L,extend:M,pushUnique:s}=H;function w(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(_,o,u){K.compose(o),s(B,"Navigator")&&(_.prototype.setFixedRange=d,M(U().prototype.symbols,q),L(u,"afterUpdate",w),X({navigator:J}))}}}),R(y,"Core/Axis/ScrollbarAxis.js",[y["Core/Globals.js"],y["Core/Utilities.js"]],function(j,et){var K;let{composed:J}=j,{addEvent:q,defined:Z,pick:tt,pushUnique:H}=et;return function(X){let B;function U(s){let w=tt(s.options&&s.options.min,s.min),_=tt(s.options&&s.options.max,s.max);return{axisMin:w,axisMax:_,scrollMin:Z(s.dataMin)?Math.min(w,s.min,s.dataMin,tt(s.threshold,1/0)):w,scrollMax:Z(s.dataMax)?Math.max(_,s.max,s.dataMax,tt(s.threshold,-1/0)):_}}function d(){let s=this.scrollbar,w=s&&!s.options.opposite,_=this.horiz?2:w?3:1;s&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[_]+=s.size+(s.options.margin||0))}function L(){let s=this;s.options&&s.options.scrollbar&&s.options.scrollbar.enabled&&(s.options.scrollbar.vertical=!s.horiz,s.options.startOnTick=s.options.endOnTick=!1,s.scrollbar=new B(s.chart.renderer,s.options.scrollbar,s.chart),q(s.scrollbar,"changed",function(w){let _,o,{axisMin:u,axisMax:C,scrollMin:E,scrollMax:S}=U(s),v=S-E;if(Z(u)&&Z(C))if(s.horiz&&!s.reversed||!s.horiz&&s.reversed?(_=E+v*this.to,o=E+v*this.from):(_=E+v*(1-this.from),o=E+v*(1-this.to)),this.shouldUpdateExtremes(w.DOMType)){let g=w.DOMType!=="mousemove"&&w.DOMType!=="touchmove"&&void 0;s.setExtremes(o,_,!0,g,w)}else this.setRange(this.from,this.to)}))}function M(){let s,w,_,{scrollMin:o,scrollMax:u}=U(this),C=this.scrollbar,E=this.axisTitleMargin+(this.titleOffset||0),S=this.chart.scrollbarsOffsets,v=this.options.margin||0;if(C&&S){if(this.horiz)this.opposite||(S[1]+=E),C.position(this.left,this.top+this.height+2+S[1]-(this.opposite?v:0),this.width,this.height),this.opposite||(S[1]+=v),s=1;else{let g;this.opposite&&(S[0]+=E),g=C.options.opposite?this.left+this.width+2+S[0]-(this.opposite?0:v):this.opposite?0:v,C.position(g,this.top,this.width,this.height),this.opposite&&(S[0]+=v),s=0}if(S[s]+=C.size+(C.options.margin||0),isNaN(o)||isNaN(u)||!Z(this.min)||!Z(this.max)||this.dataMin===this.dataMax)C.setRange(0,1);else if(this.min===this.max){let g=this.pointRange/(this.dataMax+1);w=g*this.min,_=g*(this.max+1),C.setRange(w,_)}else w=(this.min-o)/(u-o),_=(this.max-o)/(u-o),this.horiz&&!this.reversed||!this.horiz&&this.reversed?C.setRange(w,_):C.setRange(1-_,1-w)}}X.compose=function(s,w){H(J,"Axis.Scrollbar")&&(B=w,q(s,"afterGetOffset",d),q(s,"afterInit",L),q(s,"afterRender",M))}}(K||(K={})),K}),R(y,"Stock/Scrollbar/ScrollbarDefaults.js",[],function(){return{height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1}}),R(y,"Stock/Scrollbar/Scrollbar.js",[y["Core/Defaults.js"],y["Core/Globals.js"],y["Core/Axis/ScrollbarAxis.js"],y["Stock/Scrollbar/ScrollbarDefaults.js"],y["Core/Utilities.js"]],function(j,et,K,J,q){let{defaultOptions:Z}=j,{addEvent:tt,correctFloat:H,crisp:X,defined:B,destroyObjectProperties:U,fireEvent:d,merge:L,pick:M,removeEvent:s}=q;class w{static compose(o){K.compose(o,w)}static swapXY(o,u){return u&&o.forEach(C=>{let E,S=C.length;for(let v=0;vthis.calculatedWidth?u.minWidth:0;return{chartX:(o.chartX-this.x-this.xOffset)/(this.barWidth-C),chartY:(o.chartY-this.y-this.yOffset)/(this.barWidth-C)}}destroy(){let o=this,u=o.chart.scroller;o.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(C){o[C]&&o[C].destroy&&(o[C]=o[C].destroy())}),u&&o===u.scrollbar&&(u.scrollbar=null,U(u.scrollbarButtons))}drawScrollbarButton(o){let u=this.renderer,C=this.scrollbarButtons,E=this.options,S=this.size,v=u.g().add(this.group);if(C.push(v),E.buttonsEnabled){let g=u.rect().addClass("highcharts-scrollbar-button").add(v);this.chart.styledMode||g.attr({stroke:E.buttonBorderColor,"stroke-width":E.buttonBorderWidth,fill:E.buttonBackgroundColor}),g.attr(g.crisp({x:-.5,y:-.5,width:S,height:S,r:E.buttonBorderRadius},g.strokeWidth()));let x=u.path(w.swapXY([["M",S/2+(o?-1:1),S/2-3],["L",S/2+(o?-1:1),S/2+3],["L",S/2+(o?2:-2),S/2]],E.vertical)).addClass("highcharts-scrollbar-arrow").add(C[o]);this.chart.styledMode||x.attr({fill:E.buttonArrowColor})}}init(o,u,C){this.scrollbarButtons=[],this.renderer=o,this.userOptions=u,this.options=L(J,Z.scrollbar,u),this.options.margin=M(this.options.margin,10),this.chart=C,this.size=M(this.options.size,this.options.height),u.enabled&&(this.render(),this.addEvents())}mouseDownHandler(o){var E;let u=((E=this.chart.pointer)==null?void 0:E.normalize(o))||o,C=this.cursorToScrollbarPosition(u);this.chartX=C.chartX,this.chartY=C.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(o){var v;let u,C=((v=this.chart.pointer)==null?void 0:v.normalize(o))||o,E=this.options.vertical?"chartY":"chartX",S=this.initPositions||[];this.grabbedCenter&&(!o.touches||o.touches[0][E]!==0)&&(u=this.cursorToScrollbarPosition(C)[E]-this[E],this.hasDragged=!0,this.updatePosition(S[0]+u,S[1]+u),this.hasDragged&&d(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:o.type,DOMEvent:o}))}mouseUpHandler(o){this.hasDragged&&d(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:o.type,DOMEvent:o}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(o,u,C,E){let{buttonsEnabled:S,margin:v=0,vertical:g}=this.options,x=this.rendered?"animate":"attr",p=E,l=0;this.group.show(),this.x=o,this.y=u+this.trackBorderWidth,this.width=C,this.height=E,this.xOffset=p,this.yOffset=l,g?(this.width=this.yOffset=C=l=this.size,this.xOffset=p=0,this.yOffset=l=S?this.size:0,this.barWidth=E-(S?2*C:0),this.x=o+=v):(this.height=E=this.size,this.xOffset=p=S?this.size:0,this.barWidth=C-(S?2*E:0),this.y=this.y+v),this.group[x]({translateX:o,translateY:this.y}),this.track[x]({width:C,height:E}),this.scrollbarButtons[1][x]({translateX:g?0:C-p,translateY:g?E-l:0})}removeEvents(){this._events.forEach(function(o){s.apply(null,o)}),this._events.length=0}render(){let o=this.renderer,u=this.options,C=this.size,E=this.chart.styledMode,S=o.g("scrollbar").attr({zIndex:u.zIndex}).hide().add();this.group=S,this.track=o.rect().addClass("highcharts-scrollbar-track").attr({r:u.trackBorderRadius||0,height:C,width:C}).add(S),E||this.track.attr({fill:u.trackBackgroundColor,stroke:u.trackBorderColor,"stroke-width":u.trackBorderWidth});let v=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-X(0,v),y:-X(0,v)}),this.scrollbarGroup=o.g().add(S),this.scrollbar=o.rect().addClass("highcharts-scrollbar-thumb").attr({height:C-v,width:C-v,r:u.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=o.path(w.swapXY([["M",-3,C/4],["L",-3,2*C/3],["M",0,C/4],["L",0,2*C/3],["M",3,C/4],["L",3,2*C/3]],u.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),E||(this.scrollbar.attr({fill:u.barBackgroundColor,stroke:u.barBorderColor,"stroke-width":u.barBorderWidth}),this.scrollbarRifles.attr({stroke:u.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-X(0,this.scrollbarStrokeWidth),-X(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(o,u){let C,E,S=this.options,v=S.vertical,g=S.minWidth,x=this.barWidth,p=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!B(x))return;let l=x*Math.min(u,1);C=Math.ceil(x*(o=Math.max(o,0))),this.calculatedWidth=E=H(l-C),E=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(o){return M(this.options.liveRedraw,et.svg&&!et.isTouchDevice&&!this.chart.boosted)||o==="mouseup"||o==="touchend"||!B(o)}trackClick(o){var v;let u=((v=this.chart.pointer)==null?void 0:v.normalize(o))||o,C=this.to-this.from,E=this.y+this.scrollbarTop,S=this.x+this.scrollbarLeft;this.options.vertical&&u.chartY>E||!this.options.vertical&&u.chartX>S?this.updatePosition(this.from+C,this.to+C):this.updatePosition(this.from-C,this.to-C),d(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:o})}update(o){this.destroy(),this.init(this.chart.renderer,L(!0,this.options,o),this.chart)}updatePosition(o,u){u>1&&(o=H(1-H(u-o)),u=1),o<0&&(u=H(u-o),o=0),this.from=o,this.to=u}}return w.defaultOptions=J,Z.scrollbar=L(!0,w.defaultOptions,Z.scrollbar),w}),R(y,"Stock/Navigator/Navigator.js",[y["Core/Axis/Axis.js"],y["Stock/Navigator/ChartNavigatorComposition.js"],y["Core/Defaults.js"],y["Core/Globals.js"],y["Core/Axis/NavigatorAxisComposition.js"],y["Stock/Navigator/NavigatorComposition.js"],y["Stock/Scrollbar/Scrollbar.js"],y["Core/Renderer/SVG/SVGRenderer.js"],y["Core/Utilities.js"]],function(j,et,K,J,q,Z,tt,H,X){let{defaultOptions:B}=K,{isTouchDevice:U}=J,{prototype:{symbols:d}}=H,{addEvent:L,clamp:M,correctFloat:s,defined:w,destroyObjectProperties:_,erase:o,extend:u,find:C,fireEvent:E,isArray:S,isNumber:v,merge:g,pick:x,removeEvent:p,splat:l}=X;function f(F,...T){let k=[].filter.call(T,v);if(k.length)return Math[F].apply(0,k)}class b{static compose(T,k,Q){et.compose(T,b),Z.compose(T,k,Q)}constructor(T){this.isDirty=!1,this.scrollbarHeight=0,this.init(T)}drawHandle(T,k,Q,st){let nt=this.navigatorOptions.handles.height;this.handles[k][st](Q?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(T,10)+.5-nt)}:{translateX:Math.round(this.left+parseInt(T,10)),translateY:Math.round(this.top+this.height/2-nt/2-1)})}drawOutline(T,k,Q,st){let nt=this.navigatorOptions.maskInside,dt=this.outline.strokeWidth(),mt=dt/2,Et=dt%2/2,Mt=this.scrollButtonSize,I=this.size,Y=this.top,rt=this.height,ot=Y-mt,D=Y+rt,P=this.left,W,lt;Q?(W=Y+k+Et,k=Y+T+Et,lt=[["M",P+rt,Y-Mt-Et],["L",P+rt,W],["L",P,W],["M",P,k],["L",P+rt,k],["L",P+rt,Y+I+Mt]],nt&<.push(["M",P+rt,W-mt],["L",P+rt,k+mt])):(P-=Mt,T+=P+Mt-Et,k+=P+Mt-Et,lt=[["M",P,ot],["L",T,ot],["L",T,D],["M",k,D],["L",k,ot],["L",P+I+2*Mt,ot]],nt&<.push(["M",T-mt,ot],["L",k+mt,ot])),this.outline[st]({d:lt})}drawMasks(T,k,Q,st){let nt,dt,mt,Et,Mt=this.left,I=this.top,Y=this.height;Q?(mt=[Mt,Mt,Mt],Et=[I,I+T,I+k],dt=[Y,Y,Y],nt=[T,k-T,this.size-k]):(mt=[Mt,Mt+T,Mt+k],Et=[I,I,I],dt=[T,k-T,this.size-k],nt=[Y,Y,Y]),this.shades.forEach((rt,ot)=>{rt[st]({x:mt[ot],y:Et[ot],width:dt[ot],height:nt[ot]})})}renderElements(){var Mt,I;let T=this,k=T.navigatorOptions,Q=k.maskInside,st=T.chart,nt=st.inverted,dt=st.renderer,mt={cursor:nt?"ns-resize":"ew-resize"},Et=(Mt=T.navigatorGroup)!=null?Mt:T.navigatorGroup=dt.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!Q,Q,!Q].forEach((Y,rt)=>{var D;let ot=(D=T.shades[rt])!=null?D:T.shades[rt]=dt.rect().addClass("highcharts-navigator-mask"+(rt===1?"-inside":"-outside")).add(Et);st.styledMode||(ot.attr({fill:Y?k.maskFill:"rgba(0,0,0,0)"}),rt===1&&ot.css(mt))}),T.outline||(T.outline=dt.path().addClass("highcharts-navigator-outline").add(Et)),st.styledMode||T.outline.attr({"stroke-width":k.outlineWidth,stroke:k.outlineColor}),(I=k.handles)==null?void 0:I.enabled){let Y=k.handles,{height:rt,width:ot}=Y;[0,1].forEach(D=>{var W;let P=Y.symbols[D];if(T.handles[D]&&T.handles[D].symbolUrl===P){if(!T.handles[D].isImg&&T.handles[D].symbolName!==P){let lt=d[P].call(d,-ot/2-1,0,ot,rt);T.handles[D].attr({d:lt}),T.handles[D].symbolName=P}}else(W=T.handles[D])==null||W.destroy(),T.handles[D]=dt.symbol(P,-ot/2-1,0,ot,rt,Y),T.handles[D].attr({zIndex:7-D}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][D]).add(Et),T.addMouseEvents();st.inverted&&T.handles[D].attr({rotation:90,rotationOriginX:Math.floor(-ot/2),rotationOriginY:(rt+ot)/2}),st.styledMode||T.handles[D].attr({fill:Y.backgroundColor,stroke:Y.borderColor,"stroke-width":Y.lineWidth,width:Y.width,height:Y.height,x:-ot/2-1,y:0}).css(mt)})}}update(T,k=!1){var nt,dt;let Q=this.chart,st=Q.options.chart.inverted!==((nt=Q.scrollbar)==null?void 0:nt.options.vertical);if(g(!0,Q.options.navigator,T),this.navigatorOptions=Q.options.navigator||{},this.setOpposite(),w(T.enabled)||st)return this.destroy(),this.navigatorEnabled=T.enabled||this.navigatorEnabled,this.init(Q);if(this.navigatorEnabled&&(this.isDirty=!0,T.adaptToUpdatedData===!1&&this.baseSeries.forEach(mt=>{p(mt,"updatedData",this.updatedDataHandler)},this),T.adaptToUpdatedData&&this.baseSeries.forEach(mt=>{mt.eventsToUnbind.push(L(mt,"updatedData",this.updatedDataHandler))},this),(T.series||T.baseSeries)&&this.setBaseSeries(void 0,!1),T.height||T.xAxis||T.yAxis)){this.height=(dt=T.height)!=null?dt:this.height;let mt=this.getXAxisOffsets();this.xAxis.update(ho(zr({},T.xAxis),{offsets:mt,[Q.inverted?"width":"height"]:this.height,[Q.inverted?"height":"width"]:void 0}),!1),this.yAxis.update(ho(zr({},T.yAxis),{[Q.inverted?"width":"height"]:this.height}),!1)}k&&Q.redraw()}render(T,k,Q,st){let nt=this.chart,dt=this.xAxis,mt=dt.pointRange||0,Et=dt.navigatorAxis.fake?nt.xAxis[0]:dt,Mt=this.navigatorEnabled,I=this.rendered,Y=nt.inverted,rt=nt.xAxis[0].minRange,ot=nt.xAxis[0].options.maxRange,D=this.scrollButtonSize,P,W,lt,it=this.scrollbarHeight,vt,pt;if(this.hasDragged&&!w(Q))return;if(this.isDirty&&this.renderElements(),T=s(T-mt/2),k=s(k+mt/2),!v(T)||!v(k)){if(!I)return;Q=0,st=x(dt.width,Et.width)}this.left=x(dt.left,nt.plotLeft+D+(Y?nt.plotWidth:0));let xt=this.size=vt=x(dt.len,(Y?nt.plotHeight:nt.plotWidth)-2*D);P=Y?it:vt+2*D,Q=x(Q,dt.toPixels(T,!0)),st=x(st,dt.toPixels(k,!0)),v(Q)&&Math.abs(Q)!==1/0||(Q=0,st=P);let Ct=dt.toValue(Q,!0),Tt=dt.toValue(st,!0),Nt=Math.abs(s(Tt-Ct));Ntot&&(this.grabbedLeft?Q=dt.toPixels(Tt-ot-mt,!0):this.grabbedRight&&(st=dt.toPixels(Ct+ot+mt,!0))),this.zoomedMax=M(Math.max(Q,st),0,xt),this.zoomedMin=M(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(Q,st),0,xt),this.range=this.zoomedMax-this.zoomedMin,xt=Math.round(this.zoomedMax);let gt=Math.round(this.zoomedMin);Mt&&(this.navigatorGroup.attr({visibility:"inherit"}),pt=I&&!this.hasDragged?"animate":"attr",this.drawMasks(gt,xt,Y,pt),this.drawOutline(gt,xt,Y,pt),this.navigatorOptions.handles.enabled&&(this.drawHandle(gt,0,Y,pt),this.drawHandle(xt,1,Y,pt))),this.scrollbar&&(Y?(lt=this.top-D,W=this.left-it+(Mt||!Et.opposite?0:(Et.titleOffset||0)+Et.axisTitleMargin),it=vt+2*D):(lt=this.top+(Mt?this.height:-it),W=this.left-D),this.scrollbar.position(W,lt,P,it),this.scrollbar.setRange(this.zoomedMin/(vt||1),this.zoomedMax/(vt||1))),this.rendered=!0,this.isDirty=!1,E(this,"afterRender")}addMouseEvents(){let T=this,k=T.chart,Q=k.container,st=[],nt,dt;T.mouseMoveHandler=nt=function(mt){T.onMouseMove(mt)},T.mouseUpHandler=dt=function(mt){T.onMouseUp(mt)},(st=T.getPartsEvents("mousedown")).push(L(k.renderTo,"mousemove",nt),L(Q.ownerDocument,"mouseup",dt),L(k.renderTo,"touchmove",nt),L(Q.ownerDocument,"touchend",dt)),st.concat(T.getPartsEvents("touchstart")),T.eventsToUnbind=st,T.series&&T.series[0]&&st.push(L(T.series[0].xAxis,"foundExtremes",function(){k.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(T){let k=this,Q=[];return["shades","handles"].forEach(function(st){k[st].forEach(function(nt,dt){Q.push(L(nt.element,T,function(mt){k[st+"Mousedown"](mt,dt)}))})}),Q}shadesMousedown(T,k){var D;T=((D=this.chart.pointer)==null?void 0:D.normalize(T))||T;let Q=this.chart,st=this.xAxis,nt=this.zoomedMin,dt=this.size,mt=this.range,Et=this.left,Mt=T.chartX,I,Y,rt,ot;Q.inverted&&(Mt=T.chartY,Et=this.top),k===1?(this.grabbedCenter=Mt,this.fixedWidth=mt,this.dragOffset=Mt-nt):(ot=Mt-Et-mt/2,k===0?ot=Math.max(0,ot):k===2&&ot+mt>=dt&&(ot=dt-mt,this.reversedExtremes?(ot-=mt,Y=this.getUnionExtremes().dataMin):I=this.getUnionExtremes().dataMax),ot!==nt&&(this.fixedWidth=mt,w((rt=st.navigatorAxis.toFixedRange(ot,ot+mt,Y,I)).min)&&E(this,"setRange",{min:Math.min(rt.min,rt.max),max:Math.max(rt.min,rt.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(T,k){var dt;T=((dt=this.chart.pointer)==null?void 0:dt.normalize(T))||T;let Q=this.chart,st=Q.xAxis[0],nt=this.reversedExtremes;k===0?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=nt?st.min:st.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=nt?st.max:st.min),Q.setFixedRange(void 0)}onMouseMove(T){var I;let k=this,Q=k.chart,st=k.navigatorSize,nt=k.range,dt=k.dragOffset,mt=Q.inverted,Et=k.left,Mt;(!T.touches||T.touches[0].pageX!==0)&&(Mt=(T=((I=Q.pointer)==null?void 0:I.normalize(T))||T).chartX,mt&&(Et=k.top,Mt=T.chartY),k.grabbedLeft?(k.hasDragged=!0,k.render(0,0,Mt-Et,k.otherHandlePos)):k.grabbedRight?(k.hasDragged=!0,k.render(0,0,k.otherHandlePos,Mt-Et)):k.grabbedCenter&&(k.hasDragged=!0,Mtst+dt-nt&&(Mt=st+dt-nt),k.render(0,0,Mt-dt,Mt-dt+nt)),k.hasDragged&&k.scrollbar&&x(k.scrollbar.options.liveRedraw,!U&&!this.chart.boosted)&&(T.DOMType=T.type,setTimeout(function(){k.onMouseUp(T)},0)))}onMouseUp(T){let k,Q,st,nt,dt,mt,Et=this.chart,Mt=this.xAxis,I=this.scrollbar,Y=T.DOMEvent||T,rt=Et.inverted,ot=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!I||!I.hasDragged)||T.trigger==="scrollbar")&&(st=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?nt=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(dt=this.fixedExtreme),this.zoomedMax===this.size&&(dt=this.reversedExtremes?st.dataMin:st.dataMax),this.zoomedMin===0&&(nt=this.reversedExtremes?st.dataMax:st.dataMin),w((mt=Mt.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,nt,dt)).min)&&E(this,"setRange",{min:Math.min(mt.min,mt.max),max:Math.max(mt.min,mt.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:Y}})),T.DOMType!=="mousemove"&&T.DOMType!=="touchmove"&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&v(this.zoomedMin)&&v(this.zoomedMax)&&(Q=Math.round(this.zoomedMin),k=Math.round(this.zoomedMax),this.shades&&this.drawMasks(Q,k,rt,ot),this.outline&&this.drawOutline(Q,k,rt,ot),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(Q,0,rt,ot),this.drawHandle(k,1,rt,ot)))}removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(T){T()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let T=this.baseSeries||[];this.navigatorEnabled&&T[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&T.forEach(function(k){p(k,"updatedData",this.updatedDataHandler)},this),T[0].xAxis&&p(T[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}getXAxisOffsets(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]}init(T){var P;let k=T.options,Q=k.navigator||{},st=Q.enabled,nt=k.scrollbar||{},dt=nt.enabled,mt=st&&Q.height||0,Et=dt&&nt.height||0,Mt=nt.buttonsEnabled&&Et||0;this.handles=[],this.shades=[],this.chart=T,this.setBaseSeries(),this.height=mt,this.scrollbarHeight=Et,this.scrollButtonSize=Mt,this.scrollbarEnabled=dt,this.navigatorEnabled=st,this.navigatorOptions=Q,this.scrollbarOptions=nt,this.setOpposite();let I=this,Y=I.baseSeries,rt=T.xAxis.length,ot=T.yAxis.length,D=Y&&Y[0]&&Y[0].xAxis||T.xAxis[0]||{options:{}};if(T.isDirtyBox=!0,I.navigatorEnabled){let W=this.getXAxisOffsets();I.xAxis=new j(T,g({breaks:D.options.breaks,ordinal:D.options.ordinal,overscroll:D.options.overscroll},Q.xAxis,{type:"datetime",yAxis:(P=Q.yAxis)==null?void 0:P.id,index:rt,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:D.options.ordinal?0:D.options.minPadding,maxPadding:D.options.ordinal?0:D.options.maxPadding,zoomEnabled:!1},T.inverted?{offsets:W,width:mt}:{offsets:W,height:mt}),"xAxis"),I.yAxis=new j(T,g(Q.yAxis,{alignTicks:!1,offset:0,index:ot,isInternal:!0,reversed:x(Q.yAxis&&Q.yAxis.reversed,T.yAxis[0]&&T.yAxis[0].reversed,!1),zoomEnabled:!1},T.inverted?{width:mt}:{height:mt}),"yAxis"),Y||Q.series.data?I.updateNavigatorSeries(!1):T.series.length===0&&(I.unbindRedraw=L(T,"beforeRedraw",function(){T.series.length>0&&!I.series&&(I.setBaseSeries(),I.unbindRedraw())})),I.reversedExtremes=T.inverted&&!I.xAxis.reversed||!T.inverted&&I.xAxis.reversed,I.renderElements(),I.addMouseEvents()}else I.xAxis={chart:T,navigatorAxis:{fake:!0},translate:function(W,lt){let it=T.xAxis[0],vt=it.getExtremes(),pt=it.len-2*Mt,xt=f("min",it.options.min,vt.dataMin),Ct=f("max",it.options.max,vt.dataMax)-xt;return lt?W*Ct/pt+xt:pt*(W-xt)/Ct},toPixels:function(W){return this.translate(W)},toValue:function(W){return this.translate(W,!0)}},I.xAxis.navigatorAxis.axis=I.xAxis,I.xAxis.navigatorAxis.toFixedRange=q.prototype.toFixedRange.bind(I.xAxis.navigatorAxis);if(T.options.scrollbar.enabled){let W=g(T.options.scrollbar,{vertical:T.inverted});!v(W.margin)&&I.navigatorEnabled&&(W.margin=T.inverted?-3:3),T.scrollbar=I.scrollbar=new tt(T.renderer,W,T),L(I.scrollbar,"changed",function(lt){let it=I.size,vt=it*this.to,pt=it*this.from;I.hasDragged=I.scrollbar.hasDragged,I.render(0,0,pt,vt),this.shouldUpdateExtremes(lt.DOMType)&&setTimeout(function(){I.onMouseUp(lt)})})}I.addBaseSeriesEvents(),I.addChartEvents()}setOpposite(){let T=this.navigatorOptions,k=this.navigatorEnabled,Q=this.chart;this.opposite=x(T.opposite,!!(!k&&Q.inverted))}getUnionExtremes(T){let k,Q=this.chart.xAxis[0],st=this.xAxis,nt=st.options,dt=Q.options;return T&&Q.dataMin===null||(k={dataMin:x(nt&&nt.min,f("min",dt.min,Q.dataMin,st.dataMin,st.min)),dataMax:x(nt&&nt.max,f("max",dt.max,Q.dataMax,st.dataMax,st.max))}),k}setBaseSeries(T,k){let Q=this.chart,st=this.baseSeries=[];T=T||Q.options&&Q.options.navigator.baseSeries||(Q.series.length?C(Q.series,nt=>!nt.options.isInternal).index:0),(Q.series||[]).forEach((nt,dt)=>{!nt.options.isInternal&&(nt.options.showInNavigator||(dt===T||nt.options.id===T)&&nt.options.showInNavigator!==!1)&&st.push(nt)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,k)}updateNavigatorSeries(T,k){var rt,ot;let Q=this,st=Q.chart,nt=Q.baseSeries,dt={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:(rt=this.navigatorOptions.xAxis)==null?void 0:rt.id,yAxis:(ot=this.navigatorOptions.yAxis)==null?void 0:ot.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},mt=Q.series=(Q.series||[]).filter(D=>{let P=D.baseSeries;return!(0>nt.indexOf(P))||(P&&(p(P,"updatedData",Q.updatedDataHandler),delete P.navigatorSeries),D.chart&&D.destroy(),!1)}),Et,Mt,I=Q.navigatorOptions.series,Y;nt&&nt.length&&nt.forEach(D=>{let P=D.navigatorSeries,W=u({color:D.color,visible:D.visible},S(I)?B.navigator.series:I);if(P&&Q.navigatorOptions.adaptToUpdatedData===!1)return;dt.name="Navigator "+nt.length,Y=(Et=D.options||{}).navigatorOptions||{},W.dataLabels=l(W.dataLabels),(Mt=g(Et,dt,W,Y)).pointRange=x(W.pointRange,Y.pointRange,B.plotOptions[Mt.type||"line"].pointRange);let lt=Y.data||W.data;Q.hasNavigatorData=Q.hasNavigatorData||!!lt,Mt.data=lt||Et.data&&Et.data.slice(0),P&&P.options?P.update(Mt,k):(D.navigatorSeries=st.initSeries(Mt),st.setSortedData(),D.navigatorSeries.baseSeries=D,mt.push(D.navigatorSeries))}),(I.data&&!(nt&&nt.length)||S(I))&&(Q.hasNavigatorData=!1,(I=l(I)).forEach((D,P)=>{dt.name="Navigator "+(mt.length+1),(Mt=g(B.navigator.series,{color:st.series[P]&&!st.series[P].options.isInternal&&st.series[P].color||st.options.colors[P]||st.options.colors[0]},dt,D)).data=D.data,Mt.data&&(Q.hasNavigatorData=!0,mt.push(st.initSeries(Mt)))})),T&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let T=this,k=T.baseSeries||[];k[0]&&k[0].xAxis&&k[0].eventsToUnbind.push(L(k[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),k.forEach(Q=>{Q.eventsToUnbind.push(L(Q,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),Q.eventsToUnbind.push(L(Q,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),this.navigatorOptions.adaptToUpdatedData!==!1&&Q.xAxis&&Q.eventsToUnbind.push(L(Q,"updatedData",this.updatedDataHandler)),Q.eventsToUnbind.push(L(Q,"remove",function(){k&&o(k,Q),this.navigatorSeries&&(o(T.series,this.navigatorSeries),w(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(T){return this.baseSeries.reduce(function(k,Q){return Math.min(k,Q.xData&&Q.xData.length?Q.xData[0]:k)},T)}modifyNavigatorAxisExtremes(){let T=this.xAxis;if(T.getExtremes!==void 0){let k=this.getUnionExtremes(!0);k&&(k.dataMin!==T.min||k.dataMax!==T.max)&&(T.min=k.dataMin,T.max=k.dataMax)}}modifyBaseAxisExtremes(){var P;let T,k,Q=this.chart.navigator,st=this.getExtremes(),nt=st.min,dt=st.max,mt=st.dataMin,Et=st.dataMax,Mt=dt-nt,I=Q.stickToMin,Y=Q.stickToMax,rt=x((P=this.ordinal)==null?void 0:P.convertOverscroll(this.options.overscroll),0),ot=Q.series&&Q.series[0],D=!!this.setExtremes;!(this.eventArgs&&this.eventArgs.trigger==="rangeSelectorButton")&&(I&&(T=(k=mt)+Mt),Y&&(T=Et+rt,I||(k=Math.max(mt,T-Mt,Q.getBaseSeriesMin(ot&&ot.xData?ot.xData[0]:-Number.MAX_VALUE)))),D&&(I||Y)&&v(k)&&(this.min=this.userMin=k,this.max=this.userMax=T)),Q.stickToMin=Q.stickToMax=null}updatedDataHandler(){let T=this.chart.navigator,k=this.navigatorSeries,Q=T.reversedExtremes?Math.round(T.zoomedMin)===0:Math.round(T.zoomedMax)>=Math.round(T.size);T.stickToMax=x(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,Q),T.stickToMin=T.shouldStickToMin(this,T),k&&!T.hasNavigatorData&&(k.options.pointStart=this.xData[0],k.setData(this.options.data,!1,null,!1))}shouldStickToMin(T,k){let Q=k.getBaseSeriesMin(T.xData[0]),st=T.xAxis,nt=st.max,dt=st.min,mt=st.options.range;return!!(v(nt)&&v(dt))&&(mt&&nt-Q>0?nt-Q{T.destroy&&T.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(T=>{this[T]&&this[T].destroy&&this[T].destroy(),this[T]=null}),[this.handles].forEach(T=>{_(T)}),this.navigatorEnabled=!1}}return b}),R(y,"Accessibility/Components/NavigatorComponent.js",[y["Accessibility/AccessibilityComponent.js"],y["Accessibility/Utils/Announcer.js"],y["Accessibility/KeyboardNavigationHandler.js"],y["Stock/Navigator/Navigator.js"],y["Core/Animation/AnimationUtilities.js"],y["Core/Templating.js"],y["Core/Utilities.js"],y["Accessibility/Utils/HTMLUtilities.js"],y["Accessibility/Utils/ChartUtilities.js"]],function(j,et,K,J,q,Z,tt,H,X){let{animObject:B}=q,{format:U}=Z,{clamp:d,pick:L,syncTimeout:M}=tt,{getFakeMouseEvent:s}=H,{getAxisRangeDescription:w,fireEventOnWrappedOrUnwrappedElement:_}=X;return class extends j{init(){let o=this.chart,u=this;this.announcer=new et(o,"polite"),this.addEvent(J,"afterRender",function(){this.chart===u.chart&&this.chart.renderer&&M(()=>{u.proxyProvider.updateGroupProxyElementPositions("navigator"),u.updateHandleValues()},B(L(this.chart.renderer.globalAnimation,!0)).duration)})}onChartUpdate(){var E,S,v;let o=this.chart,u=o.options,C=u.navigator;if(C.enabled&&((E=C.accessibility)!=null&&E.enabled)){let g=u.accessibility.landmarkVerbosity,x=(S=u.lang.accessibility)==null?void 0:S.navigator.groupLabel;this.proxyProvider.removeGroup("navigator"),this.proxyProvider.addGroup("navigator","div",{role:g==="all"?"region":"group","aria-label":U(x,{chart:o},o)});let p=(v=u.lang.accessibility)==null?void 0:v.navigator.handleLabel;[0,1].forEach(l=>{let f=this.getHandleByIx(l);if(f){let b=this.proxyProvider.addProxyElement("navigator",{click:f},"input",{type:"range","aria-label":U(p,{handleIx:l,chart:o},o)});this[l?"maxHandleProxy":"minHandleProxy"]=b.innerElement,b.innerElement.style.pointerEvents="none",b.innerElement.oninput=()=>this.updateNavigator()}}),this.updateHandleValues()}else this.proxyProvider.removeGroup("navigator")}getNavigatorHandleNavigation(o){let u=this,C=this.chart,E=o?this.maxHandleProxy:this.minHandleProxy,S=this.keyCodes;return new K(C,{keyCodeMap:[[[S.left,S.right,S.up,S.down],function(v){if(E){let g=v===S.left||v===S.up?-1:1;E.value=""+d(parseFloat(E.value)+g,0,100),u.updateNavigator(()=>{let x=u.getHandleByIx(o);x&&C.setFocusToElement(x,E)})}return this.response.success}]],init:()=>{C.setFocusToElement(this.getHandleByIx(o),E)},validate:()=>{var v;return!!(this.getHandleByIx(o)&&E&&((v=C.options.navigator.accessibility)!=null&&v.enabled))}})}getKeyboardNavigation(){return[this.getNavigatorHandleNavigation(0),this.getNavigatorHandleNavigation(1)]}destroy(){this.updateNavigatorThrottleTimer&&clearTimeout(this.updateNavigatorThrottleTimer),this.proxyProvider.removeGroup("navigator"),this.announcer&&this.announcer.destroy()}updateHandleValues(){let o=this.chart.navigator;if(o&&this.minHandleProxy&&this.maxHandleProxy){let u=o.size;this.minHandleProxy.value=""+Math.round(o.zoomedMin/u*100),this.maxHandleProxy.value=""+Math.round(o.zoomedMax/u*100)}}getHandleByIx(o){let u=this.chart.navigator;return u&&u.handles&&u.handles[o]}updateNavigator(o){this.updateNavigatorThrottleTimer&&clearTimeout(this.updateNavigatorThrottleTimer),this.updateNavigatorThrottleTimer=setTimeout((u=>{var v;let C=this.chart,{navigator:E,pointer:S}=C;if(E&&S&&this.minHandleProxy&&this.maxHandleProxy){let g=S.getChartPosition(),x=parseFloat(this.minHandleProxy.value)/100*E.size,p=parseFloat(this.maxHandleProxy.value)/100*E.size;[[0,"mousedown",E.zoomedMin],[0,"mousemove",x],[0,"mouseup",x],[1,"mousedown",E.zoomedMax],[1,"mousemove",p],[1,"mouseup",p]].forEach(([b,F,T])=>{var Q;let k=(Q=this.getHandleByIx(b))==null?void 0:Q.element;k&&_(k,s(F,{x:g.left+E.left+T,y:g.top+E.top},k))}),u&&u();let l=(v=C.options.lang.accessibility)==null?void 0:v.navigator.changeAnnouncement,f=w(C.xAxis[0]);this.announcer.announce(U(l,{axisRangeDescription:f,chart:C},C))}}).bind(this,o),20)}}}),R(y,"Accessibility/Components/SeriesComponent/SeriesDescriber.js",[y["Accessibility/Components/AnnotationsA11y.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Core/Templating.js"],y["Accessibility/Utils/HTMLUtilities.js"],y["Core/Utilities.js"]],function(j,et,K,J,q){let{getPointAnnotationTexts:Z}=j,{getAxisDescription:tt,getSeriesFirstPointElement:H,getSeriesA11yElement:X,unhideChartElementFromAT:B}=et,{format:U,numberFormat:d}=K,{reverseChildNodes:L,stripHTMLTagsFromString:M}=J,{find:s,isNumber:w,isString:_,pick:o,defined:u}=q;function C(x){let p=x.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(p!==!1&&x.points&&x.points.length>=+p)}function E(x,p){let l=x.series,f=l.chart,b=f.options.accessibility.point||{},F=l.options.accessibility&&l.options.accessibility.point||{},T=l.tooltipOptions||{},k=f.options.lang;return w(p)?d(p,F.valueDecimals||b.valueDecimals||T.valueDecimals||-1,k.decimalPoint,k.accessibility.thousandsSep||k.thousandsSep):p}function S(x,p){let l=x[p];return x.chart.langFormat("accessibility.series."+p+"Description",{name:tt(l),series:x})}function v(x){let p=x.series,l=p.chart.series.length>1||p.options.name,f=function(k){let Q=k.series,st=Q.chart,nt=Q.options.accessibility,dt=nt&&nt.point&&nt.point.valueDescriptionFormat||st.options.accessibility.point.valueDescriptionFormat,mt=o(Q.xAxis&&Q.xAxis.options.accessibility&&Q.xAxis.options.accessibility.enabled,!st.angular&&Q.type!=="flowmap"),Et=mt?function(Mt){let I=function(D){let P=D.series,W=P.chart,lt=P.options.accessibility&&P.options.accessibility.point||{},it=W.options.accessibility.point||{},vt=P.xAxis&&P.xAxis.dateTime;if(vt){let pt=vt.getXDateFormat(D.x||0,W.options.tooltip.dateTimeLabelFormats),xt=lt.dateFormatter&<.dateFormatter(D)||it.dateFormatter&&it.dateFormatter(D)||lt.dateFormat||it.dateFormat||pt;return W.time.dateFormat(xt,D.x||0,void 0)}}(Mt),Y=(Mt.series.xAxis||{}).categories&&u(Mt.category)&&(""+Mt.category).replace("
    "," "),rt=u(Mt.id)&&0>(""+Mt.id).indexOf("highcharts-"),ot="x, "+Mt.x;return Mt.name||I||Y||(rt?Mt.id:ot)}(k):"";return U(dt,{point:k,index:u(k.index)?k.index+1:"",xDescription:Et,value:function(Mt){let I=Mt.series,Y=I.chart.options.accessibility.point||{},rt=I.chart.options.accessibility&&I.chart.options.accessibility.point||{},ot=I.tooltipOptions||{},D=rt.valuePrefix||Y.valuePrefix||ot.valuePrefix||"",P=rt.valueSuffix||Y.valueSuffix||ot.valueSuffix||"",W=Mt.value!==void 0?"value":"y",lt=E(Mt,Mt[W]);return Mt.isNull?I.chart.langFormat("accessibility.series.nullPointValue",{point:Mt}):I.pointArrayMap?function(it,vt,pt){let xt=vt||"",Ct=pt||"",Tt=function(Nt){let gt=E(it,o(it[Nt],it.options[Nt]));return gt!==void 0?Nt+": "+xt+gt+Ct:gt};return it.series.pointArrayMap.reduce(function(Nt,gt){let wt=Tt(gt);return wt?Nt+(Nt.length?", ":"")+wt:Nt},"")}(Mt,D,P):D+lt+P}(k),separator:mt?", ":""},st)}(x),b=x.options&&x.options.accessibility&&x.options.accessibility.description,F=l?" "+p.name+".":"",T=function(k){let Q=k.series.chart,st=Z(k);return st.length?Q.langFormat("accessibility.series.pointAnnotationsDescription",{point:k,annotations:st}):""}(x);return x.accessibility=x.accessibility||{},x.accessibility.valueDescription=f,f+(b?" "+b:"")+F+(T?" "+T:"")}function g(x){let p=x.chart,l=p.types||[],f=function(mt){let Et=(mt.options.accessibility||{}).description;return Et&&mt.chart.langFormat("accessibility.series.description",{description:Et,series:mt})||""}(x),b=function(mt){return p[mt]&&p[mt].length>1&&x[mt]},F=x.index+1,T=S(x,"xAxis"),k=S(x,"yAxis"),Q={seriesNumber:F,series:x,chart:p},st=l.length>1?"Combination":"",nt=p.langFormat("accessibility.series.summary."+x.type+st,Q)||p.langFormat("accessibility.series.summary.default"+st,Q),dt=(b("yAxis")?" "+k+".":"")+(b("xAxis")?" "+T+".":"");return U(o(x.options.accessibility&&x.options.accessibility.descriptionFormat,p.options.accessibility.series.descriptionFormat,""),{seriesDescription:nt,authorDescription:f?" "+f:"",axisDescription:dt,series:x,chart:p,seriesNumber:F},void 0)}return{defaultPointDescriptionFormatter:v,defaultSeriesDescriptionFormatter:g,describeSeries:function(x){let p=x.chart,l=H(x),f=X(x),b=p.is3d&&p.is3d();f&&(f.lastChild!==l||b||L(f),function(F){let T=function(st){let nt=st.options.accessibility||{};return!C(st)&&!nt.exposeAsGroupOnly}(F),k=function(st){let nt=st.chart.options.accessibility.keyboardNavigation.seriesNavigation;return!!(st.points&&(st.points.length<+nt.pointNavigationEnabledThreshold||nt.pointNavigationEnabledThreshold===!1))}(F),Q=F.chart.options.accessibility.point.describeNull;(T||k)&&F.points.forEach(st=>{let nt=st.graphic&&st.graphic.element||function(mt){let Et=mt.series,Mt=Et&&Et.chart,I=Et&&Et.is("sunburst"),Y=mt.isNull,rt=Mt&&Mt.options.accessibility.point.describeNull;return Y&&!I&&rt}(st)&&function(mt){let Et=mt.series,Mt=function(D){let P=D.index;return D.series&&D.series.data&&u(P)&&s(D.series.data,function(W){return!!(W&&W.index!==void 0&&W.index>P&&W.graphic&&W.graphic.element)})||null}(mt),I=Mt&&Mt.graphic,Y=I?I.parentGroup:Et.graph||Et.group,rt=Mt?{x:o(mt.plotX,Mt.plotX,0),y:o(mt.plotY,Mt.plotY,0)}:{x:o(mt.plotX,0),y:o(mt.plotY,0)},ot=function(D,P){let W=D.series.chart.renderer.rect(P.x,P.y,1,1);return W.attr({class:"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}),W}(mt,rt);if(Y&&Y.element)return mt.graphic=ot,mt.hasMockGraphic=!0,ot.add(Y),Y.element.insertBefore(ot.element,I?I.element:null),ot.element}(st),dt=st.options&&st.options.accessibility&&st.options.accessibility.enabled===!1;if(nt){if(st.isNull&&!Q){nt.setAttribute("aria-hidden",!0);return}nt.setAttribute("tabindex","-1"),F.chart.styledMode||(nt.style.outline="none"),T&&!dt?function(mt,Et){var ot,D,P;let Mt=mt.series,I=((ot=Mt.options.accessibility)==null?void 0:ot.point)||{},Y=Mt.chart.options.accessibility.point||{},rt=M(_(I.descriptionFormat)&&U(I.descriptionFormat,mt,Mt.chart)||((D=I.descriptionFormatter)==null?void 0:D.call(I,mt))||_(Y.descriptionFormat)&&U(Y.descriptionFormat,mt,Mt.chart)||((P=Y.descriptionFormatter)==null?void 0:P.call(Y,mt))||v(mt),Mt.chart.renderer.forExport);Et.setAttribute("role","img"),Et.setAttribute("aria-label",rt)}(st,nt):nt.setAttribute("aria-hidden",!0)}})}(x),B(p,f),function(F){let T=F.chart,k=T.options.chart,Q=k.options3d&&k.options3d.enabled,st=T.series.length>1,nt=T.options.accessibility.series.describeSingleSeries,dt=(F.options.accessibility||{}).exposeAsGroupOnly;return!(Q&&st)&&(st||nt||dt||C(F))}(x)?function(F,T){let k=F.options.accessibility||{},Q=F.chart.options.accessibility,st=Q.landmarkVerbosity;k.exposeAsGroupOnly?T.setAttribute("role","img"):st==="all"?T.setAttribute("role","region"):T.setAttribute("role","group"),T.setAttribute("tabindex","-1"),F.chart.styledMode||(T.style.outline="none"),T.setAttribute("aria-label",M(Q.series.descriptionFormatter&&Q.series.descriptionFormatter(F)||g(F),F.chart.renderer.forExport))}(x,f):f.removeAttribute("aria-label"))}}}),R(y,"Accessibility/Components/SeriesComponent/NewDataAnnouncer.js",[y["Core/Globals.js"],y["Core/Utilities.js"],y["Accessibility/Utils/Announcer.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Accessibility/Utils/EventProvider.js"],y["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(j,et,K,J,q,Z){let{composed:tt}=j,{addEvent:H,defined:X,pushUnique:B}=et,{getChartTitle:U}=J,{defaultPointDescriptionFormatter:d,defaultSeriesDescriptionFormatter:L}=Z;function M(w){return!!w.options.accessibility.announceNewData.enabled}class s{constructor(_){this.dirty={allSeries:{}},this.lastAnnouncementTime=0,this.chart=_}init(){let _=this.chart,o=_.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new q,this.announcer=new K(_,o),this.addEventListeners()}destroy(){this.eventProvider.removeAddedEvents(),this.announcer.destroy()}addEventListeners(){let _=this,o=this.chart,u=this.eventProvider;u.addEvent(o,"afterApplyDrilldown",function(){_.lastAnnouncementTime=0}),u.addEvent(o,"afterAddSeries",function(C){_.onSeriesAdded(C.series)}),u.addEvent(o,"redraw",function(){_.announceDirtyData()})}onSeriesAdded(_){M(this.chart)&&(this.dirty.hasDirty=!0,this.dirty.allSeries[_.name+_.index]=_,this.dirty.newSeries=X(this.dirty.newSeries)?void 0:_)}announceDirtyData(){let _=this.chart,o=this;if(_.options.accessibility.announceNewData&&this.dirty.hasDirty){let u=this.dirty.newPoint;u&&(u=function(C){let E=C.series.data.filter(S=>C.x===S.x&&C.y===S.y);return E.length===1?E[0]:C}(u)),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map(C=>o.dirty.allSeries[C]),this.dirty.newSeries,u),this.dirty={allSeries:{}}}}queueAnnouncement(_,o,u){let C=this.chart.options.accessibility.announceNewData;if(C.enabled){let E=+new Date,S=E-this.lastAnnouncementTime,v=Math.max(0,C.minAnnounceInterval-S),g=function(p,l){let f=(p||[]).concat(l||[]).reduce((b,F)=>(b[F.name+F.index]=F,b),{});return Object.keys(f).map(b=>f[b])}(this.queuedAnnouncement&&this.queuedAnnouncement.series,_),x=this.buildAnnouncementMessage(g,o,u);x&&(this.queuedAnnouncement&&clearTimeout(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:E,message:x,series:g},this.queuedAnnouncementTimer=setTimeout(()=>{this&&this.announcer&&(this.lastAnnouncementTime=+new Date,this.announcer.announce(this.queuedAnnouncement.message),delete this.queuedAnnouncement,delete this.queuedAnnouncementTimer)},v))}}buildAnnouncementMessage(_,o,u){let C=this.chart,E=C.options.accessibility.announceNewData;if(E.announcementFormatter){let x=E.announcementFormatter(_,o,u);if(x!==!1)return x.length?x:null}let S=j.charts&&j.charts.length>1?"Multiple":"Single",v=o?"newSeriesAnnounce"+S:u?"newPointAnnounce"+S:"newDataAnnounce",g=U(C);return C.langFormat("accessibility.announceNewData."+v,{chartTitle:g,seriesDesc:o?L(o):null,pointDesc:u?d(u):null,point:u,series:o})}}return function(w){function _(u){var S;let C=this.chart,E=(S=C.accessibility)==null?void 0:S.components.series.newDataAnnouncer;E&&E.chart===C&&M(C)&&(E.dirty.newPoint=X(E.dirty.newPoint)?void 0:u.point)}function o(){var E;let u=this.chart,C=(E=u.accessibility)==null?void 0:E.components.series.newDataAnnouncer;C&&C.chart===u&&M(u)&&(C.dirty.hasDirty=!0,C.dirty.allSeries[this.name+this.index]=this)}w.compose=function(u){B(tt,"A11y.NDA")&&(H(u,"addPoint",_),H(u,"updatedData",o))}}(s||(s={})),s}),R(y,"Accessibility/ProxyElement.js",[y["Core/Globals.js"],y["Core/Utilities.js"],y["Accessibility/Utils/EventProvider.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Accessibility/Utils/HTMLUtilities.js"]],function(j,et,K,J,q){let{doc:Z}=j,{attr:tt,css:H,merge:X}=et,{fireEventOnWrappedOrUnwrappedElement:B}=J,{cloneMouseEvent:U,cloneTouchEvent:d,getFakeMouseEvent:L,removeElement:M}=q;return class{constructor(s,w,_="button",o,u){this.chart=s,this.target=w,this.eventProvider=new K;let C=this.innerElement=Z.createElement(_),E=this.element=o?Z.createElement(o):C;s.styledMode||this.hideElementVisually(C),o&&(o!=="li"||s.styledMode||(E.style.listStyle="none"),E.appendChild(C),this.element=E),this.updateTarget(w,u)}click(){let s=this.getTargetPosition();s.x+=s.width/2,s.y+=s.height/2;let w=L("click",s);B(this.target.click,w)}updateTarget(s,w){this.target=s,this.updateCSSClassName();let _=w||{};Object.keys(_).forEach(u=>{_[u]===null&&delete _[u]});let o=this.getTargetAttr(s.click,"aria-label");tt(this.innerElement,X(o?{"aria-label":o}:{},_)),this.eventProvider.removeAddedEvents(),this.addProxyEventsToElement(this.innerElement,s.click),this.refreshPosition()}refreshPosition(){let s=this.getTargetPosition();H(this.innerElement,{width:(s.width||1)+"px",height:(s.height||1)+"px",left:(Math.round(s.x)||0)+"px",top:(Math.round(s.y)||0)+"px"})}remove(){this.eventProvider.removeAddedEvents(),M(this.element)}updateCSSClassName(){let s=C=>C.indexOf("highcharts-no-tooltip")>-1,w=this.chart.legend,_=w.group&&w.group.div,o=s(_&&_.className||""),u=s(this.getTargetAttr(this.target.click,"class")||"");this.innerElement.className=o||u?"highcharts-a11y-proxy-element highcharts-no-tooltip":"highcharts-a11y-proxy-element"}addProxyEventsToElement(s,w){["click","touchstart","touchend","touchcancel","touchmove","mouseover","mouseenter","mouseleave","mouseout"].forEach(_=>{let o=_.indexOf("touch")===0;this.eventProvider.addEvent(s,_,u=>{let C=o?d(u):U(u);w&&B(w,C),u.stopPropagation(),o||u.preventDefault()},{passive:!1})})}hideElementVisually(s){H(s,{borderWidth:0,backgroundColor:"transparent",cursor:"pointer",outline:"none",opacity:.001,filter:"alpha(opacity=1)",zIndex:999,overflow:"hidden",padding:0,margin:0,display:"block",position:"absolute","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)"})}getTargetPosition(){let s=this.target.click,w=s.element?s.element:s,_=this.target.visual||w,o=this.chart.renderTo,u=this.chart.pointer;if(o&&(_!=null&&_.getBoundingClientRect)&&u){let C=_.getBoundingClientRect(),E=u.getChartPosition();return{x:(C.left-E.left)/E.scaleX,y:(C.top-E.top)/E.scaleY,width:C.right/E.scaleX-C.left/E.scaleX,height:C.bottom/E.scaleY-C.top/E.scaleY}}return{x:0,y:0,width:1,height:1}}getTargetAttr(s,w){return s.element?s.element.getAttribute(w):s.getAttribute(w)}}}),R(y,"Accessibility/ProxyProvider.js",[y["Core/Globals.js"],y["Core/Utilities.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Accessibility/Utils/DOMElementProvider.js"],y["Accessibility/Utils/HTMLUtilities.js"],y["Accessibility/ProxyElement.js"]],function(j,et,K,J,q,Z){let{doc:tt}=j,{attr:H,css:X}=et,{unhideChartElementFromAT:B}=K,{removeChildNodes:U}=q;return class{constructor(d){this.chart=d,this.domElementProvider=new J,this.groups={},this.groupOrder=[],this.beforeChartProxyPosContainer=this.createProxyPosContainer("before"),this.afterChartProxyPosContainer=this.createProxyPosContainer("after"),this.update()}addProxyElement(d,L,M="button",s){let w=this.groups[d];if(!w)throw Error("ProxyProvider.addProxyElement: Invalid group key "+d);let _=w.type==="ul"||w.type==="ol"?"li":void 0,o=new Z(this.chart,L,M,_,s);return w.proxyContainerElement.appendChild(o.element),w.proxyElements.push(o),o}addGroup(d,L="div",M){let s,w=this.groups[d];if(w)return w.groupElement;let _=this.domElementProvider.createElement(L);return M&&M.role&&L!=="div"?(s=this.domElementProvider.createElement("div")).appendChild(_):s=_,s.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+d.replace(/\W/g,"-"),this.groups[d]={proxyContainerElement:_,groupElement:s,type:L,proxyElements:[]},H(s,M||{}),L==="ul"&&_.setAttribute("role","list"),this.afterChartProxyPosContainer.appendChild(s),this.updateGroupOrder(this.groupOrder),s}updateGroupAttrs(d,L){let M=this.groups[d];if(!M)throw Error("ProxyProvider.updateGroupAttrs: Invalid group key "+d);H(M.groupElement,L)}updateGroupOrder(d){if(this.groupOrder=d.slice(),this.isDOMOrderGroupOrder())return;let L=d.indexOf("series"),M=L>-1?d.slice(0,L):d,s=L>-1?d.slice(L+1):[],w=tt.activeElement;["before","after"].forEach(_=>{let o=this[_==="before"?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"];U(o),(_==="before"?M:s).forEach(u=>{let C=this.groups[u];C&&o.appendChild(C.groupElement)})}),(this.beforeChartProxyPosContainer.contains(w)||this.afterChartProxyPosContainer.contains(w))&&w&&w.focus&&w.focus()}clearGroup(d){let L=this.groups[d];if(!L)throw Error("ProxyProvider.clearGroup: Invalid group key "+d);U(L.proxyContainerElement)}removeGroup(d){let L=this.groups[d];L&&(this.domElementProvider.removeElement(L.groupElement),L.groupElement!==L.proxyContainerElement&&this.domElementProvider.removeElement(L.proxyContainerElement),delete this.groups[d])}update(){this.updatePosContainerPositions(),this.updateGroupOrder(this.groupOrder),this.updateProxyElementPositions()}updateProxyElementPositions(){Object.keys(this.groups).forEach(this.updateGroupProxyElementPositions.bind(this))}updateGroupProxyElementPositions(d){let L=this.groups[d];L&&L.proxyElements.forEach(M=>M.refreshPosition())}destroy(){this.domElementProvider.destroyCreatedElements()}createProxyPosContainer(d){let L=this.domElementProvider.createElement("div");return L.setAttribute("aria-hidden","false"),L.className="highcharts-a11y-proxy-container"+(d?"-"+d:""),X(L,{top:"0",left:"0"}),this.chart.styledMode||(L.style.whiteSpace="nowrap",L.style.position="absolute"),L}getCurrentGroupOrderInDOM(){let d=w=>{let _=Object.keys(this.groups),o=_.length;for(;o--;){let u=_[o],C=this.groups[u];if(C&&w===C.groupElement)return u}},L=w=>{let _=[],o=w.children;for(let u=0;us==="series"||!!this.groups[s]),M=d.length;if(M!==L.length)return!1;for(;M--;)if(d[M]!==L[M])return!1;return!0}updatePosContainerPositions(){let d=this.chart;if(d.renderer.forExport)return;let L=d.renderer.box;d.container.insertBefore(this.afterChartProxyPosContainer,L.nextSibling),d.container.insertBefore(this.beforeChartProxyPosContainer,L),B(this.chart,this.afterChartProxyPosContainer),B(this.chart,this.beforeChartProxyPosContainer)}}}),R(y,"Accessibility/Components/RangeSelectorComponent.js",[y["Accessibility/AccessibilityComponent.js"],y["Accessibility/Utils/Announcer.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Accessibility/KeyboardNavigationHandler.js"],y["Core/Utilities.js"]],function(j,et,K,J,q){let{unhideChartElementFromAT:Z,getAxisRangeDescription:tt}=K,{addEvent:H,attr:X}=q;class B extends j{init(){let d=this.chart;this.announcer=new et(d,"polite")}onChartUpdate(){let d=this.chart,L=this,M=d.rangeSelector;M&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),M.buttons&&M.buttons.length&&M.buttons.forEach(s=>{L.setRangeButtonAttrs(s)}),M.maxInput&&M.minInput&&["minInput","maxInput"].forEach(function(s,w){let _=M[s];_&&(Z(d,_),L.setRangeInputAttrs(_,"accessibility.rangeSelector."+(w?"max":"min")+"InputLabel"))}))}updateSelectorVisibility(){let d=this.chart,L=d.rangeSelector,M=L&&L.dropdown,s=L&&L.buttons||[],w=_=>_.setAttribute("aria-hidden",!0);L&&L.hasVisibleDropdown&&M?(Z(d,M),s.forEach(_=>w(_.element))):(M&&w(M),s.forEach(_=>Z(d,_.element)))}setDropdownAttrs(){let d=this.chart,L=d.rangeSelector&&d.rangeSelector.dropdown;if(L){let M=d.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:d.options.lang.rangeSelectorZoom});L.setAttribute("aria-label",M),L.setAttribute("tabindex",-1)}}setRangeButtonAttrs(d){X(d.element,{tabindex:-1,role:"button"})}setRangeInputAttrs(d,L){let M=this.chart;X(d,{tabindex:-1,"aria-label":M.langFormat(L,{chart:M})})}onButtonNavKbdArrowKey(d,L){let M=d.response,s=this.keyCodes,w=this.chart,_=w.options.accessibility.keyboardNavigation.wrapAround,o=L===s.left||L===s.up?-1:1;return w.highlightRangeSelectorButton(w.highlightedRangeSelectorItemIx+o)?M.success:_?(d.init(o),M.success):M[o>0?"next":"prev"]}onButtonNavKbdClick(d){let L=d.response,M=this.chart;return M.oldRangeSelectorItemState!==3&&this.fakeClickEvent(M.rangeSelector.buttons[M.highlightedRangeSelectorItemIx].element),L.success}onAfterBtnClick(){let d=this.chart,L=tt(d.xAxis[0]),M=d.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:d,axisRangeDescription:L});M&&this.announcer.announce(M)}onInputKbdMove(d){let L=this.chart,M=L.rangeSelector,s=L.highlightedInputRangeIx=(L.highlightedInputRangeIx||0)+d;if(s>1||s<0){if(L.accessibility)return L.accessibility.keyboardNavigation.exiting=!0,L.accessibility.keyboardNavigation.tabindexContainer.focus(),L.accessibility.keyboardNavigation.move(d)}else if(M){let w=M[s?"maxDateBox":"minDateBox"],_=M[s?"maxInput":"minInput"];w&&_&&L.setFocusToElement(w,_)}return!0}onInputNavInit(d){let L=this,M=this.chart,s=d>0?0:1,w=M.rangeSelector,_=w&&w[s?"maxDateBox":"minDateBox"],o=w&&w.minInput,u=w&&w.maxInput;if(M.highlightedInputRangeIx=s,_&&o&&u){M.setFocusToElement(_,s?u:o),this.removeInputKeydownHandler&&this.removeInputKeydownHandler();let C=v=>{(v.which||v.keyCode)===this.keyCodes.tab&&L.onInputKbdMove(v.shiftKey?-1:1)&&(v.preventDefault(),v.stopPropagation())},E=H(o,"keydown",C),S=H(u,"keydown",C);this.removeInputKeydownHandler=()=>{E(),S()}}}onInputNavTerminate(){let d=this.chart.rangeSelector||{};d.maxInput&&d.hideInput("max"),d.minInput&&d.hideInput("min"),this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)}initDropdownNav(){let d=this.chart,L=d.rangeSelector,M=L&&L.dropdown;L&&M&&(d.setFocusToElement(L.buttonGroup,M),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=H(M,"keydown",s=>{let w=(s.which||s.keyCode)===this.keyCodes.tab,_=d.accessibility;w&&(s.preventDefault(),s.stopPropagation(),_&&(_.keyboardNavigation.tabindexContainer.focus(),_.keyboardNavigation.move(s.shiftKey?-1:1)))}))}getRangeSelectorButtonNavigation(){let d=this.chart,L=this.keyCodes,M=this;return new J(d,{keyCodeMap:[[[L.left,L.right,L.up,L.down],function(s){return M.onButtonNavKbdArrowKey(this,s)}],[[L.enter,L.space],function(){return M.onButtonNavKbdClick(this)}]],validate:function(){return!!(d.rangeSelector&&d.rangeSelector.buttons&&d.rangeSelector.buttons.length)},init:function(s){let w=d.rangeSelector;if(w&&w.hasVisibleDropdown)M.initDropdownNav();else if(w){let _=w.buttons.length-1;d.highlightRangeSelectorButton(s>0?0:_)}},terminate:function(){M.removeDropdownKeydownHandler&&(M.removeDropdownKeydownHandler(),delete M.removeDropdownKeydownHandler)}})}getRangeSelectorInputNavigation(){let d=this.chart,L=this;return new J(d,{keyCodeMap:[],validate:function(){return!!(d.rangeSelector&&d.rangeSelector.inputGroup&&d.rangeSelector.inputGroup.element.style.visibility!=="hidden"&&d.options.rangeSelector.inputEnabled!==!1&&d.rangeSelector.minInput&&d.rangeSelector.maxInput)},init:function(M){L.onInputNavInit(M)},terminate:function(){L.onInputNavTerminate()}})}getKeyboardNavigation(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]}destroy(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),this.announcer&&this.announcer.destroy()}}return function(U){function d(M){let s=this.rangeSelector&&this.rangeSelector.buttons||[],w=this.highlightedRangeSelectorItemIx,_=this.rangeSelector&&this.rangeSelector.selected;return w!==void 0&&s[w]&&w!==_&&s[w].setState(this.oldRangeSelectorItemState||0),this.highlightedRangeSelectorItemIx=M,!!s[M]&&(this.setFocusToElement(s[M].box,s[M].element),M!==_&&(this.oldRangeSelectorItemState=s[M].state,s[M].setState(1)),!0)}function L(){let M=this.chart.accessibility;if(M&&M.components.rangeSelector)return M.components.rangeSelector.onAfterBtnClick()}U.compose=function(M,s){let w=M.prototype;w.highlightRangeSelectorButton||(w.highlightRangeSelectorButton=d,H(s,"afterBtnClick",L))}}(B||(B={})),B}),R(y,"Accessibility/Components/SeriesComponent/ForcedMarkers.js",[y["Core/Globals.js"],y["Core/Utilities.js"]],function(j,et){var K;let{composed:J}=j,{addEvent:q,merge:Z,pushUnique:tt}=et;return function(H){function X(w){Z(!0,w,{marker:{enabled:!0,states:{normal:{opacity:0}}}})}function B(w){return w.marker.states&&w.marker.states.normal&&w.marker.states.normal.opacity}function U(w){return!!(w._hasPointMarkers&&w.points&&w.points.length)}function d(){this.chart.styledMode&&(this.markerGroup&&this.markerGroup[this.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden"),U(this)&&this.points.forEach(w=>{w.graphic&&(w.graphic[w.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),w.graphic[w.hasForcedA11yMarker===!1?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))}))}function L(w){this.resetA11yMarkerOptions=Z(w.options.marker||{},this.userOptions.marker||{})}function M(){let w=this.options;(function(_){let o=_.chart.options.accessibility.enabled,u=(_.options.accessibility&&_.options.accessibility.enabled)!==!1;return o&&u&&function(C){let E=C.chart.options.accessibility;return C.points.length-1;x.highlightedPoint===this&&f!==l&&!F&&l&&l.focus&&l.focus()})}onDrillupAll(){let g,x=this.lastDrilledDownPoint,p=this.chart,l=x&&M(p,x.seriesName);x&&l&&U(x.x)&&U(x.y)&&(g=L(l,x.x,x.y)),g=g||u(p),p.container&&p.container.focus(),g&&g.highlight&&g.highlight(!1)}getKeyboardNavigationHandler(){let g=this,x=this.keyCodes,p=this.chart,l=p.inverted;return new Z(p,{keyCodeMap:[[l?[x.up,x.down]:[x.left,x.right],function(f){return g.onKbdSideways(this,f)}],[l?[x.left,x.right]:[x.up,x.down],function(f){return g.onKbdVertical(this,f)}],[[x.enter,x.space],function(f,b){var T;let F=p.highlightedPoint;if(F){let{plotLeft:k,plotTop:Q}=this.chart,{plotX:st=0,plotY:nt=0}=F;b=ho(zr({},b),{chartX:k+st,chartY:Q+nt,point:F,target:((T=F.graphic)==null?void 0:T.element)||b.target}),d(F.series,"click",b),F.firePointEvent("click",b)}return this.response.success}],[[x.home],function(){return E(p),this.response.success}],[[x.end],function(){return C(p),this.response.success}],[[x.pageDown,x.pageUp],function(f){return p.highlightAdjacentSeries(f===x.pageDown),this.response.success}]],init:function(){return g.onHandlerInit(this)},validate:function(){return!!u(p)},terminate:function(){return g.onHandlerTerminate()}})}onKbdSideways(g,x){let p=this.keyCodes,l=x===p.right||x===p.down;return this.attemptHighlightAdjacentPoint(g,l)}onHandlerInit(g){let x=this.chart;return x.options.accessibility.keyboardNavigation.seriesNavigation.rememberPointFocus&&x.highlightedPoint?x.highlightedPoint.highlight():E(x),g.response.success}onKbdVertical(g,x){let p=this.chart,l=this.keyCodes,f=x===l.down||x===l.right,b=p.options.accessibility.keyboardNavigation.seriesNavigation;if(b.mode&&b.mode==="serialize")return this.attemptHighlightAdjacentPoint(g,f);let F=p.highlightedPoint&&p.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries";return p[F](f),g.response.success}onHandlerTerminate(){let g=this.chart,x=g.options.accessibility.keyboardNavigation;g.tooltip&&g.tooltip.hide(0);let p=g.highlightedPoint&&g.highlightedPoint.series;p&&p.onMouseOut&&p.onMouseOut(),g.highlightedPoint&&g.highlightedPoint.onMouseOut&&g.highlightedPoint.onMouseOut(),x.seriesNavigation.rememberPointFocus||delete g.highlightedPoint}attemptHighlightAdjacentPoint(g,x){let p=this.chart,l=p.options.accessibility.keyboardNavigation.wrapAround;return p.highlightAdjacentPoint(x)||l&&(x?E(p):C(p))?g.response.success:g.response[x?"next":"prev"]}onSeriesDestroy(g){let x=this.chart;x.highlightedPoint&&x.highlightedPoint.series===g&&(delete x.highlightedPoint,x.focusElement&&x.focusElement.removeFocusBorder())}destroy(){this.eventProvider.removeAddedEvents()}}return function(v){function g(b){let F,T,k=this.series,Q=this.highlightedPoint,st=Q&&w(Q)||0,nt=Q&&Q.series.points||[],dt=this.series&&this.series[this.series.length-1],mt=dt&&dt.points&&dt.points[dt.points.length-1];if(!k[0]||!k[0].points)return!1;if(Q){if(F=k[Q.series.index+(b?1:-1)],(T=nt[st+(b?1:-1)])||!F||(T=F.points[b?0:F.points.length-1]),!T)return!1}else T=b?k[0].points[0]:mt;return o(T)?(_(F=T.series)?this.highlightedPoint=b?F.points[F.points.length-1]:F.points[0]:this.highlightedPoint=T,this.highlightAdjacentPoint(b)):T.highlight()}function x(b){let F=this.highlightedPoint,T=1/0,k;return!!(U(F.plotX)&&U(F.plotY))&&(this.series.forEach(Q=>{_(Q)||Q.points.forEach(st=>{if(!U(st.plotY)||!U(st.plotX)||st===F)return;let nt=st.plotY-F.plotY,dt=Math.abs(st.plotX-F.plotX),mt=Math.abs(nt)*Math.abs(nt)+dt*dt*4;Q.yAxis&&Q.yAxis.reversed&&(nt*=-1),!(nt<=0&&b||nt>=0&&!b||mt<5||o(st))&&mt!(U(W.plotX)&&U(W.plotY));if(!P(dt)){for(;D--;)!P(Y=mt.points[D])&&(ot=(dt.plotX-Y.plotX)*(dt.plotX-Y.plotX)*4+(dt.plotY-Y.plotY)*(dt.plotY-Y.plotY)*1)=0;--Q)if(!o(T[Q]))return T[Q].highlight()}return!1}v.compose=function(b,F,T){let k=b.prototype,Q=F.prototype,st=T.prototype;k.highlightAdjacentPoint||(k.highlightAdjacentPoint=g,k.highlightAdjacentPointVertical=x,k.highlightAdjacentSeries=p,Q.highlight=l,st.keyboardMoveVertical=!0,["column","gantt","pie"].forEach(nt=>{X[nt]&&(X[nt].prototype.keyboardMoveVertical=!1)}),st.highlightNextValidPoint=f)}}(S||(S={})),S}),R(y,"Accessibility/Components/SeriesComponent/SeriesComponent.js",[y["Accessibility/AccessibilityComponent.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Accessibility/Components/SeriesComponent/ForcedMarkers.js"],y["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],y["Accessibility/Components/SeriesComponent/SeriesDescriber.js"],y["Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js"]],function(j,et,K,J,q,Z){let{hideSeriesFromAT:tt}=et,{describeSeries:H}=q;return class extends j{static compose(X,B,U){J.compose(U),K.compose(U),Z.compose(X,B,U)}init(){this.newDataAnnouncer=new J(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new Z(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()}hideTooltipFromATWhenShown(){let X=this;this.chart.tooltip&&this.addEvent(this.chart.tooltip.constructor,"refresh",function(){this.chart===X.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})}hideSeriesLabelsFromATWhenShown(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEach(function(X){X.labelBySeries&&X.labelBySeries.attr("aria-hidden",!0)})})}onChartRender(){this.chart.series.forEach(function(X){(X.options.accessibility&&X.options.accessibility.enabled)!==!1&&X.visible&&X.getPointsCollection().length!==0?H(X):tt(X)})}getKeyboardNavigation(){return this.keyboardNavigation.getKeyboardNavigationHandler()}destroy(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()}}}),R(y,"Accessibility/Components/ZoomComponent.js",[y["Accessibility/AccessibilityComponent.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Accessibility/Utils/HTMLUtilities.js"],y["Accessibility/KeyboardNavigationHandler.js"],y["Core/Utilities.js"]],function(j,et,K,J,q){let{unhideChartElementFromAT:Z}=et,{getFakeMouseEvent:tt}=K,{attr:H,pick:X}=q;return class extends j{constructor(){super(...arguments),this.focusedMapNavButtonIx=-1}init(){let B=this,U=this.chart;this.proxyProvider.addGroup("zoom","div"),["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach(d=>{B.addEvent(U,d,function(){B.updateProxyOverlays()})})}onChartUpdate(){let B=this.chart,U=this;B.mapNavigation&&B.mapNavigation.navButtons.forEach((d,L)=>{Z(B,d.element),U.setMapNavButtonAttrs(d.element,"accessibility.zoom.mapZoom"+(L?"Out":"In"))})}setMapNavButtonAttrs(B,U){let d=this.chart;H(B,{tabindex:-1,role:"button","aria-label":d.langFormat(U,{chart:d})})}onChartRender(){this.updateProxyOverlays()}updateProxyOverlays(){let B=this.chart;if(this.proxyProvider.clearGroup("zoom"),B.resetZoomButton&&this.createZoomProxyButton(B.resetZoomButton,"resetZoomProxyButton",B.langFormat("accessibility.zoom.resetZoomButton",{chart:B})),B.drillUpButton&&B.breadcrumbs&&B.breadcrumbs.list){let U=B.breadcrumbs.list[B.breadcrumbs.list.length-1];this.createZoomProxyButton(B.drillUpButton,"drillUpProxyButton",B.langFormat("accessibility.drillUpButton",{chart:B,buttonText:B.breadcrumbs.getButtonText(U)}))}}createZoomProxyButton(B,U,d){this[U]=this.proxyProvider.addProxyElement("zoom",{click:B},"button",{"aria-label":d,tabindex:-1})}getMapZoomNavigation(){let B=this.keyCodes,U=this.chart,d=this;return new J(U,{keyCodeMap:[[[B.up,B.down,B.left,B.right],function(L){return d.onMapKbdArrow(this,L)}],[[B.tab],function(L,M){return d.onMapKbdTab(this,M)}],[[B.space,B.enter],function(){return d.onMapKbdClick(this)}]],validate:function(){return!!(U.mapView&&U.mapNavigation&&U.mapNavigation.navButtons.length)},init:function(L){return d.onMapNavInit(L)}})}onMapKbdArrow(B,U){let d=this.chart,L=this.keyCodes,M=d.container,s=U===L.up||U===L.down,w=U===L.left||U===L.up?1:-1,_=(s?d.plotHeight:d.plotWidth)/10*w,o=10*Math.random(),u={x:M.offsetLeft+d.plotLeft+d.plotWidth/2+o,y:M.offsetTop+d.plotTop+d.plotHeight/2+o},C=s?{x:u.x,y:u.y+_}:{x:u.x+_,y:u.y};return[tt("mousedown",u),tt("mousemove",C),tt("mouseup",C)].forEach(E=>M.dispatchEvent(E)),B.response.success}onMapKbdTab(B,U){let d=this.chart,L=B.response,M=U.shiftKey,s=M&&!this.focusedMapNavButtonIx||!M&&this.focusedMapNavButtonIx;if(d.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0),s)return d.mapView&&d.mapView.zoomBy(),L[M?"prev":"next"];this.focusedMapNavButtonIx+=M?-1:1;let w=d.mapNavigation.navButtons[this.focusedMapNavButtonIx];return d.setFocusToElement(w.box,w.element),w.setState(2),L.success}onMapKbdClick(B){let U=this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element;return this.fakeClickEvent(U),B.response.success}onMapNavInit(B){let U=this.chart,d=U.mapNavigation.navButtons[0],L=U.mapNavigation.navButtons[1],M=B>0?d:L;U.setFocusToElement(M.box,M.element),M.setState(2),this.focusedMapNavButtonIx=B>0?0:1}simpleButtonNavigation(B,U,d){let L=this.keyCodes,M=this,s=this.chart;return new J(s,{keyCodeMap:[[[L.tab,L.up,L.down,L.left,L.right],function(w,_){let o=w===L.tab&&_.shiftKey||w===L.left||w===L.up;return this.response[o?"prev":"next"]}],[[L.space,L.enter],function(){return X(d(this,s),this.response.success)}]],validate:function(){return s[B]&&s[B].box&&M[U].innerElement},init:function(){s.setFocusToElement(s[B].box,M[U].innerElement)}})}getKeyboardNavigation(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",function(B,U){U.zoomOut()}),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",function(B,U){return U.drillUp(),B.response.prev}),this.getMapZoomNavigation()]}}}),R(y,"Accessibility/HighContrastMode.js",[y["Core/Globals.js"]],function(j){let{doc:et,isMS:K,win:J}=j;return{isHighContrastModeActive:function(){let q=/(Edg)/.test(J.navigator.userAgent);if(J.matchMedia&&q)return J.matchMedia("(-ms-high-contrast: active)").matches;if(K&&J.getComputedStyle){let Z=et.createElement("div");Z.style.backgroundImage="url(data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)",et.body.appendChild(Z);let tt=(Z.currentStyle||J.getComputedStyle(Z)).backgroundImage;return et.body.removeChild(Z),tt==="none"}return J.matchMedia&&J.matchMedia("(forced-colors: active)").matches},setHighContrastTheme:function(q){var H;q.highContrastModeActive=!0;let Z=q.options.accessibility.highContrastTheme;q.update(Z,!1);let tt=((H=Z.colors)==null?void 0:H.length)>1;q.series.forEach(function(X){let B=Z.plotOptions[X.type]||{},U=tt&&X.colorIndex!==void 0?Z.colors[X.colorIndex]:B.color||"window",d={color:B.color||"windowText",colors:tt?Z.colors:[B.color||"windowText"],borderColor:B.borderColor||"window",fillColor:U};X.update(d,!1),X.points&&X.points.forEach(function(L){L.options&&L.options.color&&L.update({color:B.color||"windowText",borderColor:B.borderColor||"window"},!1)})}),q.redraw()}}}),R(y,"Accessibility/HighContrastTheme.js",[],function(){return{chart:{backgroundColor:"window"},title:{style:{color:"windowText"}},subtitle:{style:{color:"windowText"}},colorAxis:{minColor:"windowText",maxColor:"windowText",stops:[],dataClasses:[]},colors:["windowText"],xAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},yAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},tooltip:{backgroundColor:"window",borderColor:"windowText",style:{color:"windowText"}},plotOptions:{series:{lineColor:"windowText",fillColor:"window",borderColor:"windowText",edgeColor:"windowText",borderWidth:1,dataLabels:{connectorColor:"windowText",color:"windowText",style:{color:"windowText",textOutline:"none"}},marker:{lineColor:"windowText",fillColor:"windowText"}},pie:{color:"window",colors:["window"],borderColor:"windowText",borderWidth:1},boxplot:{fillColor:"window"},candlestick:{lineColor:"windowText",fillColor:"window"},errorbar:{fillColor:"window"}},legend:{backgroundColor:"window",itemStyle:{color:"windowText"},itemHoverStyle:{color:"windowText"},itemHiddenStyle:{color:"#555"},title:{style:{color:"windowText"}}},credits:{style:{color:"windowText"}},drilldown:{activeAxisLabelStyle:{color:"windowText"},activeDataLabelStyle:{color:"windowText"}},navigation:{buttonOptions:{symbolStroke:"windowText",theme:{fill:"window"}}},rangeSelector:{buttonTheme:{fill:"window",stroke:"windowText",style:{color:"windowText"},states:{hover:{fill:"window",stroke:"windowText",style:{color:"windowText"}},select:{fill:"#444",stroke:"windowText",style:{color:"windowText"}}}},inputBoxBorderColor:"windowText",inputStyle:{backgroundColor:"window",color:"windowText"},labelStyle:{color:"windowText"}},navigator:{handles:{backgroundColor:"window",borderColor:"windowText"},outlineColor:"windowText",maskFill:"transparent",series:{color:"windowText",lineColor:"windowText"},xAxis:{gridLineColor:"windowText"}},scrollbar:{barBackgroundColor:"#444",barBorderColor:"windowText",buttonArrowColor:"windowText",buttonBackgroundColor:"window",buttonBorderColor:"windowText",rifleColor:"windowText",trackBackgroundColor:"window",trackBorderColor:"windowText"}}}),R(y,"Accessibility/Options/A11yDefaults.js",[],function(){return{accessibility:{enabled:!0,screenReaderSection:{beforeChartFormat:"<{headingTagName}>{chartTitle}
    {typeDescription}
    {chartSubtitle}
    {chartLongdesc}
    {playAsSoundButton}
    {viewTableButton}
    {xAxisDescription}
    {yAxisDescription}
    {annotationsTitle}{annotationsList}
    ",afterChartFormat:"{endOfChartMarker}",axisRangeDateFormat:"%Y-%m-%d %H:%M:%S"},series:{descriptionFormat:"{seriesDescription}{authorDescription}{axisDescription}",describeSingleSeries:!1,pointDescriptionEnabledThreshold:200},point:{valueDescriptionFormat:"{xDescription}{separator}{value}.",describeNull:!0},landmarkVerbosity:"all",linkedDescription:'*[data-highcharts-chart="{index}"] + .highcharts-description',highContrastMode:"auto",keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:"#334eff",lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","navigator","legend","chartMenu"],wrapAround:!0,seriesNavigation:{skipNullPoints:!0,pointNavigationEnabledThreshold:!1,rememberPointFocus:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5e3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}},navigator:{accessibility:{enabled:!0}}}}),R(y,"Accessibility/Options/LangDefaults.js",[],function(){return{accessibility:{defaultChartTitle:"Chart",chartContainerLabel:"{title}. Highcharts interactive chart.",svgContainerLabel:"Interactive chart",drillUpButton:"{buttonText}",credits:"Chart credits: {creditsStr}",thousandsSep:",",svgContainerTitle:"",graphicContainerLabel:"",screenReaderSection:{beforeRegionLabel:"",afterRegionLabel:"",annotations:{heading:"Chart annotations summary",descriptionSinglePoint:"{annotationText}. Related to {annotationPoint}",descriptionMultiplePoints:"{annotationText}. Related to {annotationPoint}{#each additionalAnnotationPoints}, also related to {this}{/each}",descriptionNoPoints:"{annotationText}"},endOfChartMarker:"End of interactive chart."},sonification:{playAsSoundButtonText:"Play as sound, {chartTitle}",playAsSoundClickAnnouncement:"Play"},legend:{legendLabelNoTitle:"Toggle series visibility, {chartTitle}",legendLabel:"Chart legend: {legendTitle}",legendItem:"Show {itemName}"},zoom:{mapZoomIn:"Zoom chart",mapZoomOut:"Zoom out chart",resetZoomButton:"Reset zoom"},rangeSelector:{dropdownLabel:"{rangeTitle}",minInputLabel:"Select start date.",maxInputLabel:"Select end date.",clickButtonAnnouncement:"Viewing {axisRangeDescription}"},navigator:{handleLabel:"{#eq handleIx 0}Start, percent{else}End, percent{/eq}",groupLabel:"Axis zoom",changeAnnouncement:"{axisRangeDescription}"},table:{viewAsDataTableButtonText:"View as data table, {chartTitle}",tableSummary:"Table representation of chart."},announceNewData:{newDataAnnounce:"Updated data for chart {chartTitle}",newSeriesAnnounceSingle:"New data series: {seriesDesc}",newPointAnnounceSingle:"New data point: {pointDesc}",newSeriesAnnounceMultiple:"New data series in chart {chartTitle}: {seriesDesc}",newPointAnnounceMultiple:"New data point in chart {chartTitle}: {pointDesc}"},seriesTypeDescriptions:{boxplot:"Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile, and maximum.",arearange:"Arearange charts are line charts displaying a range between a lower and higher value for each point.",areasplinerange:"These charts are line charts displaying a range between a lower and higher value for each point.",bubble:"Bubble charts are scatter charts where each data point also has a size value.",columnrange:"Columnrange charts are column charts displaying a range between a lower and higher value for each point.",errorbar:"Errorbar series are used to display the variability of the data.",funnel:"Funnel charts are used to display reduction of data in stages.",pyramid:"Pyramid charts consist of a single pyramid with item heights corresponding to each point value.",waterfall:"A waterfall chart is a column chart where each column contributes towards a total end value."},chartTypes:{emptyChart:"Empty chart",mapTypeDescription:"Map of {mapTitle} with {numSeries} data series.",unknownMap:"Map of unspecified region with {numSeries} data series.",combinationChart:"Combination chart with {numSeries} data series.",defaultSingle:"Chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",defaultMultiple:"Chart with {numSeries} data series.",splineSingle:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",splineMultiple:"Line chart with {numSeries} lines.",lineSingle:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",lineMultiple:"Line chart with {numSeries} lines.",columnSingle:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}.",columnMultiple:"Bar chart with {numSeries} data series.",barSingle:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}.",barMultiple:"Bar chart with {numSeries} data series.",pieSingle:"Pie chart with {numPoints} {#eq numPoints 1}slice{else}slices{/eq}.",pieMultiple:"Pie chart with {numSeries} pies.",scatterSingle:"Scatter chart with {numPoints} {#eq numPoints 1}point{else}points{/eq}.",scatterMultiple:"Scatter chart with {numSeries} data series.",boxplotSingle:"Boxplot with {numPoints} {#eq numPoints 1}box{else}boxes{/eq}.",boxplotMultiple:"Boxplot with {numSeries} data series.",bubbleSingle:"Bubble chart with {numPoints} {#eq numPoints 1}bubbles{else}bubble{/eq}.",bubbleMultiple:"Bubble chart with {numSeries} data series."},axis:{xAxisDescriptionSingular:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}",xAxisDescriptionPlural:"The chart has {numAxes} X axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}.",yAxisDescriptionSingular:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}",yAxisDescriptionPlural:"The chart has {numAxes} Y axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}.",timeRangeDays:"Data range: {range} days.",timeRangeHours:"Data range: {range} hours.",timeRangeMinutes:"Data range: {range} minutes.",timeRangeSeconds:"Data range: {range} seconds.",rangeFromTo:"Data ranges from {rangeFrom} to {rangeTo}.",rangeCategories:"Data range: {numCategories} categories."},exporting:{chartMenuLabel:"Chart menu",menuButtonLabel:"View chart menu, {chartTitle}"},series:{summary:{default:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",defaultCombination:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",line:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",lineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",spline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",splineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",column:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",columnCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",bar:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",barCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",pie:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}.",pieCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}.",scatter:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}.",scatterCombination:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}.",boxplot:"{series.name}, boxplot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}box{else}boxes{/eq}.",boxplotCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Boxplot with {series.points.length} {#eq series.points.length 1}box{else}boxes{/eq}.",bubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",bubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",map:"{series.name}, map {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}area{else}areas{/eq}.",mapCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Map with {series.points.length} {#eq series.points.length 1}area{else}areas{/eq}.",mapline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",maplineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",mapbubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",mapbubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}."},description:"{description}",xAxisDescription:"X axis, {name}",yAxisDescription:"Y axis, {name}",nullPointValue:"No value",pointAnnotationsDescription:"{#each annotations}Annotation: {this}{/each}"}}}}),R(y,"Accessibility/Options/DeprecatedOptions.js",[y["Core/Utilities.js"]],function(j){let{error:et,pick:K}=j;function J(Z,tt,H){let X=Z,B,U=0;for(;Uk!=="series")):Object.keys(this.components):[]}update(){let k=this.components,Q=this.chart,st=Q.options.accessibility;l(Q,"beforeA11yUpdate"),Q.types=this.getChartTypes();let nt=st.keyboardNavigation.order;this.proxyProvider.updateGroupOrder(nt),this.getComponentOrder().forEach(function(dt){k[dt].onChartUpdate(),l(Q,"afterA11yComponentUpdate",{name:dt,component:k[dt]})}),this.keyboardNavigation.update(nt),!Q.highContrastModeActive&&st.highContrastMode!==!1&&(o.isHighContrastModeActive()||st.highContrastMode===!0)&&o.setHighContrastTheme(Q),l(Q,"afterA11yUpdate",{accessibility:this})}destroy(){let k=this.chart||{},Q=this.components;Object.keys(Q).forEach(function(st){Q[st].destroy(),Q[st].destroyBase()}),this.proxyProvider&&this.proxyProvider.destroy(),k.announcerContainer&&b(k.announcerContainer),this.keyboardNavigation&&this.keyboardNavigation.destroy(),k.renderTo&&k.renderTo.setAttribute("aria-hidden",!0),k.focusElement&&k.focusElement.removeFocusBorder()}getChartTypes(){let k={};return this.chart.series.forEach(function(Q){k[Q.type]=1}),Object.keys(k)}}return function(T){function k(){this.accessibility&&this.accessibility.destroy()}function Q(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());let mt=this.accessibility;mt&&!mt.zombie&&(mt.proxyProvider.updateProxyElementPositions(),mt.getComponentOrder().forEach(function(Et){mt.components[Et].onChartRender()}))}function st(mt){let Et=mt.options.accessibility;Et&&(Et.customComponents&&(this.options.accessibility.customComponents=Et.customComponents,delete Et.customComponents),f(!0,this.options.accessibility,Et),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility)),this.a11yDirty=!0}function nt(){let mt=this.accessibility,Et=this.options.accessibility,Mt=this.renderer.boxWrapper.element,I=this.title;if(Et&&Et.enabled)mt&&!mt.zombie?mt.update():(this.accessibility=mt=new T(this),mt&&!mt.zombie&&mt.update(),Mt.getAttribute("role")==="img"&&Mt.removeAttribute("role"));else if(mt)mt.destroy&&mt.destroy(),delete this.accessibility;else{this.renderTo.setAttribute("role","img"),this.renderTo.setAttribute("aria-hidden",!1),this.renderTo.setAttribute("aria-label",(I&&I.element.textContent||"").replace(/{x(mt,D,function(){this.a11yDirty=!0})}),["afterApplyDrilldown","drillupall"].forEach(D=>{x(mt,D,function(){let P=this.accessibility;P&&!P.zombie&&P.update()})}),x(Mt,"update",dt),["update","updatedData","remove"].forEach(D=>{x(I,D,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})}))}}(F||(F={})),f(!0,v,C,{accessibility:{highContrastTheme:u},lang:E}),F}),R(y,"masters/modules/accessibility.src.js",[y["Core/Globals.js"],y["Accessibility/Accessibility.js"],y["Accessibility/AccessibilityComponent.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Accessibility/Utils/HTMLUtilities.js"],y["Accessibility/KeyboardNavigationHandler.js"],y["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(j,et,K,J,q,Z,tt){return j.i18nFormat=et.i18nFormat,j.A11yChartUtilities=J,j.A11yHTMLUtilities=q,j.AccessibilityComponent=K,j.KeyboardNavigationHandler=Z,j.SeriesAccessibilityDescriber=tt,et.compose(j.Chart,j.Legend,j.Point,j.Series,j.SVGElement,j.RangeSelector),j})})},5705:We=>{"use strict";var ue=function(ht,z,_t,m,y,R,j,et){if(!ht){var K;if(z===void 0)K=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var J=[_t,m,y,R,j,et],q=0;K=new Error(z.replace(/%s/g,function(){return J[q++]})),K.name="Invariant Violation"}throw K.framesToPop=1,K}};We.exports=ue},7967:(We,ue,ht)=>{var z="Expected a function",_t=NaN,m="[object Symbol]",y=/^\s+|\s+$/g,R=/^[-+]0x[0-9a-f]+$/i,j=/^0b[01]+$/i,et=/^0o[0-7]+$/i,K=parseInt,J=typeof ht.g=="object"&&ht.g&&ht.g.Object===Object&&ht.g,q=typeof self=="object"&&self&&self.Object===Object&&self,Z=J||q||Function("return this")(),tt=Object.prototype,H=tt.toString,X=Math.max,B=Math.min,U=function(){return Z.Date.now()};function d(_,o,u){var C,E,S,v,g,x,p=0,l=!1,f=!1,b=!0;if(typeof _!="function")throw new TypeError(z);o=w(o)||0,L(u)&&(l=!!u.leading,f="maxWait"in u,S=f?X(w(u.maxWait)||0,o):S,b="trailing"in u?!!u.trailing:b);function F(Mt){var I=C,Y=E;return C=E=void 0,p=Mt,v=_.apply(Y,I),v}function T(Mt){return p=Mt,g=setTimeout(st,o),l?F(Mt):v}function k(Mt){var I=Mt-x,Y=Mt-p,rt=o-I;return f?B(rt,S-Y):rt}function Q(Mt){var I=Mt-x,Y=Mt-p;return x===void 0||I>=o||I<0||f&&Y>=S}function st(){var Mt=U();if(Q(Mt))return nt(Mt);g=setTimeout(st,k(Mt))}function nt(Mt){return g=void 0,b&&C?F(Mt):(C=E=void 0,v)}function dt(){g!==void 0&&clearTimeout(g),p=0,C=x=E=g=void 0}function mt(){return g===void 0?v:nt(U())}function Et(){var Mt=U(),I=Q(Mt);if(C=arguments,E=this,x=Mt,I){if(g===void 0)return T(x);if(f)return g=setTimeout(st,o),F(x)}return g===void 0&&(g=setTimeout(st,o)),v}return Et.cancel=dt,Et.flush=mt,Et}function L(_){var o=typeof _;return!!_&&(o=="object"||o=="function")}function M(_){return!!_&&typeof _=="object"}function s(_){return typeof _=="symbol"||M(_)&&H.call(_)==m}function w(_){if(typeof _=="number")return _;if(s(_))return _t;if(L(_)){var o=typeof _.valueOf=="function"?_.valueOf():_;_=L(o)?o+"":o}if(typeof _!="string")return _===0?_:+_;_=_.replace(y,"");var u=j.test(_);return u||et.test(_)?K(_.slice(2),u?2:8):R.test(_)?_t:+_}We.exports=d},7230:(We,ue,ht)=>{var z=ht(3984),_t=ht(9107),m=z(_t,"DataView");We.exports=m},3435:(We,ue,ht)=>{var z=ht(6890),_t=ht(9484),m=ht(7215),y=ht(7811),R=ht(747);function j(et){var K=-1,J=et==null?0:et.length;for(this.clear();++K{var z=ht(4412),_t=ht(8522),m=ht(469),y=ht(1161),R=ht(1441);function j(et){var K=-1,J=et==null?0:et.length;for(this.clear();++K{var z=ht(3984),_t=ht(9107),m=z(_t,"Map");We.exports=m},3287:(We,ue,ht)=>{var z=ht(8206),_t=ht(9768),m=ht(6827),y=ht(663),R=ht(5135);function j(et){var K=-1,J=et==null?0:et.length;for(this.clear();++K{var z=ht(3984),_t=ht(9107),m=z(_t,"Promise");We.exports=m},5963:(We,ue,ht)=>{var z=ht(3984),_t=ht(9107),m=z(_t,"Set");We.exports=m},6435:(We,ue,ht)=>{var z=ht(5217),_t=ht(8658),m=ht(3844),y=ht(6503),R=ht(1563),j=ht(259);function et(K){var J=this.__data__=new z(K);this.size=J.size}et.prototype.clear=_t,et.prototype.delete=m,et.prototype.get=y,et.prototype.has=R,et.prototype.set=j,We.exports=et},6711:(We,ue,ht)=>{var z=ht(9107),_t=z.Symbol;We.exports=_t},9282:(We,ue,ht)=>{var z=ht(9107),_t=z.Uint8Array;We.exports=_t},2850:(We,ue,ht)=>{var z=ht(3984),_t=ht(9107),m=z(_t,"WeakMap");We.exports=m},3643:We=>{function ue(ht,z){for(var _t=-1,m=ht==null?0:ht.length;++_t{function ue(ht,z){for(var _t=-1,m=ht==null?0:ht.length,y=0,R=[];++_t{var z=ht(5410),_t=ht(2382),m=ht(2003),y=ht(1262),R=ht(2615),j=ht(9221),et=Object.prototype,K=et.hasOwnProperty;function J(q,Z){var tt=m(q),H=!tt&&_t(q),X=!tt&&!H&&y(q),B=!tt&&!H&&!X&&j(q),U=tt||H||X||B,d=U?z(q.length,String):[],L=d.length;for(var M in q)(Z||K.call(q,M))&&!(U&&(M=="length"||X&&(M=="offset"||M=="parent")||B&&(M=="buffer"||M=="byteLength"||M=="byteOffset")||R(M,L)))&&d.push(M);return d}We.exports=J},562:We=>{function ue(ht,z){for(var _t=-1,m=z.length,y=ht.length;++_t{var z=ht(9330),_t=ht(8330),m=Object.prototype,y=m.hasOwnProperty;function R(j,et,K){var J=j[et];(!(y.call(j,et)&&_t(J,K))||K===void 0&&!(et in j))&&z(j,et,K)}We.exports=R},4767:(We,ue,ht)=>{var z=ht(8330);function _t(m,y){for(var R=m.length;R--;)if(z(m[R][0],y))return R;return-1}We.exports=_t},383:(We,ue,ht)=>{var z=ht(8113),_t=ht(5304);function m(y,R){return y&&z(R,_t(R),y)}We.exports=m},7844:(We,ue,ht)=>{var z=ht(8113),_t=ht(7495);function m(y,R){return y&&z(R,_t(R),y)}We.exports=m},9330:(We,ue,ht)=>{var z=ht(5390);function _t(m,y,R){y=="__proto__"&&z?z(m,y,{configurable:!0,enumerable:!0,value:R,writable:!0}):m[y]=R}We.exports=_t},1937:(We,ue,ht)=>{var z=ht(6435),_t=ht(3643),m=ht(6645),y=ht(383),R=ht(7844),j=ht(2932),et=ht(9061),K=ht(709),J=ht(8038),q=ht(5760),Z=ht(3183),tt=ht(695),H=ht(9303),X=ht(5385),B=ht(3991),U=ht(2003),d=ht(1262),L=ht(5652),M=ht(5603),s=ht(9318),w=ht(5304),_=ht(7495),o=1,u=2,C=4,E="[object Arguments]",S="[object Array]",v="[object Boolean]",g="[object Date]",x="[object Error]",p="[object Function]",l="[object GeneratorFunction]",f="[object Map]",b="[object Number]",F="[object Object]",T="[object RegExp]",k="[object Set]",Q="[object String]",st="[object Symbol]",nt="[object WeakMap]",dt="[object ArrayBuffer]",mt="[object DataView]",Et="[object Float32Array]",Mt="[object Float64Array]",I="[object Int8Array]",Y="[object Int16Array]",rt="[object Int32Array]",ot="[object Uint8Array]",D="[object Uint8ClampedArray]",P="[object Uint16Array]",W="[object Uint32Array]",lt={};lt[E]=lt[S]=lt[dt]=lt[mt]=lt[v]=lt[g]=lt[Et]=lt[Mt]=lt[I]=lt[Y]=lt[rt]=lt[f]=lt[b]=lt[F]=lt[T]=lt[k]=lt[Q]=lt[st]=lt[ot]=lt[D]=lt[P]=lt[W]=!0,lt[x]=lt[p]=lt[nt]=!1;function it(vt,pt,xt,Ct,Tt,Nt){var gt,wt=pt&o,Rt=pt&u,jt=pt&C;if(xt&&(gt=Tt?xt(vt,Ct,Tt,Nt):xt(vt)),gt!==void 0)return gt;if(!M(vt))return vt;var Zt=U(vt);if(Zt){if(gt=H(vt),!wt)return et(vt,gt)}else{var ne=tt(vt),Wt=ne==p||ne==l;if(d(vt))return j(vt,wt);if(ne==F||ne==E||Wt&&!Tt){if(gt=Rt||Wt?{}:B(vt),!wt)return Rt?J(vt,R(gt,vt)):K(vt,y(gt,vt))}else{if(!lt[ne])return Tt?vt:{};gt=X(vt,ne,wt)}}Nt||(Nt=new z);var le=Nt.get(vt);if(le)return le;Nt.set(vt,gt),s(vt)?vt.forEach(function(be){gt.add(it(be,pt,xt,be,vt,Nt))}):L(vt)&&vt.forEach(function(be,Ye){gt.set(Ye,it(be,pt,xt,Ye,vt,Nt))});var de=jt?Rt?Z:q:Rt?_:w,xe=Zt?void 0:de(vt);return _t(xe||vt,function(be,Ye){xe&&(Ye=be,be=vt[Ye]),m(gt,Ye,it(be,pt,xt,Ye,vt,Nt))}),gt}We.exports=it},3962:(We,ue,ht)=>{var z=ht(5603),_t=Object.create,m=function(){function y(){}return function(R){if(!z(R))return{};if(_t)return _t(R);y.prototype=R;var j=new y;return y.prototype=void 0,j}}();We.exports=m},8821:(We,ue,ht)=>{var z=ht(562),_t=ht(2003);function m(y,R,j){var et=R(y);return _t(y)?et:z(et,j(y))}We.exports=m},6522:(We,ue,ht)=>{var z=ht(6711),_t=ht(905),m=ht(2588),y="[object Null]",R="[object Undefined]",j=z?z.toStringTag:void 0;function et(K){return K==null?K===void 0?R:y:j&&j in Object(K)?_t(K):m(K)}We.exports=et},2744:(We,ue,ht)=>{var z=ht(6522),_t=ht(2620),m="[object Arguments]";function y(R){return _t(R)&&z(R)==m}We.exports=y},8742:(We,ue,ht)=>{var z=ht(695),_t=ht(2620),m="[object Map]";function y(R){return _t(R)&&z(R)==m}We.exports=y},2249:(We,ue,ht)=>{var z=ht(8148),_t=ht(9017),m=ht(5603),y=ht(1543),R=/[\\^$.*+?()[\]{}|]/g,j=/^\[object .+?Constructor\]$/,et=Function.prototype,K=Object.prototype,J=et.toString,q=K.hasOwnProperty,Z=RegExp("^"+J.call(q).replace(R,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tt(H){if(!m(H)||_t(H))return!1;var X=z(H)?Z:j;return X.test(y(H))}We.exports=tt},5476:(We,ue,ht)=>{var z=ht(695),_t=ht(2620),m="[object Set]";function y(R){return _t(R)&&z(R)==m}We.exports=y},5387:(We,ue,ht)=>{var z=ht(6522),_t=ht(7164),m=ht(2620),y="[object Arguments]",R="[object Array]",j="[object Boolean]",et="[object Date]",K="[object Error]",J="[object Function]",q="[object Map]",Z="[object Number]",tt="[object Object]",H="[object RegExp]",X="[object Set]",B="[object String]",U="[object WeakMap]",d="[object ArrayBuffer]",L="[object DataView]",M="[object Float32Array]",s="[object Float64Array]",w="[object Int8Array]",_="[object Int16Array]",o="[object Int32Array]",u="[object Uint8Array]",C="[object Uint8ClampedArray]",E="[object Uint16Array]",S="[object Uint32Array]",v={};v[M]=v[s]=v[w]=v[_]=v[o]=v[u]=v[C]=v[E]=v[S]=!0,v[y]=v[R]=v[d]=v[j]=v[L]=v[et]=v[K]=v[J]=v[q]=v[Z]=v[tt]=v[H]=v[X]=v[B]=v[U]=!1;function g(x){return m(x)&&_t(x.length)&&!!v[z(x)]}We.exports=g},6794:(We,ue,ht)=>{var z=ht(6165),_t=ht(6132),m=Object.prototype,y=m.hasOwnProperty;function R(j){if(!z(j))return _t(j);var et=[];for(var K in Object(j))y.call(j,K)&&K!="constructor"&&et.push(K);return et}We.exports=R},8157:(We,ue,ht)=>{var z=ht(5603),_t=ht(6165),m=ht(4555),y=Object.prototype,R=y.hasOwnProperty;function j(et){if(!z(et))return m(et);var K=_t(et),J=[];for(var q in et)q=="constructor"&&(K||!R.call(et,q))||J.push(q);return J}We.exports=j},5410:We=>{function ue(ht,z){for(var _t=-1,m=Array(ht);++_t{function ue(ht){return function(z){return ht(z)}}We.exports=ue},1987:(We,ue,ht)=>{var z=ht(9282);function _t(m){var y=new m.constructor(m.byteLength);return new z(y).set(new z(m)),y}We.exports=_t},2932:(We,ue,ht)=>{We=ht.nmd(We);var z=ht(9107),_t=ue&&!ue.nodeType&&ue,m=_t&&!0&&We&&!We.nodeType&&We,y=m&&m.exports===_t,R=y?z.Buffer:void 0,j=R?R.allocUnsafe:void 0;function et(K,J){if(J)return K.slice();var q=K.length,Z=j?j(q):new K.constructor(q);return K.copy(Z),Z}We.exports=et},3931:(We,ue,ht)=>{var z=ht(1987);function _t(m,y){var R=y?z(m.buffer):m.buffer;return new m.constructor(R,m.byteOffset,m.byteLength)}We.exports=_t},1259:We=>{var ue=/\w*$/;function ht(z){var _t=new z.constructor(z.source,ue.exec(z));return _t.lastIndex=z.lastIndex,_t}We.exports=ht},6878:(We,ue,ht)=>{var z=ht(6711),_t=z?z.prototype:void 0,m=_t?_t.valueOf:void 0;function y(R){return m?Object(m.call(R)):{}}We.exports=y},3859:(We,ue,ht)=>{var z=ht(1987);function _t(m,y){var R=y?z(m.buffer):m.buffer;return new m.constructor(R,m.byteOffset,m.length)}We.exports=_t},9061:We=>{function ue(ht,z){var _t=-1,m=ht.length;for(z||(z=Array(m));++_t{var z=ht(6645),_t=ht(9330);function m(y,R,j,et){var K=!j;j||(j={});for(var J=-1,q=R.length;++J{var z=ht(8113),_t=ht(6806);function m(y,R){return z(y,_t(y),R)}We.exports=m},8038:(We,ue,ht)=>{var z=ht(8113),_t=ht(6337);function m(y,R){return z(y,_t(y),R)}We.exports=m},3887:(We,ue,ht)=>{var z=ht(9107),_t=z["__core-js_shared__"];We.exports=_t},5390:(We,ue,ht)=>{var z=ht(3984),_t=function(){try{var m=z(Object,"defineProperty");return m({},"",{}),m}catch(y){}}();We.exports=_t},2718:(We,ue,ht)=>{var z=typeof ht.g=="object"&&ht.g&&ht.g.Object===Object&&ht.g;We.exports=z},5760:(We,ue,ht)=>{var z=ht(8821),_t=ht(6806),m=ht(5304);function y(R){return z(R,m,_t)}We.exports=y},3183:(We,ue,ht)=>{var z=ht(8821),_t=ht(6337),m=ht(7495);function y(R){return z(R,m,_t)}We.exports=y},6929:(We,ue,ht)=>{var z=ht(9732);function _t(m,y){var R=m.__data__;return z(y)?R[typeof y=="string"?"string":"hash"]:R.map}We.exports=_t},3984:(We,ue,ht)=>{var z=ht(2249),_t=ht(1074);function m(y,R){var j=_t(y,R);return z(j)?j:void 0}We.exports=m},5425:(We,ue,ht)=>{var z=ht(889),_t=z(Object.getPrototypeOf,Object);We.exports=_t},905:(We,ue,ht)=>{var z=ht(6711),_t=Object.prototype,m=_t.hasOwnProperty,y=_t.toString,R=z?z.toStringTag:void 0;function j(et){var K=m.call(et,R),J=et[R];try{et[R]=void 0;var q=!0}catch(tt){}var Z=y.call(et);return q&&(K?et[R]=J:delete et[R]),Z}We.exports=j},6806:(We,ue,ht)=>{var z=ht(3928),_t=ht(119),m=Object.prototype,y=m.propertyIsEnumerable,R=Object.getOwnPropertySymbols,j=R?function(et){return et==null?[]:(et=Object(et),z(R(et),function(K){return y.call(et,K)}))}:_t;We.exports=j},6337:(We,ue,ht)=>{var z=ht(562),_t=ht(5425),m=ht(6806),y=ht(119),R=Object.getOwnPropertySymbols,j=R?function(et){for(var K=[];et;)z(K,m(et)),et=_t(et);return K}:y;We.exports=j},695:(We,ue,ht)=>{var z=ht(7230),_t=ht(5661),m=ht(9102),y=ht(5963),R=ht(2850),j=ht(6522),et=ht(1543),K="[object Map]",J="[object Object]",q="[object Promise]",Z="[object Set]",tt="[object WeakMap]",H="[object DataView]",X=et(z),B=et(_t),U=et(m),d=et(y),L=et(R),M=j;(z&&M(new z(new ArrayBuffer(1)))!=H||_t&&M(new _t)!=K||m&&M(m.resolve())!=q||y&&M(new y)!=Z||R&&M(new R)!=tt)&&(M=function(s){var w=j(s),_=w==J?s.constructor:void 0,o=_?et(_):"";if(o)switch(o){case X:return H;case B:return K;case U:return q;case d:return Z;case L:return tt}return w}),We.exports=M},1074:We=>{function ue(ht,z){return ht==null?void 0:ht[z]}We.exports=ue},6890:(We,ue,ht)=>{var z=ht(6060);function _t(){this.__data__=z?z(null):{},this.size=0}We.exports=_t},9484:We=>{function ue(ht){var z=this.has(ht)&&delete this.__data__[ht];return this.size-=z?1:0,z}We.exports=ue},7215:(We,ue,ht)=>{var z=ht(6060),_t="__lodash_hash_undefined__",m=Object.prototype,y=m.hasOwnProperty;function R(j){var et=this.__data__;if(z){var K=et[j];return K===_t?void 0:K}return y.call(et,j)?et[j]:void 0}We.exports=R},7811:(We,ue,ht)=>{var z=ht(6060),_t=Object.prototype,m=_t.hasOwnProperty;function y(R){var j=this.__data__;return z?j[R]!==void 0:m.call(j,R)}We.exports=y},747:(We,ue,ht)=>{var z=ht(6060),_t="__lodash_hash_undefined__";function m(y,R){var j=this.__data__;return this.size+=this.has(y)?0:1,j[y]=z&&R===void 0?_t:R,this}We.exports=m},9303:We=>{var ue=Object.prototype,ht=ue.hasOwnProperty;function z(_t){var m=_t.length,y=new _t.constructor(m);return m&&typeof _t[0]=="string"&&ht.call(_t,"index")&&(y.index=_t.index,y.input=_t.input),y}We.exports=z},5385:(We,ue,ht)=>{var z=ht(1987),_t=ht(3931),m=ht(1259),y=ht(6878),R=ht(3859),j="[object Boolean]",et="[object Date]",K="[object Map]",J="[object Number]",q="[object RegExp]",Z="[object Set]",tt="[object String]",H="[object Symbol]",X="[object ArrayBuffer]",B="[object DataView]",U="[object Float32Array]",d="[object Float64Array]",L="[object Int8Array]",M="[object Int16Array]",s="[object Int32Array]",w="[object Uint8Array]",_="[object Uint8ClampedArray]",o="[object Uint16Array]",u="[object Uint32Array]";function C(E,S,v){var g=E.constructor;switch(S){case X:return z(E);case j:case et:return new g(+E);case B:return _t(E,v);case U:case d:case L:case M:case s:case w:case _:case o:case u:return R(E,v);case K:return new g;case J:case tt:return new g(E);case q:return m(E);case Z:return new g;case H:return y(E)}}We.exports=C},3991:(We,ue,ht)=>{var z=ht(3962),_t=ht(5425),m=ht(6165);function y(R){return typeof R.constructor=="function"&&!m(R)?z(_t(R)):{}}We.exports=y},2615:We=>{var ue=9007199254740991,ht=/^(?:0|[1-9]\d*)$/;function z(_t,m){var y=typeof _t;return m=m==null?ue:m,!!m&&(y=="number"||y!="symbol"&&ht.test(_t))&&_t>-1&&_t%1==0&&_t{function ue(ht){var z=typeof ht;return z=="string"||z=="number"||z=="symbol"||z=="boolean"?ht!=="__proto__":ht===null}We.exports=ue},9017:(We,ue,ht)=>{var z=ht(3887),_t=function(){var y=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}();function m(y){return!!_t&&_t in y}We.exports=m},6165:We=>{var ue=Object.prototype;function ht(z){var _t=z&&z.constructor,m=typeof _t=="function"&&_t.prototype||ue;return z===m}We.exports=ht},4412:We=>{function ue(){this.__data__=[],this.size=0}We.exports=ue},8522:(We,ue,ht)=>{var z=ht(4767),_t=Array.prototype,m=_t.splice;function y(R){var j=this.__data__,et=z(j,R);if(et<0)return!1;var K=j.length-1;return et==K?j.pop():m.call(j,et,1),--this.size,!0}We.exports=y},469:(We,ue,ht)=>{var z=ht(4767);function _t(m){var y=this.__data__,R=z(y,m);return R<0?void 0:y[R][1]}We.exports=_t},1161:(We,ue,ht)=>{var z=ht(4767);function _t(m){return z(this.__data__,m)>-1}We.exports=_t},1441:(We,ue,ht)=>{var z=ht(4767);function _t(m,y){var R=this.__data__,j=z(R,m);return j<0?(++this.size,R.push([m,y])):R[j][1]=y,this}We.exports=_t},8206:(We,ue,ht)=>{var z=ht(3435),_t=ht(5217),m=ht(5661);function y(){this.size=0,this.__data__={hash:new z,map:new(m||_t),string:new z}}We.exports=y},9768:(We,ue,ht)=>{var z=ht(6929);function _t(m){var y=z(this,m).delete(m);return this.size-=y?1:0,y}We.exports=_t},6827:(We,ue,ht)=>{var z=ht(6929);function _t(m){return z(this,m).get(m)}We.exports=_t},663:(We,ue,ht)=>{var z=ht(6929);function _t(m){return z(this,m).has(m)}We.exports=_t},5135:(We,ue,ht)=>{var z=ht(6929);function _t(m,y){var R=z(this,m),j=R.size;return R.set(m,y),this.size+=R.size==j?0:1,this}We.exports=_t},6060:(We,ue,ht)=>{var z=ht(3984),_t=z(Object,"create");We.exports=_t},6132:(We,ue,ht)=>{var z=ht(889),_t=z(Object.keys,Object);We.exports=_t},4555:We=>{function ue(ht){var z=[];if(ht!=null)for(var _t in Object(ht))z.push(_t);return z}We.exports=ue},8315:(We,ue,ht)=>{We=ht.nmd(We);var z=ht(2718),_t=ue&&!ue.nodeType&&ue,m=_t&&!0&&We&&!We.nodeType&&We,y=m&&m.exports===_t,R=y&&z.process,j=function(){try{var et=m&&m.require&&m.require("util").types;return et||R&&R.binding&&R.binding("util")}catch(K){}}();We.exports=j},2588:We=>{var ue=Object.prototype,ht=ue.toString;function z(_t){return ht.call(_t)}We.exports=z},889:We=>{function ue(ht,z){return function(_t){return ht(z(_t))}}We.exports=ue},9107:(We,ue,ht)=>{var z=ht(2718),_t=typeof self=="object"&&self&&self.Object===Object&&self,m=z||_t||Function("return this")();We.exports=m},8658:(We,ue,ht)=>{var z=ht(5217);function _t(){this.__data__=new z,this.size=0}We.exports=_t},3844:We=>{function ue(ht){var z=this.__data__,_t=z.delete(ht);return this.size=z.size,_t}We.exports=ue},6503:We=>{function ue(ht){return this.__data__.get(ht)}We.exports=ue},1563:We=>{function ue(ht){return this.__data__.has(ht)}We.exports=ue},259:(We,ue,ht)=>{var z=ht(5217),_t=ht(5661),m=ht(3287),y=200;function R(j,et){var K=this.__data__;if(K instanceof z){var J=K.__data__;if(!_t||J.length{var ue=Function.prototype,ht=ue.toString;function z(_t){if(_t!=null){try{return ht.call(_t)}catch(m){}try{return _t+""}catch(m){}}return""}We.exports=z},3009:(We,ue,ht)=>{var z=ht(1937),_t=1,m=4;function y(R){return z(R,_t|m)}We.exports=y},8330:We=>{function ue(ht,z){return ht===z||ht!==ht&&z!==z}We.exports=ue},2382:(We,ue,ht)=>{var z=ht(2744),_t=ht(2620),m=Object.prototype,y=m.hasOwnProperty,R=m.propertyIsEnumerable,j=z(function(){return arguments}())?z:function(et){return _t(et)&&y.call(et,"callee")&&!R.call(et,"callee")};We.exports=j},2003:We=>{var ue=Array.isArray;We.exports=ue},6316:(We,ue,ht)=>{var z=ht(8148),_t=ht(7164);function m(y){return y!=null&&_t(y.length)&&!z(y)}We.exports=m},1262:(We,ue,ht)=>{We=ht.nmd(We);var z=ht(9107),_t=ht(2125),m=ue&&!ue.nodeType&&ue,y=m&&!0&&We&&!We.nodeType&&We,R=y&&y.exports===m,j=R?z.Buffer:void 0,et=j?j.isBuffer:void 0,K=et||_t;We.exports=K},8148:(We,ue,ht)=>{var z=ht(6522),_t=ht(5603),m="[object AsyncFunction]",y="[object Function]",R="[object GeneratorFunction]",j="[object Proxy]";function et(K){if(!_t(K))return!1;var J=z(K);return J==y||J==R||J==m||J==j}We.exports=et},7164:We=>{var ue=9007199254740991;function ht(z){return typeof z=="number"&&z>-1&&z%1==0&&z<=ue}We.exports=ht},5652:(We,ue,ht)=>{var z=ht(8742),_t=ht(2347),m=ht(8315),y=m&&m.isMap,R=y?_t(y):z;We.exports=R},5603:We=>{function ue(ht){var z=typeof ht;return ht!=null&&(z=="object"||z=="function")}We.exports=ue},2620:We=>{function ue(ht){return ht!=null&&typeof ht=="object"}We.exports=ue},9318:(We,ue,ht)=>{var z=ht(5476),_t=ht(2347),m=ht(8315),y=m&&m.isSet,R=y?_t(y):z;We.exports=R},9221:(We,ue,ht)=>{var z=ht(5387),_t=ht(2347),m=ht(8315),y=m&&m.isTypedArray,R=y?_t(y):z;We.exports=R},5304:(We,ue,ht)=>{var z=ht(7137),_t=ht(6794),m=ht(6316);function y(R){return m(R)?z(R):_t(R)}We.exports=y},7495:(We,ue,ht)=>{var z=ht(7137),_t=ht(8157),m=ht(6316);function y(R){return m(R)?z(R,!0):_t(R)}We.exports=y},119:We=>{function ue(){return[]}We.exports=ue},2125:We=>{function ue(){return!1}We.exports=ue},628:(We,ue,ht)=>{"use strict";var z=ht(4067);function _t(){}function m(){}m.resetWarningCache=_t,We.exports=function(){function y(et,K,J,q,Z,tt){if(tt!==z){var H=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw H.name="Invariant Violation",H}}y.isRequired=y;function R(){return y}var j={array:y,bigint:y,bool:y,func:y,number:y,object:y,string:y,symbol:y,any:y,arrayOf:R,element:y,elementType:y,instanceOf:R,node:y,objectOf:R,oneOf:R,oneOfType:R,shape:R,exact:R,checkPropTypes:m,resetWarningCache:_t};return j.PropTypes=j,j}},5826:(We,ue,ht)=>{if(0)var z,_t;else We.exports=ht(628)()},4067:We=>{"use strict";var ue="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";We.exports=ue},1363:(We,ue,ht)=>{"use strict";/** +*/(function(){"use strict";var _t=!!(typeof window!="undefined"&&window.document&&window.document.createElement),m={canUseDOM:_t,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:_t&&!!(window.addEventListener||window.attachEvent),canUseViewport:_t&&!!window.screen};j=function(){return m}.call(ue,ht,ue,We),j!==void 0&&(We.exports=j)})()},5215:We=>{"use strict";We.exports=function ue(ht,j){if(ht===j)return!0;if(ht&&j&&typeof ht=="object"&&typeof j=="object"){if(ht.constructor!==j.constructor)return!1;var _t,m,y;if(Array.isArray(ht)){if(_t=ht.length,_t!=j.length)return!1;for(m=_t;m--!==0;)if(!ue(ht[m],j[m]))return!1;return!0}if(ht.constructor===RegExp)return ht.source===j.source&&ht.flags===j.flags;if(ht.valueOf!==Object.prototype.valueOf)return ht.valueOf()===j.valueOf();if(ht.toString!==Object.prototype.toString)return ht.toString()===j.toString();if(y=Object.keys(ht),_t=y.length,_t!==Object.keys(j).length)return!1;for(m=_t;m--!==0;)if(!Object.prototype.hasOwnProperty.call(j,y[m]))return!1;for(m=_t;m--!==0;){var R=y[m];if(!ue(ht[R],j[R]))return!1}return!0}return ht!==ht&&j!==j}},6193:function(We,ue,ht){var j;(function(_t,m){We.exports?(m.default=m,We.exports=_t&&_t.document?m(_t):m):(j=function(){return m(_t)}.call(ue,ht,ue,We),j!==void 0&&(We.exports=j))})(typeof window!="undefined"?window:this,function(_t){"use strict";var m={};function y(R,B,et,K){!R.hasOwnProperty(B)&&(R[B]=K.apply(null,et),_t&&typeof CustomEvent=="function"&&_t.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:R[B]}})))}return y(m,"Core/Globals.js",[],function(){var R,B;return(B=R||(R={})).SVG_NS="http://www.w3.org/2000/svg",B.product="Highcharts",B.version="11.4.8",B.win=_t!==void 0?_t:{},B.doc=B.win.document,B.svg=B.doc&&B.doc.createElementNS&&!!B.doc.createElementNS(B.SVG_NS,"svg").createSVGRect,B.userAgent=B.win.navigator&&B.win.navigator.userAgent||"",B.isChrome=B.win.chrome,B.isFirefox=B.userAgent.indexOf("Firefox")!==-1,B.isMS=/(edge|msie|trident)/i.test(B.userAgent)&&!B.win.opera,B.isSafari=!B.isChrome&&B.userAgent.indexOf("Safari")!==-1,B.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(B.userAgent),B.isWebKit=B.userAgent.indexOf("AppleWebKit")!==-1,B.deg2rad=2*Math.PI/360,B.hasBidiBug=B.isFirefox&&4>parseInt(B.userAgent.split("Firefox/")[1],10),B.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],B.noop=function(){},B.supportsPassiveEvents=function(){let et=!1;if(!B.isMS){let K=Object.defineProperty({},"passive",{get:function(){et=!0}});B.win.addEventListener&&B.win.removeEventListener&&(B.win.addEventListener("testPassive",B.noop,K),B.win.removeEventListener("testPassive",B.noop,K))}return et}(),B.charts=[],B.composed=[],B.dateFormats={},B.seriesTypes={},B.symbolSizes={},B.chartCount=0,R}),y(m,"Core/Utilities.js",[m["Core/Globals.js"]],function(R){let B,{charts:et,doc:K,win:J}=R;function q(p,l,f,b){let z=l?"Highcharts error":"Highcharts warning";p===32&&(p=`${z}: Deprecated member`);let T=d(p),k=T?`${z} #${p}: www.highcharts.com/errors/${p}/`:p.toString();if(b!==void 0){let Q="";T&&(k+="?"),S(b,function(st,nt){Q+=` + - ${nt}: ${st}`,T&&(k+=encodeURI(nt)+"="+encodeURI(st))}),k+=Q}g(R,"displayError",{chart:f,code:p,message:k,params:b},function(){if(l)throw Error(k);J.console&&q.messages.indexOf(k)===-1&&console.warn(k)}),q.messages.push(k)}function Z(p,l){return parseInt(p,l||10)}function tt(p){return typeof p=="string"}function H(p){let l=Object.prototype.toString.call(p);return l==="[object Array]"||l==="[object Array Iterator]"}function X(p,l){return!!p&&typeof p=="object"&&(!l||!H(p))}function F(p){return X(p)&&typeof p.nodeType=="number"}function U(p){let l=p&&p.constructor;return!!(X(p,!0)&&!F(p)&&l&&l.name&&l.name!=="Object")}function d(p){return typeof p=="number"&&!isNaN(p)&&p<1/0&&p>-1/0}function L(p){return p!=null}function M(p,l,f){let b,z=tt(l)&&!L(f),T=(k,Q)=>{L(k)?p.setAttribute(Q,k):z?(b=p.getAttribute(Q))||Q!=="class"||(b=p.getAttribute(Q+"Name")):p.removeAttribute(Q)};return tt(l)?T(f,l):S(l,T),b}function s(p){return H(p)?p:[p]}function _(p,l){let f;for(f in p||(p={}),l)p[f]=l[f];return p}function w(){let p=arguments,l=p.length;for(let f=0;f1e14?p:parseFloat(p.toPrecision(l||14))}(q||(q={})).messages=[],Math.easeInOutSine=function(p){return-.5*(Math.cos(Math.PI*p)-1)};let E=Array.prototype.find?function(p,l){return p.find(l)}:function(p,l){let f,b=p.length;for(f=0;fQ.order-st.order),z.forEach(Q=>{Q.fn.call(p,f)===!1&&f.preventDefault()})}b&&!f.defaultPrevented&&b.call(p,f)}S({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(p,l){R[l]=function(f){return q(32,!1,void 0,{[`Highcharts.${l}`]:`use Array.${p}`}),Array.prototype[p].apply(f,[].slice.call(arguments,1))}});let x=function(){let p=Math.random().toString(36).substring(2,9)+"-",l=0;return function(){return"highcharts-"+(B?"":p)+l++}}();return J.jQuery&&(J.jQuery.fn.highcharts=function(){let p=[].slice.call(arguments);if(this[0])return p[0]?(new R[tt(p[0])?p.shift():"Chart"](this[0],p[0],p[1]),this):et[M(this[0],"data-highcharts-chart")]}),{addEvent:function(p,l,f,b={}){let z=typeof p=="function"&&p.prototype||p;Object.hasOwnProperty.call(z,"hcEvents")||(z.hcEvents={});let T=z.hcEvents;R.Point&&p instanceof R.Point&&p.series&&p.series.chart&&(p.series.chart.runTrackerClick=!0);let k=p.addEventListener;k&&k.call(p,l,f,!!R.supportsPassiveEvents&&{passive:b.passive===void 0?l.indexOf("touch")!==-1:b.passive,capture:!1}),T[l]||(T[l]=[]);let Q={fn:f,order:typeof b.order=="number"?b.order:1/0};return T[l].push(Q),T[l].sort((st,nt)=>st.order-nt.order),function(){v(p,l,f)}},arrayMax:function(p){let l=p.length,f=p[0];for(;l--;)p[l]>f&&(f=p[l]);return f},arrayMin:function(p){let l=p.length,f=p[0];for(;l--;)p[l]l?p{let b=l%2/2,z=f?-1:1;return(Math.round(p*z-b)+b)*z},css:o,defined:L,destroyObjectProperties:function(p,l,f){S(p,function(b,z){b!==l&&(b!=null&&b.destroy)&&b.destroy(),(b!=null&&b.destroy||!f)&&delete p[z]})},diffObjects:function(p,l,f,b){let z={};return function T(k,Q,st,nt){let dt=f?Q:k;S(k,function(mt,Et){if(!nt&&b&&b.indexOf(Et)>-1&&Q[Et]){mt=s(mt),st[Et]=[];for(let Mt=0;Mt{if(Q.length>1)for(T=b=Q.length-1;T>0;T--)(z=Q[T]-Q[T-1])<0&&!k?(l==null||l(),l=void 0):z&&(f===void 0||z=k-1&&(k=Math.floor(Q)),Math.max(0,k-(p(l,"padding-left",!0)||0)-(p(l,"padding-right",!0)||0))}if(f==="height")return Math.max(0,Math.min(l.offsetHeight,l.scrollHeight)-(p(l,"padding-top",!0)||0)-(p(l,"padding-bottom",!0)||0));let T=J.getComputedStyle(l,void 0);return T&&(z=T.getPropertyValue(f),w(b,f!=="opacity")&&(z=Z(z))),z},inArray:function(p,l,f){return q(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),l.indexOf(p,f)},insertItem:function(p,l){let f,b=p.options.index,z=l.length;for(f=p.options.isInternal?z:0;f=p))&&(z||!(Q<=(l[T]+(l[T+1]||l[T]))/2)));T++);return C(k*f,-Math.round(Math.log(.001)/Math.LN10))},objectEach:S,offset:function(p){let l=K.documentElement,f=p.parentElement||p.parentNode?p.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:f.top+(J.pageYOffset||l.scrollTop)-(l.clientTop||0),left:f.left+(J.pageXOffset||l.scrollLeft)-(l.clientLeft||0),width:f.width,height:f.height}},pad:function(p,l,f){return Array((l||2)+1-String(p).replace("-","").length).join(f||"0")+p},pick:w,pInt:Z,pushUnique:function(p,l){return 0>p.indexOf(l)&&!!p.push(l)},relativeLength:function(p,l,f){return/%$/.test(p)?l*parseFloat(p)/100+(f||0):parseFloat(p)},removeEvent:v,replaceNested:function(p,...l){let f,b;do for(b of(f=p,l))p=p.replace(b[0],b[1]);while(p!==f);return p},splat:s,stableSort:function(p,l){let f,b,z=p.length;for(b=0;b0?setTimeout(p,l,f):(p.call(0,f),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:x,useSerialIds:function(p){return B=w(p,B)},wrap:function(p,l,f){let b=p[l];p[l]=function(){let z=arguments,T=this;return f.apply(this,[function(){return b.apply(T,arguments.length?arguments:z)}].concat([].slice.call(arguments)))}}}}),y(m,"Core/Chart/ChartDefaults.js",[],function(){return{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,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),y(m,"Core/Color/Palettes.js",[],function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}}),y(m,"Core/Time.js",[m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B){let{win:et}=R,{defined:K,error:J,extend:q,isNumber:Z,isObject:tt,merge:H,objectEach:X,pad:F,pick:U,splat:d,timeUnits:L}=B,M=R.isSafari&&et.Intl&&et.Intl.DateTimeFormat.prototype.formatRange,s=R.isSafari&&et.Intl&&!et.Intl.DateTimeFormat.prototype.formatRange;class _{constructor(o){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=et.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(o)}get(o,u){if(this.variableTimezone||this.timezoneOffset){let C=u.getTime(),E=C-this.getTimezoneOffset(u);u.setTime(E);let S=u["getUTC"+o]();return u.setTime(C),S}return this.useUTC?u["getUTC"+o]():u["get"+o]()}set(o,u,C){if(this.variableTimezone||this.timezoneOffset){if(o==="Milliseconds"||o==="Seconds"||o==="Minutes"&&this.getTimezoneOffset(u)%36e5==0)return u["setUTC"+o](C);let E=this.getTimezoneOffset(u),S=u.getTime()-E;u.setTime(S),u["setUTC"+o](C);let v=this.getTimezoneOffset(u);return S=u.getTime()+v,u.setTime(S)}return this.useUTC||M&&o==="FullYear"?u["setUTC"+o](C):u["set"+o](C)}update(o={}){let u=U(o.useUTC,!0);this.options=o=H(!0,this.options,o),this.Date=o.Date||et.Date||Date,this.useUTC=u,this.timezoneOffset=u&&o.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=u&&!!(o.getTimezoneOffset||o.timezone)}makeTime(o,u,C,E,S,v){let g,x,p;return this.useUTC?(g=this.Date.UTC.apply(0,arguments),x=this.getTimezoneOffset(g),g+=x,x!==(p=this.getTimezoneOffset(g))?g+=p-x:x-36e5!==this.getTimezoneOffset(g-36e5)||s||(g-=36e5)):g=new this.Date(o,u,U(C,1),U(E,0),U(S,0),U(v,0)).getTime(),g}timezoneOffsetFunction(){let o=this,u=this.options,C=u.getTimezoneOffset;return this.useUTC?u.timezone?E=>{try{let S=`shortOffset,${u.timezone||""}`,[v,g,x,p,l=0]=(_.formatCache[S]=_.formatCache[S]||Intl.DateTimeFormat("en",{timeZone:u.timezone,timeZoneName:"shortOffset"})).format(E).split(/(GMT|:)/).map(Number),f=-(36e5*(x+l/60));if(Z(f))return f}catch(S){J(34)}return 0}:this.useUTC&&C?E=>6e4*C(E.valueOf()):()=>6e4*(o.timezoneOffset||0):E=>6e4*new Date(E.toString()).getTimezoneOffset()}dateFormat(o,u,C){if(!K(u)||isNaN(u))return R.defaultOptions.lang&&R.defaultOptions.lang.invalidDate||"";o=U(o,"%Y-%m-%d %H:%M:%S");let E=this,S=new this.Date(u),v=this.get("Hours",S),g=this.get("Day",S),x=this.get("Date",S),p=this.get("Month",S),l=this.get("FullYear",S),f=R.defaultOptions.lang,b=f&&f.weekdays,z=f&&f.shortWeekdays;return X(q({a:z?z[g]:b[g].substr(0,3),A:b[g],d:F(x),e:F(x,2," "),w:g,b:f.shortMonths[p],B:f.months[p],m:F(p+1),o:p+1,y:l.toString().substr(2,2),Y:l,H:F(v),k:v,I:F(v%12||12),l:v%12||12,M:F(this.get("Minutes",S)),p:v<12?"AM":"PM",P:v<12?"am":"pm",S:F(this.get("Seconds",S)),L:F(Math.floor(u%1e3),3)},R.dateFormats),function(T,k){for(;o.indexOf("%"+k)!==-1;)o=o.replace("%"+k,typeof T=="function"?T.call(E,u):T)}),C?o.substr(0,1).toUpperCase()+o.substr(1):o}resolveDTLFormat(o){return tt(o,!0)?o:{main:(o=d(o))[0],from:o[1],to:o[2]}}getTimeTicks(o,u,C,E){let S,v,g,x,p=this,l=p.Date,f=[],b={},z=new l(u),T=o.unitRange,k=o.count||1;if(E=U(E,1),K(u)){p.set("Milliseconds",z,T>=L.second?0:k*Math.floor(p.get("Milliseconds",z)/k)),T>=L.second&&p.set("Seconds",z,T>=L.minute?0:k*Math.floor(p.get("Seconds",z)/k)),T>=L.minute&&p.set("Minutes",z,T>=L.hour?0:k*Math.floor(p.get("Minutes",z)/k)),T>=L.hour&&p.set("Hours",z,T>=L.day?0:k*Math.floor(p.get("Hours",z)/k)),T>=L.day&&p.set("Date",z,T>=L.month?1:Math.max(1,k*Math.floor(p.get("Date",z)/k))),T>=L.month&&(p.set("Month",z,T>=L.year?0:k*Math.floor(p.get("Month",z)/k)),v=p.get("FullYear",z)),T>=L.year&&(v-=v%k,p.set("FullYear",z,v)),T===L.week&&(x=p.get("Day",z),p.set("Date",z,p.get("Date",z)-x+E+(x4*L.month||p.getTimezoneOffset(u)!==p.getTimezoneOffset(C));let dt=z.getTime();for(S=1;dt1?dt=p.makeTime(v,Q,st,nt+S*k):dt+=T*k,S++;f.push(dt),T<=L.hour&&f.length<1e4&&f.forEach(function(mt){mt%18e5==0&&p.dateFormat("%H%M%S%L",mt)==="000000000"&&(b[mt]="day")})}return f.info=q(o,{higherRanks:b,totalRange:T*k}),f}getDateFormat(o,u,C,E){let S=this.dateFormat("%m-%d %H:%M:%S.%L",u),v="01-01 00:00:00.000",g={millisecond:15,second:12,minute:9,hour:6,day:3},x="millisecond",p=x;for(x in L){if(o===L.week&&+this.dateFormat("%w",u)===C&&S.substr(6)===v.substr(6)){x="week";break}if(L[x]>o){x=p;break}if(g[x]&&S.substr(g[x])!==v.substr(g[x]))break;x!=="week"&&(p=x)}return this.resolveDTLFormat(E[x]).main}}return _.formatCache={},_}),y(m,"Core/Defaults.js",[m["Core/Chart/ChartDefaults.js"],m["Core/Globals.js"],m["Core/Color/Palettes.js"],m["Core/Time.js"],m["Core/Utilities.js"]],function(R,B,et,K,J){let{isTouchDevice:q}=B,{fireEvent:Z,merge:tt}=J,H={colors:et.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:R,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",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:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:F=>Math.sqrt(1-Math.pow(F-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:q?25:10,headerFormat:'{point.key}
    ',pointFormat:'\u25CF {series.name}: {point.y}
    ',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};H.chart.styledMode=!1;let X=new K(H.time);return{defaultOptions:H,defaultTime:X,getOptions:function(){return H},setOptions:function(F){return Z(B,"setOptions",{options:F}),tt(!0,H,F),(F.time||F.global)&&(B.time?B.time.update(tt(H.global,H.time,F.global,F.time)):B.time=X),H}}}),y(m,"Core/Color/Color.js",[m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B){let{isNumber:et,merge:K,pInt:J}=B;class q{static parse(tt){return tt?new q(tt):q.None}constructor(tt){let H,X,F,U;this.rgba=[NaN,NaN,NaN,NaN],this.input=tt;let d=R.Color;if(d&&d!==q)return new d(tt);if(typeof tt=="object"&&tt.stops!==void 0)this.stops=tt.stops.map(L=>new q(L[1]));else if(typeof tt=="string"){if(this.input=tt=q.names[tt.toLowerCase()]||tt,tt.charAt(0)==="#"){let L=tt.length,M=parseInt(tt.substr(1),16);L===7?X=[(16711680&M)>>16,(65280&M)>>8,255&M,1]:L===4&&(X=[(3840&M)>>4|(3840&M)>>8,(240&M)>>4|240&M,(15&M)<<4|15&M,1])}if(!X)for(F=q.parsers.length;F--&&!X;)(H=(U=q.parsers[F]).regex.exec(tt))&&(X=U.parse(H))}X&&(this.rgba=X)}get(tt){let H=this.input,X=this.rgba;if(typeof H=="object"&&this.stops!==void 0){let F=K(H);return F.stops=[].slice.call(F.stops),this.stops.forEach((U,d)=>{F.stops[d]=[F.stops[d][0],U.get(tt)]}),F}return X&&et(X[0])?tt!=="rgb"&&(tt||X[3]!==1)?tt==="a"?`${X[3]}`:"rgba("+X.join(",")+")":"rgb("+X[0]+","+X[1]+","+X[2]+")":H}brighten(tt){let H=this.rgba;if(this.stops)this.stops.forEach(function(X){X.brighten(tt)});else if(et(tt)&&tt!==0)for(let X=0;X<3;X++)H[X]+=J(255*tt),H[X]<0&&(H[X]=0),H[X]>255&&(H[X]=255);return this}setOpacity(tt){return this.rgba[3]=tt,this}tweenTo(tt,H){let X=this.rgba,F=tt.rgba;if(!et(X[0])||!et(F[0]))return tt.input||"none";let U=F[3]!==1||X[3]!==1;return(U?"rgba(":"rgb(")+Math.round(F[0]+(X[0]-F[0])*(1-H))+","+Math.round(F[1]+(X[1]-F[1])*(1-H))+","+Math.round(F[2]+(X[2]-F[2])*(1-H))+(U?","+(F[3]+(X[3]-F[3])*(1-H)):"")+")"}}return q.names={white:"#ffffff",black:"#000000"},q.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(Z){return[J(Z[1]),J(Z[2]),J(Z[3]),parseFloat(Z[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(Z){return[J(Z[1]),J(Z[2]),J(Z[3]),1]}}],q.None=new q(""),q}),y(m,"Core/Animation/Fx.js",[m["Core/Color/Color.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B,et){let{parse:K}=R,{win:J}=B,{isNumber:q,objectEach:Z}=et;class tt{constructor(X,F,U){this.pos=NaN,this.options=F,this.elem=X,this.prop=U}dSetter(){let X=this.paths,F=X&&X[0],U=X&&X[1],d=this.now||0,L=[];if(d!==1&&F&&U)if(F.length===U.length&&d<1)for(let M=0;M=_+this.startTime?(this.now=this.end,this.pos=1,this.update(),w[this.prop]=!0,U=!0,Z(w,function(o){o!==!0&&(U=!1)}),U&&s&&s.call(M),F=!1):(this.pos=L.easing((d-this.startTime)/_),this.now=this.start+(this.end-this.start)*this.pos,this.update(),F=!0),F}initPath(X,F,U){let d=X.startX,L=X.endX,M=U.slice(),s=X.isArea,_=s?2:1,w=F&&U.length>F.length&&U.hasStackedCliffs,o,u,C,E,S=F&&F.slice();if(!S||w)return[M,M];function v(x,p){for(;x.length{let C=F(u.options.animation);w=Z(L)&&et(L.defer)?s.defer:Math.max(w,C.duration+C.defer),o=Math.min(s.duration,C.duration)}),d.renderer.forExport&&(w=0),{defer:Math.max(0,w-o),duration:Math.min(w,o)}},setAnimation:function(d,L){L.renderer.globalAnimation=X(d,L.options.chart.animation,!0)},stop:U}}),y(m,"Core/Renderer/HTML/AST.js",[m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B){let{SVG_NS:et,win:K}=R,{attr:J,createElement:q,css:Z,error:tt,isFunction:H,isString:X,objectEach:F,splat:U}=B,{trustedTypes:d}=K,L=d&&H(d.createPolicy)&&d.createPolicy("highcharts",{createHTML:w=>w}),M=L?L.createHTML(""):"",s=function(){try{return!!new DOMParser().parseFromString(M,"text/html")}catch(w){return!1}}();class _{static filterUserAttributes(o){return F(o,(u,C)=>{let E=!0;_.allowedAttributes.indexOf(C)===-1&&(E=!1),["background","dynsrc","href","lowsrc","src"].indexOf(C)!==-1&&(E=X(u)&&_.allowedReferences.some(S=>u.indexOf(S)===0)),E||(tt(33,!1,void 0,{"Invalid attribute in config":`${C}`}),delete o[C]),X(u)&&o[C]&&(o[C]=u.replace(/{let E=C.split(":").map(v=>v.trim()),S=E.shift();return S&&E.length&&(u[S.replace(/-([a-z])/g,v=>v[1].toUpperCase())]=E.join(":")),u},{})}static setElementHTML(o,u){o.innerHTML=_.emptyHTML,u&&new _(u).addToDOM(o)}constructor(o){this.nodes=typeof o=="string"?this.parseMarkup(o):o}addToDOM(o){return function u(C,E){let S;return U(C).forEach(function(v){let g,x=v.tagName,p=v.textContent?R.doc.createTextNode(v.textContent):void 0,l=_.bypassHTMLFiltering;if(x)if(x==="#text")g=p;else if(_.allowedTags.indexOf(x)!==-1||l){let f=x==="svg"?et:E.namespaceURI||et,b=R.doc.createElementNS(f,x),z=v.attributes||{};F(v,function(T,k){k!=="tagName"&&k!=="attributes"&&k!=="children"&&k!=="style"&&k!=="textContent"&&(z[k]=T)}),J(b,l?z:_.filterUserAttributes(z)),v.style&&Z(b,v.style),p&&b.appendChild(p),u(v.children||[],b),g=b}else tt(33,!1,void 0,{"Invalid tagName in config":x});g&&E.appendChild(g),S=g}),S}(this.nodes,o)}parseMarkup(o){let u,C=[];if(o=o.trim().replace(/ style=(["'])/g," data-style=$1"),s)u=new DOMParser().parseFromString(L?L.createHTML(o):o,"text/html");else{let S=q("div");S.innerHTML=o,u={body:S}}let E=(S,v)=>{let g=S.nodeName.toLowerCase(),x={tagName:g};g==="#text"&&(x.textContent=S.textContent||"");let p=S.attributes;if(p){let l={};[].forEach.call(p,f=>{f.name==="data-style"?x.style=_.parseStyle(f.value):l[f.name]=f.value}),x.attributes=l}if(S.childNodes.length){let l=[];[].forEach.call(S.childNodes,f=>{E(f,l)}),l.length&&(x.children=l)}v.push(x)};return[].forEach.call(u.body.childNodes,S=>E(S,C)),C}}return _.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","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","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","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],_.allowedReferences=["https://","http://","mailto:","/","../","./","#"],_.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","feOffset","feMerge","feMergeNode","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","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],_.emptyHTML=M,_.bypassHTMLFiltering=!1,_}),y(m,"Core/Templating.js",[m["Core/Defaults.js"],m["Core/Utilities.js"]],function(R,B){let{defaultOptions:et,defaultTime:K}=R,{extend:J,getNestedProperty:q,isArray:Z,isNumber:tt,isObject:H,pick:X,pInt:F}=B,U={add:(M,s)=>M+s,divide:(M,s)=>s!==0?M/s:"",eq:(M,s)=>M==s,each:function(M){let s=arguments[arguments.length-1];return!!Z(M)&&M.map((_,w)=>d(s.body,J(H(_)?_:{"@this":_},{"@index":w,"@first":w===0,"@last":w===M.length-1}))).join("")},ge:(M,s)=>M>=s,gt:(M,s)=>M>s,if:M=>!!M,le:(M,s)=>M<=s,lt:(M,s)=>MM*s,ne:(M,s)=>M!=s,subtract:(M,s)=>M-s,unless:M=>!M};function d(M="",s,_){let w=/\{([\w\:\.\,;\-\/<>%@"'’= #\(\)]+)\}/g,o=/\(([\w\:\.\,;\-\/<>%@"'= ]+)\)/g,u=[],C=/f$/,E=/\.(\d)/,S=et.lang,v=_&&_.time||K,g=_&&_.numberFormatter||L,x=(z="")=>{let T;return z==="true"||z!=="false"&&((T=Number(z)).toString()===z?T:q(z,s))},p,l,f=0,b;for(;(p=w.exec(M))!==null;){let z=o.exec(p[1]);z&&(p=z,b=!0),l&&l.isBlock||(l={ctx:s,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 T=p[1].split(" ")[0].replace("#","");U[T]&&(l.isBlock&&T===l.fn&&f++,l.fn||(l.fn=T));let k=p[1]==="else";if(l.isBlock&&l.fn&&(p[1]===`/${l.fn}`||k))if(f)!k&&f--;else{let Q=l.startInner,st=M.substr(Q,p.index-Q);l.body===void 0?(l.body=st,l.startInner=p.index+p[0].length):l.elseBody=st,l.find+=st+p[0],k||(u.push(l),l=void 0)}else l.isBlock||u.push(l);if(z&&!(l!=null&&l.isBlock))break}return u.forEach(z=>{let T,k,{body:Q,elseBody:st,expression:nt,fn:dt}=z;if(dt){let mt=[z],Et=nt.split(" ");for(k=U[dt].length;k--;)mt.unshift(x(Et[k+1]));T=U[dt].apply(s,mt),z.isBlock&&typeof T=="boolean"&&(T=d(T?Q:st,s,_))}else{let mt=nt.split(":");if(T=x(mt.shift()||""),mt.length&&typeof T=="number"){let Et=mt.join(":");if(C.test(Et)){let Mt=parseInt((Et.match(E)||["","-1"])[1],10);T!==null&&(T=g(T,Mt,S.decimalPoint,Et.indexOf(",")>-1?S.thousandsSep:""))}else T=v.dateFormat(Et,T)}}M=M.replace(z.find,X(T,""))}),b?d(M,s,_):M}function L(M,s,_,w){let o,u;M=+M||0,s=+s;let C=et.lang,E=(M.toString().split(".")[1]||"").split("e")[0].length,S=M.toString().split("e"),v=s;s===-1?s=Math.min(E,20):tt(s)?s&&S[1]&&S[1]<0&&((u=s+ +S[1])>=0?(S[0]=(+S[0]).toExponential(u).split("e")[0],s=u):(S[0]=S[0].split(".")[0]||0,M=s<20?(S[0]*Math.pow(10,S[1])).toFixed(s):0,S[1]=0)):s=2;let g=(Math.abs(S[1]?S[0]:M)+Math.pow(10,-Math.max(s,E)-1)).toFixed(s),x=String(F(g)),p=x.length>3?x.length%3:0;return _=X(_,C.decimalPoint),w=X(w,C.thousandsSep),o=(M<0?"-":"")+(p?x.substr(0,p)+w:""),0>+S[1]&&!v?o="0":o+=x.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+w),s?o+=_+g.slice(-s):+o==0&&(o="0"),S[1]&&+o!=0&&(o+="e"+S[1]),o}return{dateFormat:function(M,s,_){return K.dateFormat(M,s,_)},format:d,helpers:U,numberFormat:L}}),y(m,"Core/Renderer/RendererRegistry.js",[m["Core/Globals.js"]],function(R){var B,et;let K;return(et=B||(B={})).rendererTypes={},et.getRendererType=function(J=K){return et.rendererTypes[J]||et.rendererTypes[K]},et.registerRendererType=function(J,q,Z){et.rendererTypes[J]=q,(!K||Z)&&(K=J,R.Renderer=q)},B}),y(m,"Core/Renderer/RendererUtilities.js",[m["Core/Utilities.js"]],function(R){var B;let{clamp:et,pick:K,pushUnique:J,stableSort:q}=R;return(B||(B={})).distribute=function Z(tt,H,X){let F=tt,U=F.reducedLen||H,d=(x,p)=>x.target-p.target,L=[],M=tt.length,s=[],_=L.push,w,o,u,C=!0,E,S,v=0,g;for(w=M;w--;)v+=tt[w].size;if(v>U){for(q(tt,(x,p)=>(p.rank||0)-(x.rank||0)),u=(g=tt[0].rank===tt[tt.length-1].rank)?M/2:-1,o=g?u:M-1;u&&v>U;)E=tt[w=Math.floor(o)],J(s,w)&&(v-=E.size),o+=u,g&&o>=tt.length&&(u/=2,o=u);s.sort((x,p)=>p-x).forEach(x=>_.apply(L,tt.splice(x,1)))}for(q(tt,d),tt=tt.map(x=>({size:x.size,targets:[x.target],align:K(x.align,.5)}));C;){for(w=tt.length;w--;)E=tt[w],S=(Math.min.apply(0,E.targets)+Math.max.apply(0,E.targets))/2,E.pos=et(S-E.size*E.align,0,H-E.size);for(w=tt.length,C=!1;w--;)w>0&&tt[w-1].pos+tt[w-1].size>tt[w].pos&&(tt[w-1].size+=tt[w].size,tt[w-1].targets=tt[w-1].targets.concat(tt[w].targets),tt[w-1].align=.5,tt[w-1].pos+tt[w-1].size>H&&(tt[w-1].pos=H-tt[w-1].size),tt.splice(w,1),C=!0)}return _.apply(F,L),w=0,tt.some(x=>{let p=0;return(x.targets||[]).some(()=>(F[w].pos=x.pos+p,X!==void 0&&Math.abs(F[w].pos-F[w].target)>X?(F.slice(0,w+1).forEach(l=>delete l.pos),F.reducedLen=(F.reducedLen||H)-.1*H,F.reducedLen>.1*H&&Z(F,H,X),!0):(p+=F[w].size,w++,!1)))}),q(F,d),F},B}),y(m,"Core/Renderer/SVG/SVGElement.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Color/Color.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B,et,K){let{animate:J,animObject:q,stop:Z}=R,{deg2rad:tt,doc:H,svg:X,SVG_NS:F,win:U}=et,{addEvent:d,attr:L,createElement:M,crisp:s,css:_,defined:w,erase:o,extend:u,fireEvent:C,isArray:E,isFunction:S,isObject:v,isString:g,merge:x,objectEach:p,pick:l,pInt:f,pushUnique:b,replaceNested:z,syncTimeout:T,uniqueKey:k}=K;class Q{_defaultGetter(nt){let dt=l(this[nt+"Value"],this[nt],this.element?this.element.getAttribute(nt):null,0);return/^-?[\d\.]+$/.test(dt)&&(dt=parseFloat(dt)),dt}_defaultSetter(nt,dt,mt){mt.setAttribute(dt,nt)}add(nt){let dt,mt=this.renderer,Et=this.element;return nt&&(this.parentGroup=nt),this.textStr!==void 0&&this.element.nodeName==="text"&&mt.buildText(this),this.added=!0,(!nt||nt.handleZ||this.zIndex)&&(dt=this.zIndexSetter()),dt||(nt?nt.element:mt.box).appendChild(Et),this.onAdd&&this.onAdd(),this}addClass(nt,dt){let mt=dt?"":this.attr("class")||"";return(nt=(nt||"").split(/ /g).reduce(function(Et,Mt){return mt.indexOf(Mt)===-1&&Et.push(Mt),Et},mt?[mt]:[]).join(" "))!==mt&&this.attr("class",nt),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(nt,dt,mt,Et=!0){let Mt,I,Y,rt,ot={},D=this.renderer,P=D.alignedObjects,W=!!nt;nt?(this.alignOptions=nt,this.alignByTranslate=dt,this.alignTo=mt):(nt=this.alignOptions||{},dt=this.alignByTranslate,mt=this.alignTo);let lt=!mt||g(mt)?mt||"renderer":void 0;lt&&(W&&b(P,this),mt=void 0);let it=l(mt,D[lt],D),vt=nt.align,pt=nt.verticalAlign;return Mt=(it.x||0)+(nt.x||0),I=(it.y||0)+(nt.y||0),vt==="right"?Y=1:vt==="center"&&(Y=2),Y&&(Mt+=((it.width||0)-(nt.width||0))/Y),ot[dt?"translateX":"x"]=Math.round(Mt),pt==="bottom"?rt=1:pt==="middle"&&(rt=2),rt&&(I+=((it.height||0)-(nt.height||0))/rt),ot[dt?"translateY":"y"]=Math.round(I),Et&&(this[this.placed?"animate":"attr"](ot),this.placed=!0),this.alignAttr=ot,this}alignSetter(nt){let dt={left:"start",center:"middle",right:"end"};dt[nt]&&(this.alignValue=nt,this.element.setAttribute("text-anchor",dt[nt]))}animate(nt,dt,mt){let Et=q(l(dt,this.renderer.globalAnimation,!0)),Mt=Et.defer;return H.hidden&&(Et.duration=0),Et.duration!==0?(mt&&(Et.complete=mt),T(()=>{this.element&&J(this,nt,Et)},Mt)):(this.attr(nt,void 0,mt||Et.complete),p(nt,function(I,Y){Et.step&&Et.step.call(this,I,{prop:Y,pos:1,elem:this})},this)),this}applyTextOutline(nt){let dt=this.element;nt.indexOf("contrast")!==-1&&(nt=nt.replace(/contrast/g,this.renderer.getContrast(dt.style.fill)));let mt=nt.split(" "),Et=mt[mt.length-1],Mt=mt[0];if(Mt&&Mt!=="none"&&et.svg){this.fakeTS=!0,Mt=Mt.replace(/(^[\d\.]+)(.*?)$/g,function(D,P,W){return 2*Number(P)+W}),this.removeTextOutline();let I=H.createElementNS(F,"tspan");L(I,{class:"highcharts-text-outline",fill:Et,stroke:Et,"stroke-width":Mt,"stroke-linejoin":"round"});let Y=dt.querySelector("textPath")||dt;[].forEach.call(Y.childNodes,D=>{let P=D.cloneNode(!0);P.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(W=>P.removeAttribute(W)),I.appendChild(P)});let rt=0;[].forEach.call(Y.querySelectorAll("text tspan"),D=>{rt+=Number(D.getAttribute("dy"))});let ot=H.createElementNS(F,"tspan");ot.textContent="\u200B",L(ot,{x:Number(dt.getAttribute("x")),dy:-rt}),I.appendChild(ot),Y.insertBefore(I,Y.firstChild)}}attr(nt,dt,mt,Et){let{element:Mt}=this,I=Q.symbolCustomAttribs,Y,rt,ot=this,D;return typeof nt=="string"&&dt!==void 0&&(Y=nt,(nt={})[Y]=dt),typeof nt=="string"?ot=(this[nt+"Getter"]||this._defaultGetter).call(this,nt,Mt):(p(nt,function(P,W){D=!1,Et||Z(this,W),this.symbolName&&I.indexOf(W)!==-1&&(rt||(this.symbolAttr(nt),rt=!0),D=!0),this.rotation&&(W==="x"||W==="y")&&(this.doTransform=!0),D||(this[W+"Setter"]||this._defaultSetter).call(this,P,W,Mt)},this),this.afterSetters()),mt&&mt.call(this),ot}clip(nt){if(nt&&!nt.clipPath){let dt=k()+"-",mt=this.renderer.createElement("clipPath").attr({id:dt}).add(this.renderer.defs);u(nt,{clipPath:mt,id:dt,count:0}),nt.add(mt)}return this.attr("clip-path",nt?`url(${this.renderer.url}#${nt.id})`:"none")}crisp(nt,dt){dt=Math.round(dt||nt.strokeWidth||0);let mt=nt.x||this.x||0,Et=nt.y||this.y||0,Mt=(nt.width||this.width||0)+mt,I=(nt.height||this.height||0)+Et,Y=s(mt,dt),rt=s(Et,dt);return u(nt,{x:Y,y:rt,width:s(Mt,dt)-Y,height:s(I,dt)-rt}),w(nt.strokeWidth)&&(nt.strokeWidth=dt),nt}complexColor(nt,dt,mt){let Et=this.renderer,Mt,I,Y,rt,ot,D,P,W,lt,it,vt=[],pt;C(this.renderer,"complexColor",{args:arguments},function(){if(nt.radialGradient?I="radialGradient":nt.linearGradient&&(I="linearGradient"),I){if(Y=nt[I],ot=Et.gradients,D=nt.stops,lt=mt.radialReference,E(Y)&&(nt[I]=Y={x1:Y[0],y1:Y[1],x2:Y[2],y2:Y[3],gradientUnits:"userSpaceOnUse"}),I==="radialGradient"&<&&!w(Y.gradientUnits)&&(rt=Y,Y=x(Y,Et.getRadialAttr(lt,rt),{gradientUnits:"userSpaceOnUse"})),p(Y,function(xt,Ct){Ct!=="id"&&vt.push(Ct,xt)}),p(D,function(xt){vt.push(xt)}),ot[vt=vt.join(",")])it=ot[vt].attr("id");else{Y.id=it=k();let xt=ot[vt]=Et.createElement(I).attr(Y).add(Et.defs);xt.radAttr=rt,xt.stops=[],D.forEach(function(Ct){Ct[1].indexOf("rgba")===0?(P=(Mt=B.parse(Ct[1])).get("rgb"),W=Mt.get("a")):(P=Ct[1],W=1);let Tt=Et.createElement("stop").attr({offset:Ct[0],"stop-color":P,"stop-opacity":W}).add(xt);xt.stops.push(Tt)})}pt="url("+Et.url+"#"+it+")",mt.setAttribute(dt,pt),mt.gradient=vt,nt.toString=function(){return pt}}})}css(nt){let dt=this.styles,mt={},Et=this.element,Mt,I=!dt;if(dt&&p(nt,function(Y,rt){dt&&dt[rt]!==Y&&(mt[rt]=Y,I=!0)}),I){dt&&(nt=u(dt,mt)),nt.width===null||nt.width==="auto"?delete this.textWidth:Et.nodeName.toLowerCase()==="text"&&nt.width&&(Mt=this.textWidth=f(nt.width)),u(this.styles,nt),Mt&&!X&&this.renderer.forExport&&delete nt.width;let Y=x(nt);Et.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(rt=>Y&&delete Y[rt]),Y.color&&(Y.fill=Y.color)),_(Et,Y)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),nt.textOutline&&this.applyTextOutline(nt.textOutline)),this}dashstyleSetter(nt){let dt,mt=this["stroke-width"];if(mt==="inherit"&&(mt=1),nt=nt&&nt.toLowerCase()){let Et=nt.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(dt=Et.length;dt--;)Et[dt]=""+f(Et[dt])*l(mt,NaN);nt=Et.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",nt)}}destroy(){var rt;let nt=this,dt=nt.element||{},mt=nt.renderer,Et=dt.ownerSVGElement,Mt=dt.nodeName==="SPAN"&&nt.parentGroup||void 0,I,Y;if(dt.onclick=dt.onmouseout=dt.onmouseover=dt.onmousemove=dt.point=null,Z(nt),nt.clipPath&&Et){let ot=nt.clipPath;[].forEach.call(Et.querySelectorAll("[clip-path],[CLIP-PATH]"),function(D){D.getAttribute("clip-path").indexOf(ot.element.id)>-1&&D.removeAttribute("clip-path")}),nt.clipPath=ot.destroy()}if(nt.connector=(rt=nt.connector)==null?void 0:rt.destroy(),nt.stops){for(Y=0;YMt&&Mt.join?(I?Et+" ":"")+Mt.join(" "):(Mt||"").toString(),"")),/(NaN| {2}|^$)/.test(nt)&&(nt="M 0 0"),this[dt]!==nt&&(mt.setAttribute(dt,nt),this[dt]=nt)}fillSetter(nt,dt,mt){typeof nt=="string"?mt.setAttribute(dt,nt):nt&&this.complexColor(nt,dt,mt)}hrefSetter(nt,dt,mt){mt.setAttributeNS("http://www.w3.org/1999/xlink",dt,nt)}getBBox(nt,dt){let mt,Et,Mt,I,{alignValue:Y,element:rt,renderer:ot,styles:D,textStr:P}=this,{cache:W,cacheKeys:lt}=ot,it=rt.namespaceURI===this.SVG_NS,vt=l(dt,this.rotation,0),pt=ot.styledMode?rt&&Q.prototype.getStyle.call(rt,"font-size"):D.fontSize;if(w(P)&&((I=P.toString()).indexOf("<")===-1&&(I=I.replace(/\d/g,"0")),I+=["",ot.rootFontSize,pt,vt,this.textWidth,Y,D.textOverflow,D.fontWeight].join(",")),I&&!nt&&(mt=W[I]),!mt||mt.polygon){if(it||ot.forExport){try{Mt=this.fakeTS&&function(Ct){let Tt=rt.querySelector(".highcharts-text-outline");Tt&&_(Tt,{display:Ct})},S(Mt)&&Mt("none"),mt=rt.getBBox?u({},rt.getBBox()):{width:rt.offsetWidth,height:rt.offsetHeight,x:0,y:0},S(Mt)&&Mt("")}catch(Ct){}(!mt||mt.width<0)&&(mt={x:0,y:0,width:0,height:0})}else mt=this.htmlGetBBox();Et=mt.height,it&&(mt.height=Et={"11px,17":14,"13px,20":16}[`${pt||""},${Math.round(Et)}`]||Et),vt&&(mt=this.getRotatedBox(mt,vt));let xt={bBox:mt};C(this,"afterGetBBox",xt),mt=xt.bBox}if(I&&(P===""||mt.height>0)){for(;lt.length>250;)delete W[lt.shift()];W[I]||lt.push(I),W[I]=mt}return mt}getRotatedBox(nt,dt){let{x:mt,y:Et,width:Mt,height:I}=nt,{alignValue:Y,translateY:rt,rotationOriginX:ot=0,rotationOriginY:D=0}=this,P={right:1,center:.5}[Y||0]||0,W=Number(this.element.getAttribute("y")||0)-(rt?0:Et),lt=dt*tt,it=(dt-90)*tt,vt=Math.cos(lt),pt=Math.sin(lt),xt=Mt*vt,Ct=Mt*pt,Tt=Math.cos(it),Nt=Math.sin(it),[[gt,wt],[Rt,jt]]=[ot,D].map(te=>[te-te*vt,te*pt]),Zt=mt+P*(Mt-xt)+gt+jt+W*Tt,ne=Zt+xt,Wt=ne-I*Tt,le=Wt-xt,fe=Et+W-P*Ct-wt+Rt+W*Nt,xe=fe+Ct,be=xe-I*Nt,Ye=be-Ct,tn=Math.min(Zt,ne,Wt,le),on=Math.min(fe,xe,be,Ye),Jt=Math.max(Zt,ne,Wt,le)-tn,Kt=Math.max(fe,xe,be,Ye)-on;return{x:tn,y:on,width:Jt,height:Kt,polygon:[[Zt,fe],[ne,xe],[Wt,be],[le,Ye]]}}getStyle(nt){return U.getComputedStyle(this.element||this,"").getPropertyValue(nt)}hasClass(nt){return(""+this.attr("class")).split(" ").indexOf(nt)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(nt,dt){this.onEvents={},this.opacity=1,this.SVG_NS=F,this.element=dt==="span"||dt==="body"?M(dt):H.createElementNS(this.SVG_NS,dt),this.renderer=nt,this.styles={},C(this,"afterInit")}on(nt,dt){let{onEvents:mt}=this;return mt[nt]&&mt[nt](),mt[nt]=d(this.element,nt,dt),this}opacitySetter(nt,dt,mt){let Et=Number(Number(nt).toFixed(3));this.opacity=Et,mt.setAttribute(dt,Et)}reAlign(){var nt;(nt=this.alignOptions)!=null&&nt.width&&this.alignOptions.align!=="left"&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(nt){return this.attr("class",(""+this.attr("class")).replace(g(nt)?RegExp(`(^| )${nt}( |$)`):nt," ").replace(/ +/g," ").trim())}removeTextOutline(){let nt=this.element.querySelector("tspan.highcharts-text-outline");nt&&this.safeRemoveChild(nt)}safeRemoveChild(nt){let dt=nt.parentNode;dt&&dt.removeChild(nt)}setRadialReference(nt){let dt=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=nt,dt&&dt.radAttr&&dt.animate(this.renderer.getRadialAttr(nt,dt.radAttr)),this}shadow(nt){var Mt;let{renderer:dt}=this,mt=x(((Mt=this.parentGroup)==null?void 0:Mt.rotation)===90?{offsetX:-1,offsetY:-1}:{},v(nt)?nt:{}),Et=dt.shadowDefinition(mt);return this.attr({filter:nt?`url(${dt.url}#${Et})`:"none"})}show(nt=!0){return this.attr({visibility:nt?"inherit":"visible"})}"stroke-widthSetter"(nt,dt,mt){this[dt]=nt,mt.setAttribute(dt,nt)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let nt=this.getStyle("stroke-width"),dt=0,mt;return/px$/.test(nt)?dt=f(nt):nt!==""&&(L(mt=H.createElementNS(F,"rect"),{width:nt,"stroke-width":0}),this.element.parentNode.appendChild(mt),dt=mt.getBBox().width,mt.parentNode.removeChild(mt)),dt}symbolAttr(nt){let dt=this;Q.symbolCustomAttribs.forEach(function(mt){dt[mt]=l(nt[mt],dt[mt])}),dt.attr({d:dt.renderer.symbols[dt.symbolName](dt.x,dt.y,dt.width,dt.height,dt)})}textSetter(nt){nt!==this.textStr&&(delete this.textPxLength,this.textStr=nt,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(nt){let dt=this.element,mt=dt.getElementsByTagName("title")[0]||H.createElementNS(this.SVG_NS,"title");dt.insertBefore?dt.insertBefore(mt,dt.firstChild):dt.appendChild(mt),mt.textContent=z(l(nt,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){let nt=this.element;return nt.parentNode.appendChild(nt),this}translate(nt,dt){return this.attr({translateX:nt,translateY:dt})}updateTransform(nt="transform"){var W;let{element:dt,matrix:mt,rotation:Et=0,rotationOriginX:Mt,rotationOriginY:I,scaleX:Y,scaleY:rt,translateX:ot=0,translateY:D=0}=this,P=["translate("+ot+","+D+")"];w(mt)&&P.push("matrix("+mt.join(",")+")"),Et&&(P.push("rotate("+Et+" "+l(Mt,dt.getAttribute("x"),0)+" "+l(I,dt.getAttribute("y")||0)+")"),((W=this.text)==null?void 0:W.element.tagName)==="SPAN"&&this.text.attr({rotation:Et,rotationOriginX:(Mt||0)-this.padding,rotationOriginY:(I||0)-this.padding})),(w(Y)||w(rt))&&P.push("scale("+l(Y,1)+" "+l(rt,1)+")"),P.length&&!(this.text||this).textPath&&dt.setAttribute(nt,P.join(" "))}visibilitySetter(nt,dt,mt){nt==="inherit"?mt.removeAttribute(dt):this[dt]!==nt&&mt.setAttribute(dt,nt),this[dt]=nt}xGetter(nt){return this.element.nodeName==="circle"&&(nt==="x"?nt="cx":nt==="y"&&(nt="cy")),this._defaultGetter(nt)}zIndexSetter(nt,dt){let mt=this.renderer,Et=this.parentGroup,Mt=(Et||mt).element||mt.box,I=this.element,Y=Mt===mt.box,rt,ot,D,P=!1,W,lt=this.added,it;if(w(nt)?(I.setAttribute("data-z-index",nt),nt=+nt,this[dt]===nt&&(lt=!1)):w(this[dt])&&I.removeAttribute("data-z-index"),this[dt]=nt,lt){for((nt=this.zIndex)&&Et&&(Et.handleZ=!0),it=(rt=Mt.childNodes).length-1;it>=0&&!P;it--)W=!w(D=(ot=rt[it]).getAttribute("data-z-index")),ot!==I&&(nt<0&&W&&!Y&&!it?(Mt.insertBefore(I,rt[it]),P=!0):(f(D)<=nt||W&&(!w(nt)||nt>=0))&&(Mt.insertBefore(I,rt[it+1]),P=!0));P||(Mt.insertBefore(I,rt[Y?3:0]),P=!0)}return P}}return Q.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],Q.prototype.strokeSetter=Q.prototype.fillSetter,Q.prototype.yGetter=Q.prototype.xGetter,Q.prototype.matrixSetter=Q.prototype.rotationOriginXSetter=Q.prototype.rotationOriginYSetter=Q.prototype.rotationSetter=Q.prototype.scaleXSetter=Q.prototype.scaleYSetter=Q.prototype.translateXSetter=Q.prototype.translateYSetter=Q.prototype.verticalAlignSetter=function(st,nt){this[nt]=st,this.doTransform=!0},Q}),y(m,"Core/Renderer/SVG/SVGLabel.js",[m["Core/Renderer/SVG/SVGElement.js"],m["Core/Utilities.js"]],function(R,B){let{defined:et,extend:K,isNumber:J,merge:q,pick:Z,removeEvent:tt}=B;class H extends R{constructor(F,U,d,L,M,s,_,w,o,u){let C;super(F,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=U,this.x=d,this.y=L,this.anchorX=s,this.anchorY=_,this.baseline=o,this.className=u,this.addClass(u==="button"?"highcharts-no-tooltip":"highcharts-label"),u&&this.addClass("highcharts-"+u),this.text=F.text(void 0,0,0,w).attr({zIndex:1}),typeof M=="string"&&((C=/^url\((.*?)\)$/.test(M))||this.renderer.symbols[M])&&(this.symbolKey=M),this.bBox=H.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=F.styledMode||C,this.deferredAttr={},this.alignFactor=0}alignSetter(F){let U={left:0,center:.5,right:1}[F];U!==this.alignFactor&&(this.alignFactor=U,this.bBox&&J(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(F,U){this.anchorX=F,this.boxAttr(U,Math.round(F)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(F,U){this.anchorY=F,this.boxAttr(U,F-this.ySetting)}boxAttr(F,U){this.box?this.box.attr(F,U):this.deferredAttr[F]=U}css(F){if(F){let U={};F=q(F),H.textProps.forEach(d=>{F[d]!==void 0&&(U[d]=F[d],delete F[d])}),this.text.css(U),"fontSize"in U||"fontWeight"in U?this.updateTextPadding():("width"in U||"textOverflow"in U)&&this.updateBoxSize()}return R.prototype.css.call(this,F)}destroy(){tt(this.element,"mouseenter"),tt(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),R.prototype.destroy.call(this)}fillSetter(F,U){F&&(this.needsBox=!0),this.fill=F,this.boxAttr(U,F)}getBBox(F,U){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();let{padding:d,height:L=0,translateX:M=0,translateY:s=0,width:_=0}=this,w=Z(this.paddingLeft,d),o=U!=null?U:this.rotation||0,u={width:_,height:L,x:M+this.bBox.x-w,y:s+this.bBox.y-d+this.baselineOffset};return o&&(u=this.getRotatedBox(u,o)),u}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(F){this.heightSetting=F,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:Z(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&et(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(F,U){J(F)?F!==this[U]&&(this[U]=F,this.updateTextPadding()):this[U]=void 0}rSetter(F,U){this.boxAttr(U,F)}strokeSetter(F,U){this.stroke=F,this.boxAttr(U,F)}"stroke-widthSetter"(F,U){F&&(this.needsBox=!0),this["stroke-width"]=F,this.boxAttr(U,F)}"text-alignSetter"(F){this.textAlign=F}textSetter(F){F!==void 0&&this.text.attr({text:F}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let F,U=this.text,d={},L=this.padding,M=this.bBox=(!J(this.widthSetting)||!J(this.heightSetting)||this.textAlign)&&et(U.textStr)?U.getBBox(void 0,0):H.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||M.height||0)+2*L;let s=this.renderer.fontMetrics(U);if(this.baselineOffset=L+Math.min((this.text.firstLineMetrics||s).b,M.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-s.h)/2),this.needsBox&&!U.textPath){if(!this.box){let _=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();_.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),_.add(this)}F=this.getCrispAdjust(),d.x=F,d.y=(this.baseline?-this.baselineOffset:0)+F,d.width=Math.round(this.width),d.height=Math.round(this.height),this.box.attr(K(d,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let F=this.text;if(!F.textPath){this.updateBoxSize();let U=this.baseline?0:this.baselineOffset,d=Z(this.paddingLeft,this.padding);et(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(d+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(d!==F.x||U!==F.y)&&(F.attr("x",d),F.hasBoxWidthChanged&&(this.bBox=F.getBBox(!0)),U!==void 0&&F.attr("y",U)),F.x=d,F.y=U}}widthSetter(F){this.widthSetting=J(F)?F:void 0,this.doUpdate=!0}getPaddedWidth(){let F=this.padding,U=Z(this.paddingLeft,F),d=Z(this.paddingRight,F);return(this.widthSetting||this.bBox.width||0)+U+d}xSetter(F){this.x=F,this.alignFactor&&(F-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(F),this.attr("translateX",this.xSetting)}ySetter(F){this.ySetting=this.y=Math.round(F),this.attr("translateY",this.ySetting)}}return H.emptyBBox={width:0,height:0,x:0,y:0},H.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],H}),y(m,"Core/Renderer/SVG/Symbols.js",[m["Core/Utilities.js"]],function(R){let{defined:B,isNumber:et,pick:K}=R;function J(tt,H,X,F,U){let d=[];if(U){let L=U.start||0,M=K(U.r,X),s=K(U.r,F||X),_=2e-4/(U.borderRadius?1:Math.max(M,1)),w=Math.abs((U.end||0)-L-2*Math.PI)<_,o=(U.end||0)-(w?_:0),u=U.innerR,C=K(U.open,w),E=Math.cos(L),S=Math.sin(L),v=Math.cos(o),g=Math.sin(o),x=K(U.longArc,o-L-Math.PI<_?0:1),p=["A",M,s,0,x,K(U.clockwise,1),tt+M*v,H+s*g];p.params={start:L,end:o,cx:tt,cy:H},d.push(["M",tt+M*E,H+s*S],p),B(u)&&((p=["A",u,u,0,x,B(U.clockwise)?1-U.clockwise:0,tt+u*E,H+u*S]).params={start:o,end:L,cx:tt,cy:H},d.push(C?["M",tt+u*v,H+u*g]:["L",tt+u*v,H+u*g],p)),C||d.push(["Z"])}return d}function q(tt,H,X,F,U){return U&&U.r?Z(tt,H,X,F,U):[["M",tt,H],["L",tt+X,H],["L",tt+X,H+F],["L",tt,H+F],["Z"]]}function Z(tt,H,X,F,U){let d=(U==null?void 0:U.r)||0;return[["M",tt+d,H],["L",tt+X-d,H],["A",d,d,0,0,1,tt+X,H+d],["L",tt+X,H+F-d],["A",d,d,0,0,1,tt+X-d,H+F],["L",tt+d,H+F],["A",d,d,0,0,1,tt,H+F-d],["L",tt,H+d],["A",d,d,0,0,1,tt+d,H],["Z"]]}return{arc:J,callout:function(tt,H,X,F,U){let d=Math.min(U&&U.r||0,X,F),L=d+6,M=U&&U.anchorX,s=U&&U.anchorY||0,_=Z(tt,H,X,F,{r:d});if(!et(M)||M0&&s0)return _;if(tt+M>X-L)if(s>H+L&&sH+L&&s0){let w=sF&&ML&&_.splice(1,1,["L",M-6,H],["L",M,H-6],["L",M+6,H],["L",X-d,H]);return _},circle:function(tt,H,X,F){return J(tt+X/2,H+F/2,X/2,F/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(tt,H,X,F){return[["M",tt+X/2,H],["L",tt+X,H+F/2],["L",tt+X/2,H+F],["L",tt,H+F/2],["Z"]]},rect:q,roundedRect:Z,square:q,triangle:function(tt,H,X,F){return[["M",tt+X/2,H],["L",tt+X,H+F],["L",tt,H+F],["Z"]]},"triangle-down":function(tt,H,X,F){return[["M",tt,H],["L",tt+X,H],["L",tt+X/2,H+F],["Z"]]}}}),y(m,"Core/Renderer/SVG/TextBuilder.js",[m["Core/Renderer/HTML/AST.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B,et){let{doc:K,SVG_NS:J,win:q}=B,{attr:Z,extend:tt,fireEvent:H,isString:X,objectEach:F,pick:U}=et;return class{constructor(d){let L=d.styles;this.renderer=d.renderer,this.svgElement=d,this.width=d.textWidth,this.textLineHeight=L&&L.lineHeight,this.textOutline=L&&L.textOutline,this.ellipsis=!!(L&&L.textOverflow==="ellipsis"),this.noWrap=!!(L&&L.whiteSpace==="nowrap")}buildSVG(){let d=this.svgElement,L=d.element,M=d.renderer,s=U(d.textStr,"").toString(),_=s.indexOf("<")!==-1,w=L.childNodes,o=!d.added&&M.box,u=[s,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,d.getStyle("font-size"),this.width].join(",");if(u!==d.textCache){d.textCache=u,delete d.actualWidth;for(let C=w.length;C--;)L.removeChild(w[C]);if(_||this.ellipsis||this.width||d.textPath||s.indexOf(" ")!==-1&&(!this.noWrap||//g.test(s))){if(s!==""){o&&o.appendChild(L);let C=new R(s);this.modifyTree(C.nodes),C.addToDOM(L),this.modifyDOM(),this.ellipsis&&(L.textContent||"").indexOf("\u2026")!==-1&&d.attr("title",this.unescapeEntities(d.textStr||"",["<",">"])),o&&o.removeChild(L)}}else L.appendChild(K.createTextNode(this.unescapeEntities(s)));X(this.textOutline)&&d.applyTextOutline&&d.applyTextOutline(this.textOutline)}}modifyDOM(){let d,L=this.svgElement,M=Z(L.element,"x");for(L.firstLineMetrics=void 0;(d=L.element.firstChild)&&/^[\s\u200B]*$/.test(d.textContent||" ");)L.element.removeChild(d);[].forEach.call(L.element.querySelectorAll("tspan.highcharts-br"),(o,u)=>{o.nextSibling&&o.previousSibling&&(u===0&&o.previousSibling.nodeType===1&&(L.firstLineMetrics=L.renderer.fontMetrics(o.previousSibling)),Z(o,{dy:this.getLineHeight(o.nextSibling),x:M}))});let s=this.width||0;if(!s)return;let _=(o,u)=>{let C=o.textContent||"",E=C.replace(/([^\^])-/g,"$1- ").split(" "),S=!this.noWrap&&(E.length>1||L.element.childNodes.length>1),v=this.getLineHeight(u),g=0,x=L.actualWidth;if(this.ellipsis)C&&this.truncate(o,C,void 0,0,Math.max(0,s-.8*v),(p,l)=>p.substring(0,l)+"\u2026");else if(S){let p=[],l=[];for(;u.firstChild&&u.firstChild!==o;)l.push(u.firstChild),u.removeChild(u.firstChild);for(;E.length;)E.length&&!this.noWrap&&g>0&&(p.push(o.textContent||""),o.textContent=E.join(" ").replace(/- /g,"-")),this.truncate(o,void 0,E,g===0&&x||0,s,(f,b)=>E.slice(0,b).join(" ").replace(/- /g,"-")),x=L.actualWidth,g++;l.forEach(f=>{u.insertBefore(f,o)}),p.forEach(f=>{u.insertBefore(K.createTextNode(f),o);let b=K.createElementNS(J,"tspan");b.textContent="\u200B",Z(b,{dy:v,x:M}),u.insertBefore(b,o)})}},w=o=>{[].slice.call(o.childNodes).forEach(u=>{u.nodeType===q.Node.TEXT_NODE?_(u,o):(u.className.baseVal.indexOf("highcharts-br")!==-1&&(L.actualWidth=0),w(u))})};w(L.element)}getLineHeight(d){let L=d.nodeType===q.Node.TEXT_NODE?d.parentElement:d;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(L||this.svgElement.element).h}modifyTree(d){let L=(M,s)=>{let{attributes:_={},children:w,style:o={},tagName:u}=M,C=this.renderer.styledMode;if(u==="b"||u==="strong"?C?_.class="highcharts-strong":o.fontWeight="bold":(u==="i"||u==="em")&&(C?_.class="highcharts-emphasized":o.fontStyle="italic"),o&&o.color&&(o.fill=o.color),u==="br"){_.class="highcharts-br",M.textContent="\u200B";let E=d[s+1];E&&E.textContent&&(E.textContent=E.textContent.replace(/^ +/gm,""))}else u==="a"&&w&&w.some(E=>E.tagName==="#text")&&(M.children=[{children:w,tagName:"tspan"}]);u!=="#text"&&u!=="a"&&(M.tagName="tspan"),tt(M,{attributes:_,style:o}),w&&w.filter(E=>E.tagName!=="#text").forEach(L)};d.forEach(L),H(this.svgElement,"afterModifyTree",{nodes:d})}truncate(d,L,M,s,_,w){let o,u,C=this.svgElement,{rotation:E}=C,S=[],v=M?1:0,g=(L||M||"").length,x=g,p=function(l,f){let b=f||l,z=d.parentNode;if(z&&S[b]===void 0&&z.getSubStringLength)try{S[b]=s+z.getSubStringLength(0,M?b+1:b)}catch(T){}return S[b]};if(C.rotation=0,s+(u=p(d.textContent.length))>_){for(;v<=g;)x=Math.ceil((v+g)/2),M&&(o=w(M,x)),u=p(x,o&&o.length-1),v===g?v=g+1:u>_?g=x-1:v=x;g===0?d.textContent="":L&&g===L.length-1||(d.textContent=o||w(L||M,x))}M&&M.splice(0,x),C.actualWidth=u,C.rotation=E}unescapeEntities(d,L){return F(this.renderer.escapes,function(M,s){L&&L.indexOf(M)!==-1||(d=d.toString().replace(RegExp(M,"g"),s))}),d}}}),y(m,"Core/Renderer/SVG/SVGRenderer.js",[m["Core/Renderer/HTML/AST.js"],m["Core/Defaults.js"],m["Core/Color/Color.js"],m["Core/Globals.js"],m["Core/Renderer/RendererRegistry.js"],m["Core/Renderer/SVG/SVGElement.js"],m["Core/Renderer/SVG/SVGLabel.js"],m["Core/Renderer/SVG/Symbols.js"],m["Core/Renderer/SVG/TextBuilder.js"],m["Core/Utilities.js"]],function(R,B,et,K,J,q,Z,tt,H,X){let F,{defaultOptions:U}=B,{charts:d,deg2rad:L,doc:M,isFirefox:s,isMS:_,isWebKit:w,noop:o,SVG_NS:u,symbolSizes:C,win:E}=K,{addEvent:S,attr:v,createElement:g,crisp:x,css:p,defined:l,destroyObjectProperties:f,extend:b,isArray:z,isNumber:T,isObject:k,isString:Q,merge:st,pick:nt,pInt:dt,replaceNested:mt,uniqueKey:Et}=X;class Mt{constructor(Y,rt,ot,D,P,W,lt){let it,vt,pt=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),xt=pt.element;lt||pt.css(this.getStyle(D||{})),Y.appendChild(xt),v(Y,"dir","ltr"),Y.innerHTML.indexOf("xmlns")===-1&&v(xt,"xmlns",this.SVG_NS),this.box=xt,this.boxWrapper=pt,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(M.createTextNode("Created with Highcharts 11.4.8")),this.defs=this.createElement("defs").add(),this.allowHTML=W,this.forExport=P,this.styledMode=lt,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=pt.getStyle("font-size"),this.setSize(rt,ot,!1),s&&Y.getBoundingClientRect&&((it=function(){p(Y,{left:0,top:0}),vt=Y.getBoundingClientRect(),p(Y,{left:Math.ceil(vt.left)-vt.left+"px",top:Math.ceil(vt.top)-vt.top+"px"})})(),this.unSubPixelFix=S(E,"resize",it))}definition(Y){return new R([Y]).addToDOM(this.defs.element)}getReferenceURL(){if((s||w)&&M.getElementsByTagName("base").length){if(!l(F)){let Y=Et(),rt=new R([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:Y},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${Y})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(M.body);p(rt,{position:"fixed",top:0,left:0,zIndex:9e5});let ot=M.elementFromPoint(6,6);F=(ot&&ot.id)==="hitme",M.body.removeChild(rt)}if(F)return mt(E.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(Y){return this.style=b({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},Y),this.style}setStyle(Y){this.boxWrapper.css(this.getStyle(Y))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let Y=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),f(this.gradients||{}),this.gradients=null,this.defs=Y.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(Y){return new this.Element(this,Y)}getRadialAttr(Y,rt){return{cx:Y[0]-Y[2]/2+(rt.cx||0)*Y[2],cy:Y[1]-Y[2]/2+(rt.cy||0)*Y[2],r:(rt.r||0)*Y[2]}}shadowDefinition(Y){let rt=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(Y).map(D=>`${D}-${Y[D]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),ot=st({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},Y);return this.defs.element.querySelector(`#${rt}`)||this.definition({tagName:"filter",attributes:{id:rt,filterUnits:ot.filterUnits},children:this.getShadowFilterContent(ot)}),rt}getShadowFilterContent(Y){return[{tagName:"feDropShadow",attributes:{dx:Y.offsetX,dy:Y.offsetY,"flood-color":Y.color,"flood-opacity":Math.min(5*Y.opacity,1),stdDeviation:Y.width/2}}]}buildText(Y){new H(Y).buildSVG()}getContrast(Y){let rt=et.parse(Y).rgba.map(D=>{let P=D/255;return P<=.03928?P/12.92:Math.pow((P+.055)/1.055,2.4)}),ot=.2126*rt[0]+.7152*rt[1]+.0722*rt[2];return 1.05/(ot+.05)>(ot+.05)/.05?"#FFFFFF":"#000000"}button(Y,rt,ot,D,P={},W,lt,it,vt,pt){let xt=this.label(Y,rt,ot,vt,void 0,void 0,pt,void 0,"button"),Ct=this.styledMode,Tt=arguments,Nt=0;P=st(U.global.buttonTheme,P),Ct&&(delete P.fill,delete P.stroke,delete P["stroke-width"]);let gt=P.states||{},wt=P.style||{};delete P.states,delete P.style;let Rt=[R.filterUserAttributes(P)],jt=[wt];return Ct||["hover","select","disabled"].forEach((Zt,ne)=>{Rt.push(st(Rt[0],R.filterUserAttributes(Tt[ne+5]||gt[Zt]||{}))),jt.push(Rt[ne+1].style),delete Rt[ne+1].style}),S(xt.element,_?"mouseover":"mouseenter",function(){Nt!==3&&xt.setState(1)}),S(xt.element,_?"mouseout":"mouseleave",function(){Nt!==3&&xt.setState(Nt)}),xt.setState=(Zt=0)=>{if(Zt!==1&&(xt.state=Nt=Zt),xt.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][Zt]),!Ct){xt.attr(Rt[Zt]);let ne=jt[Zt];k(ne)&&xt.css(ne)}},xt.attr(Rt[0]),!Ct&&(xt.css(b({cursor:"default"},wt)),pt&&xt.text.css({pointerEvents:"none"})),xt.on("touchstart",Zt=>Zt.stopPropagation()).on("click",function(Zt){Nt!==3&&D.call(xt,Zt)})}crispLine(Y,rt){let[ot,D]=Y;return l(ot[1])&&ot[1]===D[1]&&(ot[1]=D[1]=x(ot[1],rt)),l(ot[2])&&ot[2]===D[2]&&(ot[2]=D[2]=x(ot[2],rt)),Y}path(Y){let rt=this.styledMode?{}:{fill:"none"};return z(Y)?rt.d=Y:k(Y)&&b(rt,Y),this.createElement("path").attr(rt)}circle(Y,rt,ot){let D=k(Y)?Y:Y===void 0?{}:{x:Y,y:rt,r:ot},P=this.createElement("circle");return P.xSetter=P.ySetter=function(W,lt,it){it.setAttribute("c"+lt,W)},P.attr(D)}arc(Y,rt,ot,D,P,W){let lt;k(Y)?(rt=(lt=Y).y,ot=lt.r,D=lt.innerR,P=lt.start,W=lt.end,Y=lt.x):lt={innerR:D,start:P,end:W};let it=this.symbol("arc",Y,rt,ot,ot,lt);return it.r=ot,it}rect(Y,rt,ot,D,P,W){let lt=k(Y)?Y:Y===void 0?{}:{x:Y,y:rt,r:P,width:Math.max(ot||0,0),height:Math.max(D||0,0)},it=this.createElement("rect");return this.styledMode||(W!==void 0&&(lt["stroke-width"]=W,b(lt,it.crisp(lt))),lt.fill="none"),it.rSetter=function(vt,pt,xt){it.r=vt,v(xt,{rx:vt,ry:vt})},it.rGetter=function(){return it.r||0},it.attr(lt)}roundedRect(Y){return this.symbol("roundedRect").attr(Y)}setSize(Y,rt,ot){this.width=Y,this.height=rt,this.boxWrapper.animate({width:Y,height:rt},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:nt(ot,!0)?void 0:0}),this.alignElements()}g(Y){let rt=this.createElement("g");return Y?rt.attr({class:"highcharts-"+Y}):rt}image(Y,rt,ot,D,P,W){let lt={preserveAspectRatio:"none"};T(rt)&&(lt.x=rt),T(ot)&&(lt.y=ot),T(D)&&(lt.width=D),T(P)&&(lt.height=P);let it=this.createElement("image").attr(lt),vt=function(pt){it.attr({href:Y}),W.call(it,pt)};if(W){it.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let pt=new E.Image;S(pt,"load",vt),pt.src=Y,pt.complete&&vt({})}else it.attr({href:Y});return it}symbol(Y,rt,ot,D,P,W){let lt,it,vt,pt,xt=this,Ct=/^url\((.*?)\)$/,Tt=Ct.test(Y),Nt=!Tt&&(this.symbols[Y]?Y:"circle"),gt=Nt&&this.symbols[Nt];if(gt)typeof rt=="number"&&(it=gt.call(this.symbols,rt||0,ot||0,D||0,P||0,W)),lt=this.path(it),xt.styledMode||lt.attr("fill","none"),b(lt,{symbolName:Nt||void 0,x:rt,y:ot,width:D,height:P}),W&&b(lt,W);else if(Tt){vt=Y.match(Ct)[1];let wt=lt=this.image(vt);wt.imgwidth=nt(W&&W.width,C[vt]&&C[vt].width),wt.imgheight=nt(W&&W.height,C[vt]&&C[vt].height),pt=Rt=>Rt.attr({width:Rt.width,height:Rt.height}),["width","height"].forEach(Rt=>{wt[`${Rt}Setter`]=function(jt,Zt){this[Zt]=jt;let{alignByTranslate:ne,element:Wt,width:le,height:fe,imgwidth:xe,imgheight:be}=this,Ye=Zt==="width"?xe:be,tn=1;W&&W.backgroundSize==="within"&&le&&fe&&xe&&be?(tn=Math.min(le/xe,fe/be),v(Wt,{width:Math.round(xe*tn),height:Math.round(be*tn)})):Wt&&Ye&&Wt.setAttribute(Zt,Ye),!ne&&xe&&be&&this.translate(((le||0)-xe*tn)/2,((fe||0)-be*tn)/2)}}),l(rt)&&wt.attr({x:rt,y:ot}),wt.isImg=!0,wt.symbolUrl=Y,l(wt.imgwidth)&&l(wt.imgheight)?pt(wt):(wt.attr({width:0,height:0}),g("img",{onload:function(){let Rt=d[xt.chartIndex];this.width===0&&(p(this,{position:"absolute",top:"-999em"}),M.body.appendChild(this)),C[vt]={width:this.width,height:this.height},wt.imgwidth=this.width,wt.imgheight=this.height,wt.element&&pt(wt),this.parentNode&&this.parentNode.removeChild(this),xt.imgCount--,xt.imgCount||!Rt||Rt.hasLoaded||Rt.onload()},src:vt}),this.imgCount++)}return lt}clipRect(Y,rt,ot,D){return this.rect(Y,rt,ot,D,0)}text(Y,rt,ot,D){let P={};if(D&&(this.allowHTML||!this.forExport))return this.html(Y,rt,ot);P.x=Math.round(rt||0),ot&&(P.y=Math.round(ot)),l(Y)&&(P.text=Y);let W=this.createElement("text").attr(P);return D&&(!this.forExport||this.allowHTML)||(W.xSetter=function(lt,it,vt){let pt=vt.getElementsByTagName("tspan"),xt=vt.getAttribute(it);for(let Ct=0,Tt;CtY.align())}}return b(Mt.prototype,{Element:q,SVG_NS:u,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:tt,draw:o}),J.registerRendererType("svg",Mt,!0),Mt}),y(m,"Core/Renderer/HTML/HTMLElement.js",[m["Core/Renderer/HTML/AST.js"],m["Core/Globals.js"],m["Core/Renderer/SVG/SVGElement.js"],m["Core/Utilities.js"]],function(R,B,et,K){let{composed:J}=B,{attr:q,css:Z,createElement:tt,defined:H,extend:X,pInt:F,pushUnique:U}=K;function d(_,w,o){var C;let u=((C=this.div)==null?void 0:C.style)||o.style;et.prototype[`${w}Setter`].call(this,_,w,o),u&&(u[w]=_)}let L=(_,w)=>{var o;if(!_.div){let u=q(_.element,"class"),C=_.css,E=tt("div",u?{className:u}:void 0,co(Fr({position:"absolute",left:`${_.translateX||0}px`,top:`${_.translateY||0}px`},_.styles),{display:_.display,opacity:_.opacity,visibility:_.visibility}),((o=_.parentGroup)==null?void 0:o.div)||w);_.classSetter=(S,v,g)=>{g.setAttribute("class",S),E.className=S},_.translateXSetter=_.translateYSetter=(S,v)=>{_[v]=S,E.style[v==="translateX"?"left":"top"]=`${S}px`,_.doTransform=!0},_.opacitySetter=_.visibilitySetter=d,_.css=S=>(C.call(_,S),S.cursor&&(E.style.cursor=S.cursor),S.pointerEvents&&(E.style.pointerEvents=S.pointerEvents),_),_.on=function(){return et.prototype.on.apply({element:E,onEvents:_.onEvents},arguments),_},_.div=E}return _.div};class M extends et{static compose(w){U(J,this.compose)&&(w.prototype.html=function(o,u,C){return new M(this,"span").attr({text:o,x:Math.round(u),y:Math.round(C)})})}constructor(w,o){super(w,o),this.css(Fr({position:"absolute"},w.styledMode?{}:{fontFamily:w.style.fontFamily,fontSize:w.style.fontSize})),this.element.style.whiteSpace="nowrap"}getSpanCorrection(w,o,u){this.xCorr=-w*u,this.yCorr=-o}css(w){let o,{element:u}=this,C=u.tagName==="SPAN"&&w&&"width"in w,E=C&&w.width;return C&&(delete w.width,this.textWidth=F(E)||void 0,o=!0),(w==null?void 0:w.textOverflow)==="ellipsis"&&(w.whiteSpace="nowrap",w.overflow="hidden"),X(this.styles,w),Z(u,w),o&&this.updateTransform(),this}htmlGetBBox(){let{element:w}=this;return{x:w.offsetLeft,y:w.offsetTop,width:w.offsetWidth,height:w.offsetHeight}}updateTransform(){var T;if(!this.added){this.alignOnAdd=!0;return}let{element:w,renderer:o,rotation:u,rotationOriginX:C,rotationOriginY:E,styles:S,textAlign:v="left",textWidth:g,translateX:x=0,translateY:p=0,x:l=0,y:f=0}=this,b={left:0,center:.5,right:1}[v],z=S.whiteSpace;if(Z(w,{marginLeft:`${x}px`,marginTop:`${p}px`}),w.tagName==="SPAN"){let k=[u,v,w.innerHTML,g,this.textAlign].join(","),Q=-(((T=this.parentGroup)==null?void 0:T.padding)*1)||0,st,nt=!1;if(g!==this.oldTextWidth){let I=this.textPxLength?this.textPxLength:(Z(w,{width:"",whiteSpace:z||"nowrap"}),w.offsetWidth),Y=g||0;(Y>this.oldTextWidth||I>Y)&&(/[ \-]/.test(w.textContent||w.innerText)||w.style.textOverflow==="ellipsis")&&(Z(w,{width:I>Y||u?g+"px":"auto",display:"block",whiteSpace:z||"normal"}),this.oldTextWidth=g,nt=!0)}this.hasBoxWidthChanged=nt,k!==this.cTT&&(st=o.fontMetrics(w).b,H(u)&&(u!==(this.oldRotation||0)||v!==this.oldAlign)&&this.setSpanRotation(u,Q,Q),this.getSpanCorrection(!H(u)&&this.textPxLength||w.offsetWidth,st,b));let{xCorr:dt=0,yCorr:mt=0}=this,Et=(C!=null?C:l)-dt-l-Q,Mt=(E!=null?E:f)-mt-f-Q;Z(w,{left:`${l+dt}px`,top:`${f+mt}px`,transformOrigin:`${Et}px ${Mt}px`}),this.cTT=k,this.oldRotation=u,this.oldAlign=v}}setSpanRotation(w,o,u){Z(this.element,{transform:`rotate(${w}deg)`,transformOrigin:`${o}% ${u}px`})}add(w){let o,u=this.renderer.box.parentNode,C=[];if(this.parentGroup=w,w&&!(o=w.div)){let E=w;for(;E;)C.push(E),E=E.parentGroup;for(let S of C.reverse())o=L(S,u)}return(o||u).appendChild(this.element),this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(w){w!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,R.setElementHTML(this.element,w!=null?w:""),this.textStr=w,this.doTransform=!0)}alignSetter(w){this.alignValue=this.textAlign=w,this.doTransform=!0}xSetter(w,o){this[o]=w,this.doTransform=!0}}let s=M.prototype;return s.visibilitySetter=s.opacitySetter=d,s.ySetter=s.rotationSetter=s.rotationOriginXSetter=s.rotationOriginYSetter=s.xSetter,M}),y(m,"Core/Axis/AxisDefaults.js",[],function(){var R,B;return(B=R||(R={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},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:"#333333",cursor:"default",fontSize:"0.8em"}},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,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},B.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:et}=this.axis.chart;return et(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},R}),y(m,"Core/Foundation.js",[m["Core/Utilities.js"]],function(R){var B;let{addEvent:et,isFunction:K,objectEach:J,removeEvent:q}=R;return(B||(B={})).registerEventOptions=function(Z,tt){Z.eventOptions=Z.eventOptions||{},J(tt.events,function(H,X){Z.eventOptions[X]!==H&&(Z.eventOptions[X]&&(q(Z,X,Z.eventOptions[X]),delete Z.eventOptions[X]),K(H)&&(Z.eventOptions[X]=H,et(Z,X,H,{order:0})))})},B}),y(m,"Core/Axis/Tick.js",[m["Core/Templating.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B,et){let{deg2rad:K}=B,{clamp:J,correctFloat:q,defined:Z,destroyObjectProperties:tt,extend:H,fireEvent:X,isNumber:F,merge:U,objectEach:d,pick:L}=et;return class{constructor(M,s,_,w,o){this.isNew=!0,this.isNewLabel=!0,this.axis=M,this.pos=s,this.type=_||"",this.parameters=o||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,X(this,"init"),_||w||this.addLabel()}addLabel(){let M=this,s=M.axis,_=s.options,w=s.chart,o=s.categories,u=s.logarithmic,C=s.names,E=M.pos,S=L(M.options&&M.options.labels,_.labels),v=s.tickPositions,g=E===v[0],x=E===v[v.length-1],p=(!S.step||S.step===1)&&s.tickInterval===1,l=v.info,f=M.label,b,z,T,k=this.parameters.category||(o?L(o[E],C[E],E):E);u&&F(k)&&(k=q(u.lin2log(k))),s.dateTime&&(l?b=(z=w.time.resolveDTLFormat(_.dateTimeLabelFormats[!_.grid&&l.higherRanks[E]||l.unitName])).main:F(k)&&(b=s.dateTime.getXDateFormat(k,_.dateTimeLabelFormats||{}))),M.isFirst=g,M.isLast=x;let Q={axis:s,chart:w,dateTimeLabelFormat:b,isFirst:g,isLast:x,pos:E,tick:M,tickPositionInfo:l,value:k};X(this,"labelFormat",Q);let st=mt=>S.formatter?S.formatter.call(mt,mt):S.format?(mt.text=s.defaultLabelFormatter.call(mt),R.format(S.format,mt,w)):s.defaultLabelFormatter.call(mt),nt=st.call(Q,Q),dt=z&&z.list;dt?M.shortenLabel=function(){for(T=0;T0&&w+g*x>E&&(k=Math.round((o-w)/Math.cos(v*K))):(z=w-g*x,T=w+(1-g)*x,zE&&(f=E-M.x+f*g,b=-1),(f=Math.min(p,f))f||s.autoRotation&&(S.styles||{}).width)&&(k=f)),k&&(this.shortenLabel?this.shortenLabel():(l.width=Math.floor(k)+"px",(_.style||{}).textOverflow||(l.textOverflow="ellipsis"),S.css(l)))}moveLabel(M,s){let _=this,w=_.label,o=_.axis,u=!1,C;w&&w.textStr===M?(_.movedLabel=w,u=!0,delete _.label):d(o.ticks,function(E){u||E.isNew||E===_||!E.label||E.label.textStr!==M||(_.movedLabel=E.label,u=!0,E.labelPos=_.movedLabel.xy,delete E.label)}),!u&&(_.labelPos||w)&&(C=_.labelPos||w.xy,_.movedLabel=_.createLabel(M,s,C),_.movedLabel&&_.movedLabel.attr({opacity:0}))}render(M,s,_){let w=this.axis,o=w.horiz,u=this.pos,C=L(this.tickmarkOffset,w.tickmarkOffset),E=this.getPosition(o,u,C,s),S=E.x,v=E.y,g=w.pos,x=g+w.len,p=o?S:v;!w.chart.polar&&this.isNew&&(q(p)x)&&(_=0);let l=L(_,this.label&&this.label.newOpacity,1);_=L(_,1),this.isActive=!0,this.renderGridLine(s,_),this.renderMark(E,_),this.renderLabel(E,s,l,M),this.isNew=!1,X(this,"afterRender")}renderGridLine(M,s){let _=this.axis,w=_.options,o={},u=this.pos,C=this.type,E=L(this.tickmarkOffset,_.tickmarkOffset),S=_.chart.renderer,v=this.gridLine,g,x=w.gridLineWidth,p=w.gridLineColor,l=w.gridLineDashStyle;this.type==="minor"&&(x=w.minorGridLineWidth,p=w.minorGridLineColor,l=w.minorGridLineDashStyle),v||(_.chart.styledMode||(o.stroke=p,o["stroke-width"]=x||0,o.dashstyle=l),C||(o.zIndex=1),M&&(s=0),this.gridLine=v=S.path().attr(o).addClass("highcharts-"+(C?C+"-":"")+"grid-line").add(_.gridGroup)),v&&(g=_.getPlotLinePath({value:u+E,lineWidth:v.strokeWidth(),force:"pass",old:M,acrossPanes:!1}))&&v[M||this.isNew?"attr":"animate"]({d:g,opacity:s})}renderMark(M,s){let _=this.axis,w=_.options,o=_.chart.renderer,u=this.type,C=_.tickSize(u?u+"Tick":"tick"),E=M.x,S=M.y,v=L(w[u!=="minor"?"tickWidth":"minorTickWidth"],!u&&_.isXAxis?1:0),g=w[u!=="minor"?"tickColor":"minorTickColor"],x=this.mark,p=!x;C&&(_.opposite&&(C[0]=-C[0]),x||(this.mark=x=o.path().addClass("highcharts-"+(u?u+"-":"")+"tick").add(_.axisGroup),_.chart.styledMode||x.attr({stroke:g,"stroke-width":v})),x[p?"attr":"animate"]({d:this.getMarkPath(E,S,C[0],x.strokeWidth(),_.horiz,o),opacity:s}))}renderLabel(M,s,_,w){let o=this.axis,u=o.horiz,C=o.options,E=this.label,S=C.labels,v=S.step,g=L(this.tickmarkOffset,o.tickmarkOffset),x=M.x,p=M.y,l=!0;E&&F(x)&&(E.xy=M=this.getLabelPosition(x,p,E,u,S,g,w,v),(!this.isFirst||this.isLast||C.showFirstLabel)&&(!this.isLast||this.isFirst||C.showLastLabel)?!u||S.step||S.rotation||s||_===0||this.handleOverflow(M):l=!1,v&&w%v&&(l=!1),l&&F(M.y)?(M.opacity=_,E[this.isNewLabel?"attr":"animate"](M).show(!0),this.isNewLabel=!1):(E.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let M=this.label,s=this.axis;M&&!this.isNew&&(M.animate({opacity:0},void 0,M.destroy),delete this.label),s.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}}),y(m,"Core/Axis/Axis.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Axis/AxisDefaults.js"],m["Core/Color/Color.js"],m["Core/Defaults.js"],m["Core/Foundation.js"],m["Core/Globals.js"],m["Core/Axis/Tick.js"],m["Core/Utilities.js"]],function(R,B,et,K,J,q,Z,tt){let{animObject:H}=R,{xAxis:X,yAxis:F}=B,{defaultOptions:U}=K,{registerEventOptions:d}=J,{deg2rad:L}=q,{arrayMax:M,arrayMin:s,clamp:_,correctFloat:w,defined:o,destroyObjectProperties:u,erase:C,error:E,extend:S,fireEvent:v,getClosestDistance:g,insertItem:x,isArray:p,isNumber:l,isString:f,merge:b,normalizeTickInterval:z,objectEach:T,pick:k,relativeLength:Q,removeEvent:st,splat:nt,syncTimeout:dt}=tt,mt=(Mt,I)=>z(I,void 0,void 0,k(Mt.options.allowDecimals,I<.5||Mt.tickAmount!==void 0),!!Mt.tickAmount);S(U,{xAxis:X,yAxis:b(X,F)});class Et{constructor(I,Y,rt){this.init(I,Y,rt)}init(I,Y,rt=this.coll){var it,vt,pt,xt;let ot=rt==="xAxis",D=this.isZAxis||(I.inverted?!ot:ot);this.chart=I,this.horiz=D,this.isXAxis=ot,this.coll=rt,v(this,"init",{userOptions:Y}),this.opposite=k(Y.opposite,this.opposite),this.side=k(Y.side,this.side,D?this.opposite?0:2:this.opposite?1:3),this.setOptions(Y);let P=this.options,W=P.labels;(it=this.type)!=null||(this.type=P.type||"linear"),(pt=this.uniqueNames)!=null||(this.uniqueNames=(vt=P.uniqueNames)!=null?vt:!0),v(this,"afterSetType"),this.userOptions=Y,this.minPixelPadding=0,this.reversed=k(P.reversed,this.reversed),this.visible=P.visible,this.zoomEnabled=P.zoomEnabled,this.hasNames=this.type==="category"||P.categories===!0,this.categories=p(P.categories)&&P.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=o(P.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},(xt=this.len)!=null||(this.len=0),this.minRange=this.userMinRange=P.minRange||P.maxZoom,this.range=P.range,this.offset=P.offset||0,this.max=void 0,this.min=void 0;let lt=k(P.crosshair,nt(I.options.tooltip.crosshairs)[ot?0:1]);this.crosshair=lt===!0?{}:lt,I.axes.indexOf(this)===-1&&(ot?I.axes.splice(I.xAxis.length,0,this):I.axes.push(this),x(this,I[this.coll])),I.orderItems(this.coll),this.series=this.series||[],I.inverted&&!this.isZAxis&&ot&&!o(this.reversed)&&(this.reversed=!0),this.labelRotation=l(W.rotation)?W.rotation:void 0,d(this,P),v(this,"afterInit")}setOptions(I){let Y=this.horiz?{labels:{autoRotation:[-45],padding:4},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=b(Y,U[this.coll],I),v(this,"afterSetOptions",{userOptions:I})}defaultLabelFormatter(){let I=this.axis,{numberFormatter:Y}=this.chart,rt=l(this.value)?this.value:NaN,ot=I.chart.time,D=I.categories,P=this.dateTimeLabelFormat,W=U.lang,lt=W.numericSymbols,it=W.numericSymbolMagnitude||1e3,vt=I.logarithmic?Math.abs(rt):I.tickInterval,pt=lt&<.length,xt,Ct;if(D)Ct=`${this.value}`;else if(P)Ct=ot.dateFormat(P,rt);else if(pt&<&&vt>=1e3)for(;pt--&&Ct===void 0;)vt>=(xt=Math.pow(it,pt+1))&&10*rt%xt==0&<[pt]!==null&&rt!==0&&(Ct=Y(rt/xt,-1)+lt[pt]);return Ct===void 0&&(Ct=Math.abs(rt)>=1e4?Y(rt,-1):Y(rt,-1,void 0,"")),Ct}getSeriesExtremes(){let I,Y=this;v(this,"getSeriesExtremes",null,function(){Y.hasVisibleSeries=!1,Y.dataMin=Y.dataMax=Y.threshold=void 0,Y.softThreshold=!Y.isXAxis,Y.series.forEach(rt=>{if(rt.reserveSpace()){let ot=rt.options,D,P=ot.threshold,W,lt;if(Y.hasVisibleSeries=!0,Y.positiveValuesOnly&&0>=(P||0)&&(P=void 0),Y.isXAxis)(D=rt.xData)&&D.length&&(D=Y.logarithmic?D.filter(it=>it>0):D,W=(I=rt.getXExtremes(D)).min,lt=I.max,l(W)||W instanceof Date||(D=D.filter(l),W=(I=rt.getXExtremes(D)).min,lt=I.max),D.length&&(Y.dataMin=Math.min(k(Y.dataMin,W),W),Y.dataMax=Math.max(k(Y.dataMax,lt),lt)));else{let it=rt.applyExtremes();l(it.dataMin)&&(W=it.dataMin,Y.dataMin=Math.min(k(Y.dataMin,W),W)),l(it.dataMax)&&(lt=it.dataMax,Y.dataMax=Math.max(k(Y.dataMax,lt),lt)),o(P)&&(Y.threshold=P),(!ot.softThreshold||Y.positiveValuesOnly)&&(Y.softThreshold=!1)}}})}),v(this,"afterGetSeriesExtremes")}translate(I,Y,rt,ot,D,P){var Nt;let W=this.linkedParent||this,lt=ot&&W.old?W.old.min:W.min;if(!l(lt))return NaN;let it=W.minPixelPadding,vt=(W.isOrdinal||((Nt=W.brokenAxis)==null?void 0:Nt.hasBreaks)||W.logarithmic&&D)&&W.lin2val,pt=1,xt=0,Ct=ot&&W.old?W.old.transA:W.transA,Tt=0;return Ct||(Ct=W.transA),rt&&(pt*=-1,xt=W.len),W.reversed&&(pt*=-1,xt-=pt*(W.sector||W.len)),Y?(Tt=(I=I*pt+xt-it)/Ct+lt,vt&&(Tt=W.lin2val(Tt))):(vt&&(I=W.val2lin(I)),Tt=pt*(I-lt)*Ct+xt+pt*it+(l(P)?Ct*P:0),W.isRadial||(Tt=w(Tt))),Tt}toPixels(I,Y){return this.translate(I,!1,!this.horiz,void 0,!0)+(Y?0:this.pos)}toValue(I,Y){return this.translate(I-(Y?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(I){let Y=this,rt=Y.chart,ot=Y.left,D=Y.top,P=I.old,W=I.value,lt=I.lineWidth,it=P&&rt.oldChartHeight||rt.chartHeight,vt=P&&rt.oldChartWidth||rt.chartWidth,pt=Y.transB,xt=I.translatedValue,Ct=I.force,Tt,Nt,gt,wt,Rt;function jt(ne,Wt,le){return Ct!=="pass"&&(nele)&&(Ct?ne=_(ne,Wt,le):Rt=!0),ne}let Zt={value:W,lineWidth:lt,old:P,force:Ct,acrossPanes:I.acrossPanes,translatedValue:xt};return v(this,"getPlotLinePath",Zt,function(ne){Tt=gt=(xt=_(xt=k(xt,Y.translate(W,void 0,void 0,P)),-1e9,1e9))+pt,Nt=wt=it-xt-pt,l(xt)?Y.horiz?(Nt=D,wt=it-Y.bottom+(Y.options.isInternal?0:rt.scrollablePixelsY||0),Tt=gt=jt(Tt,ot,ot+Y.width)):(Tt=ot,gt=vt-Y.right+(rt.scrollablePixelsX||0),Nt=wt=jt(Nt,D,D+Y.height)):(Rt=!0,Ct=!1),ne.path=Rt&&!Ct?void 0:rt.renderer.crispLine([["M",Tt,Nt],["L",gt,wt]],lt||1)}),Zt.path}getLinearTickPositions(I,Y,rt){let ot,D,P,W=w(Math.floor(Y/I)*I),lt=w(Math.ceil(rt/I)*I),it=[];if(w(W+I)===W&&(P=20),this.single)return[Y];for(ot=W;ot<=lt&&(it.push(ot),(ot=w(ot+I,P))!==D);)D=ot;return it}getMinorTickInterval(){let{minorTicks:I,minorTickInterval:Y}=this.options;return I===!0?k(Y,"auto"):I!==!1?Y:void 0}getMinorTickPositions(){let I=this.options,Y=this.tickPositions,rt=this.minorTickInterval,ot=this.pointRangePadding||0,D=(this.min||0)-ot,P=(this.max||0)+ot,W=P-D,lt=[],it;if(W&&W/rt{var pt;return(vt.xIncrement?(pt=vt.xData)==null?void 0:pt.slice(0,2):vt.xData)||[]}))||0),this.dataMax-this.dataMin)),l(rt)&&l(ot)&&l(D)&&rt-ot=D,P=(D-rt+ot)/2,lt=[ot-P,k(I.min,ot-P)],W&&(lt[2]=Y?Y.log2lin(this.dataMin):this.dataMin),it=[(ot=M(lt))+D,k(I.max,ot+D)],W&&(it[2]=Y?Y.log2lin(this.dataMax):this.dataMax),(rt=s(it))-otot-D),I=g([rt]))}return I&&Y?Math.min(I,Y):I||Y}nameToX(I){let Y=p(this.options.categories),rt=Y?this.categories:this.names,ot=I.options.x,D;return I.series.requireSorting=!1,o(ot)||(ot=this.uniqueNames&&rt?Y?rt.indexOf(I.name):k(rt.keys[I.name],-1):I.series.autoIncrement()),ot===-1?!Y&&rt&&(D=rt.length):D=ot,D!==void 0?(this.names[D]=I.name,this.names.keys[I.name]=D):I.x&&(D=I.x),D}updateNames(){let I=this,Y=this.names;Y.length>0&&(Object.keys(Y.keys).forEach(function(rt){delete Y.keys[rt]}),Y.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(rt=>{rt.xIncrement=null,(!rt.points||rt.isDirtyData)&&(I.max=Math.max(I.max,rt.xData.length-1),rt.processData(),rt.generatePoints()),rt.data.forEach(function(ot,D){let P;ot!=null&&ot.options&&ot.name!==void 0&&(P=I.nameToX(ot))!==void 0&&P!==ot.x&&(ot.x=P,rt.xData[D]=P)})}))}setAxisTranslation(){let I=this,Y=I.max-I.min,rt=I.linkedParent,ot=!!I.categories,D=I.isXAxis,P=I.axisPointRange||0,W,lt=0,it=0,vt,pt=I.transA;(D||ot||P)&&(W=I.getClosest(),rt?(lt=rt.minPointOffset,it=rt.pointRangePadding):I.series.forEach(function(xt){let Ct=ot?1:D?k(xt.options.pointRange,W,0):I.axisPointRange||0,Tt=xt.options.pointPlacement;if(P=Math.max(P,Ct),!I.single||ot){let Nt=xt.is("xrange")?!D:D;lt=Math.max(lt,Nt&&f(Tt)?0:Ct/2),it=Math.max(it,Nt&&Tt==="on"?0:Ct)}}),vt=I.ordinal&&I.ordinal.slope&&W?I.ordinal.slope/W:1,I.minPointOffset=lt*=vt,I.pointRangePadding=it*=vt,I.pointRange=Math.min(P,I.single&&ot?1:Y),D&&W&&(I.closestPointRange=W)),I.translationSlope=I.transA=pt=I.staticScale||I.len/(Y+it||1),I.transB=I.horiz?I.left:I.bottom,I.minPixelPadding=pt*lt,v(this,"afterSetAxisTranslation")}minFromRange(){let{max:I,min:Y}=this;return l(I)&&l(Y)&&I-Y||void 0}setTickInterval(I){var Jt,Kt,te,Ot;let{categories:Y,chart:rt,dataMax:ot,dataMin:D,dateTime:P,isXAxis:W,logarithmic:lt,options:it,softThreshold:vt}=this,pt=l(this.threshold)?this.threshold:void 0,xt=this.minRange||0,{ceiling:Ct,floor:Tt,linkedTo:Nt,softMax:gt,softMin:wt}=it,Rt=l(Nt)&&((Jt=rt[this.coll])==null?void 0:Jt[Nt]),jt=it.tickPixelInterval,Zt=it.maxPadding,ne=it.minPadding,Wt=0,le,fe=l(it.tickInterval)&&it.tickInterval>=0?it.tickInterval:void 0,xe,be,Ye,tn;if(P||Y||Rt||this.getTickAmount(),Ye=k(this.userMin,it.min),tn=k(this.userMax,it.max),Rt?(this.linkedParent=Rt,le=Rt.getExtremes(),this.min=k(le.min,le.dataMin),this.max=k(le.max,le.dataMax),this.type!==Rt.type&&E(11,!0,rt)):(vt&&o(pt)&&l(ot)&&l(D)&&(D>=pt?(xe=pt,ne=0):ot<=pt&&(be=pt,Zt=0)),this.min=k(Ye,xe,D),this.max=k(tn,be,ot)),l(this.max)&&l(this.min)&&(lt&&(this.positiveValuesOnly&&!I&&0>=Math.min(this.min,k(D,this.min))&&E(10,!0,rt),this.min=w(lt.log2lin(this.min),16),this.max=w(lt.log2lin(this.max),16)),this.range&&l(D)&&(this.userMin=this.min=Ye=Math.max(D,this.minFromRange()||0),this.userMax=tn=this.max,this.range=void 0)),v(this,"foundExtremes"),this.adjustForMinRange(),l(this.min)&&l(this.max)){if(!l(this.userMin)&&l(wt)&&wtthis.max&&(this.max=tn=gt),Y||this.axisPointRange||(Kt=this.stacking)!=null&&Kt.usePercentage||Rt||!(Wt=this.max-this.min)||(!o(Ye)&&ne&&(this.min-=Wt*ne),o(tn)||!Zt||(this.max+=Wt*Zt)),!l(this.userMin)&&l(Tt)&&(this.min=Math.max(this.min,Tt)),!l(this.userMax)&&l(Ct)&&(this.max=Math.min(this.max,Ct)),vt&&l(D)&&l(ot)){let Bt=pt||0;!o(Ye)&&this.min=Bt?this.min=it.minRange?Math.min(Bt,this.max-xt):Bt:!o(tn)&&this.max>Bt&&ot<=Bt&&(this.max=it.minRange?Math.max(Bt,this.min+xt):Bt)}!rt.polar&&this.min>this.max&&(o(it.min)?this.max=this.min:o(it.max)&&(this.min=this.max)),Wt=this.max-this.min}if(this.min!==this.max&&l(this.min)&&l(this.max)?Rt&&!fe&&jt===Rt.options.tickPixelInterval?this.tickInterval=fe=Rt.tickInterval:this.tickInterval=k(fe,this.tickAmount?Wt/Math.max(this.tickAmount-1,1):void 0,Y?1:Wt*jt/Math.max(this.len,jt)):this.tickInterval=1,W&&!I){let Bt=this.min!==((te=this.old)==null?void 0:te.min)||this.max!==((Ot=this.old)==null?void 0:Ot.max);this.series.forEach(function(Ut){var zt;Ut.forceCrop=(zt=Ut.forceCropping)==null?void 0:zt.call(Ut),Ut.processData(Bt)}),v(this,"postProcessData",{hasExtremesChanged:Bt})}this.setAxisTranslation(),v(this,"initialAxisTranslation"),this.pointRange&&!fe&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let on=k(it.minTickInterval,P&&!this.series.some(Bt=>Bt.noSharedTooltip)?this.closestPointRange:0);!fe&&this.tickIntervalMath.max(2*this.len,200))lt=[this.min,this.max],E(19,!1,this.chart);else if(this.dateTime)lt=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,I.units),this.min,this.max,I.startOfWeek,(pt=this.ordinal)==null?void 0:pt.positions,this.closestPointRange,!0);else if(this.logarithmic)lt=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let xt=this.tickInterval,Ct=xt;for(;Ct<=2*xt&&(lt=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&<.length>this.tickAmount);)this.tickInterval=mt(this,Ct*=1.1)}lt.length>this.len&&(lt=[lt[0],lt[lt.length-1]])[0]===lt[1]&&(lt.length=1),rt&&(this.tickPositions=lt,(it=rt.apply(this,[this.min,this.max]))&&(lt=it))}this.tickPositions=lt,this.minorTickInterval=ot==="auto"&&this.tickInterval?this.tickInterval/I.minorTicksPerMajor:ot,this.paddedTicks=lt.slice(0),this.trimTicks(lt,P,W),!this.isLinked&&l(this.min)&&l(this.max)&&(this.single&<.length<2&&!this.categories&&!this.series.some(xt=>xt.is("heatmap")&&xt.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),Y||it||this.adjustTickAmount()),v(this,"afterSetTickPositions")}trimTicks(I,Y,rt){let ot=I[0],D=I[I.length-1],P=!this.isOrdinal&&this.minPointOffset||0;if(v(this,"trimTicks"),!this.isLinked){if(Y&&ot!==-1/0)this.min=ot;else for(;this.min-P>I[0];)I.shift();if(rt)this.max=D;else for(;this.max+P{let{horiz:xt,options:Ct}=pt;return[xt?Ct.left:Ct.top,Ct.width,Ct.height,Ct.pane].join(",")},vt=it(this);rt[this.coll].forEach(function(pt){let{series:xt}=pt;xt.length&&xt.some(Ct=>Ct.visible)&&pt!==Y&&it(pt)===vt&&(I=!0,ot.push(pt))})}if(I&&W){ot.forEach(vt=>{let pt=vt.getThresholdAlignment(Y);l(pt)&<.push(pt)});let it=lt.length>1?lt.reduce((vt,pt)=>vt+=pt,0)/lt.length:void 0;ot.forEach(vt=>{vt.thresholdAlignment=it})}return I}getThresholdAlignment(I){if((!l(this.dataMin)||this!==I&&this.series.some(Y=>Y.isDirty||Y.isDirtyData))&&this.getSeriesExtremes(),l(this.threshold)){let Y=_((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(Y=1-Y),Y}}getTickAmount(){let I=this.options,Y=I.tickPixelInterval,rt=I.tickAmount;o(I.tickInterval)||rt||!(this.lenP.push(w(P[P.length-1]+Ct)),gt=()=>P.unshift(w(P[0]-Ct));if(l(lt)&&(Tt=lt<.5?Math.ceil(lt*(W-1)):Math.floor(lt*(W-1)),D.reversed&&(Tt=W-1-Tt)),I.hasData()&&l(ot)&&l(rt)){let wt=()=>{I.transA*=(it-1)/(W-1),I.min=D.startOnTick?P[0]:Math.min(ot,P[0]),I.max=D.endOnTick?P[P.length-1]:Math.max(rt,P[P.length-1])};if(l(Tt)&&l(I.threshold)){for(;P[Tt]!==vt||P.length!==W||P[0]>ot||P[P.length-1]I.threshold?gt():Nt();if(Ct>8*I.tickInterval)break;Ct*=2}wt()}else if(it0&&xt{rt=rt||lt.isDirtyData||lt.isDirty,ot=ot||lt.xAxis&<.xAxis.isDirty||!1}),this.setAxisSize();let D=this.len!==(this.old&&this.old.len);D||rt||ot||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(Y&&I==="yAxis"&&Y.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),Y&&I==="xAxis"&&Y.buildStacks(),this.isDirty||(this.isDirty=D||this.min!==((P=this.old)==null?void 0:P.min)||this.max!==((W=this.old)==null?void 0:W.max))):Y&&Y.cleanStacks(),rt&&delete this.allExtremes,v(this,"afterSetScale")}setExtremes(I,Y,rt=!0,ot,D){this.series.forEach(P=>{delete P.kdTree}),v(this,"setExtremes",D=S(D,{min:I,max:Y}),P=>{this.userMin=P.min,this.userMax=P.max,this.eventArgs=P,rt&&this.chart.redraw(ot)})}setAxisSize(){let I=this.chart,Y=this.options,rt=Y.offsets||[0,0,0,0],ot=this.horiz,D=this.width=Math.round(Q(k(Y.width,I.plotWidth-rt[3]+rt[1]),I.plotWidth)),P=this.height=Math.round(Q(k(Y.height,I.plotHeight-rt[0]+rt[2]),I.plotHeight)),W=this.top=Math.round(Q(k(Y.top,I.plotTop+rt[0]),I.plotHeight,I.plotTop)),lt=this.left=Math.round(Q(k(Y.left,I.plotLeft+rt[3]),I.plotWidth,I.plotLeft));this.bottom=I.chartHeight-P-W,this.right=I.chartWidth-D-lt,this.len=Math.max(ot?D:P,0),this.pos=ot?lt:W}getExtremes(){let I=this.logarithmic;return{min:I?w(I.lin2log(this.min)):this.min,max:I?w(I.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(I){let Y=this.logarithmic,rt=Y?Y.lin2log(this.min):this.min,ot=Y?Y.lin2log(this.max):this.max;return I===null||I===-1/0?I=rt:I===1/0?I=ot:rt>I?I=rt:ot15&&Y<165?ot.align="right":Y>195&&Y<345&&(ot.align="left")}),rt.align}tickSize(I){let Y=this.options,rt=k(Y[I==="tick"?"tickWidth":"minorTickWidth"],I==="tick"&&this.isXAxis&&!this.categories?1:0),ot=Y[I==="tick"?"tickLength":"minorTickLength"],D;rt&&ot&&(Y[I+"Position"]==="inside"&&(ot=-ot),D=[ot,rt]);let P={tickSize:D};return v(this,"afterTickSize",P),P.tickSize}labelMetrics(){let I=this.chart.renderer,Y=this.ticks,rt=Y[Object.keys(Y)[0]]||{};return this.chart.renderer.fontMetrics(rt.label||rt.movedLabel||I.box)}unsquish(){let I=this.options.labels,Y=I.padding||0,rt=this.horiz,ot=this.tickInterval,D=this.len/(((this.categories?1:0)+this.max-this.min)/ot),P=I.rotation,W=w(.8*this.labelMetrics().h),lt=Math.max(this.max-this.min,0),it=function(Tt){let Nt=(Tt+2*Y)/(D||1);return(Nt=Nt>1?Math.ceil(Nt):1)*ot>lt&&Tt!==1/0&&D!==1/0&<&&(Nt=Math.ceil(lt/ot)),w(Nt*ot)},vt=ot,pt,xt=Number.MAX_VALUE,Ct;if(rt){if(!I.staggerLines&&(l(P)?Ct=[P]:D=-90&><=90)&&(Nt=(Tt=it(Math.abs(W/Math.sin(L*gt))))+Math.abs(gt/360))Nt&&(Nt=jt.label.textPxLength)}),this.maxLabelLength=Nt,this.autoRotation)Nt>it&&Nt>pt.h?vt.rotation=this.labelRotation:this.labelRotation=0;else if(lt&&(Ct=it,!xt))for(Tt="clip",wt=rt.length;!W&&wt--;)(gt=ot[rt[wt]].label)&&(gt.styles.textOverflow==="ellipsis"?gt.css({textOverflow:"clip"}):gt.textPxLength>lt&>.css({width:lt+"px"}),gt.getBBox().height>this.len/rt.length-(pt.h-pt.f)&&(gt.specificTextOverflow="ellipsis"));vt.rotation&&(Ct=Nt>.5*I.chartHeight?.33*I.chartHeight:Nt,xt||(Tt="ellipsis")),this.labelAlign=D.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(vt.align=this.labelAlign),rt.forEach(function(Rt){let jt=ot[Rt],Zt=jt&&jt.label,ne=P.width,Wt={};Zt&&(Zt.attr(vt),jt.shortenLabel?jt.shortenLabel():Ct&&!ne&&P.whiteSpace!=="nowrap"&&(CtD.g(W).attr({zIndex:it}).addClass(`highcharts-${rt.toLowerCase()}${lt} `+(this.isRadial?`highcharts-radial-axis${lt} `:"")+(ot.className||"")).add(I);this.axisGroup||(this.gridGroup=P("grid","-grid",ot.gridZIndex),this.axisGroup=P("axis","",ot.zIndex),this.labelGroup=P("axis-labels","-labels",ot.labels.zIndex))}getOffset(){let I=this,{chart:Y,horiz:rt,options:ot,side:D,ticks:P,tickPositions:W,coll:lt}=I,it=Y.inverted&&!I.isZAxis?[1,0,3,2][D]:D,vt=I.hasData(),pt=ot.title,xt=ot.labels,Ct=l(ot.crossing),Tt=Y.axisOffset,Nt=Y.clipOffset,gt=[-1,1,1,-1][D],wt,Rt=0,jt,Zt=0,ne=0,Wt,le;if(I.showAxis=wt=vt||ot.showEmpty,I.staggerLines=I.horiz&&xt.staggerLines||void 0,I.createGroups(),vt||I.isLinked?(W.forEach(function(fe){I.generateTick(fe)}),I.renderUnsquish(),I.reserveSpaceDefault=D===0||D===2||{1:"left",3:"right"}[D]===I.labelAlign,k(xt.reserveSpace,!Ct&&null,I.labelAlign==="center"||null,I.reserveSpaceDefault)&&W.forEach(function(fe){ne=Math.max(P[fe].getLabelSize(),ne)}),I.staggerLines&&(ne*=I.staggerLines),I.labelOffset=ne*(I.opposite?-1:1)):T(P,function(fe,xe){fe.destroy(),delete P[xe]}),pt!=null&&pt.text&&pt.enabled!==!1&&(I.addTitle(wt),wt&&!Ct&&pt.reserveSpace!==!1&&(I.titleOffset=Rt=I.axisTitle.getBBox()[rt?"height":"width"],Zt=o(jt=pt.offset)?0:k(pt.margin,rt?5:10))),I.renderLine(),I.offset=gt*k(ot.offset,Tt[D]?Tt[D]+(ot.margin||0):0),I.tickRotCorr=I.tickRotCorr||{x:0,y:0},le=D===0?-I.labelMetrics().h:D===2?I.tickRotCorr.y:0,Wt=Math.abs(ne)+Zt,ne&&(Wt-=le,Wt+=gt*(rt?k(xt.y,I.tickRotCorr.y+gt*xt.distance):k(xt.x,gt*xt.distance))),I.axisTitleMargin=k(jt,Wt),I.getMaxLabelDimensions&&(I.maxLabelDimensions=I.getMaxLabelDimensions(P,W)),lt!=="colorAxis"&&Nt){let fe=this.tickSize("tick");Tt[D]=Math.max(Tt[D],(I.axisTitleMargin||0)+Rt+gt*I.offset,Wt,W&&W.length&&fe?fe[0]+gt*I.offset:0);let xe=!I.axisLine||ot.offset?0:I.axisLine.strokeWidth()/2;Nt[it]=Math.max(Nt[it],xe)}v(this,"afterGetOffset")}getLinePath(I){let Y=this.chart,rt=this.opposite,ot=this.offset,D=this.horiz,P=this.left+(rt?this.width:0)+ot,W=Y.chartHeight-this.bottom-(rt?this.height:0)+ot;return rt&&(I*=-1),Y.renderer.crispLine([["M",D?this.left:P,D?W:this.top],["L",D?Y.chartWidth-this.right:P,D?W:Y.chartHeight-this.bottom]],I)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(I){let Y=this.horiz,rt=this.left,ot=this.top,D=this.len,P=this.options.title,W=Y?rt:ot,lt=this.opposite,it=this.offset,vt=P.x,pt=P.y,xt=this.chart.renderer.fontMetrics(I),Ct=I?Math.max(I.getBBox(!1,0).height-xt.h-1,0):0,Tt={low:W+(Y?0:D),middle:W+D/2,high:W+(Y?D:0)}[P.align],Nt=(Y?ot+this.height:rt)+(Y?1:-1)*(lt?-1:1)*(this.axisTitleMargin||0)+[-Ct,Ct,xt.f,-Ct][this.side],gt={x:Y?Tt+vt:Nt+(lt?this.width:0)+it+vt,y:Y?Nt+pt-(lt?this.height:0)+it:Tt+pt};return v(this,"afterGetTitlePosition",{titlePosition:gt}),gt}renderMinorTick(I,Y){let rt=this.minorTicks;rt[I]||(rt[I]=new Z(this,I,"minor")),Y&&rt[I].isNew&&rt[I].render(null,!0),rt[I].render(null,!1,1)}renderTick(I,Y,rt){let ot=this.isLinked,D=this.ticks;(!ot||I>=this.min&&I<=this.max||this.grid&&this.grid.isColumn)&&(D[I]||(D[I]=new Z(this,I)),rt&&D[I].isNew&&D[I].render(Y,!0,-1),D[I].render(Y))}render(){let I,Y,rt=this,ot=rt.chart,D=rt.logarithmic,P=ot.renderer,W=rt.options,lt=rt.isLinked,it=rt.tickPositions,vt=rt.axisTitle,pt=rt.ticks,xt=rt.minorTicks,Ct=rt.alternateBands,Tt=W.stackLabels,Nt=W.alternateGridColor,gt=W.crossing,wt=rt.tickmarkOffset,Rt=rt.axisLine,jt=rt.showAxis,Zt=H(P.globalAnimation);if(rt.labelEdge.length=0,rt.overlap=!1,[pt,xt,Ct].forEach(function(ne){T(ne,function(Wt){Wt.isActive=!1})}),l(gt)){let ne=this.isXAxis?ot.yAxis[0]:ot.xAxis[0],Wt=[1,-1,-1,1][this.side];if(ne){let le=ne.toPixels(gt,!0);rt.horiz&&(le=ne.len-le),rt.offset=Wt*le}}if(rt.hasData()||lt){let ne=rt.chart.hasRendered&&rt.old&&l(rt.old.min);rt.minorTickInterval&&!rt.categories&&rt.getMinorTickPositions().forEach(function(Wt){rt.renderMinorTick(Wt,ne)}),it.length&&(it.forEach(function(Wt,le){rt.renderTick(Wt,le,ne)}),wt&&(rt.min===0||rt.single)&&(pt[-1]||(pt[-1]=new Z(rt,-1,null,!0)),pt[-1].render(-1))),Nt&&it.forEach(function(Wt,le){Y=it[le+1]!==void 0?it[le+1]+wt:rt.max-wt,le%2==0&&Wt=.5)F=Math.round(F),w=M.getLinearTickPositions(F,U,d);else if(F>=.08){let o,u,C,E,S,v,g,x=Math.floor(U);for(o=F>.3?[1,2,4]:F>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],u=x;uU&&(!L||v<=d)&&v!==void 0&&w.push(v),v>d&&(g=!0),v=S}else{let o=this.lin2log(U),u=this.lin2log(d),C=L?M.getMinorTickInterval():_.tickInterval,E=_.tickPixelInterval/(L?5:1),S=L?s/M.tickPositions.length:s;F=K(F=J(C==="auto"?null:C,this.minorAutoInterval,(u-o)*E/(S||1))),w=M.getLinearTickPositions(F,o,u).map(this.log2lin),L||(this.minorAutoInterval=F/5)}return L||(M.tickInterval=F),w}lin2log(F){return Math.pow(10,F)}log2lin(F){return Math.log(F)/Math.LN10}}q.Additions=H}(B||(B={})),B}),y(m,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[m["Core/Utilities.js"]],function(R){var B;let{erase:et,extend:K,isNumber:J}=R;return function(q){let Z;function tt(M){return this.addPlotBandOrLine(M,"plotBands")}function H(M,s){let _=this.userOptions,w=new Z(this,M);if(this.visible&&(w=w.render()),w){if(this._addedPlotLB||(this._addedPlotLB=!0,(_.plotLines||[]).concat(_.plotBands||[]).forEach(o=>{this.addPlotBandOrLine(o)})),s){let o=_[s]||[];o.push(M),_[s]=o}this.plotLinesAndBands.push(w)}return w}function X(M){return this.addPlotBandOrLine(M,"plotLines")}function F(M,s,_){_=_||this.options;let w=this.getPlotLinePath({value:s,force:!0,acrossPanes:_.acrossPanes}),o=[],u=this.horiz,C=!J(this.min)||!J(this.max)||Mthis.max&&s>this.max,E=this.getPlotLinePath({value:M,force:!0,acrossPanes:_.acrossPanes}),S,v=1,g;if(E&&w)for(C&&(g=E.toString()===w.toString(),v=0),S=0;S{var w;let _=[];for(let o of this.axes)for(let{label:u,options:C}of o.plotLinesAndBands)u&&!((w=C==null?void 0:C.label)!=null&&w.allowOverlap)&&_.push(u);return _})}),R.compose(d,s)}constructor(M,s){this.axis=M,this.options=s,this.id=s.id}render(){var mt,Et,Mt;H(this,"render");let{axis:M,options:s}=this,{horiz:_,logarithmic:w}=M,{color:o,events:u,zIndex:C=0}=s,E={},S=M.chart.renderer,v=s.to,g=s.from,x=s.value,p=s.borderWidth,l=s.label,{label:f,svgElem:b}=this,z=[],T,k=q(g)&&q(v),Q=q(x),st=!b,nt={class:"highcharts-plot-"+(k?"band ":"line ")+(s.className||"")},dt=k?"bands":"lines";if(!M.chart.styledMode&&(Q?(nt.stroke=o||"#999999",nt["stroke-width"]=U(s.width,1),s.dashStyle&&(nt.dashstyle=s.dashStyle)):k&&(nt.fill=o||"#e6e9ff",p&&(nt.stroke=s.borderColor,nt["stroke-width"]=p))),E.zIndex=C,dt+="-"+C,(T=M.plotLinesAndBandsGroups[dt])||(M.plotLinesAndBandsGroups[dt]=T=S.g("plot-"+dt).attr(E).add()),b||(this.svgElem=b=S.path().attr(nt).add(T)),q(x))z=M.getPlotLinePath({value:(mt=w==null?void 0:w.log2lin(x))!=null?mt:x,lineWidth:b.strokeWidth(),acrossPanes:s.acrossPanes});else{if(!(q(g)&&q(v)))return;z=M.getPlotBandPath((Et=w==null?void 0:w.log2lin(g))!=null?Et:g,(Mt=w==null?void 0:w.log2lin(v))!=null?Mt:v,s)}return!this.eventsAdded&&u&&(F(u,(I,Y)=>{b==null||b.on(Y,rt=>{u[Y].apply(this,[rt])})}),this.eventsAdded=!0),(st||!b.d)&&(z!=null&&z.length)?b.attr({d:z}):b&&(z?(b.show(),b.animate({d:z})):b.d&&(b.hide(),f&&(this.label=f=f.destroy()))),l&&(q(l.text)||q(l.formatter))&&(z!=null&&z.length)&&M.width>0&&M.height>0&&!z.isFlat?(l=X(Fr({align:_&&k?"center":void 0,x:_?!k&&4:10,verticalAlign:!_&&k?"middle":void 0,y:_?k?16:10:k?6:-4,rotation:_&&!k?90:0},k?{inside:!0}:{}),l),this.renderLabel(l,z,k,C)):f&&f.hide(),this}renderLabel(M,s,_,w){var l;let o=this.axis,u=o.chart.renderer,C=M.inside,E=this.label;E||(this.label=E=u.text(this.getLabelText(M),0,0,M.useHTML).attr({align:M.textAlign||M.align,rotation:M.rotation,class:"highcharts-plot-"+(_?"band":"line")+"-label "+(M.className||""),zIndex:w}),o.chart.styledMode||E.css(X({fontSize:"0.8em",textOverflow:_&&!C?"":"ellipsis"},M.style)),E.add());let S=s.xBounds||[s[0][1],s[1][1],_?s[2][1]:s[0][1]],v=s.yBounds||[s[0][2],s[1][2],_?s[2][2]:s[0][2]],g=J(S),x=J(v),p=K(S)-g;E.align(M,!1,{x:g,y:x,width:p,height:K(v)-x}),(!E.alignValue||E.alignValue==="left"||q(C))&&E.css({width:(((l=M.style)==null?void 0:l.width)||(_&&C?p:E.rotation===90?o.height-(E.alignAttr.y-o.top):(M.clip?o.width:o.chart.chartWidth)-(E.alignAttr.x-o.left)))+"px"}),E.show(!0)}getLabelText(M){return q(M.formatter)?M.formatter.call(this):M.text}destroy(){tt(this.axis.plotLinesAndBands,this),delete this.axis,Z(this)}}return d}),y(m,"Core/Tooltip.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Templating.js"],m["Core/Globals.js"],m["Core/Renderer/RendererUtilities.js"],m["Core/Renderer/RendererRegistry.js"],m["Core/Utilities.js"]],function(R,B,et,K,J,q){var Z;let{animObject:tt}=R,{format:H}=B,{composed:X,doc:F,isSafari:U}=et,{distribute:d}=K,{addEvent:L,clamp:M,css:s,discardElement:_,extend:w,fireEvent:o,isArray:u,isNumber:C,isString:E,merge:S,pick:v,pushUnique:g,splat:x,syncTimeout:p}=q;class l{constructor(b,z,T){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=b,this.init(b,z),this.pointer=T}bodyFormatter(b){return b.map(function(z){let T=z.series.tooltipOptions;return(T[(z.point.formatPrefix||"point")+"Formatter"]||z.point.tooltipFormatter).call(z.point,T[(z.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(b){this.chart.series.forEach(function(z){let T=z&&z.tt;T&&(!T.isActive||b?z.tt=T.destroy():T.isActive=!1)})}defaultFormatter(b){let z,T=this.points||x(this);return(z=(z=[b.tooltipFooterHeaderFormatter(T[0])]).concat(b.bodyFormatter(T))).push(b.tooltipFooterHeaderFormatter(T[0],!0)),z}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(),_(this.container)),q.clearTimeout(this.hideTimer)}getAnchor(b,z){let T,{chart:k,pointer:Q}=this,st=k.inverted,nt=k.plotTop,dt=k.plotLeft;if((b=x(b))[0].series&&b[0].series.yAxis&&!b[0].series.yAxis.options.reversedStacks&&(b=b.slice().reverse()),this.followPointer&&z)z.chartX===void 0&&(z=Q.normalize(z)),T=[z.chartX-dt,z.chartY-nt];else if(b[0].tooltipPos)T=b[0].tooltipPos;else{let mt=0,Et=0;b.forEach(function(Mt){let I=Mt.pos(!0);I&&(mt+=I[0],Et+=I[1])}),mt/=b.length,Et/=b.length,this.shared&&b.length>1&&z&&(st?mt=z.chartX:Et=z.chartY),T=[mt-dt,Et-nt]}return T.map(Math.round)}getClassName(b,z,T){let k=this.options,Q=b.series,st=Q.options;return[k.className,"highcharts-label",T&&"highcharts-tooltip-header",z?"highcharts-tooltip-box":"highcharts-tooltip",!T&&"highcharts-color-"+v(b.colorIndex,Q.colorIndex),st&&st.className].filter(E).join(" ")}getLabel({anchorX:b,anchorY:z}={anchorX:0,anchorY:0}){let T=this,k=this.chart.styledMode,Q=this.options,st=this.split&&this.allowShared,nt=this.container,dt=this.chart.renderer;if(this.label){let mt=!this.label.hasClass("highcharts-label");(!st&&mt||st&&!mt)&&this.destroy()}if(!this.label){if(this.outside){let mt=this.chart.options.chart.style,Et=J.getRendererType();this.container=nt=et.doc.createElement("div"),nt.className="highcharts-tooltip-container",s(nt,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(mt&&mt.zIndex||0)+3)}),this.renderer=dt=new Et(nt,0,0,mt,void 0,void 0,dt.styledMode)}if(st?this.label=dt.g("tooltip"):(this.label=dt.label("",b,z,Q.shape,void 0,void 0,Q.useHTML,void 0,"tooltip").attr({padding:Q.padding,r:Q.borderRadius}),k||this.label.attr({fill:Q.backgroundColor,"stroke-width":Q.borderWidth||0}).css(Q.style).css({pointerEvents:Q.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),T.outside){let mt=this.label;[mt.xSetter,mt.ySetter].forEach((Et,Mt)=>{mt[Mt?"ySetter":"xSetter"]=I=>{Et.call(mt,T.distance),mt[Mt?"y":"x"]=I,nt&&(nt.style[Mt?"top":"left"]=`${I}px`)}})}this.label.attr({zIndex:8}).shadow(Q.shadow).add()}return nt&&!nt.parentElement&&et.doc.body.appendChild(nt),this.label}getPlayingField(){let{body:b,documentElement:z}=F,{chart:T,distance:k,outside:Q}=this;return{width:Q?Math.max(b.scrollWidth,z.scrollWidth,b.offsetWidth,z.offsetWidth,z.clientWidth)-2*k:T.chartWidth,height:Q?Math.max(b.scrollHeight,z.scrollHeight,b.offsetHeight,z.offsetHeight,z.clientHeight):T.chartHeight}}getPosition(b,z,T){var Zt,ne;let{distance:k,chart:Q,outside:st,pointer:nt}=this,{inverted:dt,plotLeft:mt,plotTop:Et,polar:Mt}=Q,{plotX:I=0,plotY:Y=0}=T,rt={},ot=dt&&T.h||0,{height:D,width:P}=this.getPlayingField(),W=nt.getChartPosition(),lt=Wt=>Wt*W.scaleX,it=Wt=>Wt*W.scaleY,vt=Wt=>{let le=Wt==="x";return[Wt,le?P:D,le?b:z].concat(st?[le?lt(b):it(z),le?W.left-k+lt(I+mt):W.top-k+it(Y+Et),0,le?P:D]:[le?b:z,le?I+mt:Y+Et,le?mt:Et,le?mt+Q.plotWidth:Et+Q.plotHeight])},pt=vt("y"),xt=vt("x"),Ct,Tt=!!T.negative;!Mt&&((ne=(Zt=Q.hoverSeries)==null?void 0:Zt.yAxis)!=null&&ne.reversed)&&(Tt=!Tt);let Nt=!this.followPointer&&v(T.ttBelow,!Mt&&!dt===Tt),gt=function(Wt,le,fe,xe,be,Ye,tn){let on=st?Wt==="y"?it(k):lt(k):k,Jt=(fe-xe)/2,Kt=xele?Bt:Bt+ot)}},wt=function(Wt,le,fe,xe,be){if(bele-k)return!1;bele-xe/2?rt[Wt]=le-xe-2:rt[Wt]=be-fe/2},Rt=function(Wt){[pt,xt]=[xt,pt],Ct=Wt},jt=()=>{gt.apply(0,pt)!==!1?wt.apply(0,xt)!==!1||Ct||(Rt(!0),jt()):Ct?rt.x=rt.y=0:(Rt(!0),jt())};return(dt&&!Mt||this.len>1)&&Rt(),jt(),rt}hide(b){let z=this;q.clearTimeout(this.hideTimer),b=v(b,this.options.hideDelay),this.isHidden||(this.hideTimer=p(function(){let T=z.getLabel();z.getLabel().animate({opacity:0},{duration:b&&150,complete:()=>{T.hide(),z.container&&z.container.remove()}}),z.isHidden=!0},b))}init(b,z){this.chart=b,this.options=z,this.crosshairs=[],this.isHidden=!0,this.split=z.split&&!b.inverted&&!b.polar,this.shared=z.shared||this.split,this.outside=v(z.outside,!!(b.scrollablePixelsX||b.scrollablePixelsY))}shouldStickOnContact(b){return!!(!this.followPointer&&this.options.stickOnContact&&(!b||this.pointer.inClass(b.target,"highcharts-tooltip")))}move(b,z,T,k){let Q=this,st=tt(!Q.isHidden&&Q.options.animation),nt=Q.followPointer||(Q.len||0)>1,dt={x:b,y:z};nt||(dt.anchorX=T,dt.anchorY=k),st.step=()=>Q.drawTracker(),Q.getLabel().animate(dt,st)}refresh(b,z){let{chart:T,options:k,pointer:Q,shared:st}=this,nt=x(b),dt=nt[0],mt=[],Et=k.format,Mt=k.formatter||this.defaultFormatter,I=T.styledMode,Y={},rt=this.allowShared;if(!k.enabled||!dt.series)return;q.clearTimeout(this.hideTimer),this.allowShared=!(!u(b)&&b.series&&b.series.noSharedTooltip),rt=rt&&!this.allowShared,this.followPointer=!this.split&&dt.series.tooltipOptions.followPointer;let ot=this.getAnchor(b,z),D=ot[0],P=ot[1];st&&this.allowShared?(Q.applyInactiveState(nt),nt.forEach(function(it){it.setState("hover"),mt.push(it.getLabelConfig())}),(Y=dt.getLabelConfig()).points=mt):Y=dt.getLabelConfig(),this.len=mt.length;let W=E(Et)?H(Et,Y,T):Mt.call(Y,this),lt=dt.series;if(this.distance=v(lt.tooltipOptions.distance,16),W===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(W,nt);else{let it=D,vt=P;if(z&&Q.isDirectTouch&&(it=z.chartX-T.plotLeft,vt=z.chartY-T.plotTop),T.polar||lt.options.clip===!1||nt.some(pt=>Q.isDirectTouch||pt.series.shouldShowTooltip(it,vt))){let pt=this.getLabel(rt&&this.tt||{});(!k.style.width||I)&&pt.css({width:(this.outside?this.getPlayingField():T.spacingBox).width+"px"}),pt.attr({class:this.getClassName(dt),text:W&&W.join?W.join(""):W}),this.outside&&pt.attr({x:M(pt.x||0,0,this.getPlayingField().width-(pt.width||0))}),I||pt.attr({stroke:k.borderColor||dt.color||lt.color||"#666666"}),this.updatePosition({plotX:D,plotY:P,negative:dt.negative,ttBelow:dt.ttBelow,h:ot[2]||0})}else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}o(this,"refresh")}renderSplit(b,z){var le;let T=this,{chart:k,chart:{chartWidth:Q,chartHeight:st,plotHeight:nt,plotLeft:dt,plotTop:mt,scrollablePixelsY:Et=0,scrollablePixelsX:Mt,styledMode:I},distance:Y,options:rt,options:{positioner:ot},pointer:D}=T,{scrollLeft:P=0,scrollTop:W=0}=((le=k.scrollablePlotArea)==null?void 0:le.scrollingContainer)||{},lt=T.outside&&typeof Mt!="number"?F.documentElement.getBoundingClientRect():{left:P,right:P+Q,top:W,bottom:W+st},it=T.getLabel(),vt=this.renderer||k.renderer,pt=!!(k.xAxis[0]&&k.xAxis[0].opposite),{left:xt,top:Ct}=D.getChartPosition(),Tt=mt+W,Nt=0,gt=nt-Et;function wt(fe,xe,be,Ye,tn=!0){let on,Jt;return be?(on=pt?0:gt,Jt=M(fe-Ye/2,lt.left,lt.right-Ye-(T.outside?xt:0))):(on=xe-Tt,Jt=M(Jt=tn?fe-Ye-Y:fe+Y,tn?Jt:lt.left,lt.right)),{x:Jt,y:on}}E(b)&&(b=[!1,b]);let Rt=b.slice(0,z.length+1).reduce(function(fe,xe,be){if(xe!==!1&&xe!==""){let Ye=z[be-1]||{isHeader:!0,plotX:z[0].plotX,plotY:nt,series:{}},tn=Ye.isHeader,on=tn?T:Ye.series,Jt=on.tt=function(Ut,zt,ce){var hn;let we=Ut,{isHeader:ye,series:qe}=zt;if(!we){let yn={padding:rt.padding,r:rt.borderRadius};I||(yn.fill=rt.backgroundColor,yn["stroke-width"]=(hn=rt.borderWidth)!=null?hn:1),we=vt.label("",0,0,rt[ye?"headerShape":"shape"],void 0,void 0,rt.useHTML).addClass(T.getClassName(zt,!0,ye)).attr(yn).add(it)}return we.isActive=!0,we.attr({text:ce}),I||we.css(rt.style).attr({stroke:rt.borderColor||zt.color||qe.color||"#333333"}),we}(on.tt,Ye,xe.toString()),Kt=Jt.getBBox(),te=Kt.width+Jt.strokeWidth();tn&&(Nt=Kt.height,gt+=Nt,pt&&(Tt-=Nt));let{anchorX:Ot,anchorY:Bt}=function(Ut){let zt,ce,{isHeader:we,plotX:ye=0,plotY:qe=0,series:hn}=Ut;if(we)zt=Math.max(dt+ye,dt),ce=mt+nt/2;else{let{xAxis:yn,yAxis:Nn}=hn;zt=yn.pos+M(ye,-Y,yn.len+Y),hn.shouldShowTooltip(0,Nn.pos-mt+qe,{ignoreX:!0})&&(ce=Nn.pos+qe)}return{anchorX:zt=M(zt,lt.left-Y,lt.right+Y),anchorY:ce}}(Ye);if(typeof Bt=="number"){let Ut=Kt.height+1,zt=ot?ot.call(T,te,Ut,Ye):wt(Ot,Bt,tn,te);fe.push({align:ot?0:void 0,anchorX:Ot,anchorY:Bt,boxWidth:te,point:Ye,rank:v(zt.rank,tn?1:0),size:Ut,target:zt.y,tt:Jt,x:zt.x})}else Jt.isActive=!1}return fe},[]);!ot&&Rt.some(fe=>{let{outside:xe}=T,be=(xe?xt:0)+fe.anchorX;return bebe})&&(Rt=Rt.map(fe=>{let{x:xe,y:be}=wt(fe.anchorX,fe.anchorY,fe.point.isHeader,fe.boxWidth,!1);return w(fe,{target:be,x:xe})})),T.cleanSplit(),d(Rt,gt);let jt={left:xt,right:xt};Rt.forEach(function(fe){let{x:xe,boxWidth:be,isHeader:Ye}=fe;!Ye&&(T.outside&&xt+xejt.right&&(jt.right=xt+xe))}),Rt.forEach(function(fe){let{x:xe,anchorX:be,anchorY:Ye,pos:tn,point:{isHeader:on}}=fe,Jt={visibility:tn===void 0?"hidden":"inherit",x:xe,y:(tn||0)+Tt,anchorX:be,anchorY:Ye};if(T.outside&&xe0&&(on||(Jt.x=xe+Kt,Jt.anchorX=be+Kt),on&&(Jt.x=(jt.right-jt.left)/2,Jt.anchorX=be+Kt))}fe.tt.attr(Jt)});let{container:Zt,outside:ne,renderer:Wt}=T;if(ne&&Zt&&Wt){let{width:fe,height:xe,x:be,y:Ye}=it.getBBox();Wt.setSize(fe+be,xe+Ye,!1),Zt.style.left=jt.left+"px",Zt.style.top=Ct+"px"}U&&it.attr({opacity:it.opacity===1?.999:1})}drawTracker(){if(!this.shouldStickOnContact()){this.tracker&&(this.tracker=this.tracker.destroy());return}let b=this.chart,z=this.label,T=this.shared?b.hoverPoints:b.hoverPoint;if(!z||!T)return;let k={x:0,y:0,width:0,height:0},Q=this.getAnchor(T),st=z.getBBox();Q[0]+=b.plotLeft-(z.translateX||0),Q[1]+=b.plotTop-(z.translateY||0),k.x=Math.min(0,Q[0]),k.y=Math.min(0,Q[1]),k.width=Q[0]<0?Math.max(Math.abs(Q[0]),st.width-Q[0]):Math.max(Math.abs(Q[0]),st.width),k.height=Q[1]<0?Math.max(Math.abs(Q[1]),st.height-Math.abs(Q[1])):Math.max(Math.abs(Q[1]),st.height),this.tracker?this.tracker.attr(k):(this.tracker=z.renderer.rect(k).addClass("highcharts-tracker").add(z),b.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(b){return b.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}"')}tooltipFooterHeaderFormatter(b,z){let T=b.series,k=T.tooltipOptions,Q=T.xAxis,st=Q&&Q.dateTime,nt={isFooter:z,labelConfig:b},dt=k.xDateFormat,mt=k[z?"footerFormat":"headerFormat"];return o(this,"headerFormatter",nt,function(Et){st&&!dt&&C(b.key)&&(dt=st.getXDateFormat(b.key,k.dateTimeLabelFormats)),st&&dt&&(b.point&&b.point.tooltipDateKeys||["key"]).forEach(function(Mt){mt=mt.replace("{point."+Mt+"}","{point."+Mt+":"+dt+"}")}),T.chart.styledMode&&(mt=this.styledModeFormat(mt)),Et.text=H(mt,{point:b,series:T},this.chart)}),nt.text}update(b){this.destroy(),this.init(this.chart,S(!0,this.options,b))}updatePosition(b){let{chart:z,container:T,distance:k,options:Q,pointer:st,renderer:nt}=this,{height:dt=0,width:mt=0}=this.getLabel(),{left:Et,top:Mt,scaleX:I,scaleY:Y}=st.getChartPosition(),rt=(Q.positioner||this.getPosition).call(this,mt,dt,b),ot=(b.plotX||0)+z.plotLeft,D=(b.plotY||0)+z.plotTop,P;nt&&T&&(Q.positioner&&(rt.x+=Et-k,rt.y+=Mt-k),P=(Q.borderWidth||0)+2*k+2,nt.setSize(mt+P,dt+P,!1),(I!==1||Y!==1)&&(s(T,{transform:`scale(${I}, ${Y})`}),ot*=I,D*=Y),ot+=Et-rt.x,D+=Mt-rt.y),this.move(Math.round(rt.x),Math.round(rt.y||0),ot,D)}}return(Z=l||(l={})).compose=function(f){g(X,"Core.Tooltip")&&L(f,"afterInit",function(){let b=this.chart;b.options.tooltip&&(b.tooltip=new Z(b,b.options.tooltip,this))})},l}),y(m,"Core/Series/Point.js",[m["Core/Renderer/HTML/AST.js"],m["Core/Animation/AnimationUtilities.js"],m["Core/Defaults.js"],m["Core/Templating.js"],m["Core/Utilities.js"]],function(R,B,et,K,J){let{animObject:q}=B,{defaultOptions:Z}=et,{format:tt}=K,{addEvent:H,crisp:X,erase:F,extend:U,fireEvent:d,getNestedProperty:L,isArray:M,isFunction:s,isNumber:_,isObject:w,merge:o,pick:u,syncTimeout:C,removeEvent:E,uniqueKey:S}=J;class v{animateBeforeDestroy(){let x=this,p={x:x.startXPos,opacity:0},l=x.getGraphicalProps();l.singular.forEach(function(f){x[f]=x[f].animate(f==="dataLabel"?{x:x[f].startXPos,y:x[f].startYPos,opacity:0}:p)}),l.plural.forEach(function(f){x[f].forEach(function(b){b.element&&b.animate(U({x:x.startXPos},b.startYPos?{x:b.startXPos,y:b.startYPos}:{}))})})}applyOptions(x,p){let l=this.series,f=l.options.pointValKey||l.pointValKey;return U(this,x=v.prototype.optionsToObject.call(this,x)),this.options=this.options?U(this.options,x):x,x.group&&delete this.group,x.dataLabels&&delete this.dataLabels,f&&(this.y=v.prototype.getNestedProperty.call(this,f)),this.selected&&(this.state="select"),"name"in this&&p===void 0&&l.xAxis&&l.xAxis.hasNames&&(this.x=l.xAxis.nameToX(this)),this.x===void 0&&l?this.x=p!=null?p:l.autoIncrement():_(x.x)&&l.options.relativeXValue&&(this.x=l.autoIncrement(x.x)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let x=this,p=x.series,l=p.chart,f=p.options.dataSorting,b=l.hoverPoints,z=q(x.series.chart.renderer.globalAnimation),T=()=>{for(let k in(x.graphic||x.graphics||x.dataLabel||x.dataLabels)&&(E(x),x.destroyElements()),x)delete x[k]};x.legendItem&&l.legend.destroyItem(x),b&&(x.setState(),F(b,x),b.length||(l.hoverPoints=null)),x===l.hoverPoint&&x.onMouseOut(),f&&f.enabled?(this.animateBeforeDestroy(),C(T,z.duration)):T(),l.pointCount--}this.destroyed=!0}destroyElements(x){let p=this,l=p.getGraphicalProps(x);l.singular.forEach(function(f){p[f]=p[f].destroy()}),l.plural.forEach(function(f){p[f].forEach(function(b){b&&b.element&&b.destroy()}),delete p[f]})}firePointEvent(x,p,l){let f=this,b=this.series.options;f.manageEvent(x),x==="click"&&b.allowPointSelect&&(l=function(z){!f.destroyed&&f.select&&f.select(null,z.ctrlKey||z.metaKey||z.shiftKey)}),d(f,x,p,l)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(x){let p,l,f=this,b=[],z={singular:[],plural:[]};for((x=x||{graphic:1,dataLabel:1}).graphic&&b.push("graphic","connector"),x.dataLabel&&b.push("dataLabel","dataLabelPath","dataLabelUpper"),l=b.length;l--;)f[p=b[l]]&&z.singular.push(p);return["graphic","dataLabel"].forEach(function(T){let k=T+"s";x[T]&&f[k]&&z.plural.push(k)}),z}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(x){return x?x.indexOf("custom.")===0?L(x,this.options):this[x]:void 0}getZone(){let x=this.series,p=x.zones,l=x.zoneAxis||"y",f,b=0;for(f=p[0];this[l]>=f.value;)f=p[++b];return this.nonZonedColor||(this.nonZonedColor=this.color),f&&f.color&&!this.options.color?this.color=f.color:this.color=this.nonZonedColor,f}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(x,p,l){var f;this.formatPrefix="point",this.visible=!0,this.series=x,this.applyOptions(p,l),(f=this.id)!=null||(this.id=S()),this.resolveColor(),x.chart.pointCount++,d(this,"afterInit")}isValid(){return(_(this.x)||this.x instanceof Date)&&_(this.y)}optionsToObject(x){let p=this.series,l=p.options.keys,f=l||p.pointArrayMap||["y"],b=f.length,z={},T,k=0,Q=0;if(_(x)||x===null)z[f[0]]=x;else if(M(x))for(!l&&x.length>b&&((T=typeof x[0])=="string"?z.name=x[0]:T==="number"&&(z.x=x[0]),k++);Q0?v.prototype.setNestedProperty(z,x[k],f[Q]):z[f[Q]]=x[k]),k++,Q++;else typeof x=="object"&&(z=x,x.dataLabels&&(p.hasDataLabels=()=>!0),x.marker&&(p._hasPointMarkers=!0));return z}pos(x,p=this.plotY){if(!this.destroyed){let{plotX:l,series:f}=this,{chart:b,xAxis:z,yAxis:T}=f,k=0,Q=0;if(_(l)&&_(p))return x&&(k=z?z.pos:b.plotLeft,Q=T?T.pos:b.plotTop),b.inverted&&z&&T?[T.len-p+Q,z.len-l+k]:[l+k,p+Q]}}resolveColor(){let x=this.series,p=x.chart.options.chart,l=x.chart.styledMode,f,b,z=p.colorCount,T;delete this.nonZonedColor,x.options.colorByPoint?(l||(f=(b=x.options.colors||x.chart.options.colors)[x.colorCounter],z=b.length),T=x.colorCounter,x.colorCounter++,x.colorCounter===z&&(x.colorCounter=0)):(l||(f=x.color),T=x.colorIndex),this.colorIndex=u(this.options.colorIndex,T),this.color=u(this.options.color,f)}setNestedProperty(x,p,l){return l.split(".").reduce(function(f,b,z,T){let k=T.length-1===z;return f[b]=k?p:w(f[b],!0)?f[b]:{},f[b]},x),x}shouldDraw(){return!this.isNull}tooltipFormatter(x){let p=this.series,l=p.tooltipOptions,f=u(l.valueDecimals,""),b=l.valuePrefix||"",z=l.valueSuffix||"";return p.chart.styledMode&&(x=p.chart.tooltip.styledModeFormat(x)),(p.pointArrayMap||["y"]).forEach(function(T){T="{point."+T,(b||z)&&(x=x.replace(RegExp(T+"}","g"),b+T+"}"+z)),x=x.replace(RegExp(T+"}","g"),T+":,."+f+"f}")}),tt(x,{point:this,series:this.series},p.chart)}update(x,p,l,f){let b,z=this,T=z.series,k=z.graphic,Q=T.chart,st=T.options;function nt(){z.applyOptions(x);let dt=k&&z.hasMockGraphic,mt=z.y===null?!dt:dt;k&&mt&&(z.graphic=k.destroy(),delete z.hasMockGraphic),w(x,!0)&&(k&&k.element&&x&&x.marker&&x.marker.symbol!==void 0&&(z.graphic=k.destroy()),x!=null&&x.dataLabels&&z.dataLabel&&(z.dataLabel=z.dataLabel.destroy())),b=z.index,T.updateParallelArrays(z,b),st.data[b]=w(st.data[b],!0)||w(x,!0)?z.options:u(x,st.data[b]),T.isDirty=T.isDirtyData=!0,!T.fixedBox&&T.hasCartesianSeries&&(Q.isDirtyBox=!0),st.legendType==="point"&&(Q.isDirtyLegend=!0),p&&Q.redraw(l)}p=u(p,!0),f===!1?nt():z.firePointEvent("update",{options:x},nt)}remove(x,p){this.series.removePoint(this.series.data.indexOf(this),x,p)}select(x,p){let l=this,f=l.series,b=f.chart;x=u(x,!l.selected),this.selectedStaging=x,l.firePointEvent(x?"select":"unselect",{accumulate:p},function(){l.selected=l.options.selected=x,f.options.data[f.data.indexOf(l)]=l.options,l.setState(x&&"select"),p||b.getSelectedPoints().forEach(function(z){let T=z.series;z.selected&&z!==l&&(z.selected=z.options.selected=!1,T.options.data[T.data.indexOf(z)]=z.options,z.setState(b.hoverPoints&&T.options.inactiveOtherPoints?"inactive":""),z.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(x){let{inverted:p,pointer:l}=this.series.chart;l&&(x=x?l.normalize(x):l.getChartCoordinatesFromPoint(this,p),l.runPointActions(x,this))}onMouseOut(){let x=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(x.hoverPoints||[]).forEach(function(p){p.setState()}),x.hoverPoints=x.hoverPoint=null}manageEvent(x){var f,b,z,T,k,Q;let p=o(this.series.options.point,this.options),l=(f=p.events)==null?void 0:f[x];s(l)&&(!((b=this.hcEvents)!=null&&b[x])||((T=(z=this.hcEvents)==null?void 0:z[x])==null?void 0:T.map(st=>st.fn).indexOf(l))===-1)?((k=this.importedUserEvent)==null||k.call(this),this.importedUserEvent=H(this,x,l)):this.importedUserEvent&&!l&&((Q=this.hcEvents)!=null&&Q[x])&&(E(this,x),delete this.hcEvents[x],Object.keys(this.hcEvents)||delete this.importedUserEvent)}setState(x,p){var W;let l=this.series,f=this.state,b=l.options.states[x||"normal"]||{},z=Z.plotOptions[l.type].marker&&l.options.marker,T=z&&z.enabled===!1,k=z&&z.states&&z.states[x||"normal"]||{},Q=k.enabled===!1,st=this.marker||{},nt=l.chart,dt=z&&l.markerAttribs,mt=l.halo,Et,Mt,I,Y=l.stateMarkerGraphic,rt;if((x=x||"")===this.state&&!p||this.selected&&x!=="select"||b.enabled===!1||x&&(Q||T&&k.enabled===!1)||x&&st.states&&st.states[x]&&st.states[x].enabled===!1)return;if(this.state=x,dt&&(Et=l.markerAttribs(this,x)),this.graphic&&!this.hasMockGraphic){if(f&&this.graphic.removeClass("highcharts-point-"+f),x&&this.graphic.addClass("highcharts-point-"+x),!nt.styledMode){Mt=l.pointAttribs(this,x),I=u(nt.options.chart.animation,b.animation);let lt=Mt.opacity;l.options.inactiveOtherPoints&&_(lt)&&(this.dataLabels||[]).forEach(function(it){it&&!it.hasClass("highcharts-data-label-hidden")&&(it.animate({opacity:lt},I),it.connector&&it.connector.animate({opacity:lt},I))}),this.graphic.animate(Mt,I)}Et&&this.graphic.animate(Et,u(nt.options.chart.animation,k.animation,z.animation)),Y&&Y.hide()}else x&&k&&(rt=st.symbol||l.symbol,Y&&Y.currentSymbol!==rt&&(Y=Y.destroy()),Et&&(Y?Y[p?"animate":"attr"]({x:Et.x,y:Et.y}):rt&&(l.stateMarkerGraphic=Y=nt.renderer.symbol(rt,Et.x,Et.y,Et.width,Et.height).add(l.markerGroup),Y.currentSymbol=rt)),!nt.styledMode&&Y&&this.state!=="inactive"&&Y.attr(l.pointAttribs(this,x))),Y&&(Y[x&&this.isInside?"show":"hide"](),Y.element.point=this,Y.addClass(this.getClassName(),!0));let ot=b.halo,D=this.graphic||Y,P=D&&D.visibility||"inherit";ot&&ot.size&&D&&P!=="hidden"&&!this.isCluster?(mt||(l.halo=mt=nt.renderer.path().add(D.parentGroup)),mt.show()[p?"animate":"attr"]({d:this.haloPath(ot.size)}),mt.attr({class:"highcharts-halo highcharts-color-"+u(this.colorIndex,l.colorIndex)+(this.className?" "+this.className:""),visibility:P,zIndex:-1}),mt.point=this,nt.styledMode||mt.attr(U({fill:this.color||l.color,"fill-opacity":ot.opacity},R.filterUserAttributes(ot.attributes||{})))):(W=mt==null?void 0:mt.point)!=null&&W.haloPath&&!mt.point.destroyed&&mt.animate({d:mt.point.haloPath(0)},null,mt.hide),d(this,"afterSetState",{state:x})}haloPath(x){let p=this.pos();return p?this.series.chart.renderer.symbols.circle(X(p[0],1)-x,p[1]-x,2*x,2*x):[]}}return v}),y(m,"Core/Pointer.js",[m["Core/Color/Color.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B,et){var K;let{parse:J}=R,{charts:q,composed:Z,isTouchDevice:tt}=B,{addEvent:H,attr:X,css:F,extend:U,find:d,fireEvent:L,isNumber:M,isObject:s,objectEach:_,offset:w,pick:o,pushUnique:u,splat:C}=et;class E{applyInactiveState(v){let g=[],x;(v||[]).forEach(function(p){x=p.series,g.push(x),x.linkedParent&&g.push(x.linkedParent),x.linkedSeries&&(g=g.concat(x.linkedSeries)),x.navigatorSeries&&g.push(x.navigatorSeries)}),this.chart.series.forEach(function(p){g.indexOf(p)===-1?p.setState("inactive",!0):p.options.inactiveOtherPoints&&p.setAllPointsToState("inactive")})}destroy(){let v=this;this.eventsToUnbind.forEach(g=>g()),this.eventsToUnbind=[],!B.chartCount&&(E.unbindDocumentMouseUp&&E.unbindDocumentMouseUp.forEach(g=>g()),E.unbindDocumentTouchEnd&&(E.unbindDocumentTouchEnd=E.unbindDocumentTouchEnd())),clearInterval(v.tooltipTimeout),_(v,function(g,x){v[x]=void 0})}getSelectionMarkerAttrs(v,g){let x={args:{chartX:v,chartY:g},attrs:{},shapeType:"rect"};return L(this,"getSelectionMarkerAttrs",x,p=>{let l,{chart:f,zoomHor:b,zoomVert:z}=this,{mouseDownX:T=0,mouseDownY:k=0}=f,Q=p.attrs;Q.x=f.plotLeft,Q.y=f.plotTop,Q.width=b?1:f.plotWidth,Q.height=z?1:f.plotHeight,b&&(l=v-T,Q.width=Math.max(1,Math.abs(l)),Q.x=(l>0?0:l)+T),z&&(l=g-k,Q.height=Math.max(1,Math.abs(l)),Q.y=(l>0?0:l)+k)}),x}drag(v){let{chart:g}=this,{mouseDownX:x=0,mouseDownY:p=0}=g,{panning:l,panKey:f,selectionMarkerFill:b}=g.options.chart,z=g.plotLeft,T=g.plotTop,k=g.plotWidth,Q=g.plotHeight,st=s(l)?l.enabled:l,nt=f&&v[`${f}Key`],dt=v.chartX,mt=v.chartY,Et,Mt=this.selectionMarker;if((!Mt||!Mt.touch)&&(dtz+k&&(dt=z+k),mtT+Q&&(mt=T+Q),this.hasDragged=Math.sqrt(Math.pow(x-dt,2)+Math.pow(p-mt,2)),this.hasDragged>10)){Et=g.isInsidePlot(x-z,p-T,{visiblePlotOnly:!0});let{shapeType:I,attrs:Y}=this.getSelectionMarkerAttrs(dt,mt);(g.hasCartesianSeries||g.mapView)&&this.hasZoom&&Et&&!nt&&!Mt&&(this.selectionMarker=Mt=g.renderer[I](),Mt.attr({class:"highcharts-selection-marker",zIndex:7}).add(),g.styledMode||Mt.attr({fill:b||J("#334eff").setOpacity(.25).get()})),Mt&&Mt.attr(Y),Et&&!Mt&&st&&g.pan(v,l)}}dragStart(v){let g=this.chart;g.mouseIsDown=v.type,g.cancelClick=!1,g.mouseDownX=v.chartX,g.mouseDownY=v.chartY}getSelectionBox(v){let g={args:{marker:v},result:v.getBBox()};return L(this,"getSelectionBox",g),g.result}drop(v){let g,{chart:x,selectionMarker:p}=this;for(let l of x.axes)l.isPanning&&(l.isPanning=!1,(l.options.startOnTick||l.options.endOnTick||l.series.some(f=>f.boosted))&&(l.forceRedraw=!0,l.setExtremes(l.userMin,l.userMax,!1),g=!0));if(g&&x.redraw(),p&&v){if(this.hasDragged){let l=this.getSelectionBox(p);x.transform({axes:x.axes.filter(f=>f.zoomEnabled&&(f.coll==="xAxis"&&this.zoomX||f.coll==="yAxis"&&this.zoomY)),selection:Fr({originalEvent:v,xAxis:[],yAxis:[]},l),from:l})}M(x.index)&&(this.selectionMarker=p.destroy())}x&&M(x.index)&&(F(x.container,{cursor:x._cursor}),x.cancelClick=this.hasDragged>10,x.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(v,g,x){let p;return v.forEach(function(l){let f=!(l.noSharedTooltip&&g)&&0>l.options.findNearestPointBy.indexOf("y"),b=l.searchPoint(x,f);s(b,!0)&&b.series&&(!s(p,!0)||function(z,T){var nt,dt;let k=z.distX-T.distX,Q=z.dist-T.dist,st=((nt=T.series.group)==null?void 0:nt.zIndex)-((dt=z.series.group)==null?void 0:dt.zIndex);return k!==0&&g?k:Q!==0?Q:st!==0?st:z.series.index>T.series.index?-1:1}(p,b)>0)&&(p=b)}),p}getChartCoordinatesFromPoint(v,g){var f,b;let{xAxis:x,yAxis:p}=v.series,l=v.shapeArgs;if(x&&p){let z=(b=(f=v.clientX)!=null?f:v.plotX)!=null?b:0,T=v.plotY||0;return v.isNode&&l&&M(l.x)&&M(l.y)&&(z=l.x,T=l.y),g?{chartX:p.len+p.pos-T,chartY:x.len+x.pos-z}:{chartX:z+x.pos,chartY:T+p.pos}}if(l&&l.x&&l.y)return{chartX:l.x,chartY:l.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:v}=this.chart,g=w(v);this.chartPosition={left:g.left,top:g.top,scaleX:1,scaleY:1};let{offsetHeight:x,offsetWidth:p}=v;return p>2&&x>2&&(this.chartPosition.scaleX=g.width/p,this.chartPosition.scaleY=g.height/x),this.chartPosition}getCoordinates(v){let g={xAxis:[],yAxis:[]};for(let x of this.chart.axes)g[x.isXAxis?"xAxis":"yAxis"].push({axis:x,value:x.toValue(v[x.horiz?"chartX":"chartY"])});return g}getHoverData(v,g,x,p,l,f){let b=[],z=function(nt){return nt.visible&&!(!l&&nt.directTouch)&&o(nt.options.enableMouseTracking,!0)},T=g,k,Q={chartX:f?f.chartX:void 0,chartY:f?f.chartY:void 0,shared:l};L(this,"beforeGetHoverData",Q),k=T&&!T.stickyTracking?[T]:x.filter(nt=>nt.stickyTracking&&(Q.filter||z)(nt));let st=p&&v||!f?v:this.findNearestKDPoint(k,l,f);return T=st&&st.series,st&&(l&&!T.noSharedTooltip?(k=x.filter(function(nt){return Q.filter?Q.filter(nt):z(nt)&&!nt.noSharedTooltip})).forEach(function(nt){let dt=d(nt.points,function(mt){return mt.x===st.x&&!mt.isNull});s(dt)&&(nt.boosted&&nt.boost&&(dt=nt.boost.getPoint(dt)),b.push(dt))}):b.push(st)),L(this,"afterGetHoverData",Q={hoverPoint:st}),{hoverPoint:Q.hoverPoint,hoverSeries:T,hoverPoints:b}}getPointFromEvent(v){let g=v.target,x;for(;g&&!x;)x=g.point,g=g.parentNode;return x}onTrackerMouseOut(v){let g=this.chart,x=v.relatedTarget,p=g.hoverSeries;this.isDirectTouch=!1,!p||!x||p.stickyTracking||this.inClass(x,"highcharts-tooltip")||this.inClass(x,"highcharts-series-"+p.index)&&this.inClass(x,"highcharts-tracker")||p.onMouseOut()}inClass(v,g){let x=v,p;for(;x;){if(p=X(x,"class")){if(p.indexOf(g)!==-1)return!0;if(p.indexOf("highcharts-container")!==-1)return!1}x=x.parentElement}}constructor(v,g){var x;this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=g,this.chart=v,this.runChartClick=!!((x=g.chart.events)!=null&&x.click),this.pinchDown=[],this.setDOMEvents(),L(this,"afterInit")}normalize(v,g){let x=v.touches,p=x?x.length?x.item(0):o(x.changedTouches,v.changedTouches)[0]:v;g||(g=this.getChartPosition());let l=p.pageX-g.left,f=p.pageY-g.top;return U(v,{chartX:Math.round(l/=g.scaleX),chartY:Math.round(f/=g.scaleY)})}onContainerClick(v){let g=this.chart,x=g.hoverPoint,p=this.normalize(v),l=g.plotLeft,f=g.plotTop;!g.cancelClick&&(x&&this.inClass(p.target,"highcharts-tracker")?(L(x.series,"click",U(p,{point:x})),g.hoverPoint&&x.firePointEvent("click",p)):(U(p,this.getCoordinates(p)),g.isInsidePlot(p.chartX-l,p.chartY-f,{visiblePlotOnly:!0})&&L(g,"click",p)))}onContainerMouseDown(v){var x;let g=(1&(v.buttons||v.button))==1;v=this.normalize(v),B.isFirefox&&v.button!==0&&this.onContainerMouseMove(v),(v.button===void 0||g)&&(this.zoomOption(v),g&&((x=v.preventDefault)==null||x.call(v)),this.dragStart(v))}onContainerMouseLeave(v){let{pointer:g}=q[o(E.hoverChartIndex,-1)]||{};v=this.normalize(v),this.onContainerMouseMove(v),g&&!this.inClass(v.relatedTarget,"highcharts-tooltip")&&(g.reset(),g.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(v){let g=this.chart,x=g.tooltip,p=this.normalize(v);this.setHoverChartIndex(v),(g.mouseIsDown==="mousedown"||this.touchSelect(p))&&this.drag(p),!g.openMenu&&(this.inClass(p.target,"highcharts-tracker")||g.isInsidePlot(p.chartX-g.plotLeft,p.chartY-g.plotTop,{visiblePlotOnly:!0}))&&!(x&&x.shouldStickOnContact(p))&&(this.inClass(p.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(p))}onDocumentTouchEnd(v){this.onDocumentMouseUp(v)}onContainerTouchMove(v){this.touchSelect(v)?this.onContainerMouseMove(v):this.touch(v)}onContainerTouchStart(v){this.touchSelect(v)?this.onContainerMouseDown(v):(this.zoomOption(v),this.touch(v,!0))}onDocumentMouseMove(v){let g=this.chart,x=g.tooltip,p=this.chartPosition,l=this.normalize(v,p);!p||g.isInsidePlot(l.chartX-g.plotLeft,l.chartY-g.plotTop,{visiblePlotOnly:!0})||x&&x.shouldStickOnContact(l)||l.target!==g.container.ownerDocument&&this.inClass(l.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(v){var g,x;(x=(g=q[o(E.hoverChartIndex,-1)])==null?void 0:g.pointer)==null||x.drop(v)}pinch(v){let g=this,{chart:x,hasZoom:p,lastTouches:l}=g,f=[].map.call(v.touches||[],Q=>g.normalize(Q)),b=f.length,z=b===1&&(g.inClass(v.target,"highcharts-tracker")&&x.runTrackerClick||g.runChartClick),T=x.tooltip,k=b===1&&o(T==null?void 0:T.options.followTouchMove,!0);b>1?g.initiated=!0:k&&(g.initiated=!1),p&&g.initiated&&!z&&v.cancelable!==!1&&v.preventDefault(),v.type==="touchstart"?(g.pinchDown=f,g.res=!0,x.mouseDownX=v.chartX):k?this.runPointActions(g.normalize(v)):l&&(L(x,"touchpan",{originalEvent:v,touches:f},()=>{let Q=st=>{let nt=st[0],dt=st[1]||nt;return{x:nt.chartX,y:nt.chartY,width:dt.chartX-nt.chartX,height:dt.chartY-nt.chartY}};x.transform({axes:x.axes.filter(st=>st.zoomEnabled&&(this.zoomHor&&st.horiz||this.zoomVert&&!st.horiz)),to:Q(f),from:Q(l),trigger:v.type})}),g.res&&(g.res=!1,this.reset(!1,0))),g.lastTouches=f}reset(v,g){let x=this.chart,p=x.hoverSeries,l=x.hoverPoint,f=x.hoverPoints,b=x.tooltip,z=b&&b.shared?f:l;v&&z&&C(z).forEach(function(T){T.series.isCartesian&&T.plotX===void 0&&(v=!1)}),v?b&&z&&C(z).length&&(b.refresh(z),b.shared&&f?f.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))}):l&&(l.setState(l.state,!0),x.axes.forEach(function(T){T.crosshair&&l.series[T.coll]===T&&T.drawCrosshair(null,l)}))):(l&&l.onMouseOut(),f&&f.forEach(function(T){T.setState()}),p&&p.onMouseOut(),b&&b.hide(g),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),x.axes.forEach(function(T){T.hideCrosshair()}),x.hoverPoints=x.hoverPoint=void 0)}runPointActions(v,g,x){let p=this.chart,l=p.series,f=p.tooltip&&p.tooltip.options.enabled?p.tooltip:void 0,b=!!f&&f.shared,z=g||p.hoverPoint,T=z&&z.series||p.hoverSeries,k=(!v||v.type!=="touchmove")&&(!!g||T&&T.directTouch&&this.isDirectTouch),Q=this.getHoverData(z,T,l,k,b,v);z=Q.hoverPoint,T=Q.hoverSeries;let st=Q.hoverPoints,nt=T&&T.tooltipOptions.followPointer&&!T.tooltipOptions.split,dt=b&&T&&!T.noSharedTooltip;if(z&&(x||z!==p.hoverPoint||f&&f.isHidden)){if((p.hoverPoints||[]).forEach(function(mt){st.indexOf(mt)===-1&&mt.setState()}),p.hoverSeries!==T&&T.onMouseOver(),this.applyInactiveState(st),(st||[]).forEach(function(mt){mt.setState("hover")}),p.hoverPoint&&p.hoverPoint.firePointEvent("mouseOut"),!z.series)return;p.hoverPoints=st,p.hoverPoint=z,z.firePointEvent("mouseOver",void 0,()=>{f&&z&&f.refresh(dt?st:z,v)})}else if(nt&&f&&!f.isHidden){let mt=f.getAnchor([{}],v);p.isInsidePlot(mt[0],mt[1],{visiblePlotOnly:!0})&&f.updatePosition({plotX:mt[0],plotY:mt[1]})}this.unDocMouseMove||(this.unDocMouseMove=H(p.container.ownerDocument,"mousemove",mt=>{var Et,Mt,I;return(I=(Mt=q[(Et=E.hoverChartIndex)!=null?Et:-1])==null?void 0:Mt.pointer)==null?void 0:I.onDocumentMouseMove(mt)}),this.eventsToUnbind.push(this.unDocMouseMove)),p.axes.forEach(function(mt){let Et,Mt=o((mt.crosshair||{}).snap,!0);!Mt||(Et=p.hoverPoint)&&Et.series[mt.coll]===mt||(Et=d(st,I=>I.series&&I.series[mt.coll]===mt)),Et||!Mt?mt.drawCrosshair(v,Et):mt.hideCrosshair()})}setDOMEvents(){let v=this.chart.container,g=v.ownerDocument;v.onmousedown=this.onContainerMouseDown.bind(this),v.onmousemove=this.onContainerMouseMove.bind(this),v.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(H(v,"mouseenter",this.onContainerMouseEnter.bind(this)),H(v,"mouseleave",this.onContainerMouseLeave.bind(this))),E.unbindDocumentMouseUp||(E.unbindDocumentMouseUp=[]),E.unbindDocumentMouseUp.push(H(g,"mouseup",this.onDocumentMouseUp.bind(this)));let x=this.chart.renderTo.parentElement;for(;x&&x.tagName!=="BODY";)this.eventsToUnbind.push(H(x,"scroll",()=>{delete this.chartPosition})),x=x.parentElement;this.eventsToUnbind.push(H(v,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),H(v,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),E.unbindDocumentTouchEnd||(E.unbindDocumentTouchEnd=H(g,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),H(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){var l,f;if(!tt)return;let v=this.pointerCaptureEventsToUnbind,g=this.chart,x=g.container,p=o((l=g.options.tooltip)==null?void 0:l.followTouchMove,!0)&&g.series.some(b=>b.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&p?(v.push(H(x,"pointerdown",b=>{var z,T;(z=b.target)!=null&&z.hasPointerCapture(b.pointerId)&&((T=b.target)==null||T.releasePointerCapture(b.pointerId))}),H(x,"pointermove",b=>{var z,T;(T=(z=g.pointer)==null?void 0:z.getPointFromEvent(b))==null||T.onMouseOver(b)})),g.styledMode||F(x,{"touch-action":"none"}),x.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!p&&(v.forEach(b=>b()),v.length=0,g.styledMode||F(x,{"touch-action":o((f=g.options.chart.style)==null?void 0:f["touch-action"],"manipulation")}),x.className=x.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(v){var p;let g=this.chart,x=B.charts[o(E.hoverChartIndex,-1)];if(x&&x!==g){let l={relatedTarget:g.container};v&&!(v!=null&&v.relatedTarget)&&(v=Fr(Fr({},l),v)),(p=x.pointer)==null||p.onContainerMouseLeave(v||l)}x&&x.mouseIsDown||(E.hoverChartIndex=g.index)}touch(v,g){let x,{chart:p,pinchDown:l=[]}=this;this.setHoverChartIndex(),(v=this.normalize(v)).touches.length===1?p.isInsidePlot(v.chartX-p.plotLeft,v.chartY-p.plotTop,{visiblePlotOnly:!0})&&!p.openMenu?(g&&this.runPointActions(v),v.type==="touchmove"&&(x=!!l[0]&&Math.pow(l[0].chartX-v.chartX,2)+Math.pow(l[0].chartY-v.chartY,2)>=16),o(x,!0)&&this.pinch(v)):g&&this.reset():v.touches.length===2&&this.pinch(v)}touchSelect(v){return!!(this.chart.zooming.singleTouch&&v.touches&&v.touches.length===1)}zoomOption(v){let g=this.chart,x=g.inverted,p=g.zooming.type||"",l,f;/touch/.test(v.type)&&(p=o(g.zooming.pinchType,p)),this.zoomX=l=/x/.test(p),this.zoomY=f=/y/.test(p),this.zoomHor=l&&!x||f&&x,this.zoomVert=f&&!x||l&&x,this.hasZoom=l||f}}return(K=E||(E={})).compose=function(S){u(Z,"Core.Pointer")&&H(S,"beforeRender",function(){this.pointer=new K(this,this.options)})},E}),y(m,"Core/Legend/LegendSymbol.js",[m["Core/Utilities.js"]],function(R){var B;let{extend:et,merge:K,pick:J}=R;return function(q){function Z(tt,H,X){var x,p;let F=this.legendItem=this.legendItem||{},{chart:U,options:d}=this,{baseline:L=0,symbolWidth:M,symbolHeight:s}=tt,_=this.symbol||"circle",w=s/2,o=U.renderer,u=F.group,C=L-Math.round((((x=tt.fontMetrics)==null?void 0:x.b)||s)*(X?.4:.3)),E={},S,v=d.marker,g=0;if(U.styledMode||(E["stroke-width"]=Math.min(d.lineWidth||0,24),d.dashStyle?E.dashstyle=d.dashStyle:d.linecap==="square"||(E["stroke-linecap"]="round")),F.line=o.path().addClass("highcharts-graph").attr(E).add(u),X&&(F.area=o.path().addClass("highcharts-area").add(u)),E["stroke-linecap"]&&(g=Math.min(F.line.strokeWidth(),M)/2),M){let l=[["M",g,C],["L",M-g,C]];F.line.attr({d:l}),(p=F.area)==null||p.attr({d:[...l,["L",M-g,L],["L",g,L]]})}if(v&&v.enabled!==!1&&M){let l=Math.min(J(v.radius,w),w);_.indexOf("url")===0&&(v=K(v,{width:s,height:s}),l=0),F.symbol=S=o.symbol(_,M/2-l,C-l,2*l,2*l,et({context:"legend"},v)).addClass("highcharts-point").add(u),S.isMarker=!0}}q.areaMarker=function(tt,H){Z.call(this,tt,H,!0)},q.lineMarker=Z,q.rectangle=function(tt,H){let X=H.legendItem||{},F=tt.options,U=tt.symbolHeight,d=F.squareSymbol,L=d?U:tt.symbolWidth;X.symbol=this.chart.renderer.rect(d?(tt.symbolWidth-U)/2:0,tt.baseline-U+1,L,U,J(tt.options.symbolRadius,U/2)).addClass("highcharts-point").attr({zIndex:3}).add(X.group)}}(B||(B={})),B}),y(m,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:R}=this.series.chart;return typeof this.y!="number"?"":R(this.y,-1)},padding:5,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"}}),y(m,"Core/Series/SeriesRegistry.js",[m["Core/Globals.js"],m["Core/Defaults.js"],m["Core/Series/Point.js"],m["Core/Utilities.js"]],function(R,B,et,K){var J;let{defaultOptions:q}=B,{extend:Z,extendClass:tt,merge:H}=K;return function(X){function F(U,d){let L=q.plotOptions||{},M=d.defaultOptions,s=d.prototype;return s.type=U,s.pointClass||(s.pointClass=et),!X.seriesTypes[U]&&(M&&(L[U]=M),X.seriesTypes[U]=d,!0)}X.seriesTypes=R.seriesTypes,X.registerSeriesType=F,X.seriesType=function(U,d,L,M,s){let _=q.plotOptions||{};if(d=d||"",_[U]=H(_[d],L),delete X.seriesTypes[U],F(U,tt(X.seriesTypes[d]||function(){},M)),X.seriesTypes[U].prototype.type=U,s){class w extends et{}Z(w.prototype,s),X.seriesTypes[U].prototype.pointClass=w}return X.seriesTypes[U]}}(J||(J={})),J}),y(m,"Core/Series/Series.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Defaults.js"],m["Core/Foundation.js"],m["Core/Globals.js"],m["Core/Legend/LegendSymbol.js"],m["Core/Series/Point.js"],m["Core/Series/SeriesDefaults.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Renderer/SVG/SVGElement.js"],m["Core/Utilities.js"]],function(R,B,et,K,J,q,Z,tt,H,X){let{animObject:F,setAnimation:U}=R,{defaultOptions:d}=B,{registerEventOptions:L}=et,{svg:M,win:s}=K,{seriesTypes:_}=tt,{arrayMax:w,arrayMin:o,clamp:u,correctFloat:C,crisp:E,defined:S,destroyObjectProperties:v,diffObjects:g,erase:x,error:p,extend:l,find:f,fireEvent:b,getClosestDistance:z,getNestedProperty:T,insertItem:k,isArray:Q,isNumber:st,isString:nt,merge:dt,objectEach:mt,pick:Et,removeEvent:Mt,splat:I,syncTimeout:Y}=X;class rt{constructor(){this.zoneAxis="y"}init(D,P){let W;b(this,"init",{options:P});let lt=this,it=D.series;this.eventsToUnbind=[],lt.chart=D,lt.options=lt.setOptions(P);let vt=lt.options,pt=vt.visible!==!1;lt.linkedSeries=[],lt.bindAxes(),l(lt,{name:vt.name,state:"",visible:pt,selected:vt.selected===!0}),L(this,vt);let xt=vt.events;(xt&&xt.click||vt.point&&vt.point.events&&vt.point.events.click||vt.allowPointSelect)&&(D.runTrackerClick=!0),lt.getColor(),lt.getSymbol(),lt.parallelArrays.forEach(function(Ct){lt[Ct+"Data"]||(lt[Ct+"Data"]=[])}),lt.isCartesian&&(D.hasCartesianSeries=!0),it.length&&(W=it[it.length-1]),lt._i=Et(W&&W._i,-1)+1,lt.opacity=lt.options.opacity,D.orderItems("series",k(this,it)),vt.dataSorting&&vt.dataSorting.enabled?lt.setDataSortingOptions():lt.points||lt.data||lt.setData(vt.data,!1),b(this,"afterInit")}is(D){return _[D]&&this instanceof _[D]}bindAxes(){let D,P=this,W=P.options,lt=P.chart;b(this,"bindAxes",null,function(){(P.axisTypes||[]).forEach(function(it){(lt[it]||[]).forEach(function(vt){D=vt.options,(Et(W[it],0)===vt.index||W[it]!==void 0&&W[it]===D.id)&&(k(P,vt.series),P[it]=vt,vt.isDirty=!0)}),P[it]||P.optionalAxis===it||p(18,!0,lt)})}),b(this,"afterBindAxes")}updateParallelArrays(D,P,W){let lt=D.series,it=st(P)?function(vt){let pt=vt==="y"&<.toYData?lt.toYData(D):D[vt];lt[vt+"Data"][P]=pt}:function(vt){Array.prototype[P].apply(lt[vt+"Data"],W)};lt.parallelArrays.forEach(it)}hasData(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&this.yData.length>0}hasMarkerChanged(D,P){let W=D.marker,lt=P.marker||{};return W&&(lt.enabled&&!W.enabled||lt.symbol!==W.symbol||lt.height!==W.height||lt.width!==W.width)}autoIncrement(D){let P=this.options,W=P.pointIntervalUnit,lt=P.relativeXValue,it=this.chart.time,vt=this.xIncrement,pt,xt;return vt=Et(vt,P.pointStart,0),this.pointInterval=xt=Et(this.pointInterval,P.pointInterval,1),lt&&st(D)&&(xt*=D),W&&(pt=new it.Date(vt),W==="day"?it.set("Date",pt,it.get("Date",pt)+xt):W==="month"?it.set("Month",pt,it.get("Month",pt)+xt):W==="year"&&it.set("FullYear",pt,it.get("FullYear",pt)+xt),xt=pt.getTime()-vt),lt&&st(D)?vt+xt:(this.xIncrement=vt+xt,vt)}setDataSortingOptions(){let D=this.options;l(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),S(D.pointRange)||(D.pointRange=1)}setOptions(D){var Zt,ne;let P,W=this.chart,lt=W.options.plotOptions,it=W.userOptions||{},vt=dt(D),pt=W.styledMode,xt={plotOptions:lt,userOptions:vt};b(this,"setOptions",xt);let Ct=xt.plotOptions[this.type],Tt=it.plotOptions||{},Nt=Tt.series||{},gt=d.plotOptions[this.type]||{},wt=Tt[this.type]||{};this.userOptions=xt.userOptions;let Rt=dt(Ct,lt.series,wt,vt);this.tooltipOptions=dt(d.tooltip,(Zt=d.plotOptions.series)==null?void 0:Zt.tooltip,gt==null?void 0:gt.tooltip,W.userOptions.tooltip,(ne=Tt.series)==null?void 0:ne.tooltip,wt.tooltip,vt.tooltip),this.stickyTracking=Et(vt.stickyTracking,wt.stickyTracking,Nt.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||Rt.stickyTracking),Ct.marker===null&&delete Rt.marker,this.zoneAxis=Rt.zoneAxis||"y";let jt=this.zones=(Rt.zones||[]).map(Wt=>Fr({},Wt));return(Rt.negativeColor||Rt.negativeFillColor)&&!Rt.zones&&(P={value:Rt[this.zoneAxis+"Threshold"]||Rt.threshold||0,className:"highcharts-negative"},pt||(P.color=Rt.negativeColor,P.fillColor=Rt.negativeFillColor),jt.push(P)),jt.length&&S(jt[jt.length-1].value)&&jt.push(pt?{}:{color:this.color,fillColor:this.fillColor}),b(this,"afterSetOptions",{options:Rt}),Rt}getName(){return Et(this.options.name,"Series "+(this.index+1))}getCyclic(D,P,W){let lt,it,vt=this.chart,pt=`${D}Index`,xt=`${D}Counter`,Ct=(W==null?void 0:W.length)||vt.options.chart.colorCount;!P&&(S(it=Et(D==="color"?this.options.colorIndex:void 0,this[pt]))?lt=it:(vt.series.length||(vt[xt]=0),lt=vt[xt]%Ct,vt[xt]+=1),W&&(P=W[lt])),lt!==void 0&&(this[pt]=lt),this[D]=P}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||d.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let D=this.options.marker;this.getCyclic("symbol",D.symbol,this.chart.options.symbols)}findPointIndex(D,P){let W,lt,it,vt=D.id,pt=D.x,xt=this.points,Ct=this.options.dataSorting;if(vt){let Tt=this.chart.get(vt);Tt instanceof q&&(W=Tt)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let Tt=Nt=>!Nt.touched&&Nt.index===D.index;if(Ct&&Ct.matchByName?Tt=Nt=>!Nt.touched&&Nt.name===D.name:this.options.relativeXValue&&(Tt=Nt=>!Nt.touched&&Nt.options.x===D.x),!(W=f(xt,Tt)))return}return W&&(it=W&&W.index)!==void 0&&(lt=!0),it===void 0&&st(pt)&&(it=this.xData.indexOf(pt,P)),it!==-1&&it!==void 0&&this.cropped&&(it=it>=this.cropStart?it-this.cropStart:it),!lt&&st(it)&&xt[it]&&xt[it].touched&&(it=void 0),it}updateData(D,P){let W=this.options,lt=W.dataSorting,it=this.points,vt=[],pt=this.requireSorting,xt=D.length===it.length,Ct,Tt,Nt,gt,wt=!0;if(this.xIncrement=null,D.forEach(function(Rt,jt){let Zt,ne=S(Rt)&&this.pointClass.prototype.optionsToObject.call({series:this},Rt)||{},Wt=ne.x;ne.id||st(Wt)?((Zt=this.findPointIndex(ne,gt))===-1||Zt===void 0?vt.push(Rt):it[Zt]&&Rt!==W.data[Zt]?(it[Zt].update(Rt,!1,null,!1),it[Zt].touched=!0,pt&&(gt=Zt+1)):it[Zt]&&(it[Zt].touched=!0),(!xt||jt!==Zt||lt&<.enabled||this.hasDerivedData)&&(Ct=!0)):vt.push(Rt)},this),Ct)for(Tt=it.length;Tt--;)(Nt=it[Tt])&&!Nt.touched&&Nt.remove&&Nt.remove(!1,P);else!xt||lt&<.enabled?wt=!1:(D.forEach(function(Rt,jt){Rt===it[jt].y||it[jt].destroyed||it[jt].update(Rt,!1,null,!1)}),vt.length=0);return it.forEach(function(Rt){Rt&&(Rt.touched=!1)}),!!wt&&(vt.forEach(function(Rt){this.addPoint(Rt,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=w(this.xData),this.autoIncrement()),!0)}setData(D,P=!0,W,lt){var on;let it=this,vt=it.points,pt=vt&&vt.length||0,xt=it.options,Ct=it.chart,Tt=xt.dataSorting,Nt=it.xAxis,gt=xt.turboThreshold,wt=this.xData,Rt=this.yData,jt=it.pointArrayMap,Zt=jt&&jt.length,ne=xt.keys,Wt,le,fe,xe=0,be=1,Ye;Ct.options.chart.allowMutatingData||(xt.data&&delete it.options.data,it.userOptions.data&&delete it.userOptions.data,Ye=dt(!0,D));let tn=(D=Ye||D||[]).length;if(Tt&&Tt.enabled&&(D=this.sortData(D)),Ct.options.chart.allowMutatingData&<!==!1&&tn&&pt&&!it.cropped&&!it.hasGroupedData&&it.visible&&!it.boosted&&(fe=this.updateData(D,W)),!fe){it.xIncrement=null,it.colorCounter=0,this.parallelArrays.forEach(function(Kt){it[Kt+"Data"].length=0});let Jt=gt&&tn>gt;if(Jt){let Kt=it.getFirstValidPoint(D),te=it.getFirstValidPoint(D,tn-1,-1),Ot=Bt=>!!(Q(Bt)&&(ne||st(Bt[0])));if(st(Kt)&&st(te))for(Wt=0;Wt=0?xe:0,be=be>=0?be:1),Kt.length===1&&(be=0),xe===be)for(Wt=0;Wt{let pt=T(W,it),xt=T(W,vt);return xtpt?1:0}).forEach(function(it,vt){it.x=vt},this),P.linkedSeries&&P.linkedSeries.forEach(function(it){let vt=it.options,pt=vt.data;vt.dataSorting&&vt.dataSorting.enabled||!pt||(pt.forEach(function(xt,Ct){pt[Ct]=lt(it,xt),D[Ct]&&(pt[Ct].x=D[Ct].x,pt[Ct].index=Ct)}),it.setData(pt,!1))}),D}getProcessedData(D){let P=this,W=P.xAxis,lt=P.options.cropThreshold,it=W==null?void 0:W.logarithmic,vt=P.isCartesian,pt,xt,Ct=0,Tt,Nt,gt,wt=P.xData,Rt=P.yData,jt=!1,Zt=wt.length;W&&(Nt=(Tt=W.getExtremes()).min,gt=Tt.max,jt=!!(W.categories&&!W.names.length)),vt&&P.sorted&&!D&&(!lt||Zt>lt||P.forceCrop)&&(wt[Zt-1]gt?(wt=[],Rt=[]):P.yData&&(wt[0]gt)&&(wt=(pt=this.cropData(P.xData,P.yData,Nt,gt)).xData,Rt=pt.yData,Ct=pt.start,xt=!0));let ne=z([it?wt.map(it.log2lin):wt],()=>P.requireSorting&&!jt&&p(15,!1,P.chart));return{xData:wt,yData:Rt,cropped:xt,cropStart:Ct,closestPointRange:ne}}processData(D){let P=this.xAxis;if(this.isCartesian&&!this.isDirty&&!P.isDirty&&!this.yAxis.isDirty&&!D)return!1;let W=this.getProcessedData();this.cropped=W.cropped,this.cropStart=W.cropStart,this.processedXData=W.xData,this.processedYData=W.yData,this.closestPointRange=this.basePointRange=W.closestPointRange,b(this,"afterProcessData")}cropData(D,P,W,lt){let it=D.length,vt,pt,xt=0,Ct=it;for(vt=0;vt=W){xt=Math.max(0,vt-1);break}for(pt=vt;ptlt){Ct=pt+1;break}return{xData:D.slice(xt,Ct),yData:P.slice(xt,Ct),start:xt,end:Ct}}generatePoints(){let D=this.options,P=this.processedData||D.data,W=this.processedXData,lt=this.processedYData,it=this.pointClass,vt=W.length,pt=this.cropStart||0,xt=this.hasGroupedData,Ct=D.keys,Tt=[],Nt=D.dataGrouping&&D.dataGrouping.groupAll?pt:0,gt,wt,Rt,jt,Zt=this.data;if(!Zt&&!xt){let ne=[];ne.length=P.length,Zt=this.data=ne}for(Ct&&xt&&(this.options.keys=!1),jt=0;jt0:jt.length)||!pt),wt=P||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!W||(be[Zt+vt]||Rt)>=Wt&&(be[Zt-vt]||Rt)<=le,gt&&wt)if(ne=jt.length)for(;ne--;)st(jt[ne])&&(it[fe++]=jt[ne]);else it[fe++]=jt;let Ye={activeYData:it,dataMin:o(it),dataMax:w(it)};return b(this,"afterGetExtremes",{dataExtremes:Ye}),Ye}applyExtremes(){let D=this.getExtremes();return this.dataMin=D.dataMin,this.dataMax=D.dataMax,D}getFirstValidPoint(D,P=0,W=1){let lt=D.length,it=P;for(;it>=0&&it1)&&(vt.step=function(gt,wt){Nt&&Nt.apply(wt,arguments),wt.prop==="width"&&(Ct!=null&&Ct.element)&&Ct.attr(it?"height":"width",gt+99)}),xt.addClass("highcharts-animating").animate(Tt,vt)}}afterAnimate(){this.setClip(),mt(this.chart.sharedClips,(D,P,W)=>{D&&!this.chart.container.querySelector(`[clip-path="url(#${D.id})"]`)&&(D.destroy(),delete W[P])}),this.finishedAnimating=!0,b(this,"afterAnimate")}drawPoints(D=this.points){let P,W,lt,it,vt,pt,xt,Ct=this.chart,Tt=Ct.styledMode,{colorAxis:Nt,options:gt}=this,wt=gt.marker,Rt=this[this.specialGroup||"markerGroup"],jt=this.xAxis,Zt=Et(wt.enabled,!jt||!!jt.isRadial||null,this.closestPointRangePx>=wt.enabledThreshold*wt.radius);if(wt.enabled!==!1||this._hasPointMarkers)for(P=0;P0||W.hasImage)&&(W.graphic=lt=Ct.renderer.symbol(ne,xt.x,xt.y,xt.width,xt.height,pt?vt:wt).add(Rt),this.enabledDataSorting&&Ct.hasRendered&&(lt.attr({x:W.startXPos}),it="animate")),lt&&it==="animate"&<[Wt?"show":"hide"](Wt).animate(xt),lt){let le=this.pointAttribs(W,Tt||!W.selected?void 0:"select");Tt?Nt&<.css({fill:le.fill}):lt[it](le)}lt&<.addClass(W.getClassName(),!0)}else lt&&(W.graphic=lt.destroy())}markerAttribs(D,P){let W=this.options,lt=W.marker,it=D.marker||{},vt=it.symbol||lt.symbol,pt={},xt,Ct,Tt=Et(it.radius,lt&<.radius);P&&(xt=lt.states[P],Tt=Et((Ct=it.states&&it.states[P])&&Ct.radius,xt&&xt.radius,Tt&&Tt+(xt&&xt.radiusPlus||0))),D.hasImage=vt&&vt.indexOf("url")===0,D.hasImage&&(Tt=0);let Nt=D.pos();return st(Tt)&&Nt&&(W.crisp&&(Nt[0]=E(Nt[0],D.hasImage?0:vt==="rect"?(lt==null?void 0:lt.lineWidth)||0:1)),pt.x=Nt[0]-Tt,pt.y=Nt[1]-Tt),Tt&&(pt.width=pt.height=2*Tt),pt}pointAttribs(D,P){let W=this.options.marker,lt=D&&D.options,it=lt&<.marker||{},vt=lt&<.color,pt=D&&D.color,xt=D&&D.zone&&D.zone.color,Ct,Tt,Nt=this.color,gt,wt,Rt=Et(it.lineWidth,W.lineWidth),jt=1;return Nt=vt||xt||pt||Nt,gt=it.fillColor||W.fillColor||Nt,wt=it.lineColor||W.lineColor||Nt,P=P||"normal",Ct=W.states[P]||{},Rt=Et((Tt=it.states&&it.states[P]||{}).lineWidth,Ct.lineWidth,Rt+Et(Tt.lineWidthPlus,Ct.lineWidthPlus,0)),gt=Tt.fillColor||Ct.fillColor||gt,{stroke:wt=Tt.lineColor||Ct.lineColor||wt,"stroke-width":Rt,fill:gt,opacity:jt=Et(Tt.opacity,Ct.opacity,jt)}}destroy(D){let P,W,lt,it=this,vt=it.chart,pt=/AppleWebKit\/533/.test(s.navigator.userAgent),xt=it.data||[];for(b(it,"destroy",{keepEventsForUpdate:D}),this.removeEvents(D),(it.axisTypes||[]).forEach(function(Ct){(lt=it[Ct])&<.series&&(x(lt.series,it),lt.isDirty=lt.forceRedraw=!0)}),it.legendItem&&it.chart.legend.destroyItem(it),P=xt.length;P--;)(W=xt[P])&&W.destroy&&W.destroy();for(let Ct of it.zones)v(Ct,void 0,!0);X.clearTimeout(it.animationTimeout),mt(it,function(Ct,Tt){Ct instanceof H&&!Ct.survive&&Ct[pt&&Tt==="group"?"hide":"destroy"]()}),vt.hoverSeries===it&&(vt.hoverSeries=void 0),x(vt.series,it),vt.orderItems("series"),mt(it,function(Ct,Tt){D&&Tt==="hcEvents"||delete it[Tt]})}applyZones(){let{area:D,chart:P,graph:W,zones:lt,points:it,xAxis:vt,yAxis:pt,zoneAxis:xt}=this,{inverted:Ct,renderer:Tt}=P,Nt=this[`${xt}Axis`],{isXAxis:gt,len:wt=0}=Nt||{},Rt=((W==null?void 0:W.strokeWidth())||0)/2+1,jt=(Zt,ne=0,Wt=0)=>{Ct&&(Wt=wt-Wt);let{translated:le=0,lineClip:fe}=Zt,xe=Wt-le;fe==null||fe.push(["L",ne,Math.abs(xe){fe.forEach((xe,be)=>{(xe[0]==="M"||xe[0]==="L")&&(fe[be]=[xe[0],gt?wt-xe[1]:xe[1],gt?xe[2]:wt-xe[2]])})};if(lt.forEach(fe=>{fe.lineClip=[],fe.translated=u(Nt.toPixels(Et(fe.value,Zt),!0)||0,0,wt)}),W&&!this.showLine&&W.hide(),D&&D.hide(),xt==="y"&&it.length{var Ut,zt;let xe=fe.lineClip||[],be=Math.round(fe.translated||0);vt.reversed&&xe.reverse();let{clip:Ye,simpleClip:tn}=fe,on=0,Jt=0,Kt=vt.len,te=pt.len;gt?(on=be,Kt=le):(Jt=be,te=le);let Ot=[["M",on,Jt],["L",Kt,Jt],["L",Kt,te],["L",on,te],["Z"]],Bt=[Ot[0],...xe,Ot[1],Ot[2],...Wt,Ot[3],Ot[4]];Wt=xe.reverse(),le=be,Ct&&(ne(Bt),D&&ne(Ot)),Ye?(Ye.animate({d:Bt}),tn==null||tn.animate({d:Ot})):(Ye=fe.clip=Tt.path(Bt),D&&(tn=fe.simpleClip=Tt.path(Ot))),W&&((Ut=fe.graph)==null||Ut.clip(Ye)),D&&((zt=fe.area)==null||zt.clip(tn))})}else this.visible&&(W&&W.show(),D&&D.show())}plotGroup(D,P,W,lt,it){let vt=this[D],pt=!vt,xt={visibility:W,zIndex:lt||.1};return S(this.opacity)&&!this.chart.styledMode&&this.state!=="inactive"&&(xt.opacity=this.opacity),vt||(this[D]=vt=this.chart.renderer.g().add(it)),vt.addClass("highcharts-"+P+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(S(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(vt.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),vt.attr(xt)[pt?"attr":"animate"](this.getPlotBox(P)),vt}getPlotBox(D){let P=this.xAxis,W=this.yAxis,lt=this.chart,it=lt.inverted&&!lt.polar&&P&&this.invertible&&D==="series";return lt.inverted&&(P=W,W=this.xAxis),{translateX:P?P.left:lt.plotLeft,translateY:W?W.top:lt.plotTop,rotation:it?90:0,rotationOriginX:it?(P.len-W.len)/2:0,rotationOriginY:it?(P.len+W.len)/2:0,scaleX:it?-1:1,scaleY:1}}removeEvents(D){let{eventsToUnbind:P}=this;D||Mt(this),P.length&&(P.forEach(W=>{W()}),P.length=0)}render(){var Tt,Nt,gt,wt,Rt;let D=this,{chart:P,options:W,hasRendered:lt}=D,it=F(W.animation),vt=D.visible?"inherit":"hidden",pt=W.zIndex,xt=P.seriesGroup,Ct=D.finishedAnimating?0:it.duration;b(this,"render"),D.plotGroup("group","series",vt,pt,xt),D.markerGroup=D.plotGroup("markerGroup","markers",vt,pt,xt),W.clip!==!1&&D.setClip(),Ct&&((Tt=D.animate)==null||Tt.call(D,!0)),D.drawGraph&&(D.drawGraph(),D.applyZones()),D.visible&&D.drawPoints(),(Nt=D.drawDataLabels)==null||Nt.call(D),(gt=D.redrawPoints)==null||gt.call(D),W.enableMouseTracking&&((wt=D.drawTracker)==null||wt.call(D)),Ct&&((Rt=D.animate)==null||Rt.call(D)),lt||(Ct&&it.defer&&(Ct+=it.defer),D.animationTimeout=Y(()=>{D.afterAnimate()},Ct||0)),D.isDirty=!1,D.hasRendered=!0,b(D,"afterRender")}redraw(){let D=this.isDirty||this.isDirtyData;this.translate(),this.render(),D&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(D,P){let{xAxis:W,yAxis:lt}=this,it=this.chart.inverted;return this.searchKDTree({clientX:it?W.len-D.chartY+W.pos:D.chartX-W.pos,plotY:it?lt.len-D.chartX+lt.pos:D.chartY-lt.pos},P,D)}buildKDTree(D){this.buildingKdTree=!0;let P=this,W=P.options.findNearestPointBy.indexOf("y")>-1?2:1;delete P.kdTree,Y(function(){P.kdTree=function lt(it,vt,pt){let xt,Ct,Tt=it==null?void 0:it.length;if(Tt)return xt=P.kdAxisArray[vt%pt],it.sort((Nt,gt)=>(Nt[xt]||0)-(gt[xt]||0)),{point:it[Ct=Math.floor(Tt/2)],left:lt(it.slice(0,Ct),vt+1,pt),right:lt(it.slice(Ct+1),vt+1,pt)}}(P.getValidPoints(void 0,!P.directTouch),W,W),P.buildingKdTree=!1},P.options.kdNow||(D==null?void 0:D.type)==="touchstart"?0:1)}searchKDTree(D,P,W){let lt=this,[it,vt]=this.kdAxisArray,pt=P?"distX":"dist",xt=(lt.options.findNearestPointBy||"").indexOf("y")>-1?2:1,Ct=!!lt.isBubble;if(this.kdTree||this.buildingKdTree||this.buildKDTree(W),this.kdTree)return function Tt(Nt,gt,wt,Rt){var Ye;let jt=gt.point,Zt=lt.kdAxisArray[wt%Rt],ne,Wt,le=jt;(function(tn,on){var ce;let Jt=tn[it],Kt=on[it],te=S(Jt)&&S(Kt)?Jt-Kt:null,Ot=tn[vt],Bt=on[vt],Ut=S(Ot)&&S(Bt)?Ot-Bt:0,zt=Ct&&((ce=on.marker)==null?void 0:ce.radius)||0;on.dist=Math.sqrt((te&&te*te||0)+Ut*Ut)-zt,on.distX=S(te)?Math.abs(te)-zt:Number.MAX_VALUE})(Nt,jt);let fe=(Nt[Zt]||0)-(jt[Zt]||0)+(Ct&&((Ye=jt.marker)==null?void 0:Ye.radius)||0),xe=fe<0?"left":"right",be=fe<0?"right":"left";return gt[xe]&&(le=(ne=Tt(Nt,gt[xe],wt+1,Rt))[pt]=0&&vt<=(lt?lt.len:P.plotHeight)&&it>=0&&it<=(W?W.len:P.plotWidth)}drawTracker(){var gt;let D=this,P=D.options,W=P.trackByArea,lt=[].concat((W?D.areaPath:D.graphPath)||[]),it=D.chart,vt=it.pointer,pt=it.renderer,xt=((gt=it.options.tooltip)==null?void 0:gt.snap)||0,Ct=()=>{P.enableMouseTracking&&it.hoverSeries!==D&&D.onMouseOver()},Tt="rgba(192,192,192,"+(M?1e-4:.002)+")",Nt=D.tracker;Nt?Nt.attr({d:lt}):D.graph&&(D.tracker=Nt=pt.path(lt).attr({visibility:D.visible?"inherit":"hidden",zIndex:2}).addClass(W?"highcharts-tracker-area":"highcharts-tracker-line").add(D.group),it.styledMode||Nt.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:Tt,fill:W?Tt:"none","stroke-width":D.graph.strokeWidth()+(W?0:2*xt)}),[D.tracker,D.markerGroup,D.dataLabelsGroup].forEach(wt=>{wt&&(wt.addClass("highcharts-tracker").on("mouseover",Ct).on("mouseout",Rt=>{vt==null||vt.onTrackerMouseOut(Rt)}),P.cursor&&!it.styledMode&&wt.css({cursor:P.cursor}),wt.on("touchstart",Ct))})),b(this,"afterDrawTracker")}addPoint(D,P,W,lt,it){let vt,pt,xt=this.options,Ct=this.data,Tt=this.chart,Nt=this.xAxis,gt=Nt&&Nt.hasNames&&Nt.names,wt=xt.data,Rt=this.xData;P=Et(P,!0);let jt={series:this};this.pointClass.prototype.applyOptions.apply(jt,[D]);let Zt=jt.x;if(pt=Rt.length,this.requireSorting&&ZtZt;)pt--;this.updateParallelArrays(jt,"splice",[pt,0,0]),this.updateParallelArrays(jt,pt),gt&&jt.name&&(gt[Zt]=jt.name),wt.splice(pt,0,D),(vt||this.processedData)&&(this.data.splice(pt,0,null),this.processData()),xt.legendType==="point"&&this.generatePoints(),W&&(Ct[0]&&Ct[0].remove?Ct[0].remove(!1):(Ct.shift(),this.updateParallelArrays(jt,"shift"),wt.shift())),it!==!1&&b(this,"addPoint",{point:jt}),this.isDirty=!0,this.isDirtyData=!0,P&&Tt.redraw(lt)}removePoint(D,P,W){let lt=this,it=lt.data,vt=it[D],pt=lt.points,xt=lt.chart,Ct=function(){pt&&pt.length===it.length&&pt.splice(D,1),it.splice(D,1),lt.options.data.splice(D,1),lt.updateParallelArrays(vt||{series:lt},"splice",[D,1]),vt&&vt.destroy(),lt.isDirty=!0,lt.isDirtyData=!0,P&&xt.redraw()};U(W,xt),P=Et(P,!0),vt?vt.firePointEvent("remove",null,Ct):Ct()}remove(D,P,W,lt){let it=this,vt=it.chart;function pt(){it.destroy(lt),vt.isDirtyLegend=vt.isDirtyBox=!0,vt.linkSeries(lt),Et(D,!0)&&vt.redraw(P)}W!==!1?b(it,"remove",null,pt):pt()}update(D,P){var ne,Wt,le,fe,xe;b(this,"update",{options:D=g(D,this.userOptions)});let W=this,lt=W.chart,it=W.userOptions,vt=W.initialType||W.type,pt=lt.options.plotOptions,xt=_[vt].prototype,Ct=W.finishedAnimating&&{animation:!1},Tt={},Nt,gt,wt=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],Rt=D.type||it.type||lt.options.chart.type,jt=!(this.hasDerivedData||Rt&&Rt!==this.type||D.pointStart!==void 0||D.pointInterval!==void 0||D.relativeXValue!==void 0||D.joinBy||D.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(be=>W.hasOptionChanged(be)));Rt=Rt||vt,jt&&(wt.push("data","isDirtyData","isDirtyCanvas","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),D.visible!==!1&&wt.push("area","graph"),W.parallelArrays.forEach(function(be){wt.push(be+"Data")}),D.data&&(D.dataSorting&&l(W.options.dataSorting,D.dataSorting),this.setData(D.data,!1))),D=dt(it,{index:it.index===void 0?W.index:it.index,pointStart:(fe=(Wt=(ne=pt==null?void 0:pt.series)==null?void 0:ne.pointStart)!=null?Wt:it.pointStart)!=null?fe:(le=W.xData)==null?void 0:le[0]},!jt&&{data:W.options.data},D,Ct),jt&&D.data&&(D.data=W.options.data),(wt=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(wt)).forEach(function(be){wt[be]=W[be],delete W[be]});let Zt=!1;if(_[Rt]){if(Zt=Rt!==W.type,W.remove(!1,!1,!1,!0),Zt)if(lt.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(W,_[Rt].prototype);else{let be=Object.hasOwnProperty.call(W,"hcEvents")&&W.hcEvents;for(gt in xt)W[gt]=void 0;l(W,_[Rt].prototype),be?W.hcEvents=be:delete W.hcEvents}}else p(17,!0,lt,{missingModuleFor:Rt});if(wt.forEach(function(be){W[be]=wt[be]}),W.init(lt,D),jt&&this.points)for(let be of((Nt=W.options).visible===!1?(Tt.graphic=1,Tt.dataLabel=1):(this.hasMarkerChanged(Nt,it)&&(Tt.graphic=1),(xe=W.hasDataLabels)!=null&&xe.call(W)||(Tt.dataLabel=1)),this.points))be&&be.series&&(be.resolveColor(),Object.keys(Tt).length&&be.destroyElements(Tt),Nt.showInLegend===!1&&be.legendItem&<.legend.destroyItem(be));W.initialType=vt,lt.linkSeries(),lt.setSortedData(),Zt&&W.linkedSeries.length&&(W.isDirtyData=!0),b(this,"afterUpdate"),Et(P,!0)&<.redraw(!!jt&&void 0)}setName(D){this.name=this.options.name=this.userOptions.name=D,this.chart.isDirtyLegend=!0}hasOptionChanged(D){var pt,xt;let P=this.chart,W=this.options[D],lt=P.options.plotOptions,it=this.userOptions[D],vt=Et((pt=lt==null?void 0:lt[this.type])==null?void 0:pt[D],(xt=lt==null?void 0:lt.series)==null?void 0:xt[D]);return it&&!S(vt)?W!==it:W!==Et(vt,W)}onMouseOver(){let D=this.chart,P=D.hoverSeries,W=D.pointer;W==null||W.setHoverChartIndex(),P&&P!==this&&P.onMouseOut(),this.options.events.mouseOver&&b(this,"mouseOver"),this.setState("hover"),D.hoverSeries=this}onMouseOut(){let D=this.options,P=this.chart,W=P.tooltip,lt=P.hoverPoint;P.hoverSeries=null,lt&<.onMouseOut(),this&&D.events.mouseOut&&b(this,"mouseOut"),W&&!this.stickyTracking&&(!W.shared||this.noSharedTooltip)&&W.hide(),P.series.forEach(function(it){it.setState("",!0)})}setState(D,P){let W=this,lt=W.options,it=W.graph,vt=lt.inactiveOtherPoints,pt=lt.states,xt=Et(pt[D||"normal"]&&pt[D||"normal"].animation,W.chart.options.chart.animation),Ct=lt.lineWidth,Tt=lt.opacity;if(D=D||"",W.state!==D&&([W.group,W.markerGroup,W.dataLabelsGroup].forEach(function(Nt){Nt&&(W.state&&Nt.removeClass("highcharts-series-"+W.state),D&&Nt.addClass("highcharts-series-"+D))}),W.state=D,!W.chart.styledMode)){if(pt[D]&&pt[D].enabled===!1)return;if(D&&(Ct=pt[D].lineWidth||Ct+(pt[D].lineWidthPlus||0),Tt=Et(pt[D].opacity,Tt)),it&&!it.dashstyle&&st(Ct))for(let Nt of[it,...this.zones.map(gt=>gt.graph)])Nt==null||Nt.animate({"stroke-width":Ct},xt);vt||[W.group,W.markerGroup,W.dataLabelsGroup,W.labelBySeries].forEach(function(Nt){Nt&&Nt.animate({opacity:Tt},xt)})}P&&vt&&W.points&&W.setAllPointsToState(D||void 0)}setAllPointsToState(D){this.points.forEach(function(P){P.setState&&P.setState(D)})}setVisible(D,P){var xt;let W=this,lt=W.chart,it=lt.options.chart.ignoreHiddenSeries,vt=W.visible;W.visible=D=W.options.visible=W.userOptions.visible=D===void 0?!vt:D;let pt=D?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(Ct=>{var Tt;(Tt=W[Ct])==null||Tt[pt]()}),(lt.hoverSeries===W||((xt=lt.hoverPoint)==null?void 0:xt.series)===W)&&W.onMouseOut(),W.legendItem&<.legend.colorizeItem(W,D),W.isDirty=!0,W.options.stacking&<.series.forEach(Ct=>{Ct.options.stacking&&Ct.visible&&(Ct.isDirty=!0)}),W.linkedSeries.forEach(Ct=>{Ct.setVisible(D,!1)}),it&&(lt.isDirtyBox=!0),b(W,pt),P!==!1&<.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(D){this.selected=D=this.options.selected=D===void 0?!this.selected:D,this.checkbox&&(this.checkbox.checked=D),b(this,D?"select":"unselect")}shouldShowTooltip(D,P,W={}){return W.series=this,W.visiblePlotOnly=!0,this.chart.isInsidePlot(D,P,W)}drawLegendSymbol(D,P){var W;(W=J[this.options.legendSymbol||"rectangle"])==null||W.call(this,D,P)}}return rt.defaultOptions=Z,rt.types=tt.seriesTypes,rt.registerType=tt.registerSeriesType,l(rt.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:q,requireSorting:!0,sorted:!0}),tt.series=rt,rt}),y(m,"Core/Legend/Legend.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Foundation.js"],m["Core/Globals.js"],m["Core/Series/Series.js"],m["Core/Series/Point.js"],m["Core/Renderer/RendererUtilities.js"],m["Core/Templating.js"],m["Core/Utilities.js"]],function(R,B,et,K,J,q,Z,tt){var H;let{animObject:X,setAnimation:F}=R,{registerEventOptions:U}=B,{composed:d,marginNames:L}=et,{distribute:M}=q,{format:s}=Z,{addEvent:_,createElement:w,css:o,defined:u,discardElement:C,find:E,fireEvent:S,isNumber:v,merge:g,pick:x,pushUnique:p,relativeLength:l,stableSort:f,syncTimeout:b}=tt;class z{constructor(k,Q){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=k,this.setOptions(Q),Q.enabled&&(this.render(),U(this,Q),_(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),_(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(k){let Q=x(k.padding,8);this.options=k,this.chart.styledMode||(this.itemStyle=k.itemStyle,this.itemHiddenStyle=g(this.itemStyle,k.itemHiddenStyle)),this.itemMarginTop=k.itemMarginTop,this.itemMarginBottom=k.itemMarginBottom,this.padding=Q,this.initialItemY=Q-5,this.symbolWidth=x(k.symbolWidth,16),this.pages=[],this.proximate=k.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(k,Q){let st=this.chart;this.setOptions(g(!0,this.options,k)),"events"in this.options&&U(this,this.options),this.destroy(),st.isDirtyLegend=st.isDirtyBox=!0,x(Q,!0)&&st.redraw(),S(this,"afterUpdate",{redraw:Q})}colorizeItem(k,Q){let{area:st,group:nt,label:dt,line:mt,symbol:Et}=k.legendItem||{};if(nt==null||nt[Q?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:Mt={}}=this,I=Mt.color,{fillColor:Y,fillOpacity:rt,lineColor:ot,marker:D}=k.options,P=W=>(!Q&&(W.fill&&(W.fill=I),W.stroke&&(W.stroke=I)),W);dt==null||dt.css(g(Q?this.itemStyle:Mt)),mt==null||mt.attr(P({stroke:ot||k.color})),Et&&Et.attr(P(D&&Et.isMarker?k.pointAttribs():{fill:k.color})),st==null||st.attr(P({fill:Y||k.color,"fill-opacity":Y?1:rt!=null?rt:.75}))}S(this,"afterColorizeItem",{item:k,visible:Q})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(k){let{group:Q,x:st=0,y:nt=0}=k.legendItem||{},dt=this.options,mt=dt.symbolPadding,Et=!dt.rtl,Mt=k.checkbox;if(Q&&Q.element){let I={translateX:Et?st:this.legendWidth-st-2*mt-4,translateY:nt};Q[u(Q.translateY)?"animate":"attr"](I,void 0,()=>{S(this,"afterPositionItem",{item:k})})}Mt&&(Mt.x=st,Mt.y=nt)}destroyItem(k){let Q=k.checkbox,st=k.legendItem||{};for(let nt of["group","label","line","symbol"])st[nt]&&(st[nt]=st[nt].destroy());Q&&C(Q),k.legendItem=void 0}destroy(){for(let k of this.getAllItems())this.destroyItem(k);for(let k of["clipRect","up","down","pager","nav","box","title","group"])this[k]&&(this[k]=this[k].destroy());this.display=null}positionCheckboxes(){let k,Q=this.group&&this.group.alignAttr,st=this.clipHeight||this.legendHeight,nt=this.titleHeight;Q&&(k=Q.translateY,this.allItems.forEach(function(dt){let mt,Et=dt.checkbox;Et&&(mt=k+nt+Et.y+(this.scrollOffset||0)+3,o(Et,{left:Q.translateX+dt.checkboxOffset+Et.x-20+"px",top:mt+"px",display:this.proximate||mt>k-6&&mt1.5*Tt?Ct.height:Tt))}layoutItem(k){let Q=this.options,st=this.padding,nt=Q.layout==="horizontal",dt=k.itemHeight,mt=this.itemMarginBottom,Et=this.itemMarginTop,Mt=nt?x(Q.itemDistance,20):0,I=this.maxLegendWidth,Y=Q.alignColumns&&this.totalItemWidth>I?this.maxItemWidth:k.itemWidth,rt=k.legendItem||{};nt&&this.itemX-st+Y>I&&(this.itemX=st,this.lastLineHeight&&(this.itemY+=Et+this.lastLineHeight+mt),this.lastLineHeight=0),this.lastItemY=Et+this.itemY+mt,this.lastLineHeight=Math.max(dt,this.lastLineHeight),rt.x=this.itemX,rt.y=this.itemY,nt?this.itemX+=Y:(this.itemY+=Et+dt+mt,this.lastLineHeight=dt),this.offsetWidth=this.widthOption||Math.max((nt?this.itemX-st-(k.checkbox?0:Mt):Y)+st,this.offsetWidth)}getAllItems(){let k=[];return this.chart.series.forEach(function(Q){let st=Q&&Q.options;Q&&x(st.showInLegend,!u(st.linkedTo)&&void 0,!0)&&(k=k.concat((Q.legendItem||{}).labels||(st.legendType==="point"?Q.data:Q)))}),S(this,"afterGetAllItems",{allItems:k}),k}getAlignment(){let k=this.options;return this.proximate?k.align.charAt(0)+"tv":k.floating?"":k.align.charAt(0)+k.verticalAlign.charAt(0)+k.layout.charAt(0)}adjustMargins(k,Q){let st=this.chart,nt=this.options,dt=this.getAlignment();dt&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(mt,Et){mt.test(dt)&&!u(k[Et])&&(st[L[Et]]=Math.max(st[L[Et]],st.legend[(Et+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][Et]*nt[Et%2?"x":"y"]+x(nt.margin,12)+Q[Et]+(st.titleOffset[Et]||0)))})}proximatePositions(){let k,Q=this.chart,st=[],nt=this.options.align==="left";for(let dt of(this.allItems.forEach(function(mt){let Et,Mt,I=nt,Y,rt;mt.yAxis&&(mt.xAxis.options.reversed&&(I=!I),mt.points&&(Et=E(I?mt.points:mt.points.slice(0).reverse(),function(ot){return v(ot.plotY)})),Mt=this.itemMarginTop+mt.legendItem.label.getBBox().height+this.itemMarginBottom,rt=mt.yAxis.top-Q.plotTop,Y=mt.visible?(Et?Et.plotY:mt.yAxis.height)+(rt-.3*Mt):rt+mt.yAxis.height,st.push({target:Y,size:Mt,item:mt}))},this),M(st,Q.plotHeight)))k=dt.item.legendItem||{},v(dt.pos)&&(k.y=Q.plotTop-Q.spacing[0]+dt.pos)}render(){let k=this.chart,Q=k.renderer,st=this.options,nt=this.padding,dt=this.getAllItems(),mt,Et,Mt,I=this.group,Y,rt=this.box;this.itemX=nt,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=l(st.width,k.spacingBox.width-nt),Y=k.spacingBox.width-2*nt-st.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(Y/=2),this.maxLegendWidth=this.widthOption||Y,I||(this.group=I=Q.g("legend").addClass(st.className||"").attr({zIndex:7}).add(),this.contentGroup=Q.g().attr({zIndex:1}).add(I),this.scrollGroup=Q.g().add(this.contentGroup)),this.renderTitle(),f(dt,(ot,D)=>(ot.options&&ot.options.legendIndex||0)-(D.options&&D.options.legendIndex||0)),st.reversed&&dt.reverse(),this.allItems=dt,this.display=mt=!!dt.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,dt.forEach(this.renderItem,this),dt.forEach(this.layoutItem,this),Et=(this.widthOption||this.offsetWidth)+nt,Mt=this.lastItemY+this.lastLineHeight+this.titleHeight,Mt=this.handleOverflow(Mt)+nt,rt||(this.box=rt=Q.rect().addClass("highcharts-legend-box").attr({r:st.borderRadius}).add(I)),k.styledMode||rt.attr({stroke:st.borderColor,"stroke-width":st.borderWidth||0,fill:st.backgroundColor||"none"}).shadow(st.shadow),Et>0&&Mt>0&&rt[rt.placed?"animate":"attr"](rt.crisp.call({},{x:0,y:0,width:Et,height:Mt},rt.strokeWidth())),I[mt?"show":"hide"](),k.styledMode&&I.getStyle("display")==="none"&&(Et=Mt=0),this.legendWidth=Et,this.legendHeight=Mt,mt&&this.align(),this.proximate||this.positionItems(),S(this,"afterRender")}align(k=this.chart.spacingBox){let Q=this.chart,st=this.options,nt=k.y;/(lth|ct|rth)/.test(this.getAlignment())&&Q.titleOffset[0]>0?nt+=Q.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&Q.titleOffset[2]>0&&(nt-=Q.titleOffset[2]),nt!==k.y&&(k=g(k,{y:nt})),Q.hasRendered||(this.group.placed=!1),this.group.align(g(st,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":st.verticalAlign}),!0,k)}handleOverflow(k){let Q=this,st=this.chart,nt=st.renderer,dt=this.options,mt=dt.y,Et=dt.verticalAlign==="top",Mt=this.padding,I=dt.maxHeight,Y=dt.navigation,rt=x(Y.animation,!0),ot=Y.arrowSize||12,D=this.pages,P=this.allItems,W=function(Nt){typeof Nt=="number"?Tt.attr({height:Nt}):Tt&&(Q.clipRect=Tt.destroy(),Q.contentGroup.clip()),Q.contentGroup.div&&(Q.contentGroup.div.style.clip=Nt?"rect("+Mt+"px,9999px,"+(Mt+Nt)+"px,0)":"auto")},lt=function(Nt){return Q[Nt]=nt.circle(0,0,1.3*ot).translate(ot/2,ot/2).add(Ct),st.styledMode||Q[Nt].attr("fill","rgba(0,0,0,0.0001)"),Q[Nt]},it,vt,pt,xt=st.spacingBox.height+(Et?-mt:mt)-Mt,Ct=this.nav,Tt=this.clipRect;return dt.layout!=="horizontal"||dt.verticalAlign==="middle"||dt.floating||(xt/=2),I&&(xt=Math.min(xt,I)),D.length=0,k&&xt>0&&k>xt&&Y.enabled!==!1?(this.clipHeight=it=Math.max(xt-20-this.titleHeight-Mt,0),this.currentPage=x(this.currentPage,1),this.fullHeight=k,P.forEach((Nt,gt)=>{let wt=(pt=Nt.legendItem||{}).y||0,Rt=Math.round(pt.label.getBBox().height),jt=D.length;(!jt||wt-D[jt-1]>it&&(vt||wt)!==D[jt-1])&&(D.push(vt||wt),jt++),pt.pageIx=jt-1,vt&&((P[gt-1].legendItem||{}).pageIx=jt-1),gt===P.length-1&&wt+Rt-D[jt-1]>it&&wt>D[jt-1]&&(D.push(wt),pt.pageIx=jt),wt!==vt&&(vt=wt)}),Tt||(Tt=Q.clipRect=nt.clipRect(0,Mt-2,9999,0),Q.contentGroup.clip(Tt)),W(it),Ct||(this.nav=Ct=nt.g().attr({zIndex:1}).add(this.group),this.up=nt.symbol("triangle",0,0,ot,ot).add(Ct),lt("upTracker").on("click",function(){Q.scroll(-1,rt)}),this.pager=nt.text("",15,10).addClass("highcharts-legend-navigation"),!st.styledMode&&Y.style&&this.pager.css(Y.style),this.pager.add(Ct),this.down=nt.symbol("triangle-down",0,0,ot,ot).add(Ct),lt("downTracker").on("click",function(){Q.scroll(1,rt)})),Q.scroll(0),k=xt):Ct&&(W(),this.nav=Ct.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),k}scroll(k,Q){let st=this.chart,nt=this.pages,dt=nt.length,mt=this.clipHeight,Et=this.options.navigation,Mt=this.pager,I=this.padding,Y=this.currentPage+k;Y>dt&&(Y=dt),Y>0&&(Q!==void 0&&F(Q,st),this.nav.attr({translateX:I,translateY:mt+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(rt){rt.attr({class:Y===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),Mt.attr({text:Y+"/"+dt}),[this.down,this.downTracker].forEach(function(rt){rt.attr({x:18+this.pager.getBBox().width,class:Y===dt?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),st.styledMode||(this.up.attr({fill:Y===1?Et.inactiveColor:Et.activeColor}),this.upTracker.css({cursor:Y===1?"default":"pointer"}),this.down.attr({fill:Y===dt?Et.inactiveColor:Et.activeColor}),this.downTracker.css({cursor:Y===dt?"default":"pointer"})),this.scrollOffset=-nt[Y-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=Y,this.positionCheckboxes(),b(()=>{S(this,"afterScroll",{currentPage:Y})},X(x(Q,st.renderer.globalAnimation,!0)).duration))}setItemEvents(k,Q,st){let nt=this,dt=k.legendItem||{},mt=nt.chart.renderer.boxWrapper,Et=k instanceof J,Mt=k instanceof K,I="highcharts-legend-"+(Et?"point":"series")+"-active",Y=nt.chart.styledMode,rt=st?[Q,dt.symbol]:[dt.group],ot=D=>{nt.allItems.forEach(P=>{k!==P&&[P].concat(P.linkedSeries||[]).forEach(W=>{W.setState(D,!Et)})})};for(let D of rt)D&&D.on("mouseover",function(){k.visible&&ot("inactive"),k.setState("hover"),k.visible&&mt.addClass(I),Y||Q.css(nt.options.itemHoverStyle)}).on("mouseout",function(){nt.chart.styledMode||Q.css(g(k.visible?nt.itemStyle:nt.itemHiddenStyle)),ot(""),mt.removeClass(I),k.setState()}).on("click",function(P){let W=function(){k.setVisible&&k.setVisible(),ot(k.visible?"inactive":"")};mt.removeClass(I),S(nt,"itemClick",{browserEvent:P,legendItem:k},W),Et?k.firePointEvent("legendItemClick",{browserEvent:P}):Mt&&S(k,"legendItemClick",{browserEvent:P})})}createCheckboxForItem(k){k.checkbox=w("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:k.selected,defaultChecked:k.selected},this.options.itemCheckboxStyle,this.chart.container),_(k.checkbox,"click",function(Q){let st=Q.target;S(k.series||k,"checkboxClick",{checked:st.checked,item:k},function(){k.select()})})}}return(H=z||(z={})).compose=function(T){p(d,"Core.Legend")&&_(T,"beforeMargins",function(){this.legend=new H(this,this.options.legend)})},z}),y(m,"Core/Chart/Chart.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Axis/Axis.js"],m["Core/Defaults.js"],m["Core/Templating.js"],m["Core/Foundation.js"],m["Core/Globals.js"],m["Core/Renderer/RendererRegistry.js"],m["Core/Series/Series.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Renderer/SVG/SVGRenderer.js"],m["Core/Time.js"],m["Core/Utilities.js"],m["Core/Renderer/HTML/AST.js"],m["Core/Axis/Tick.js"]],function(R,B,et,K,J,q,Z,tt,H,X,F,U,d,L){let{animate:M,animObject:s,setAnimation:_}=R,{defaultOptions:w,defaultTime:o}=et,{numberFormat:u}=K,{registerEventOptions:C}=J,{charts:E,doc:S,marginNames:v,svg:g,win:x}=q,{seriesTypes:p}=H,{addEvent:l,attr:f,createElement:b,css:z,defined:T,diffObjects:k,discardElement:Q,erase:st,error:nt,extend:dt,find:mt,fireEvent:Et,getStyle:Mt,isArray:I,isNumber:Y,isObject:rt,isString:ot,merge:D,objectEach:P,pick:W,pInt:lt,relativeLength:it,removeEvent:vt,splat:pt,syncTimeout:xt,uniqueKey:Ct}=U;class Tt{static chart(gt,wt,Rt){return new Tt(gt,wt,Rt)}constructor(gt,wt,Rt){this.sharedClips={};let jt=[...arguments];(ot(gt)||gt.nodeName)&&(this.renderTo=jt.shift()),this.init(jt[0],jt[1])}setZoomOptions(){let gt=this.options.chart,wt=gt.zooming;this.zooming=co(Fr({},wt),{type:W(gt.zoomType,wt.type),key:W(gt.zoomKey,wt.key),pinchType:W(gt.pinchType,wt.pinchType),singleTouch:W(gt.zoomBySingleTouch,wt.singleTouch,!1),resetButton:D(wt.resetButton,gt.resetZoomButton)})}init(gt,wt){Et(this,"init",{args:arguments},function(){let Rt=D(w,gt),jt=Rt.chart;this.userOptions=dt({},gt),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=wt,this.isResizing=0,this.options=Rt,this.axes=[],this.series=[],this.time=gt.time&&Object.keys(gt.time).length?new F(gt.time):q.time,this.numberFormatter=jt.numberFormatter||u,this.styledMode=jt.styledMode,this.hasCartesianSeries=jt.showAxes,this.index=E.length,E.push(this),q.chartCount++,C(this,jt),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),Et(this,"afterInit"),this.firstRender()})}initSeries(gt){let wt=this.options.chart,Rt=gt.type||wt.type,jt=p[Rt];jt||nt(17,!0,this,{missingModuleFor:Rt});let Zt=new jt;return typeof Zt.init=="function"&&Zt.init(this,gt),Zt}setSortedData(){this.getSeriesOrderByLinks().forEach(function(gt){gt.points||gt.data||!gt.enabledDataSorting||gt.setData(gt.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(gt,wt){return gt.linkedSeries.length||wt.linkedSeries.length?wt.linkedSeries.length-gt.linkedSeries.length:0})}orderItems(gt,wt=0){let Rt=this[gt],jt=this.options[gt]=pt(this.options[gt]).slice(),Zt=this.userOptions[gt]=this.userOptions[gt]?pt(this.userOptions[gt]).slice():[];if(this.hasRendered&&(jt.splice(wt),Zt.splice(wt)),Rt)for(let ne=wt,Wt=Rt.length;ne=Math.max(fe+ne,te.pos)&&Ot<=Math.min(fe+ne+Ye.width,te.pos+te.len)||(Jt.isInsidePlot=!1)}if(!Rt.ignoreY&&Jt.isInsidePlot){let te=!jt&&Rt.axis&&!Rt.axis.isXAxis&&Rt.axis||be&&(jt?be.xAxis:be.yAxis)||{pos:Wt,len:1/0},Ot=Rt.paneCoordinates?te.pos+on:Wt+on;Ot>=Math.max(xe+Wt,te.pos)&&Ot<=Math.min(xe+Wt+Ye.height,te.pos+te.len)||(Jt.isInsidePlot=!1)}return Et(this,"afterIsInsidePlot",Jt),Jt.isInsidePlot}redraw(gt){Et(this,"beforeRedraw");let wt=this.hasCartesianSeries?this.axes:this.colorAxis||[],Rt=this.series,jt=this.pointer,Zt=this.legend,ne=this.userOptions.legend,Wt=this.renderer,le=Wt.isHidden(),fe=[],xe,be,Ye,tn=this.isDirtyBox,on=this.isDirtyLegend,Jt;for(Wt.rootFontSize=Wt.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),_(!!this.hasRendered&>,this),le&&this.temporaryDisplay(),this.layOutTitles(!1),Ye=Rt.length;Ye--;)if(((Jt=Rt[Ye]).options.stacking||Jt.options.centerInCategory)&&(be=!0,Jt.isDirty)){xe=!0;break}if(xe)for(Ye=Rt.length;Ye--;)(Jt=Rt[Ye]).options.stacking&&(Jt.isDirty=!0);Rt.forEach(function(Kt){Kt.isDirty&&(Kt.options.legendType==="point"?(typeof Kt.updateTotals=="function"&&Kt.updateTotals(),on=!0):ne&&(ne.labelFormatter||ne.labelFormat)&&(on=!0)),Kt.isDirtyData&&Et(Kt,"updatedData")}),on&&Zt&&Zt.options.enabled&&(Zt.render(),this.isDirtyLegend=!1),be&&this.getStacks(),wt.forEach(function(Kt){Kt.updateNames(),Kt.setScale()}),this.getMargins(),wt.forEach(function(Kt){Kt.isDirty&&(tn=!0)}),wt.forEach(function(Kt){let te=Kt.min+","+Kt.max;Kt.extKey!==te&&(Kt.extKey=te,fe.push(function(){Et(Kt,"afterSetExtremes",dt(Kt.eventArgs,Kt.getExtremes())),delete Kt.eventArgs})),(tn||be)&&Kt.redraw()}),tn&&this.drawChartBox(),Et(this,"predraw"),Rt.forEach(function(Kt){(tn||Kt.isDirty)&&Kt.visible&&Kt.redraw(),Kt.isDirtyData=!1}),jt&&jt.reset(!0),Wt.draw(),Et(this,"redraw"),Et(this,"render"),le&&this.temporaryDisplay(!0),fe.forEach(function(Kt){Kt.call()})}get(gt){let wt=this.series;function Rt(Zt){return Zt.id===gt||Zt.options&&Zt.options.id===gt}let jt=mt(this.axes,Rt)||mt(this.series,Rt);for(let Zt=0;!jt&&Zt(wt.getPointsCollection().forEach(Rt=>{W(Rt.selectedStaging,Rt.selected)&>.push(Rt)}),gt),[])}getSelectedSeries(){return this.series.filter(function(gt){return gt.selected})}setTitle(gt,wt,Rt){this.applyDescription("title",gt),this.applyDescription("subtitle",wt),this.applyDescription("caption",void 0),this.layOutTitles(Rt)}applyDescription(gt,wt){let Rt=this,jt=this.options[gt]=D(this.options[gt],wt),Zt=this[gt];Zt&&wt&&(this[gt]=Zt=Zt.destroy()),jt&&!Zt&&((Zt=this.renderer.text(jt.text,0,0,jt.useHTML).attr({align:jt.align,class:"highcharts-"+gt,zIndex:jt.zIndex||4}).add()).update=function(ne,Wt){Rt.applyDescription(gt,ne),Rt.layOutTitles(Wt)},this.styledMode||Zt.css(dt(gt==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},jt.style)),this[gt]=Zt)}layOutTitles(gt=!0){let wt=[0,0,0],Rt=this.renderer,jt=this.spacingBox;["title","subtitle","caption"].forEach(function(ne){let Wt=this[ne],le=this.options[ne],fe=le.verticalAlign||"top",xe=ne==="title"?fe==="top"?-3:0:fe==="top"?wt[0]+2:0;if(Wt){Wt.css({width:(le.width||jt.width+(le.widthAdjust||0))+"px"});let be=Rt.fontMetrics(Wt).b,Ye=Math.round(Wt.getBBox(le.useHTML).height);Wt.align(dt({y:fe==="bottom"?be:xe+be,height:Ye},le),!1,"spacingBox"),le.floating||(fe==="top"?wt[0]=Math.ceil(wt[0]+Ye):fe==="bottom"&&(wt[2]=Math.ceil(wt[2]+Ye)))}},this),wt[0]&&(this.options.title.verticalAlign||"top")==="top"&&(wt[0]+=this.options.title.margin),wt[2]&&this.options.caption.verticalAlign==="bottom"&&(wt[2]+=this.options.caption.margin);let Zt=!this.titleOffset||this.titleOffset.join(",")!==wt.join(",");this.titleOffset=wt,Et(this,"afterLayOutTitles"),!this.isDirtyBox&&Zt&&(this.isDirtyBox=this.isDirtyLegend=Zt,this.hasRendered&>&&this.isDirtyBox&&this.redraw())}getContainerBox(){let gt=[].map.call(this.renderTo.children,Rt=>{if(Rt!==this.container){let jt=Rt.style.display;return Rt.style.display="none",[Rt,jt]}}),wt={width:Mt(this.renderTo,"width",!0)||0,height:Mt(this.renderTo,"height",!0)||0};return gt.filter(Boolean).forEach(([Rt,jt])=>{Rt.style.display=jt}),wt}getChartSize(){var ne;let gt=this.options.chart,wt=gt.width,Rt=gt.height,jt=this.getContainerBox(),Zt=jt.height>1&&!(!((ne=this.renderTo.parentElement)!=null&&ne.style.height)&&this.renderTo.style.height==="100%");this.chartWidth=Math.max(0,wt||jt.width||600),this.chartHeight=Math.max(0,it(Rt,this.chartWidth)||(Zt?jt.height:400)),this.containerBox=jt}temporaryDisplay(gt){let wt=this.renderTo,Rt;if(gt)for(;wt&&wt.style;)wt.hcOrigStyle&&(z(wt,wt.hcOrigStyle),delete wt.hcOrigStyle),wt.hcOrigDetached&&(S.body.removeChild(wt),wt.hcOrigDetached=!1),wt=wt.parentNode;else for(;wt&&wt.style&&(S.body.contains(wt)||wt.parentNode||(wt.hcOrigDetached=!0,S.body.appendChild(wt)),(Mt(wt,"display",!1)==="none"||wt.hcOricDetached)&&(wt.hcOrigStyle={display:wt.style.display,height:wt.style.height,overflow:wt.style.overflow},Rt={display:"block",overflow:"hidden"},wt!==this.renderTo&&(Rt.height=0),z(wt,Rt),wt.offsetWidth||wt.style.setProperty("display","block","important")),(wt=wt.parentNode)!==S.body););}setClassName(gt){this.container.className="highcharts-container "+(gt||"")}getContainer(){var Ye;let gt=this.options,wt=gt.chart,Rt="data-highcharts-chart",jt=Ct(),Zt,ne=this.renderTo;ne||(this.renderTo=ne=wt.renderTo),ot(ne)&&(this.renderTo=ne=S.getElementById(ne)),ne||nt(13,!0,this);let Wt=lt(f(ne,Rt));Y(Wt)&&E[Wt]&&E[Wt].hasRendered&&E[Wt].destroy(),f(ne,Rt,this.index),ne.innerHTML=d.emptyHTML,wt.skipClone||ne.offsetWidth||this.temporaryDisplay(),this.getChartSize();let le=this.chartHeight,fe=this.chartWidth;z(ne,{overflow:"hidden"}),this.styledMode||(Zt=dt({position:"relative",overflow:"hidden",width:fe+"px",height:le+"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"},wt.style||{}));let xe=b("div",{id:jt},Zt,ne);this.container=xe,this.getChartSize(),fe===this.chartWidth||(fe=this.chartWidth,this.styledMode||z(xe,{width:W((Ye=wt.style)==null?void 0:Ye.width,fe+"px")})),this.containerBox=this.getContainerBox(),this._cursor=xe.style.cursor;let be=wt.renderer||!g?Z.getRendererType(wt.renderer):X;if(this.renderer=new be(xe,fe,le,void 0,wt.forExport,gt.exporting&>.exporting.allowHTML,this.styledMode),_(void 0,this),this.setClassName(wt.className),this.styledMode)for(let tn in gt.defs)this.renderer.definition(gt.defs[tn]);else this.renderer.setStyle(wt.style);this.renderer.chartIndex=this.index,Et(this,"afterGetContainer")}getMargins(gt){let{spacing:wt,margin:Rt,titleOffset:jt}=this;this.resetMargins(),jt[0]&&!T(Rt[0])&&(this.plotTop=Math.max(this.plotTop,jt[0]+wt[0])),jt[2]&&!T(Rt[2])&&(this.marginBottom=Math.max(this.marginBottom,jt[2]+wt[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(Rt,wt),Et(this,"getMargins"),gt||this.getAxisMargins()}getAxisMargins(){let gt=this,wt=gt.axisOffset=[0,0,0,0],Rt=gt.colorAxis,jt=gt.margin,Zt=function(ne){ne.forEach(function(Wt){Wt.visible&&Wt.getOffset()})};gt.hasCartesianSeries?Zt(gt.axes):Rt&&Rt.length&&Zt(Rt),v.forEach(function(ne,Wt){T(jt[Wt])||(gt[ne]+=wt[Wt])}),gt.setChartSize()}getOptions(){return k(this.userOptions,w)}reflow(gt){var Zt;let wt=this,Rt=wt.containerBox,jt=wt.getContainerBox();(Zt=wt.pointer)==null||delete Zt.chartPosition,!wt.isPrinting&&!wt.isResizing&&Rt&&jt.width&&((jt.width!==Rt.width||jt.height!==Rt.height)&&(U.clearTimeout(wt.reflowTimeout),wt.reflowTimeout=xt(function(){wt.container&&wt.setSize(void 0,void 0,!1)},gt?100:0)),wt.containerBox=jt)}setReflow(){let gt=this,wt=Rt=>{var jt;(jt=gt.options)!=null&&jt.chart.reflow&>.hasLoaded&>.reflow(Rt)};if(typeof ResizeObserver=="function")new ResizeObserver(wt).observe(gt.renderTo);else{let Rt=l(x,"resize",wt);l(this,"destroy",Rt)}}setSize(gt,wt,Rt){let jt=this,Zt=jt.renderer;jt.isResizing+=1,_(Rt,jt);let ne=Zt.globalAnimation;jt.oldChartHeight=jt.chartHeight,jt.oldChartWidth=jt.chartWidth,gt!==void 0&&(jt.options.chart.width=gt),wt!==void 0&&(jt.options.chart.height=wt),jt.getChartSize();let{chartWidth:Wt,chartHeight:le,scrollablePixelsX:fe=0,scrollablePixelsY:xe=0}=jt;(jt.isDirtyBox||Wt!==jt.oldChartWidth||le!==jt.oldChartHeight)&&(jt.styledMode||(ne?M:z)(jt.container,{width:`${Wt+fe}px`,height:`${le+xe}px`},ne),jt.setChartSize(!0),Zt.setSize(Wt,le,ne),jt.axes.forEach(function(be){be.isDirty=!0,be.setScale()}),jt.isDirtyLegend=!0,jt.isDirtyBox=!0,jt.layOutTitles(),jt.getMargins(),jt.redraw(ne),jt.oldChartHeight=void 0,Et(jt,"resize"),setTimeout(()=>{jt&&Et(jt,"endResize")},s(ne).duration)),jt.isResizing-=1}setChartSize(gt){let wt,Rt,jt,Zt,{chartHeight:ne,chartWidth:Wt,inverted:le,spacing:fe,renderer:xe}=this,be=this.clipOffset,Ye=Math[le?"floor":"round"];this.plotLeft=wt=Math.round(this.plotLeft),this.plotTop=Rt=Math.round(this.plotTop),this.plotWidth=jt=Math.max(0,Math.round(Wt-wt-this.marginRight)),this.plotHeight=Zt=Math.max(0,Math.round(ne-Rt-this.marginBottom)),this.plotSizeX=le?Zt:jt,this.plotSizeY=le?jt:Zt,this.spacingBox=xe.spacingBox={x:fe[3],y:fe[0],width:Wt-fe[3]-fe[1],height:ne-fe[0]-fe[2]},this.plotBox=xe.plotBox={x:wt,y:Rt,width:jt,height:Zt},be&&(this.clipBox={x:Ye(be[3]),y:Ye(be[0]),width:Ye(this.plotSizeX-be[1]-be[3]),height:Ye(this.plotSizeY-be[0]-be[2])}),gt||(this.axes.forEach(function(tn){tn.setAxisSize(),tn.setAxisTranslation()}),xe.alignElements()),Et(this,"afterSetChartSize",{skipAxes:gt})}resetMargins(){Et(this,"resetMargins");let gt=this,wt=gt.options.chart,Rt=wt.plotBorderWidth||0,jt=Rt/2;["margin","spacing"].forEach(function(Zt){let ne=wt[Zt],Wt=rt(ne)?ne:[ne,ne,ne,ne];["Top","Right","Bottom","Left"].forEach(function(le,fe){gt[Zt][fe]=W(wt[Zt+le],Wt[fe])})}),v.forEach(function(Zt,ne){gt[Zt]=W(gt.margin[ne],gt.spacing[ne])}),gt.axisOffset=[0,0,0,0],gt.clipOffset=[jt,jt,jt,jt],gt.plotBorderWidth=Rt}drawChartBox(){let gt=this.options.chart,wt=this.renderer,Rt=this.chartWidth,jt=this.chartHeight,Zt=this.styledMode,ne=this.plotBGImage,Wt=gt.backgroundColor,le=gt.plotBackgroundColor,fe=gt.plotBackgroundImage,xe=this.plotLeft,be=this.plotTop,Ye=this.plotWidth,tn=this.plotHeight,on=this.plotBox,Jt=this.clipRect,Kt=this.clipBox,te=this.chartBackground,Ot=this.plotBackground,Bt=this.plotBorder,Ut,zt,ce,we="animate";te||(this.chartBackground=te=wt.rect().addClass("highcharts-background").add(),we="attr"),Zt?Ut=zt=te.strokeWidth():(zt=(Ut=gt.borderWidth||0)+(gt.shadow?8:0),ce={fill:Wt||"none"},(Ut||te["stroke-width"])&&(ce.stroke=gt.borderColor,ce["stroke-width"]=Ut),te.attr(ce).shadow(gt.shadow)),te[we]({x:zt/2,y:zt/2,width:Rt-zt-Ut%2,height:jt-zt-Ut%2,r:gt.borderRadius}),we="animate",Ot||(we="attr",this.plotBackground=Ot=wt.rect().addClass("highcharts-plot-background").add()),Ot[we](on),!Zt&&(Ot.attr({fill:le||"none"}).shadow(gt.plotShadow),fe&&(ne?(fe!==ne.attr("href")&&ne.attr("href",fe),ne.animate(on)):this.plotBGImage=wt.image(fe,xe,be,Ye,tn).add())),Jt?Jt.animate({width:Kt.width,height:Kt.height}):this.clipRect=wt.clipRect(Kt),we="animate",Bt||(we="attr",this.plotBorder=Bt=wt.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),Zt||Bt.attr({stroke:gt.plotBorderColor,"stroke-width":gt.plotBorderWidth||0,fill:"none"}),Bt[we](Bt.crisp({x:xe,y:be,width:Ye,height:tn},-Bt.strokeWidth())),this.isDirtyBox=!1,Et(this,"afterDrawChartBox")}propFromSeries(){let gt,wt,Rt,jt=this,Zt=jt.options.chart,ne=jt.options.series;["inverted","angular","polar"].forEach(function(Wt){for(wt=p[Zt.type],Rt=Zt[Wt]||wt&&wt.prototype[Wt],gt=ne&&ne.length;!Rt&>--;)(wt=p[ne[gt].type])&&wt.prototype[Wt]&&(Rt=!0);jt[Wt]=Rt})}linkSeries(gt){let wt=this,Rt=wt.series;Rt.forEach(function(jt){jt.linkedSeries.length=0}),Rt.forEach(function(jt){let{linkedTo:Zt}=jt.options;if(ot(Zt)){let ne;(ne=Zt===":previous"?wt.series[jt.index-1]:wt.get(Zt))&&ne.linkedParent!==jt&&(ne.linkedSeries.push(jt),jt.linkedParent=ne,ne.enabledDataSorting&&jt.setDataSortingOptions(),jt.visible=W(jt.options.visible,ne.options.visible,jt.visible))}}),Et(this,"afterLinkSeries",{isUpdating:gt})}renderSeries(){this.series.forEach(function(gt){gt.translate(),gt.render()})}render(){var xe;let gt=this.axes,wt=this.colorAxis,Rt=this.renderer,jt=this.options.chart.axisLayoutRuns||2,Zt=be=>{be.forEach(Ye=>{Ye.visible&&Ye.render()})},ne=0,Wt=!0,le,fe=0;for(let be of(this.setTitle(),Et(this,"beforeMargins"),(xe=this.getStacks)==null||xe.call(this),this.getMargins(!0),this.setChartSize(),gt)){let{options:Ye}=be,{labels:tn}=Ye;if(this.hasCartesianSeries&&be.horiz&&be.visible&&tn.enabled&&be.series.length&&be.coll!=="colorAxis"&&!this.polar){ne=Ye.tickLength,be.createGroups();let on=new L(be,0,"",!0),Jt=on.createLabel("x",tn);if(on.destroy(),Jt&&W(tn.reserveSpace,!Y(Ye.crossing))&&(ne=Jt.getBBox().height+tn.distance+Math.max(Ye.offset||0,0)),ne){Jt==null||Jt.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-ne,0);(Wt||le||jt>1)&&fe(fe?1:1.1),le=Ye/this.plotHeight>(fe?1:1.05),fe++}this.drawChartBox(),this.hasCartesianSeries?Zt(gt):wt&&wt.length&&Zt(wt),this.seriesGroup||(this.seriesGroup=Rt.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(gt){let wt=this,Rt=D(!0,this.options.credits,gt);Rt.enabled&&!this.credits&&(this.credits=this.renderer.text(Rt.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){Rt.href&&(x.location.href=Rt.href)}).attr({align:Rt.position.align,zIndex:8}),wt.styledMode||this.credits.css(Rt.style),this.credits.add().align(Rt.position),this.credits.update=function(jt){wt.credits=wt.credits.destroy(),wt.addCredits(jt)})}destroy(){let gt,wt=this,Rt=wt.axes,jt=wt.series,Zt=wt.container,ne=Zt&&Zt.parentNode;for(Et(wt,"destroy"),wt.renderer.forExport?st(E,wt):E[wt.index]=void 0,q.chartCount--,wt.renderTo.removeAttribute("data-highcharts-chart"),vt(wt),gt=Rt.length;gt--;)Rt[gt]=Rt[gt].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),gt=jt.length;gt--;)jt[gt]=jt[gt].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(Wt){let le=wt[Wt];le&&le.destroy&&(wt[Wt]=le.destroy())}),Zt&&(Zt.innerHTML=d.emptyHTML,vt(Zt),ne&&Q(Zt)),P(wt,function(Wt,le){delete wt[le]})}firstRender(){var jt;let gt=this,wt=gt.options;gt.getContainer(),gt.resetMargins(),gt.setChartSize(),gt.propFromSeries(),gt.getAxes();let Rt=I(wt.series)?wt.series:[];wt.series=[],Rt.forEach(function(Zt){gt.initSeries(Zt)}),gt.linkSeries(),gt.setSortedData(),Et(gt,"beforeRender"),gt.render(),(jt=gt.pointer)==null||jt.getChartPosition(),gt.renderer.imgCount||gt.hasLoaded||gt.onload(),gt.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(gt){gt&&this.index!==void 0&>.apply(this,[this])},this),Et(this,"load"),Et(this,"render"),T(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:gt,title:wt}=this;!gt||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(wt&&wt.element.textContent||"").replace(/this.transform({reset:!0,trigger:"zoom"}))}pan(gt,wt){let Rt=this,jt=typeof wt=="object"?wt:{enabled:wt,type:"x"},Zt=jt.type,ne=Zt&&Rt[{x:"xAxis",xy:"axes",y:"yAxis"}[Zt]].filter(le=>le.options.panningEnabled&&!le.options.isInternal),Wt=Rt.options.chart;Wt!=null&&Wt.panning&&(Wt.panning=jt),Et(this,"pan",{originalEvent:gt},()=>{Rt.transform({axes:ne,event:gt,to:{x:gt.chartX-(Rt.mouseDownX||0),y:gt.chartY-(Rt.mouseDownY||0)},trigger:"pan"}),z(Rt.container,{cursor:"move"})})}transform(gt){var tn,on,Jt,Kt,te;let{axes:wt=this.axes,event:Rt,from:jt={},reset:Zt,selection:ne,to:Wt={},trigger:le}=gt,{inverted:fe}=this,xe=!1,be,Ye;for(let Ot of((tn=this.hoverPoints)==null||tn.forEach(Bt=>Bt.setState()),wt)){let{horiz:Bt,len:Ut,minPointOffset:zt=0,options:ce,reversed:we}=Ot,ye=Bt?"width":"height",qe=Bt?"x":"y",hn=W(Wt[ye],Ot.len),yn=W(jt[ye],Ot.len),Nn=10>Math.abs(hn)?1:hn/yn,mn=(jt[qe]||0)+yn/2-Ot.pos,Mn=mn-(((on=Wt[qe])!=null?on:Ot.pos)+hn/2-Ot.pos)/Nn,Kn=we&&!fe||!we&&fe?-1:1;if(!Zt&&(mn<0||mn>Ot.len))continue;let fr=Ot.toValue(Mn,!0)+(ne||Ot.isOrdinal?0:zt*Kn),ge=Ot.toValue(Mn+Ut/Nn,!0)-(ne||Ot.isOrdinal?0:zt*Kn||0),Ie=Ot.allExtremes;if(fr>ge&&([fr,ge]=[ge,fr]),Nn===1&&!Zt&&Ot.coll==="yAxis"&&!Ie){for(let nn of Ot.series){let fn=nn.getExtremes(nn.getProcessedData(!0).yData,!0);Ie!=null||(Ie={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),Y(fn.dataMin)&&Y(fn.dataMax)&&(Ie.dataMin=Math.min(fn.dataMin,Ie.dataMin),Ie.dataMax=Math.max(fn.dataMax,Ie.dataMax))}Ot.allExtremes=Ie}let{dataMin:Ge,dataMax:ve,min:Le,max:Ue}=dt(Ot.getExtremes(),Ie||{}),Oe=Ge!=null?Ge:ce.min,De=ve!=null?ve:ce.max,Ze=ge-fr,Sn=Ot.categories?0:Math.min(Ze,De-Oe),Me=Oe-Sn*(T(ce.min)?0:ce.minPadding),en=De+Sn*(T(ce.max)?0:ce.maxPadding),xn=Ot.allowZoomOutside||Nn===1||le!=="zoom"&&Nn>1,Te=Math.min((Jt=ce.min)!=null?Jt:Me,Me,xn?Le:Me),bn=Math.max((Kt=ce.max)!=null?Kt:en,en,xn?Ue:en);(!Ot.isOrdinal||Ot.options.overscroll||Nn!==1||Zt)&&(fr=1&&(ge=fr+Ze)),ge>bn&&(ge=bn,Nn>=1&&(fr=ge-Ze)),(Zt||Ot.series.length&&(fr!==Le||ge!==Ue)&&fr>=Te&&ge<=bn)&&(ne?ne[Ot.coll].push({axis:Ot,min:fr,max:ge}):(Ot.isPanning=le!=="zoom",Ot.isPanning&&(Ye=!0),Ot.setExtremes(Zt?void 0:fr,Zt?void 0:ge,!1,!1,{move:Mn,trigger:le,scale:Nn}),!Zt&&(fr>Te||ge{delete gt.selection,gt.trigger="zoom",this.transform(gt)}):(!be||Ye||this.resetZoomButton?!be&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw(le==="zoom"&&((te=this.options.chart.animation)!=null?te:this.pointCount<100)))),xe}}return dt(Tt.prototype,{callbacks:[],collectionsWithInit:{xAxis:[Tt.prototype.addAxis,[!0]],yAxis:[Tt.prototype.addAxis,[!1]],series:[Tt.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","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"]}),Tt}),y(m,"Extensions/ScrollablePlotArea.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Globals.js"],m["Core/Renderer/RendererRegistry.js"],m["Core/Utilities.js"]],function(R,B,et,K){let{stop:J}=R,{composed:q}=B,{addEvent:Z,createElement:tt,css:H,defined:X,merge:F,pushUnique:U}=K;function d(){let s=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!s&&(this.scrollablePlotArea=s=new M(this)),s==null||s.applyFixed()}function L(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class M{static compose(_,w,o){U(q,this.compose)&&(Z(_,"afterInit",L),Z(w,"afterSetChartSize",u=>this.afterSetSize(u.target,u)),Z(w,"render",d),Z(o,"show",L))}static afterSetSize(_,w){let o,u,C,{minWidth:E,minHeight:S}=_.options.chart.scrollablePlotArea||{},{clipBox:v,plotBox:g,inverted:x,renderer:p}=_;if(!p.forExport&&(E?(_.scrollablePixelsX=o=Math.max(0,E-_.chartWidth),o&&(_.scrollablePlotBox=F(_.plotBox),g.width=_.plotWidth+=o,v[x?"height":"width"]+=o,C=!0)):S&&(_.scrollablePixelsY=u=Math.max(0,S-_.chartHeight),X(u)&&(_.scrollablePlotBox=F(_.plotBox),g.height=_.plotHeight+=u,v[x?"width":"height"]+=u,C=!1)),X(C)&&!w.skipAxes))for(let l of _.axes)l.horiz===C&&(l.setAxisSize(),l.setAxisTranslation())}constructor(_){var f,b;let w,o=_.options.chart,u=et.getRendererType(),C=o.scrollablePlotArea||{},E=this.moveFixedElements.bind(this),S={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};_.scrollablePixelsX&&(S.overflowX="auto"),_.scrollablePixelsY&&(S.overflowY="auto"),this.chart=_;let v=this.parentDiv=tt("div",{className:"highcharts-scrolling-parent"},{position:"relative"},_.renderTo),g=this.scrollingContainer=tt("div",{className:"highcharts-scrolling"},S,v),x=this.innerContainer=tt("div",{className:"highcharts-inner-container"},void 0,g),p=this.fixedDiv=tt("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(((f=o.style)==null?void 0:f.zIndex)||0)+2,top:0},void 0,!0),l=this.fixedRenderer=new u(p,_.chartWidth,_.chartHeight,o.style);this.mask=l.path().attr({fill:o.backgroundColor||"#fff","fill-opacity":(b=C.opacity)!=null?b:.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),g.parentNode.insertBefore(p,g),H(_.renderTo,{overflow:"visible"}),Z(_,"afterShowResetZoom",E),Z(_,"afterApplyDrilldown",E),Z(_,"afterLayOutTitles",E),Z(g,"scroll",()=>{let{pointer:z,hoverPoint:T}=_;z&&(delete z.chartPosition,T&&(w=T),z.runPointActions(void 0,w,!0))}),x.appendChild(_.container)}applyFixed(){var Y;let{chart:_,fixedRenderer:w,isDirty:o,scrollingContainer:u}=this,{axisOffset:C,chartWidth:E,chartHeight:S,container:v,plotHeight:g,plotLeft:x,plotTop:p,plotWidth:l,scrollablePixelsX:f=0,scrollablePixelsY:b=0}=_,{scrollPositionX:z=0,scrollPositionY:T=0}=_.options.chart.scrollablePlotArea||{},k=E+f,Q=S+b;w.setSize(E,S),(o==null||o)&&(this.isDirty=!1,this.moveFixedElements()),J(_.container),H(v,{width:`${k}px`,height:`${Q}px`}),_.renderer.boxWrapper.attr({width:k,height:Q,viewBox:[0,0,k,Q].join(" ")}),(Y=_.chartBackground)==null||Y.attr({width:k,height:Q}),H(u,{width:`${E}px`,height:`${S}px`}),X(o)||(u.scrollLeft=f*z,u.scrollTop=b*T);let st=p-C[0]-1,nt=x-C[3]-1,dt=p+g+C[2]+1,mt=x+l+C[1]+1,Et=x+l-f,Mt=p+g-b,I=[["M",0,0]];f?I=[["M",0,st],["L",x-1,st],["L",x-1,dt],["L",0,dt],["Z"],["M",Et,st],["L",E,st],["L",E,dt],["L",Et,dt],["Z"]]:b&&(I=[["M",nt,0],["L",nt,p-1],["L",mt,p-1],["L",mt,0],["Z"],["M",nt,Mt],["L",nt,S],["L",mt,S],["L",mt,Mt],["Z"]]),_.redrawTrigger!=="adjustHeight"&&this.mask.attr({d:I})}moveFixedElements(){let _,{container:w,inverted:o,scrollablePixelsX:u,scrollablePixelsY:C}=this.chart,E=this.fixedRenderer,S=M.fixedSelectors;for(let v of(u&&!o?_=".highcharts-yaxis":u&&o||C&&!o?_=".highcharts-xaxis":C&&o&&(_=".highcharts-yaxis"),_&&S.push(`${_}:not(.highcharts-radial-axis)`,`${_}-labels:not(.highcharts-radial-axis-labels)`),S))[].forEach.call(w.querySelectorAll(v),g=>{(g.namespaceURI===E.SVG_NS?E.box:E.box.parentNode).appendChild(g),g.style.pointerEvents="auto"})}}return M.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"],M}),y(m,"Core/Axis/Stacking/StackItem.js",[m["Core/Templating.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B,et){let{format:K}=R,{series:J}=B,{destroyObjectProperties:q,fireEvent:Z,isNumber:tt,pick:H}=et;return class{constructor(X,F,U,d,L){let M=X.chart.inverted,s=X.reversed;this.axis=X;let _=this.isNegative=!!U!=!!s;this.options=F=F||{},this.x=d,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=L,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:F.align||(M?_?"left":"right":"center"),verticalAlign:F.verticalAlign||(M?"middle":_?"bottom":"top"),y:F.y,x:F.x},this.textAlign=F.textAlign||(M?_?"right":"left":"center")}destroy(){q(this,this.axis)}render(X){let F=this.axis.chart,U=this.options,d=U.format,L=d?K(d,this,F):U.formatter.call(this);if(this.label)this.label.attr({text:L,visibility:"hidden"});else{this.label=F.renderer.label(L,null,void 0,U.shape,void 0,void 0,U.useHTML,!1,"stack-labels");let M={r:U.borderRadius||0,text:L,padding:H(U.padding,5),visibility:"hidden"};F.styledMode||(M.fill=U.backgroundColor,M.stroke=U.borderColor,M["stroke-width"]=U.borderWidth,this.label.css(U.style||{})),this.label.attr(M),this.label.added||this.label.add(X)}this.label.labelrank=F.plotSizeY,Z(this,"afterRender")}setOffset(X,F,U,d,L,M){let{alignOptions:s,axis:_,label:w,options:o,textAlign:u}=this,C=_.chart,E=this.getStackBox({xOffset:X,width:F,boxBottom:U,boxTop:d,defaultX:L,xAxis:M}),{verticalAlign:S}=s;if(w&&E){let v=w.getBBox(void 0,0),g=w.padding,x=H(o.overflow,"justify")==="justify",p;s.x=o.x||0,s.y=o.y||0;let{x:l,y:f}=this.adjustStackPosition({labelBox:v,verticalAlign:S,textAlign:u});E.x-=l,E.y-=f,w.align(s,!1,E),(p=C.isInsidePlot(w.alignAttr.x+s.x+l,w.alignAttr.y+s.y+f))||(x=!1),x&&J.prototype.justifyDataLabel.call(_,w,s,w.alignAttr,v,E),w.attr({x:w.alignAttr.x,y:w.alignAttr.y,rotation:o.rotation,rotationOriginX:v.width*{left:0,center:.5,right:1}[o.textAlign||"center"],rotationOriginY:v.height/2}),H(!x&&o.crop,!0)&&(p=tt(w.x)&&tt(w.y)&&C.isInsidePlot(w.x-g+(w.width||0),w.y)&&C.isInsidePlot(w.x+g,w.y)),w[p?"show":"hide"]()}Z(this,"afterSetOffset",{xOffset:X,width:F})}adjustStackPosition({labelBox:X,verticalAlign:F,textAlign:U}){let d={bottom:0,middle:1,top:2,right:1,center:0,left:-1},L=d[F],M=d[U];return{x:X.width/2+X.width/2*M,y:X.height/2*L}}getStackBox(X){let F=this.axis,U=F.chart,{boxTop:d,defaultX:L,xOffset:M,width:s,boxBottom:_}=X,w=F.stacking.usePercentage?100:H(d,this.total,0),o=F.toPixels(w),u=X.xAxis||U.xAxis[0],C=H(L,u.translate(this.x))+M,E=Math.abs(o-F.toPixels(_||tt(F.min)&&F.logarithmic&&F.logarithmic.lin2log(F.min)||0)),S=U.inverted,v=this.isNegative;return S?{x:(v?o:o-E)-U.plotLeft,y:u.height-C-s+u.top-U.plotTop,width:E,height:s}:{x:C+u.transB-U.plotLeft,y:(v?o-E:o)-U.plotTop,width:s,height:E}}}}),y(m,"Core/Axis/Stacking/StackingAxis.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Axis/Axis.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Axis/Stacking/StackItem.js"],m["Core/Utilities.js"]],function(R,B,et,K,J){var q;let{getDeferredAnimation:Z}=R,{series:{prototype:tt}}=et,{addEvent:H,correctFloat:X,defined:F,destroyObjectProperties:U,fireEvent:d,isArray:L,isNumber:M,objectEach:s,pick:_}=J;function w(){let p=this.inverted;this.axes.forEach(l=>{l.stacking&&l.stacking.stacks&&l.hasVisibleSeries&&(l.stacking.oldStacks=l.stacking.stacks)}),this.series.forEach(l=>{let f=l.xAxis&&l.xAxis.options||{};l.options.stacking&&l.reserveSpace()&&(l.stackKey=[l.type,_(l.options.stack,""),p?f.top:f.left,p?f.height:f.width].join(","))})}function o(){var l;let p=this.stacking;if(p){let f=p.stacks;s(f,(b,z)=>{U(b),delete f[z]}),(l=p.stackTotalGroup)==null||l.destroy()}}function u(){this.stacking||(this.stacking=new x(this))}function C(p,l,f,b){return!F(p)||p.x!==l||b&&p.stackKey!==b?p={x:l,index:0,key:b,stackKey:b}:p.index++,p.key=[f,l,p.index].join(","),p}function E(){let p,l=this,f=l.yAxis,b=l.stackKey||"",z=f.stacking.stacks,T=l.processedXData,k=l.options.stacking,Q=l[k+"Stacker"];Q&&[b,"-"+b].forEach(st=>{var Mt;let nt=T.length,dt,mt,Et;for(;nt--;)dt=T[nt],p=l.getStackIndicator(p,dt,l.index,st),mt=(Mt=z[st])==null?void 0:Mt[dt],(Et=mt==null?void 0:mt.points[p.key||""])&&Q.call(l,Et,mt,nt)})}function S(p,l,f){let b=l.total?100/l.total:0;p[0]=X(p[0]*b),p[1]=X(p[1]*b),this.stackedYData[f]=p[1]}function v(p){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&!this.options.stacking&&this.chart.series.length>1?tt.setStackedPoints.call(this,p,"group"):p.stacking.resetStacks())}function g(p,l){var Ct,Tt;let f,b,z,T,k,Q,st,nt,dt,mt=l||this.options.stacking;if(!mt||!this.reserveSpace()||({group:"xAxis"}[mt]||"yAxis")!==p.coll)return;let Et=this.processedXData,Mt=this.processedYData,I=[],Y=Mt.length,rt=this.options,ot=rt.threshold||0,D=rt.startFromThreshold?ot:0,P=rt.stack,W=l?`${this.type},${mt}`:this.stackKey||"",lt="-"+W,it=this.negStacks,vt=p.stacking,pt=vt.stacks,xt=vt.oldStacks;for(vt.stacksTouched+=1,st=0;st0&&this.singleStacks===!1&&(z.points[Q][0]=z.points[this.index+","+nt+",0"][0])):(delete z.points[Q],delete z.points[this.index]);let Nt=z.total||0;mt==="percent"?(T=b?W:lt,Nt=it&&((Tt=pt[T])!=null&&Tt[nt])?(T=pt[T][nt]).total=Math.max(T.total||0,Nt)+Math.abs(dt)||0:X(Nt+(Math.abs(dt)||0))):mt==="group"?(L(dt)&&(dt=dt[0]),dt!==null&&Nt++):Nt=X(Nt+(dt||0)),mt==="group"?z.cumulative=(Nt||1)-1:z.cumulative=X(_(z.cumulative,D)+(dt||0)),z.total=Nt,dt!==null&&(z.points[Q].push(z.cumulative),I[st]=z.cumulative,z.hasValidPoints=!0)}mt==="percent"&&(vt.usePercentage=!0),mt!=="group"&&(this.stackedYData=I),vt.oldStacks={}}class x{constructor(l){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=l}buildStacks(){let l,f,b=this.axis,z=b.series,T=b.coll==="xAxis",k=b.options.reversedStacks,Q=z.length;for(this.resetStacks(),this.usePercentage=!1,f=Q;f--;)l=z[k?f:Q-f-1],T&&l.setGroupedPoints(b),l.setStackedPoints(b);if(!T)for(f=0;f{s(l,f=>{f.cumulative=f.total})}))}resetStacks(){s(this.stacks,l=>{s(l,(f,b)=>{M(f.touched)&&f.touched{s(st,nt=>{nt.render(k)})}),k.animate({opacity:1},T)}}return(q||(q={})).compose=function(p,l,f){let b=l.prototype,z=f.prototype;b.getStacks||(H(p,"init",u),H(p,"destroy",o),b.getStacks=w,z.getStackIndicator=C,z.modifyStacks=E,z.percentStacker=S,z.setGroupedPoints=v,z.setStackedPoints=g)},q}),y(m,"Series/Line/LineSeries.js",[m["Core/Series/Series.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B,et){let{defined:K,merge:J,isObject:q}=et;class Z extends R{drawGraph(){let H=this.options,X=(this.gappedPath||this.getGraphPath).call(this),F=this.chart.styledMode;[this,...this.zones].forEach((U,d)=>{let L,M=U.graph,s=M?"animate":"attr",_=U.dashStyle||H.dashStyle;M?(M.endX=this.preventGraphAnimation?null:X.xMap,M.animate({d:X})):X.length&&(U.graph=M=this.chart.renderer.path(X).addClass("highcharts-graph"+(d?` highcharts-zone-graph-${d-1} `:" ")+(d&&U.className||"")).attr({zIndex:1}).add(this.group)),M&&!F&&(L={stroke:!d&&H.lineColor||U.color||this.color||"#cccccc","stroke-width":H.lineWidth||0,fill:this.fillGraph&&this.color||"none"},_?L.dashstyle=_:H.linecap!=="square"&&(L["stroke-linecap"]=L["stroke-linejoin"]="round"),M[s](L).shadow(d<2&&H.shadow&&J({filterUnits:"userSpaceOnUse"},q(H.shadow)?H.shadow:{}))),M&&(M.startX=X.xMap,M.isArea=X.isArea)})}getGraphPath(H,X,F){let U=this,d=U.options,L=[],M=[],s,_=d.step,w=(H=H||U.points).reversed;return w&&H.reverse(),(_={right:1,center:2}[_]||_&&3)&&w&&(_=4-_),(H=this.getValidPoints(H,!1,!(d.connectNulls&&!X&&!F))).forEach(function(o,u){let C,E=o.plotX,S=o.plotY,v=H[u-1],g=o.isNull||typeof S!="number";(o.leftCliff||v&&v.rightCliff)&&!F&&(s=!0),g&&!K(X)&&u>0?s=!d.connectNulls:g&&!X?s=!0:(u===0||s?C=[["M",o.plotX,o.plotY]]:U.getPointSpline?C=[U.getPointSpline(H,o,u)]:_?(C=_===1?[["L",v.plotX,S]]:_===2?[["L",(v.plotX+E)/2,v.plotY],["L",(v.plotX+E)/2,S]]:[["L",E,v.plotY]]).push(["L",E,S]):C=[["L",E,S]],M.push(o.x),_&&(M.push(o.x),_===2&&M.push(o.x)),L.push.apply(L,C),s=!1)}),L.xMap=M,U.graphPath=L,L}}return Z.defaultOptions=J(R.defaultOptions,{legendSymbol:"lineMarker"}),B.registerSeriesType("line",Z),Z}),y(m,"Series/Area/AreaSeriesDefaults.js",[],function(){return{threshold:0,legendSymbol:"areaMarker"}}),y(m,"Series/Area/AreaSeries.js",[m["Series/Area/AreaSeriesDefaults.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B,et){let{seriesTypes:{line:K}}=B,{extend:J,merge:q,objectEach:Z,pick:tt}=et;class H extends K{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:F,options:U}=this;[this,...this.zones].forEach((d,L)=>{var o;let M={},s=d.fillColor||U.fillColor,_=d.area,w=_?"animate":"attr";_?(_.endX=this.preventGraphAnimation?null:F.xMap,_.animate({d:F})):(M.zIndex=0,(_=d.area=this.chart.renderer.path(F).addClass("highcharts-area"+(L?` highcharts-zone-area-${L-1} `:" ")+(L&&d.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(M.fill=s||d.color||this.color,M["fill-opacity"]=s?1:(o=U.fillOpacity)!=null?o:.75,_.css({pointerEvents:this.stickyTracking?"none":"auto"})),_[w](M),_.startX=F.xMap,_.shiftUnit=U.step?2:1})}getGraphPath(F){let U,d,L,M=K.prototype.getGraphPath,s=this.options,_=s.stacking,w=this.yAxis,o=[],u=[],C=this.index,E=w.stacking.stacks[this.stackKey],S=s.threshold,v=Math.round(w.getThreshold(s.threshold)),g=tt(s.connectNulls,_==="percent"),x=function(T,k,Q){let st=F[T],nt=_&&E[st.x].points[C],dt=st[Q+"Null"]||0,mt=st[Q+"Cliff"]||0,Et,Mt,I=!0;mt||dt?(Et=(dt?nt[0]:nt[1])+mt,Mt=nt[0]+mt,I=!!dt):!_&&F[k]&&F[k].isNull&&(Et=Mt=S),Et!==void 0&&(u.push({plotX:U,plotY:Et===null?v:w.getThreshold(Et),isNull:I,isCliff:!0}),o.push({plotX:U,plotY:Mt===null?v:w.getThreshold(Mt),doCurve:!1}))};F=F||this.points,_&&(F=this.getStackPoints(F));for(let T=0,k=F.length;T1&&_&&u.some(T=>T.isCliff)&&(b.hasStackedCliffs=z.hasStackedCliffs=!0),b.xMap=p.xMap,this.areaPath=b,z}getStackPoints(F){let U=this,d=[],L=[],M=this.xAxis,s=this.yAxis,_=s.stacking.stacks[this.stackKey],w={},o=s.series,u=o.length,C=s.options.reversedStacks?1:-1,E=o.indexOf(U);if(F=F||this.points,this.options.stacking){for(let v=0;vv.visible);L.forEach(function(v,g){let x=0,p,l;if(w[v]&&!w[v].isNull)d.push(w[v]),[-1,1].forEach(function(f){let b=f===1?"rightNull":"leftNull",z=_[L[g+f]],T=0;if(z){let k=E;for(;k>=0&&k=0&&fE&&U>s?(U=Math.max(E,s),L=2*s-U):Uv&&L>s?(L=Math.max(v,s),U=2*s-L):L1){let l=this.xAxis.series.filter(T=>T.visible).map(T=>T.index),f=0,b=0;u((p=this.xAxis.stacking)==null?void 0:p.stacks,T=>{if(typeof g.x=="number"){let k=T[g.x.toString()];if(k&&s(k.points[this.index])){let Q=Object.keys(k.points).filter(st=>!st.match(",")&&k.points[st]&&k.points[st].length>1).map(parseFloat).filter(st=>l.indexOf(st)!==-1).sort((st,nt)=>nt-st);f=Q.indexOf(this.index),b=Q.length}}}),f=this.xAxis.reversed?b-1-f:f;let z=(b-1)*x.paddedWidth+v;S=(g.plotX||0)+z/2-v-f*x.paddedWidth}return S}translate(){let S=this,v=S.chart,g=S.options,x=S.dense=S.closestPointRange*S.xAxis.transA<2,p=S.borderWidth=o(g.borderWidth,x?0:1),l=S.xAxis,f=S.yAxis,b=g.threshold,z=o(g.minPointLength,5),T=S.getColumnMetrics(),k=T.width,Q=S.pointXOffset=T.offset,st=S.dataMin,nt=S.dataMax,dt=S.translatedThreshold=f.getThreshold(b),mt=S.barW=Math.max(k,1+2*p);g.pointPadding&&(mt=Math.ceil(mt)),J.prototype.translate.apply(S),S.points.forEach(function(Et){let Mt=o(Et.yBottom,dt),I=999+Math.abs(Mt),Y=Et.plotX||0,rt=F(Et.plotY,-I,f.len+I),ot,D=Math.min(rt,Mt),P=Math.max(rt,Mt)-D,W=k,lt=Y+Q,it=mt;z&&Math.abs(P)z?Mt-z:dt-(ot?z:0)),d(Et.options.pointWidth)&&(lt-=Math.round(((W=it=Math.ceil(Et.options.pointWidth))-k)/2)),g.centerInCategory&&!g.stacking&&(lt=S.adjustForMissingColumns(lt,W,Et,T)),Et.barX=lt,Et.pointWidth=W,Et.tooltipPos=v.inverted?[F(f.len+f.pos-v.plotLeft-rt,f.pos-v.plotLeft,f.len+f.pos-v.plotLeft),l.len+l.pos-v.plotTop-lt-it/2,P]:[l.left-v.plotLeft+lt+it/2,F(rt+f.pos-v.plotTop,f.pos-v.plotTop,f.len+f.pos-v.plotTop),P],Et.shapeType=S.pointClass.prototype.shapeType||"roundedRect",Et.shapeArgs=S.crispCol(lt,Et.isNull?dt:D,it,Et.isNull?0:P)}),M(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(S,v){let g=this.options,x=this.pointAttrToOptions||{},p=x.stroke||"borderColor",l=x["stroke-width"]||"borderWidth",f,b,z,T=S&&S.color||this.color,k=S&&S[p]||g[p]||T,Q=S&&S.options.dashStyle||g.dashStyle,st=S&&S[l]||g[l]||this[l]||0,nt=o(S&&S.opacity,g.opacity,1);S&&this.zones.length&&(b=S.getZone(),T=S.options.color||b&&(b.color||S.nonZonedColor)||this.color,b&&(k=b.borderColor||k,Q=b.dashStyle||Q,st=b.borderWidth||st)),v&&S&&(z=(f=w(g.states[v],S.options.states&&S.options.states[v]||{})).brightness,T=f.color||z!==void 0&&H(T).brighten(f.brightness).get()||T,k=f[p]||k,st=f[l]||st,Q=f.dashStyle||Q,nt=o(f.opacity,nt));let dt={fill:T,stroke:k,"stroke-width":st,opacity:nt};return Q&&(dt.dashstyle=Q),dt}drawPoints(S=this.points){let v,g=this,x=this.chart,p=g.options,l=x.renderer,f=p.animationLimit||250;S.forEach(function(b){let z=b.plotY,T=b.graphic,k=!!T,Q=T&&x.pointCountp==null?void 0:p.enabled)}function o(p,l,f,b,z){var rt;let{chart:T,enabledDataSorting:k}=this,Q=this.isCartesian&&T.inverted,st=p.plotX,nt=p.plotY,dt=f.rotation||0,mt=Z(st)&&Z(nt)&&T.isInsidePlot(st,Math.round(nt),{inverted:Q,paneCoordinates:!0,series:this}),Et=dt===0&&L(f.overflow,k?"none":"justify")==="justify",Mt=this.visible&&p.visible!==!1&&Z(st)&&(p.series.forceDL||k&&!Et||mt||L(f.inside,!!this.options.stacking)&&b&&T.isInsidePlot(st,Q?b.x+1:b.y+b.height-1,{inverted:Q,paneCoordinates:!0,series:this})),I=p.pos();if(Mt&&I){var Y;let ot=l.getBBox(),D=l.getBBox(void 0,0),P={right:1,center:.5}[f.align||0]||0,W={bottom:1,middle:.5}[f.verticalAlign||0]||0;if(b=tt({x:I[0],y:Math.round(I[1]),width:0,height:0},b||{}),f.alignTo==="plotEdges"&&this.isCartesian&&(b[Q?"x":"y"]=0,b[Q?"width":"height"]=((rt=this.yAxis)==null?void 0:rt.len)||0),tt(f,{width:ot.width,height:ot.height}),Y=b,k&&this.xAxis&&!Et&&this.setDataLabelStartPos(p,l,z,mt,Y),l.align(U(f,{width:D.width,height:D.height}),!1,b,!1),l.alignAttr.x+=P*(D.width-ot.width),l.alignAttr.y+=W*(D.height-ot.height),l[l.placed?"animate":"attr"]({x:l.alignAttr.x+(ot.width-D.width)/2,y:l.alignAttr.y+(ot.height-D.height)/2,rotationOriginX:(l.width||0)/2,rotationOriginY:(l.height||0)/2}),Et&&b.height>=0)this.justifyDataLabel(l,f,l.alignAttr,ot,b,z);else if(L(f.crop,!0)){let{x:lt,y:it}=l.alignAttr;Mt=T.isInsidePlot(lt,it,{paneCoordinates:!0,series:this})&&T.isInsidePlot(lt+ot.width-1,it+ot.height-1,{paneCoordinates:!0,series:this})}f.shape&&!dt&&l[z?"attr":"animate"]({anchorX:I[0],anchorY:I[1]})}z&&k&&(l.placed=!1),Mt||k&&!Et?(l.show(),l.placed=!0):(l.hide(),l.placed=!1)}function u(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function C(p){let l=this.hasRendered||0,f=this.initDataLabelsGroup().attr({opacity:+l});return!l&&f&&(this.visible&&f.show(),this.options.animation?f.animate({opacity:1},p):f.attr({opacity:1})),f}function E(p){var Mt;let l;p=p||this.points;let f=this,b=f.chart,z=f.options,T=b.renderer,{backgroundColor:k,plotBackgroundColor:Q}=b.options.chart,st=T.getContrast(F(Q)&&Q||F(k)&&k||"#000000"),nt=g(f),{animation:dt,defer:mt}=nt[0],Et=mt?J(b,dt,f):{defer:0,duration:0};H(this,"drawDataLabels"),(Mt=f.hasDataLabels)!=null&&Mt.call(f)&&(l=this.initDataLabels(Et),p.forEach(I=>{var ot,D;let Y=I.dataLabels||[];s(v(nt,I.dlOptions||((ot=I.options)==null?void 0:ot.dataLabels))).forEach((P,W)=>{let lt=P.enabled&&(I.visible||I.dataLabelOnHidden)&&(!I.isNull||I.dataLabelOnNull)&&function(ne,Wt){let le=Wt.filter;if(le){let fe=le.operator,xe=ne[le.property],be=le.value;return fe===">"&&xe>be||fe==="<"&&xe="&&xe>=be||fe==="<="&&xe<=be||fe==="=="&&xe==be||fe==="==="&&xe===be||fe==="!="&&xe!=be||fe==="!=="&&xe!==be}return!0}(I,P),{backgroundColor:it,borderColor:vt,distance:pt,style:xt={}}=P,Ct,Tt,Nt,gt,wt={},Rt=Y[W],jt=!Rt,Zt;lt&&(Tt=L(P[I.formatPrefix+"Format"],P.format),Ct=I.getLabelConfig(),Nt=Z(Tt)?q(Tt,Ct,b):(P[I.formatPrefix+"Formatter"]||P.formatter).call(Ct,P),gt=P.rotation,!b.styledMode&&(xt.color=L(P.color,xt.color,F(f.color)?f.color:void 0,"#000000"),xt.color==="contrast"?(it!=="none"&&(Zt=it),I.contrastColor=T.getContrast(Zt!=="auto"&&Zt||I.color||f.color),xt.color=Zt||!Z(pt)&&P.inside||0>M(pt||0)||z.stacking?I.contrastColor:st):delete I.contrastColor,z.cursor&&(xt.cursor=z.cursor)),wt={r:P.borderRadius||0,rotation:gt,padding:P.padding,zIndex:1},b.styledMode||(wt.fill=it==="auto"?I.color:it,wt.stroke=vt==="auto"?I.color:vt,wt["stroke-width"]=P.borderWidth),d(wt,(ne,Wt)=>{ne===void 0&&delete wt[Wt]})),!Rt||lt&&Z(Nt)&&!!Rt.div==!!P.useHTML&&(Rt.rotation&&P.rotation||Rt.rotation===P.rotation)||(Rt=void 0,jt=!0),lt&&Z(Nt)&&(Rt?wt.text=Nt:(Rt=T.label(Nt,0,0,P.shape,void 0,void 0,P.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+I.colorIndex+" "+(P.className||"")+(P.useHTML?" highcharts-tracker":"")),Rt&&(Rt.options=P,Rt.attr(wt),b.styledMode?xt.width&&Rt.css({width:xt.width,textOverflow:xt.textOverflow}):Rt.css(xt).shadow(P.shadow),H(Rt,"beforeAddingDataLabel",{labelOptions:P,point:I}),Rt.added||Rt.add(l),f.alignDataLabel(I,Rt,P,void 0,jt),Rt.isActive=!0,Y[W]&&Y[W]!==Rt&&Y[W].destroy(),Y[W]=Rt))});let rt=Y.length;for(;rt--;)Y[rt]&&Y[rt].isActive?Y[rt].isActive=!1:((D=Y[rt])==null||D.destroy(),Y.splice(rt,1));I.dataLabel=Y[0],I.dataLabels=Y})),H(this,"afterDrawDataLabels")}function S(p,l,f,b,z,T){let k=this.chart,Q=l.align,st=l.verticalAlign,nt=p.box?0:p.padding||0,dt=k.inverted?this.yAxis:this.xAxis,mt=dt?dt.left-k.plotLeft:0,Et=k.inverted?this.xAxis:this.yAxis,Mt=Et?Et.top-k.plotTop:0,{x:I=0,y:Y=0}=l,rt,ot;return(rt=(f.x||0)+nt+mt)<0&&(Q==="right"&&I>=0?(l.align="left",l.inside=!0):I-=rt,ot=!0),(rt=(f.x||0)+b.width-nt+mt)>k.plotWidth&&(Q==="left"&&I<=0?(l.align="right",l.inside=!0):I+=k.plotWidth-rt,ot=!0),(rt=f.y+nt+Mt)<0&&(st==="bottom"&&Y>=0?(l.verticalAlign="top",l.inside=!0):Y-=rt,ot=!0),(rt=(f.y||0)+b.height-nt+Mt)>k.plotHeight&&(st==="top"&&Y<=0?(l.verticalAlign="bottom",l.inside=!0):Y+=k.plotHeight-rt,ot=!0),ot&&(l.x=I,l.y=Y,p.placed=!T,p.align(l,void 0,z)),ot}function v(p,l){let f=[],b;if(X(p)&&!X(l))f=p.map(function(z){return U(z,l)});else if(X(l)&&!X(p))f=l.map(function(z){return U(p,z)});else if(X(p)||X(l)){if(X(p)&&X(l))for(b=Math.max(p.length,l.length);b--;)f[b]=U(p[b],l[b])}else f=U(p,l);return f}function g(p){var f,b;let l=p.chart.options.plotOptions;return s(v(v((f=l==null?void 0:l.series)==null?void 0:f.dataLabels,(b=l==null?void 0:l[p.type])==null?void 0:b.dataLabels),p.options.dataLabels))}function x(p,l,f,b,z){let T=this.chart,k=T.inverted,Q=this.xAxis,st=Q.reversed,nt=((k?l.height:l.width)||0)/2,dt=p.pointWidth,mt=dt?dt/2:0;l.startXPos=k?z.x:st?-nt-mt:Q.width-nt+mt,l.startYPos=k?st?this.yAxis.height-nt+mt:-nt-mt:z.y,b?l.visibility==="hidden"&&(l.show(),l.attr({opacity:0}).animate({opacity:1})):l.attr({opacity:1}).animate({opacity:0},void 0,l.hide),T.hasRendered&&(f&&l.attr({x:l.startXPos,y:l.startYPos}),l.placed=!0)}_.compose=function(p){let l=p.prototype;l.initDataLabels||(l.initDataLabels=C,l.initDataLabelsGroup=u,l.alignDataLabel=o,l.drawDataLabels=E,l.justifyDataLabel=S,l.setDataLabelStartPos=x,l.hasDataLabels=w)}}(K||(K={})),K}),y(m,"Series/Column/ColumnDataLabel.js",[m["Core/Series/DataLabel.js"],m["Core/Globals.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B,et,K){var J;let{composed:q}=B,{series:Z}=et,{merge:tt,pick:H,pushUnique:X}=K;return function(F){function U(d,L,M,s,_){let w=this.chart.inverted,o=d.series,u=(o.xAxis?o.xAxis.len:this.chart.plotSizeX)||0,C=(o.yAxis?o.yAxis.len:this.chart.plotSizeY)||0,E=d.dlBox||d.shapeArgs,S=H(d.below,d.plotY>H(this.translatedThreshold,C)),v=H(M.inside,!!this.options.stacking);if(E){if(s=tt(E),!(M.overflow==="allow"&&M.crop===!1)){s.y<0&&(s.height+=s.y,s.y=0);let g=s.y+s.height-C;g>0&&g\u25CF {series.name}
    ',pointFormat:"x: {point.x}
    y: {point.y}
    "}}}),y(m,"Series/Scatter/ScatterSeries.js",[m["Series/Scatter/ScatterSeriesDefaults.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B,et){let{column:K,line:J}=B.seriesTypes,{addEvent:q,extend:Z,merge:tt}=et;class H extends J{applyJitter(){let F=this,U=this.options.jitter,d=this.points.length;U&&this.points.forEach(function(L,M){["x","y"].forEach(function(s,_){if(U[s]&&!L.isNull){let w=`plot${s.toUpperCase()}`,o=F[`${s}Axis`],u=U[s]*o.transA;if(o&&!o.logarithmic){let C=Math.max(0,(L[w]||0)-u),E=Math.min(o.len,(L[w]||0)+u);L[w]=C+(E-C)*function(S){let v=1e4*Math.sin(S);return v-Math.floor(v)}(M+_*d),s==="x"&&(L.clientX=L.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return H.defaultOptions=tt(J.defaultOptions,R),Z(H.prototype,{drawTracker:K.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),q(H,"afterTranslate",function(){this.applyJitter()}),B.registerSeriesType("scatter",H),H}),y(m,"Series/CenteredUtilities.js",[m["Core/Globals.js"],m["Core/Series/Series.js"],m["Core/Utilities.js"]],function(R,B,et){var K,J;let{deg2rad:q}=R,{fireEvent:Z,isNumber:tt,pick:H,relativeLength:X}=et;return(J=K||(K={})).getCenter=function(){let F=this.options,U=this.chart,d=2*(F.slicedOffset||0),L=U.plotWidth-2*d,M=U.plotHeight-2*d,s=F.center,_=Math.min(L,M),w=F.thickness,o,u=F.size,C=F.innerSize||0,E,S;typeof u=="string"&&(u=parseFloat(u)),typeof C=="string"&&(C=parseFloat(C));let v=[H(s[0],"50%"),H(s[1],"50%"),H(u&&u<0?void 0:F.size,"100%"),H(C&&C<0?void 0:F.innerSize||0,"0%")];for(!U.angular||this instanceof B||(v[3]=0),E=0;E<4;++E)S=v[E],o=E<2||E===2&&/%$/.test(S),v[E]=X(S,[L,M,_,v[2]][E])+(o?d:0);return v[3]>v[2]&&(v[3]=v[2]),tt(w)&&2*w0&&(v[3]=v[2]-2*w),Z(this,"afterGetCenter",{positions:v}),v},J.getStartAndEndRadians=function(F,U){let d=tt(F)?F:0,L=tt(U)&&U>d&&U-d<360?U:d+360;return{start:q*(d+-90),end:q*(L+-90)}},K}),y(m,"Series/Pie/PiePoint.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Series/Point.js"],m["Core/Utilities.js"]],function(R,B,et){let{setAnimation:K}=R,{addEvent:J,defined:q,extend:Z,isNumber:tt,pick:H,relativeLength:X}=et;class F extends B{getConnectorPath(d){let L=d.dataLabelPosition,M=d.options||{},s=M.connectorShape,_=this.connectorShapes[s]||s;return L&&_.call(this,co(Fr({},L.computed),{alignment:L.alignment}),L.connectorPosition,M)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(d){let L=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(L.x,L.y,L.r+d,L.r+d,{innerR:L.r-1,start:L.start,end:L.end,borderRadius:L.borderRadius})}constructor(d,L,M){var _;super(d,L,M),this.half=0,(_=this.name)!=null||(this.name="Slice");let s=w=>{this.slice(w.type==="select")};J(this,"select",s),J(this,"unselect",s)}isValid(){return tt(this.y)&&this.y>=0}setVisible(d,L=!0){d!==this.visible&&this.update({visible:d!=null?d:!this.visible},L,void 0,!1)}slice(d,L,M){let s=this.series;K(M,s.chart),L=H(L,!0),this.sliced=this.options.sliced=d=q(d)?d:!this.sliced,s.options.data[s.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return Z(F.prototype,{connectorShapes:{fixedOffset:function(U,d,L){let M=d.breakAt,s=d.touchingSliceAt,_=L.softConnector?["C",U.x+(U.alignment==="left"?-5:5),U.y,2*M.x-s.x,2*M.y-s.y,M.x,M.y]:["L",M.x,M.y];return[["M",U.x,U.y],_,["L",s.x,s.y]]},straight:function(U,d){let L=d.touchingSliceAt;return[["M",U.x,U.y],["L",L.x,L.y]]},crookedLine:function(U,d,L){let{breakAt:M,touchingSliceAt:s}=d,{series:_}=this,[w,o,u]=_.center,C=u/2,{plotLeft:E,plotWidth:S}=_.chart,v=U.alignment==="left",{x:g,y:x}=U,p=M.x;if(L.crookDistance){let f=X(L.crookDistance,1);p=v?w+C+(S+E-w-C)*(1-f):E+(w-C)*f}else p=w+(o-x)*Math.tan((this.angle||0)-Math.PI/2);let l=[["M",g,x]];return(v?p<=g&&p>=M.x:p>=g&&p<=M.x)&&l.push(["L",p,x]),l.push(["L",M.x,M.y],["L",s.x,s.y]),l}}}),F}),y(m,"Series/Pie/PieSeriesDefaults.js",[],function(){return{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.point.isNull?void 0:this.point.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:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),y(m,"Series/Pie/PieSeries.js",[m["Series/CenteredUtilities.js"],m["Series/Column/ColumnSeries.js"],m["Core/Globals.js"],m["Series/Pie/PiePoint.js"],m["Series/Pie/PieSeriesDefaults.js"],m["Core/Series/Series.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Renderer/SVG/Symbols.js"],m["Core/Utilities.js"]],function(R,B,et,K,J,q,Z,tt,H){let{getStartAndEndRadians:X}=R,{noop:F}=et,{clamp:U,extend:d,fireEvent:L,merge:M,pick:s}=H;class _ extends q{animate(o){let u=this,C=u.points,E=u.startAngleRad;o||C.forEach(function(S){let v=S.graphic,g=S.shapeArgs;v&&g&&(v.attr({r:s(S.startR,u.center&&u.center[3]/2),start:E,end:E}),v.animate({r:g.r,start:g.start,end:g.end},u.options.animation))})}drawEmpty(){let o,u,C=this.startAngleRad,E=this.endAngleRad,S=this.options;this.total===0&&this.center?(o=this.center[0],u=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(o,u,this.center[1]/2,0,C,E).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:tt.arc(o,u,this.center[2]/2,0,{start:C,end:E,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":S.borderWidth,fill:S.fillColor||"none",stroke:S.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let o=this.chart.renderer;this.points.forEach(function(u){u.graphic&&u.hasNewShapeType()&&(u.graphic=u.graphic.destroy()),u.graphic||(u.graphic=o[u.shapeType](u.shapeArgs).add(u.series.group),u.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(o,u,C,E){let S=this.center,v=this.radii?this.radii[C.index]||0:S[2]/2,g=E.dataLabelPosition,x=(g==null?void 0:g.distance)||0,p=Math.asin(U((o-S[1])/(v+x),-1,1));return S[0]+Math.cos(p)*(v+x)*(u?-1:1)+(x>0?(u?-1:1)*(E.padding||0):0)}hasData(){return!!this.processedXData.length}redrawPoints(){let o,u,C,E,S=this,v=S.chart;this.drawEmpty(),S.group&&!v.styledMode&&S.group.shadow(S.options.shadow),S.points.forEach(function(g){let x={};u=g.graphic,!g.isNull&&u?(E=g.shapeArgs,o=g.getTranslate(),v.styledMode||(C=S.pointAttribs(g,g.selected&&"select")),g.delayedRendering?(u.setRadialReference(S.center).attr(E).attr(o),v.styledMode||u.attr(C).attr({"stroke-linejoin":"round"}),g.delayedRendering=!1):(u.setRadialReference(S.center),v.styledMode||M(!0,x,C),M(!0,x,E,o),u.animate(x)),u.attr({visibility:g.visible?"inherit":"hidden"}),u.addClass(g.getClassName(),!0)):u&&(g.graphic=u.destroy())})}sortByAngle(o,u){o.sort(function(C,E){return C.angle!==void 0&&(E.angle-C.angle)*u})}translate(o){L(this,"translate"),this.generatePoints();let u=this.options,C=u.slicedOffset,E=X(u.startAngle,u.endAngle),S=this.startAngleRad=E.start,v=(this.endAngleRad=E.end)-S,g=this.points,x=u.ignoreHiddenPoint,p=g.length,l,f,b,z,T,k,Q,st=0;for(o||(this.center=o=this.getCenter()),k=0;k1.5*Math.PI?b-=2*Math.PI:b<-Math.PI/2&&(b+=2*Math.PI),Q.slicedTranslation={translateX:Math.round(Math.cos(b)*C),translateY:Math.round(Math.sin(b)*C)},z=Math.cos(b)*o[2]/2,T=Math.sin(b)*o[2]/2,Q.tooltipPos=[o[0]+.7*z,o[1]+.7*T],Q.half=b<-Math.PI/2||b>Math.PI/2?1:0,Q.angle=b}L(this,"afterTranslate")}updateTotals(){let o=this.points,u=o.length,C=this.options.ignoreHiddenPoint,E,S,v=0;for(E=0;E0&&(S.visible||!C)?S.y/v*100:0,S.total=v}}return _.defaultOptions=M(q.defaultOptions,J),d(_.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:B.prototype.drawTracker,getCenter:R.getCenter,getSymbol:F,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:B.prototype.pointAttribs,pointClass:K,requireSorting:!1,searchPoint:F,trackerGroups:["group","dataLabelsGroup"]}),Z.registerSeriesType("pie",_),_}),y(m,"Series/Pie/PieDataLabel.js",[m["Core/Series/DataLabel.js"],m["Core/Globals.js"],m["Core/Renderer/RendererUtilities.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B,et,K,J){var q;let{composed:Z,noop:tt}=B,{distribute:H}=et,{series:X}=K,{arrayMax:F,clamp:U,defined:d,pick:L,pushUnique:M,relativeLength:s}=J;return function(_){let w={radialDistributionY:function(S,v){var g;return(((g=v.dataLabelPosition)==null?void 0:g.top)||0)+S.distributeBox.pos},radialDistributionX:function(S,v,g,x,p){let l=p.dataLabelPosition;return S.getX(g<((l==null?void 0:l.top)||0)+2||g>((l==null?void 0:l.bottom)||0)-2?x:g,v.half,v,p)},justify:function(S,v,g,x){var p;return x[0]+(S.half?-1:1)*(g+(((p=v.dataLabelPosition)==null?void 0:p.distance)||0))},alignToPlotEdges:function(S,v,g,x){let p=S.getBBox().width;return v?p+x:g-p-x},alignToConnectors:function(S,v,g,x){let p=0,l;return S.forEach(function(f){(l=f.dataLabel.getBBox().width)>p&&(p=l)}),v?p+x:g-p-x}};function o(S,v){let{center:g,options:x}=this,p=g[2]/2,l=S.angle||0,f=Math.cos(l),b=Math.sin(l),z=g[0]+f*p,T=g[1]+b*p,k=Math.min((x.slicedOffset||0)+(x.borderWidth||0),v/5);return{natural:{x:z+f*v,y:T+b*v},computed:{},alignment:v<0?"center":S.half?"right":"left",connectorPosition:{breakAt:{x:z+f*k,y:T+b*k},touchingSliceAt:{x:z,y:T}},distance:v}}function u(){var Mt;let S=this,v=S.points,g=S.chart,x=g.plotWidth,p=g.plotHeight,l=g.plotLeft,f=Math.round(g.chartWidth/3),b=S.center,z=b[2]/2,T=b[1],k=[[],[]],Q=[0,0,0,0],st=S.dataLabelPositioners,nt,dt,mt,Et=0;S.visible&&((Mt=S.hasDataLabels)!=null&&Mt.call(S))&&(v.forEach(I=>{(I.dataLabels||[]).forEach(Y=>{Y.shortened&&(Y.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),Y.shortened=!1)})}),X.prototype.drawDataLabels.apply(S),v.forEach(I=>{(I.dataLabels||[]).forEach((Y,rt)=>{var W;let ot=b[2]/2,D=Y.options,P=s((D==null?void 0:D.distance)||0,ot);rt===0&&k[I.half].push(I),!d((W=D==null?void 0:D.style)==null?void 0:W.width)&&Y.getBBox().width>f&&(Y.css({width:Math.round(.7*f)+"px"}),Y.shortened=!0),Y.dataLabelPosition=this.getDataLabelPosition(I,P),Et=Math.max(Et,P)})}),k.forEach((I,Y)=>{let rt=I.length,ot=[],D,P,W=0,lt;rt&&(S.sortByAngle(I,Y-.5),Et>0&&(D=Math.max(0,T-z-Et),P=Math.min(T+z+Et,g.plotHeight),I.forEach(it=>{(it.dataLabels||[]).forEach(vt=>{var xt;let pt=vt.dataLabelPosition;pt&&pt.distance>0&&(pt.top=Math.max(0,T-z-pt.distance),pt.bottom=Math.min(T+z+pt.distance,g.plotHeight),W=vt.getBBox().height||21,vt.lineHeight=g.renderer.fontMetrics(vt.text||vt).h+2*vt.padding,it.distributeBox={target:(((xt=vt.dataLabelPosition)==null?void 0:xt.natural.y)||0)-pt.top+vt.lineHeight/2,size:W,rank:it.y},ot.push(it.distributeBox))})}),H(ot,lt=P+W-D,lt/5)),I.forEach(it=>{(it.dataLabels||[]).forEach(vt=>{let pt=vt.options||{},xt=it.distributeBox,Ct=vt.dataLabelPosition,Tt=(Ct==null?void 0:Ct.natural.y)||0,Nt=pt.connectorPadding||0,gt=vt.lineHeight||21,wt=(gt-vt.getBBox().height)/2,Rt=0,jt=Tt,Zt="inherit";if(Ct){if(ot&&d(xt)&&Ct.distance>0&&(xt.pos===void 0?Zt="hidden":(mt=xt.size,jt=st.radialDistributionY(it,vt))),pt.justify)Rt=st.justify(it,vt,z,b);else switch(pt.alignTo){case"connectors":Rt=st.alignToConnectors(I,Y,x,l);break;case"plotEdges":Rt=st.alignToPlotEdges(vt,Y,x,l);break;default:Rt=st.radialDistributionX(S,it,jt-wt,Tt,vt)}if(Ct.attribs={visibility:Zt,align:Ct.alignment},Ct.posAttribs={x:Rt+(pt.x||0)+({left:Nt,right:-Nt}[Ct.alignment]||0),y:jt+(pt.y||0)-gt/2},Ct.computed.x=Rt,Ct.computed.y=jt-wt,L(pt.crop,!0)){let ne;Rt-(dt=vt.getBBox().width)x-Nt&&Y===0&&(ne=Math.round(Rt+dt-x+Nt),Q[1]=Math.max(ne,Q[1])),jt-mt/2<0?Q[0]=Math.max(Math.round(-jt+mt/2),Q[0]):jt+mt/2>p&&(Q[2]=Math.max(Math.round(jt+mt/2-p),Q[2])),Ct.sideOverflow=ne}}})}))}),(F(Q)===0||this.verifyDataLabelOverflow(Q))&&(this.placeDataLabels(),this.points.forEach(I=>{(I.dataLabels||[]).forEach(Y=>{var P;let{connectorColor:rt,connectorWidth:ot=1}=Y.options||{},D=Y.dataLabelPosition;if(ot){let W;nt=Y.connector,D&&D.distance>0?(W=!nt,nt||(Y.connector=nt=g.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+I.colorIndex+(I.className?" "+I.className:"")).add(S.dataLabelsGroup)),g.styledMode||nt.attr({"stroke-width":ot,stroke:rt||I.color||"#666666"}),nt[W?"attr":"animate"]({d:I.getConnectorPath(Y)}),nt.attr({visibility:(P=D.attribs)==null?void 0:P.visibility})):nt&&(Y.connector=nt.destroy())}})})))}function C(){this.points.forEach(S=>{(S.dataLabels||[]).forEach(v=>{var x;let g=v.dataLabelPosition;g?(g.sideOverflow&&(v.css({width:Math.max(v.getBBox().width-g.sideOverflow,0)+"px",textOverflow:(((x=v.options)==null?void 0:x.style)||{}).textOverflow||"ellipsis"}),v.shortened=!0),v.attr(g.attribs),v[v.moved?"animate":"attr"](g.posAttribs),v.moved=!0):v&&v.attr({y:-9999})}),delete S.distributeBox},this)}function E(S){let v=this.center,g=this.options,x=g.center,p=g.minSize||80,l=p,f=g.size!==null;return!f&&(x[0]!==null?l=Math.max(v[2]-Math.max(S[1],S[3]),p):(l=Math.max(v[2]-S[1]-S[3],p),v[0]+=(S[3]-S[1])/2),x[1]!==null?l=U(l,p,v[2]-Math.max(S[0],S[2])):(l=U(l,p,v[2]-S[0]-S[2]),v[1]+=(S[0]-S[2])/2),l(J.x+=q.x,J.y+=q.y,J),{x:0,y:0});return{x:K.x/et.length,y:K.y/et.length}},B.getDistanceBetweenPoints=function(et,K){return Math.sqrt(Math.pow(K.x-et.x,2)+Math.pow(K.y-et.y,2))},B.getAngleBetweenPoints=function(et,K){return Math.atan2(K.x-et.x,K.y-et.y)},B.pointInPolygon=function({x:et,y:K},J){let q=J.length,Z,tt,H=!1;for(Z=0,tt=q-1;ZK!=d>K&&et<(U-X)*(K-F)/(d-F)+X&&(H=!H)}return H},R}),y(m,"Extensions/OverlappingDataLabels.js",[m["Core/Geometry/GeometryUtilities.js"],m["Core/Utilities.js"]],function(R,B){let{pointInPolygon:et}=R,{addEvent:K,fireEvent:J,objectEach:q,pick:Z}=B;function tt(F){let U=F.length,d=(C,E)=>!(E.x>=C.x+C.width||E.x+E.width<=C.x||E.y>=C.y+C.height||E.y+E.height<=C.y),L=(C,E)=>{for(let S of C)if(et({x:S[0],y:S[1]},E))return!0;return!1},M,s,_,w,o,u=!1;for(let C=0;C(E.labelrank||0)-(C.labelrank||0));for(let C=0;C{q(M,s=>{s.label&&U.push(s.label)})});for(let L of F.series||[])if(L.visible&&((d=L.hasDataLabels)!=null&&d.call(L))){let M=s=>{for(let _ of s)_.visible&&(_.dataLabels||[]).forEach(w=>{var u,C;let o=w.options||{};w.labelrank=Z(o.labelrank,_.labelrank,(u=_.shapeArgs)==null?void 0:u.height),((C=o.allowOverlap)!=null?C:Number(o.distance)>0)?(w.oldOpacity=w.opacity,w.newOpacity=1,H(w,F)):U.push(w)})};M(L.nodes||[]),M(L.points)}this.hideOverlappingLabels(U)}return{compose:function(F){let U=F.prototype;U.hideOverlappingLabels||(U.hideOverlappingLabels=tt,K(F,"render",X))}}}),y(m,"Extensions/BorderRadius.js",[m["Core/Defaults.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B,et){let{defaultOptions:K}=R,{noop:J}=B,{addEvent:q,extend:Z,isObject:tt,merge:H,relativeLength:X}=et,F={radius:0,scope:"stack",where:void 0},U=J,d=J;function L(o,u,C,E,S={}){let v=U(o,u,C,E,S),{innerR:g=0,r:x=C,start:p=0,end:l=0}=S;if(S.open||!S.borderRadius)return v;let f=l-p,b=Math.sin(f/2),z=Math.max(Math.min(X(S.borderRadius||0,x-g),(x-g)/2,x*b/(1+b)),0),T=Math.min(z,f/Math.PI*2*g),k=v.length-1;for(;k--;)(function(Q,st,nt){let dt,mt,Et,Mt=Q[st],I=Q[st+1];if(I[0]==="Z"&&(I=Q[0]),(Mt[0]==="M"||Mt[0]==="L")&&I[0]==="A"?(dt=Mt,mt=I,Et=!0):Mt[0]==="A"&&(I[0]==="M"||I[0]==="L")&&(dt=I,mt=Mt),dt&&mt&&mt.params){let Y=mt[1],rt=mt[5],ot=mt.params,{start:D,end:P,cx:W,cy:lt}=ot,it=rt?Y-nt:Y+nt,vt=it?Math.asin(nt/it):0,pt=rt?vt:-vt,xt=Math.cos(vt)*it;Et?(ot.start=D+pt,dt[1]=W+xt*Math.cos(D),dt[2]=lt+xt*Math.sin(D),Q.splice(st+1,0,["A",nt,nt,0,0,1,W+Y*Math.cos(ot.start),lt+Y*Math.sin(ot.start)])):(ot.end=P-pt,mt[6]=W+Y*Math.cos(ot.end),mt[7]=lt+Y*Math.sin(ot.end),Q.splice(st+1,0,["A",nt,nt,0,0,1,W+xt*Math.cos(P),lt+xt*Math.sin(P)])),mt[4]=Math.abs(ot.end-ot.start)1?T:z);return v}function M(){var o,u;if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:C,yAxis:E}=this,S=C.stacking==="percent",v=(u=(o=K.plotOptions)==null?void 0:o[this.type])==null?void 0:u.borderRadius,g=s(C.borderRadius,tt(v)?v:{}),x=E.options.reversed;for(let p of this.points){let{shapeArgs:l}=p;if(p.shapeType==="roundedRect"&&l){let{width:f=0,height:b=0,y:z=0}=l,T=z,k=b;if(g.scope==="stack"&&p.stackTotal){let dt=E.translate(S?100:p.stackTotal,!1,!0,!1,!0),mt=E.translate(C.threshold||0,!1,!0,!1,!0),Et=this.crispCol(0,Math.min(dt,mt),0,Math.abs(dt-mt));T=Et.y,k=Et.height}let Q=(p.negative?-1:1)*(x?-1:1)==-1,st=g.where;!st&&this.is("waterfall")&&Math.abs((p.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(st="all"),st||(st="end");let nt=Math.min(X(g.radius,f),f/2,st==="all"?b/2:1/0)||0;st==="end"&&(Q&&(T-=nt),k+=nt),Z(l,{brBoxHeight:k,brBoxY:T,r:nt})}}}}function s(o,u){return tt(o)||(o={radius:o||0}),H(F,u,o)}function _(){let o=s(this.options.borderRadius);for(let u of this.points){let C=u.shapeArgs;C&&(C.borderRadius=X(o.radius,(C.r||0)-(C.innerR||0)))}}function w(o,u,C,E,S={}){let v=d(o,u,C,E,S),{r:g=0,brBoxHeight:x=E,brBoxY:p=u}=S,l=u-p,f=p+x-(u+E),b=l-g>-.1?0:g,z=f-g>-.1?0:g,T=Math.max(b&&l,0),k=Math.max(z&&f,0),Q=[o+b,u],st=[o+C-b,u],nt=[o+C,u+b],dt=[o+C,u+E-z],mt=[o+C-z,u+E],Et=[o+z,u+E],Mt=[o,u+E-z],I=[o,u+b],Y=(rt,ot)=>Math.sqrt(Math.pow(rt,2)-Math.pow(ot,2));if(T){let rt=Y(b,b-T);Q[0]-=rt,st[0]+=rt,nt[1]=I[1]=u+b-T}if(E=Z(L.minWidth,0)&&this.chartHeight>=Z(L.minHeight,0)}).call(this)&&d.push(U._id)}function F(U,d){let L=this.options.responsive,M=this.currentResponsive,s=[],_;!d&&L&&L.rules&&L.rules.forEach(u=>{u._id===void 0&&(u._id=tt()),this.matchResponsiveRule(u,s)},this);let w=q(...s.map(u=>J((L||{}).rules||[],C=>C._id===u)).map(u=>u&&u.chartOptions));w.isResponsiveOptions=!0,s=s.toString()||void 0;let o=M&&M.ruleIds;s===o||(M&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(M.undoOptions,U,!0),this.updatingResponsive=!1),s?((_=et(w,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:w,undoOptions:_},this.updatingResponsive||this.update(w,U,!0)):this.currentResponsive=void 0)}H.compose=function(U){let d=U.prototype;return d.matchResponsiveRule||K(d,{matchResponsiveRule:X,setResponsive:F}),U}}(B||(B={})),B}),y(m,"masters/highcharts.src.js",[m["Core/Globals.js"],m["Core/Utilities.js"],m["Core/Defaults.js"],m["Core/Animation/Fx.js"],m["Core/Animation/AnimationUtilities.js"],m["Core/Renderer/HTML/AST.js"],m["Core/Templating.js"],m["Core/Renderer/RendererRegistry.js"],m["Core/Renderer/RendererUtilities.js"],m["Core/Renderer/SVG/SVGElement.js"],m["Core/Renderer/SVG/SVGRenderer.js"],m["Core/Renderer/HTML/HTMLElement.js"],m["Core/Axis/Axis.js"],m["Core/Axis/DateTimeAxis.js"],m["Core/Axis/LogarithmicAxis.js"],m["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],m["Core/Axis/Tick.js"],m["Core/Tooltip.js"],m["Core/Series/Point.js"],m["Core/Pointer.js"],m["Core/Legend/Legend.js"],m["Core/Legend/LegendSymbol.js"],m["Core/Chart/Chart.js"],m["Extensions/ScrollablePlotArea.js"],m["Core/Axis/Stacking/StackingAxis.js"],m["Core/Axis/Stacking/StackItem.js"],m["Core/Series/Series.js"],m["Core/Series/SeriesRegistry.js"],m["Series/Column/ColumnDataLabel.js"],m["Series/Pie/PieDataLabel.js"],m["Core/Series/DataLabel.js"],m["Extensions/OverlappingDataLabels.js"],m["Extensions/BorderRadius.js"],m["Core/Responsive.js"],m["Core/Color/Color.js"],m["Core/Time.js"]],function(R,B,et,K,J,q,Z,tt,H,X,F,U,d,L,M,s,_,w,o,u,C,E,S,v,g,x,p,l,f,b,z,T,k,Q,st,nt){return R.AST=q,R.Axis=d,R.Chart=S,R.Color=st,R.DataLabel=z,R.Fx=K,R.HTMLElement=U,R.Legend=C,R.LegendSymbol=E,R.OverlappingDataLabels=R.OverlappingDataLabels||T,R.PlotLineOrBand=s,R.Point=o,R.Pointer=u,R.RendererRegistry=tt,R.Series=p,R.SeriesRegistry=l,R.StackItem=x,R.SVGElement=X,R.SVGRenderer=F,R.Templating=Z,R.Tick=_,R.Time=nt,R.Tooltip=w,R.animate=J.animate,R.animObject=J.animObject,R.chart=S.chart,R.color=st.parse,R.dateFormat=Z.dateFormat,R.defaultOptions=et.defaultOptions,R.distribute=H.distribute,R.format=Z.format,R.getDeferredAnimation=J.getDeferredAnimation,R.getOptions=et.getOptions,R.numberFormat=Z.numberFormat,R.seriesType=l.seriesType,R.setAnimation=J.setAnimation,R.setOptions=et.setOptions,R.stop=J.stop,R.time=et.defaultTime,R.timers=K.timers,k.compose(R.Series,R.SVGElement,R.SVGRenderer),f.compose(R.Series.types.column),z.compose(R.Series),L.compose(R.Axis),U.compose(R.SVGRenderer),C.compose(R.Chart),M.compose(R.Axis),T.compose(R.Chart),b.compose(R.Series.types.pie),s.compose(R.Chart,R.Axis),u.compose(R.Chart),Q.compose(R.Chart),v.compose(R.Axis,R.Chart,R.Series),g.compose(R.Axis,R.Chart,R.Series),w.compose(R.Pointer),B.extend(R,B),R}),m["masters/highcharts.src.js"]._modules=m,m["masters/highcharts.src.js"]})},4563:function(We,ue,ht){var j;(function(_t,m){We.exports?(m.default=m,We.exports=_t&&_t.document?m(_t):m):(j=function(){return m(_t)}.call(ue,ht,ue,We),j!==void 0&&(We.exports=j))})(typeof window!="undefined"?window:this,function(_t){"use strict";var m={};function y(R,B,et,K){!R.hasOwnProperty(B)&&(R[B]=K.apply(null,et),_t&&typeof CustomEvent=="function"&&_t.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:R[B]}})))}return y(m,"Core/Globals.js",[],function(){var R,B;return(B=R||(R={})).SVG_NS="http://www.w3.org/2000/svg",B.product="Highcharts",B.version="11.4.8",B.win=_t!==void 0?_t:{},B.doc=B.win.document,B.svg=B.doc&&B.doc.createElementNS&&!!B.doc.createElementNS(B.SVG_NS,"svg").createSVGRect,B.userAgent=B.win.navigator&&B.win.navigator.userAgent||"",B.isChrome=B.win.chrome,B.isFirefox=B.userAgent.indexOf("Firefox")!==-1,B.isMS=/(edge|msie|trident)/i.test(B.userAgent)&&!B.win.opera,B.isSafari=!B.isChrome&&B.userAgent.indexOf("Safari")!==-1,B.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(B.userAgent),B.isWebKit=B.userAgent.indexOf("AppleWebKit")!==-1,B.deg2rad=2*Math.PI/360,B.hasBidiBug=B.isFirefox&&4>parseInt(B.userAgent.split("Firefox/")[1],10),B.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],B.noop=function(){},B.supportsPassiveEvents=function(){let et=!1;if(!B.isMS){let K=Object.defineProperty({},"passive",{get:function(){et=!0}});B.win.addEventListener&&B.win.removeEventListener&&(B.win.addEventListener("testPassive",B.noop,K),B.win.removeEventListener("testPassive",B.noop,K))}return et}(),B.charts=[],B.composed=[],B.dateFormats={},B.seriesTypes={},B.symbolSizes={},B.chartCount=0,R}),y(m,"Core/Utilities.js",[m["Core/Globals.js"]],function(R){let B,{charts:et,doc:K,win:J}=R;function q(p,l,f,b){let z=l?"Highcharts error":"Highcharts warning";p===32&&(p=`${z}: Deprecated member`);let T=d(p),k=T?`${z} #${p}: www.highcharts.com/errors/${p}/`:p.toString();if(b!==void 0){let Q="";T&&(k+="?"),S(b,function(st,nt){Q+=` + - ${nt}: ${st}`,T&&(k+=encodeURI(nt)+"="+encodeURI(st))}),k+=Q}g(R,"displayError",{chart:f,code:p,message:k,params:b},function(){if(l)throw Error(k);J.console&&q.messages.indexOf(k)===-1&&console.warn(k)}),q.messages.push(k)}function Z(p,l){return parseInt(p,l||10)}function tt(p){return typeof p=="string"}function H(p){let l=Object.prototype.toString.call(p);return l==="[object Array]"||l==="[object Array Iterator]"}function X(p,l){return!!p&&typeof p=="object"&&(!l||!H(p))}function F(p){return X(p)&&typeof p.nodeType=="number"}function U(p){let l=p&&p.constructor;return!!(X(p,!0)&&!F(p)&&l&&l.name&&l.name!=="Object")}function d(p){return typeof p=="number"&&!isNaN(p)&&p<1/0&&p>-1/0}function L(p){return p!=null}function M(p,l,f){let b,z=tt(l)&&!L(f),T=(k,Q)=>{L(k)?p.setAttribute(Q,k):z?(b=p.getAttribute(Q))||Q!=="class"||(b=p.getAttribute(Q+"Name")):p.removeAttribute(Q)};return tt(l)?T(f,l):S(l,T),b}function s(p){return H(p)?p:[p]}function _(p,l){let f;for(f in p||(p={}),l)p[f]=l[f];return p}function w(){let p=arguments,l=p.length;for(let f=0;f1e14?p:parseFloat(p.toPrecision(l||14))}(q||(q={})).messages=[],Math.easeInOutSine=function(p){return-.5*(Math.cos(Math.PI*p)-1)};let E=Array.prototype.find?function(p,l){return p.find(l)}:function(p,l){let f,b=p.length;for(f=0;fQ.order-st.order),z.forEach(Q=>{Q.fn.call(p,f)===!1&&f.preventDefault()})}b&&!f.defaultPrevented&&b.call(p,f)}S({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(p,l){R[l]=function(f){return q(32,!1,void 0,{[`Highcharts.${l}`]:`use Array.${p}`}),Array.prototype[p].apply(f,[].slice.call(arguments,1))}});let x=function(){let p=Math.random().toString(36).substring(2,9)+"-",l=0;return function(){return"highcharts-"+(B?"":p)+l++}}();return J.jQuery&&(J.jQuery.fn.highcharts=function(){let p=[].slice.call(arguments);if(this[0])return p[0]?(new R[tt(p[0])?p.shift():"Chart"](this[0],p[0],p[1]),this):et[M(this[0],"data-highcharts-chart")]}),{addEvent:function(p,l,f,b={}){let z=typeof p=="function"&&p.prototype||p;Object.hasOwnProperty.call(z,"hcEvents")||(z.hcEvents={});let T=z.hcEvents;R.Point&&p instanceof R.Point&&p.series&&p.series.chart&&(p.series.chart.runTrackerClick=!0);let k=p.addEventListener;k&&k.call(p,l,f,!!R.supportsPassiveEvents&&{passive:b.passive===void 0?l.indexOf("touch")!==-1:b.passive,capture:!1}),T[l]||(T[l]=[]);let Q={fn:f,order:typeof b.order=="number"?b.order:1/0};return T[l].push(Q),T[l].sort((st,nt)=>st.order-nt.order),function(){v(p,l,f)}},arrayMax:function(p){let l=p.length,f=p[0];for(;l--;)p[l]>f&&(f=p[l]);return f},arrayMin:function(p){let l=p.length,f=p[0];for(;l--;)p[l]l?p{let b=l%2/2,z=f?-1:1;return(Math.round(p*z-b)+b)*z},css:o,defined:L,destroyObjectProperties:function(p,l,f){S(p,function(b,z){b!==l&&(b!=null&&b.destroy)&&b.destroy(),(b!=null&&b.destroy||!f)&&delete p[z]})},diffObjects:function(p,l,f,b){let z={};return function T(k,Q,st,nt){let dt=f?Q:k;S(k,function(mt,Et){if(!nt&&b&&b.indexOf(Et)>-1&&Q[Et]){mt=s(mt),st[Et]=[];for(let Mt=0;Mt{if(Q.length>1)for(T=b=Q.length-1;T>0;T--)(z=Q[T]-Q[T-1])<0&&!k?(l==null||l(),l=void 0):z&&(f===void 0||z=k-1&&(k=Math.floor(Q)),Math.max(0,k-(p(l,"padding-left",!0)||0)-(p(l,"padding-right",!0)||0))}if(f==="height")return Math.max(0,Math.min(l.offsetHeight,l.scrollHeight)-(p(l,"padding-top",!0)||0)-(p(l,"padding-bottom",!0)||0));let T=J.getComputedStyle(l,void 0);return T&&(z=T.getPropertyValue(f),w(b,f!=="opacity")&&(z=Z(z))),z},inArray:function(p,l,f){return q(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),l.indexOf(p,f)},insertItem:function(p,l){let f,b=p.options.index,z=l.length;for(f=p.options.isInternal?z:0;f=p))&&(z||!(Q<=(l[T]+(l[T+1]||l[T]))/2)));T++);return C(k*f,-Math.round(Math.log(.001)/Math.LN10))},objectEach:S,offset:function(p){let l=K.documentElement,f=p.parentElement||p.parentNode?p.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:f.top+(J.pageYOffset||l.scrollTop)-(l.clientTop||0),left:f.left+(J.pageXOffset||l.scrollLeft)-(l.clientLeft||0),width:f.width,height:f.height}},pad:function(p,l,f){return Array((l||2)+1-String(p).replace("-","").length).join(f||"0")+p},pick:w,pInt:Z,pushUnique:function(p,l){return 0>p.indexOf(l)&&!!p.push(l)},relativeLength:function(p,l,f){return/%$/.test(p)?l*parseFloat(p)/100+(f||0):parseFloat(p)},removeEvent:v,replaceNested:function(p,...l){let f,b;do for(b of(f=p,l))p=p.replace(b[0],b[1]);while(p!==f);return p},splat:s,stableSort:function(p,l){let f,b,z=p.length;for(b=0;b0?setTimeout(p,l,f):(p.call(0,f),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:x,useSerialIds:function(p){return B=w(p,B)},wrap:function(p,l,f){let b=p[l];p[l]=function(){let z=arguments,T=this;return f.apply(this,[function(){return b.apply(T,arguments.length?arguments:z)}].concat([].slice.call(arguments)))}}}}),y(m,"Core/Chart/ChartDefaults.js",[],function(){return{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,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),y(m,"Core/Color/Palettes.js",[],function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}}),y(m,"Core/Time.js",[m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B){let{win:et}=R,{defined:K,error:J,extend:q,isNumber:Z,isObject:tt,merge:H,objectEach:X,pad:F,pick:U,splat:d,timeUnits:L}=B,M=R.isSafari&&et.Intl&&et.Intl.DateTimeFormat.prototype.formatRange,s=R.isSafari&&et.Intl&&!et.Intl.DateTimeFormat.prototype.formatRange;class _{constructor(o){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=et.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(o)}get(o,u){if(this.variableTimezone||this.timezoneOffset){let C=u.getTime(),E=C-this.getTimezoneOffset(u);u.setTime(E);let S=u["getUTC"+o]();return u.setTime(C),S}return this.useUTC?u["getUTC"+o]():u["get"+o]()}set(o,u,C){if(this.variableTimezone||this.timezoneOffset){if(o==="Milliseconds"||o==="Seconds"||o==="Minutes"&&this.getTimezoneOffset(u)%36e5==0)return u["setUTC"+o](C);let E=this.getTimezoneOffset(u),S=u.getTime()-E;u.setTime(S),u["setUTC"+o](C);let v=this.getTimezoneOffset(u);return S=u.getTime()+v,u.setTime(S)}return this.useUTC||M&&o==="FullYear"?u["setUTC"+o](C):u["set"+o](C)}update(o={}){let u=U(o.useUTC,!0);this.options=o=H(!0,this.options,o),this.Date=o.Date||et.Date||Date,this.useUTC=u,this.timezoneOffset=u&&o.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=u&&!!(o.getTimezoneOffset||o.timezone)}makeTime(o,u,C,E,S,v){let g,x,p;return this.useUTC?(g=this.Date.UTC.apply(0,arguments),x=this.getTimezoneOffset(g),g+=x,x!==(p=this.getTimezoneOffset(g))?g+=p-x:x-36e5!==this.getTimezoneOffset(g-36e5)||s||(g-=36e5)):g=new this.Date(o,u,U(C,1),U(E,0),U(S,0),U(v,0)).getTime(),g}timezoneOffsetFunction(){let o=this,u=this.options,C=u.getTimezoneOffset;return this.useUTC?u.timezone?E=>{try{let S=`shortOffset,${u.timezone||""}`,[v,g,x,p,l=0]=(_.formatCache[S]=_.formatCache[S]||Intl.DateTimeFormat("en",{timeZone:u.timezone,timeZoneName:"shortOffset"})).format(E).split(/(GMT|:)/).map(Number),f=-(36e5*(x+l/60));if(Z(f))return f}catch(S){J(34)}return 0}:this.useUTC&&C?E=>6e4*C(E.valueOf()):()=>6e4*(o.timezoneOffset||0):E=>6e4*new Date(E.toString()).getTimezoneOffset()}dateFormat(o,u,C){if(!K(u)||isNaN(u))return R.defaultOptions.lang&&R.defaultOptions.lang.invalidDate||"";o=U(o,"%Y-%m-%d %H:%M:%S");let E=this,S=new this.Date(u),v=this.get("Hours",S),g=this.get("Day",S),x=this.get("Date",S),p=this.get("Month",S),l=this.get("FullYear",S),f=R.defaultOptions.lang,b=f&&f.weekdays,z=f&&f.shortWeekdays;return X(q({a:z?z[g]:b[g].substr(0,3),A:b[g],d:F(x),e:F(x,2," "),w:g,b:f.shortMonths[p],B:f.months[p],m:F(p+1),o:p+1,y:l.toString().substr(2,2),Y:l,H:F(v),k:v,I:F(v%12||12),l:v%12||12,M:F(this.get("Minutes",S)),p:v<12?"AM":"PM",P:v<12?"am":"pm",S:F(this.get("Seconds",S)),L:F(Math.floor(u%1e3),3)},R.dateFormats),function(T,k){for(;o.indexOf("%"+k)!==-1;)o=o.replace("%"+k,typeof T=="function"?T.call(E,u):T)}),C?o.substr(0,1).toUpperCase()+o.substr(1):o}resolveDTLFormat(o){return tt(o,!0)?o:{main:(o=d(o))[0],from:o[1],to:o[2]}}getTimeTicks(o,u,C,E){let S,v,g,x,p=this,l=p.Date,f=[],b={},z=new l(u),T=o.unitRange,k=o.count||1;if(E=U(E,1),K(u)){p.set("Milliseconds",z,T>=L.second?0:k*Math.floor(p.get("Milliseconds",z)/k)),T>=L.second&&p.set("Seconds",z,T>=L.minute?0:k*Math.floor(p.get("Seconds",z)/k)),T>=L.minute&&p.set("Minutes",z,T>=L.hour?0:k*Math.floor(p.get("Minutes",z)/k)),T>=L.hour&&p.set("Hours",z,T>=L.day?0:k*Math.floor(p.get("Hours",z)/k)),T>=L.day&&p.set("Date",z,T>=L.month?1:Math.max(1,k*Math.floor(p.get("Date",z)/k))),T>=L.month&&(p.set("Month",z,T>=L.year?0:k*Math.floor(p.get("Month",z)/k)),v=p.get("FullYear",z)),T>=L.year&&(v-=v%k,p.set("FullYear",z,v)),T===L.week&&(x=p.get("Day",z),p.set("Date",z,p.get("Date",z)-x+E+(x4*L.month||p.getTimezoneOffset(u)!==p.getTimezoneOffset(C));let dt=z.getTime();for(S=1;dt1?dt=p.makeTime(v,Q,st,nt+S*k):dt+=T*k,S++;f.push(dt),T<=L.hour&&f.length<1e4&&f.forEach(function(mt){mt%18e5==0&&p.dateFormat("%H%M%S%L",mt)==="000000000"&&(b[mt]="day")})}return f.info=q(o,{higherRanks:b,totalRange:T*k}),f}getDateFormat(o,u,C,E){let S=this.dateFormat("%m-%d %H:%M:%S.%L",u),v="01-01 00:00:00.000",g={millisecond:15,second:12,minute:9,hour:6,day:3},x="millisecond",p=x;for(x in L){if(o===L.week&&+this.dateFormat("%w",u)===C&&S.substr(6)===v.substr(6)){x="week";break}if(L[x]>o){x=p;break}if(g[x]&&S.substr(g[x])!==v.substr(g[x]))break;x!=="week"&&(p=x)}return this.resolveDTLFormat(E[x]).main}}return _.formatCache={},_}),y(m,"Core/Defaults.js",[m["Core/Chart/ChartDefaults.js"],m["Core/Globals.js"],m["Core/Color/Palettes.js"],m["Core/Time.js"],m["Core/Utilities.js"]],function(R,B,et,K,J){let{isTouchDevice:q}=B,{fireEvent:Z,merge:tt}=J,H={colors:et.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:R,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",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:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:F=>Math.sqrt(1-Math.pow(F-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:q?25:10,headerFormat:'{point.key}
    ',pointFormat:'\u25CF {series.name}: {point.y}
    ',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};H.chart.styledMode=!1;let X=new K(H.time);return{defaultOptions:H,defaultTime:X,getOptions:function(){return H},setOptions:function(F){return Z(B,"setOptions",{options:F}),tt(!0,H,F),(F.time||F.global)&&(B.time?B.time.update(tt(H.global,H.time,F.global,F.time)):B.time=X),H}}}),y(m,"Core/Color/Color.js",[m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B){let{isNumber:et,merge:K,pInt:J}=B;class q{static parse(tt){return tt?new q(tt):q.None}constructor(tt){let H,X,F,U;this.rgba=[NaN,NaN,NaN,NaN],this.input=tt;let d=R.Color;if(d&&d!==q)return new d(tt);if(typeof tt=="object"&&tt.stops!==void 0)this.stops=tt.stops.map(L=>new q(L[1]));else if(typeof tt=="string"){if(this.input=tt=q.names[tt.toLowerCase()]||tt,tt.charAt(0)==="#"){let L=tt.length,M=parseInt(tt.substr(1),16);L===7?X=[(16711680&M)>>16,(65280&M)>>8,255&M,1]:L===4&&(X=[(3840&M)>>4|(3840&M)>>8,(240&M)>>4|240&M,(15&M)<<4|15&M,1])}if(!X)for(F=q.parsers.length;F--&&!X;)(H=(U=q.parsers[F]).regex.exec(tt))&&(X=U.parse(H))}X&&(this.rgba=X)}get(tt){let H=this.input,X=this.rgba;if(typeof H=="object"&&this.stops!==void 0){let F=K(H);return F.stops=[].slice.call(F.stops),this.stops.forEach((U,d)=>{F.stops[d]=[F.stops[d][0],U.get(tt)]}),F}return X&&et(X[0])?tt!=="rgb"&&(tt||X[3]!==1)?tt==="a"?`${X[3]}`:"rgba("+X.join(",")+")":"rgb("+X[0]+","+X[1]+","+X[2]+")":H}brighten(tt){let H=this.rgba;if(this.stops)this.stops.forEach(function(X){X.brighten(tt)});else if(et(tt)&&tt!==0)for(let X=0;X<3;X++)H[X]+=J(255*tt),H[X]<0&&(H[X]=0),H[X]>255&&(H[X]=255);return this}setOpacity(tt){return this.rgba[3]=tt,this}tweenTo(tt,H){let X=this.rgba,F=tt.rgba;if(!et(X[0])||!et(F[0]))return tt.input||"none";let U=F[3]!==1||X[3]!==1;return(U?"rgba(":"rgb(")+Math.round(F[0]+(X[0]-F[0])*(1-H))+","+Math.round(F[1]+(X[1]-F[1])*(1-H))+","+Math.round(F[2]+(X[2]-F[2])*(1-H))+(U?","+(F[3]+(X[3]-F[3])*(1-H)):"")+")"}}return q.names={white:"#ffffff",black:"#000000"},q.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(Z){return[J(Z[1]),J(Z[2]),J(Z[3]),parseFloat(Z[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(Z){return[J(Z[1]),J(Z[2]),J(Z[3]),1]}}],q.None=new q(""),q}),y(m,"Core/Animation/Fx.js",[m["Core/Color/Color.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B,et){let{parse:K}=R,{win:J}=B,{isNumber:q,objectEach:Z}=et;class tt{constructor(X,F,U){this.pos=NaN,this.options=F,this.elem=X,this.prop=U}dSetter(){let X=this.paths,F=X&&X[0],U=X&&X[1],d=this.now||0,L=[];if(d!==1&&F&&U)if(F.length===U.length&&d<1)for(let M=0;M=_+this.startTime?(this.now=this.end,this.pos=1,this.update(),w[this.prop]=!0,U=!0,Z(w,function(o){o!==!0&&(U=!1)}),U&&s&&s.call(M),F=!1):(this.pos=L.easing((d-this.startTime)/_),this.now=this.start+(this.end-this.start)*this.pos,this.update(),F=!0),F}initPath(X,F,U){let d=X.startX,L=X.endX,M=U.slice(),s=X.isArea,_=s?2:1,w=F&&U.length>F.length&&U.hasStackedCliffs,o,u,C,E,S=F&&F.slice();if(!S||w)return[M,M];function v(x,p){for(;x.length{let C=F(u.options.animation);w=Z(L)&&et(L.defer)?s.defer:Math.max(w,C.duration+C.defer),o=Math.min(s.duration,C.duration)}),d.renderer.forExport&&(w=0),{defer:Math.max(0,w-o),duration:Math.min(w,o)}},setAnimation:function(d,L){L.renderer.globalAnimation=X(d,L.options.chart.animation,!0)},stop:U}}),y(m,"Core/Renderer/HTML/AST.js",[m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B){let{SVG_NS:et,win:K}=R,{attr:J,createElement:q,css:Z,error:tt,isFunction:H,isString:X,objectEach:F,splat:U}=B,{trustedTypes:d}=K,L=d&&H(d.createPolicy)&&d.createPolicy("highcharts",{createHTML:w=>w}),M=L?L.createHTML(""):"",s=function(){try{return!!new DOMParser().parseFromString(M,"text/html")}catch(w){return!1}}();class _{static filterUserAttributes(o){return F(o,(u,C)=>{let E=!0;_.allowedAttributes.indexOf(C)===-1&&(E=!1),["background","dynsrc","href","lowsrc","src"].indexOf(C)!==-1&&(E=X(u)&&_.allowedReferences.some(S=>u.indexOf(S)===0)),E||(tt(33,!1,void 0,{"Invalid attribute in config":`${C}`}),delete o[C]),X(u)&&o[C]&&(o[C]=u.replace(/{let E=C.split(":").map(v=>v.trim()),S=E.shift();return S&&E.length&&(u[S.replace(/-([a-z])/g,v=>v[1].toUpperCase())]=E.join(":")),u},{})}static setElementHTML(o,u){o.innerHTML=_.emptyHTML,u&&new _(u).addToDOM(o)}constructor(o){this.nodes=typeof o=="string"?this.parseMarkup(o):o}addToDOM(o){return function u(C,E){let S;return U(C).forEach(function(v){let g,x=v.tagName,p=v.textContent?R.doc.createTextNode(v.textContent):void 0,l=_.bypassHTMLFiltering;if(x)if(x==="#text")g=p;else if(_.allowedTags.indexOf(x)!==-1||l){let f=x==="svg"?et:E.namespaceURI||et,b=R.doc.createElementNS(f,x),z=v.attributes||{};F(v,function(T,k){k!=="tagName"&&k!=="attributes"&&k!=="children"&&k!=="style"&&k!=="textContent"&&(z[k]=T)}),J(b,l?z:_.filterUserAttributes(z)),v.style&&Z(b,v.style),p&&b.appendChild(p),u(v.children||[],b),g=b}else tt(33,!1,void 0,{"Invalid tagName in config":x});g&&E.appendChild(g),S=g}),S}(this.nodes,o)}parseMarkup(o){let u,C=[];if(o=o.trim().replace(/ style=(["'])/g," data-style=$1"),s)u=new DOMParser().parseFromString(L?L.createHTML(o):o,"text/html");else{let S=q("div");S.innerHTML=o,u={body:S}}let E=(S,v)=>{let g=S.nodeName.toLowerCase(),x={tagName:g};g==="#text"&&(x.textContent=S.textContent||"");let p=S.attributes;if(p){let l={};[].forEach.call(p,f=>{f.name==="data-style"?x.style=_.parseStyle(f.value):l[f.name]=f.value}),x.attributes=l}if(S.childNodes.length){let l=[];[].forEach.call(S.childNodes,f=>{E(f,l)}),l.length&&(x.children=l)}v.push(x)};return[].forEach.call(u.body.childNodes,S=>E(S,C)),C}}return _.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","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","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","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],_.allowedReferences=["https://","http://","mailto:","/","../","./","#"],_.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","feOffset","feMerge","feMergeNode","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","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],_.emptyHTML=M,_.bypassHTMLFiltering=!1,_}),y(m,"Core/Templating.js",[m["Core/Defaults.js"],m["Core/Utilities.js"]],function(R,B){let{defaultOptions:et,defaultTime:K}=R,{extend:J,getNestedProperty:q,isArray:Z,isNumber:tt,isObject:H,pick:X,pInt:F}=B,U={add:(M,s)=>M+s,divide:(M,s)=>s!==0?M/s:"",eq:(M,s)=>M==s,each:function(M){let s=arguments[arguments.length-1];return!!Z(M)&&M.map((_,w)=>d(s.body,J(H(_)?_:{"@this":_},{"@index":w,"@first":w===0,"@last":w===M.length-1}))).join("")},ge:(M,s)=>M>=s,gt:(M,s)=>M>s,if:M=>!!M,le:(M,s)=>M<=s,lt:(M,s)=>MM*s,ne:(M,s)=>M!=s,subtract:(M,s)=>M-s,unless:M=>!M};function d(M="",s,_){let w=/\{([\w\:\.\,;\-\/<>%@"'’= #\(\)]+)\}/g,o=/\(([\w\:\.\,;\-\/<>%@"'= ]+)\)/g,u=[],C=/f$/,E=/\.(\d)/,S=et.lang,v=_&&_.time||K,g=_&&_.numberFormatter||L,x=(z="")=>{let T;return z==="true"||z!=="false"&&((T=Number(z)).toString()===z?T:q(z,s))},p,l,f=0,b;for(;(p=w.exec(M))!==null;){let z=o.exec(p[1]);z&&(p=z,b=!0),l&&l.isBlock||(l={ctx:s,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 T=p[1].split(" ")[0].replace("#","");U[T]&&(l.isBlock&&T===l.fn&&f++,l.fn||(l.fn=T));let k=p[1]==="else";if(l.isBlock&&l.fn&&(p[1]===`/${l.fn}`||k))if(f)!k&&f--;else{let Q=l.startInner,st=M.substr(Q,p.index-Q);l.body===void 0?(l.body=st,l.startInner=p.index+p[0].length):l.elseBody=st,l.find+=st+p[0],k||(u.push(l),l=void 0)}else l.isBlock||u.push(l);if(z&&!(l!=null&&l.isBlock))break}return u.forEach(z=>{let T,k,{body:Q,elseBody:st,expression:nt,fn:dt}=z;if(dt){let mt=[z],Et=nt.split(" ");for(k=U[dt].length;k--;)mt.unshift(x(Et[k+1]));T=U[dt].apply(s,mt),z.isBlock&&typeof T=="boolean"&&(T=d(T?Q:st,s,_))}else{let mt=nt.split(":");if(T=x(mt.shift()||""),mt.length&&typeof T=="number"){let Et=mt.join(":");if(C.test(Et)){let Mt=parseInt((Et.match(E)||["","-1"])[1],10);T!==null&&(T=g(T,Mt,S.decimalPoint,Et.indexOf(",")>-1?S.thousandsSep:""))}else T=v.dateFormat(Et,T)}}M=M.replace(z.find,X(T,""))}),b?d(M,s,_):M}function L(M,s,_,w){let o,u;M=+M||0,s=+s;let C=et.lang,E=(M.toString().split(".")[1]||"").split("e")[0].length,S=M.toString().split("e"),v=s;s===-1?s=Math.min(E,20):tt(s)?s&&S[1]&&S[1]<0&&((u=s+ +S[1])>=0?(S[0]=(+S[0]).toExponential(u).split("e")[0],s=u):(S[0]=S[0].split(".")[0]||0,M=s<20?(S[0]*Math.pow(10,S[1])).toFixed(s):0,S[1]=0)):s=2;let g=(Math.abs(S[1]?S[0]:M)+Math.pow(10,-Math.max(s,E)-1)).toFixed(s),x=String(F(g)),p=x.length>3?x.length%3:0;return _=X(_,C.decimalPoint),w=X(w,C.thousandsSep),o=(M<0?"-":"")+(p?x.substr(0,p)+w:""),0>+S[1]&&!v?o="0":o+=x.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+w),s?o+=_+g.slice(-s):+o==0&&(o="0"),S[1]&&+o!=0&&(o+="e"+S[1]),o}return{dateFormat:function(M,s,_){return K.dateFormat(M,s,_)},format:d,helpers:U,numberFormat:L}}),y(m,"Core/Renderer/RendererRegistry.js",[m["Core/Globals.js"]],function(R){var B,et;let K;return(et=B||(B={})).rendererTypes={},et.getRendererType=function(J=K){return et.rendererTypes[J]||et.rendererTypes[K]},et.registerRendererType=function(J,q,Z){et.rendererTypes[J]=q,(!K||Z)&&(K=J,R.Renderer=q)},B}),y(m,"Core/Renderer/RendererUtilities.js",[m["Core/Utilities.js"]],function(R){var B;let{clamp:et,pick:K,pushUnique:J,stableSort:q}=R;return(B||(B={})).distribute=function Z(tt,H,X){let F=tt,U=F.reducedLen||H,d=(x,p)=>x.target-p.target,L=[],M=tt.length,s=[],_=L.push,w,o,u,C=!0,E,S,v=0,g;for(w=M;w--;)v+=tt[w].size;if(v>U){for(q(tt,(x,p)=>(p.rank||0)-(x.rank||0)),u=(g=tt[0].rank===tt[tt.length-1].rank)?M/2:-1,o=g?u:M-1;u&&v>U;)E=tt[w=Math.floor(o)],J(s,w)&&(v-=E.size),o+=u,g&&o>=tt.length&&(u/=2,o=u);s.sort((x,p)=>p-x).forEach(x=>_.apply(L,tt.splice(x,1)))}for(q(tt,d),tt=tt.map(x=>({size:x.size,targets:[x.target],align:K(x.align,.5)}));C;){for(w=tt.length;w--;)E=tt[w],S=(Math.min.apply(0,E.targets)+Math.max.apply(0,E.targets))/2,E.pos=et(S-E.size*E.align,0,H-E.size);for(w=tt.length,C=!1;w--;)w>0&&tt[w-1].pos+tt[w-1].size>tt[w].pos&&(tt[w-1].size+=tt[w].size,tt[w-1].targets=tt[w-1].targets.concat(tt[w].targets),tt[w-1].align=.5,tt[w-1].pos+tt[w-1].size>H&&(tt[w-1].pos=H-tt[w-1].size),tt.splice(w,1),C=!0)}return _.apply(F,L),w=0,tt.some(x=>{let p=0;return(x.targets||[]).some(()=>(F[w].pos=x.pos+p,X!==void 0&&Math.abs(F[w].pos-F[w].target)>X?(F.slice(0,w+1).forEach(l=>delete l.pos),F.reducedLen=(F.reducedLen||H)-.1*H,F.reducedLen>.1*H&&Z(F,H,X),!0):(p+=F[w].size,w++,!1)))}),q(F,d),F},B}),y(m,"Core/Renderer/SVG/SVGElement.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Color/Color.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B,et,K){let{animate:J,animObject:q,stop:Z}=R,{deg2rad:tt,doc:H,svg:X,SVG_NS:F,win:U}=et,{addEvent:d,attr:L,createElement:M,crisp:s,css:_,defined:w,erase:o,extend:u,fireEvent:C,isArray:E,isFunction:S,isObject:v,isString:g,merge:x,objectEach:p,pick:l,pInt:f,pushUnique:b,replaceNested:z,syncTimeout:T,uniqueKey:k}=K;class Q{_defaultGetter(nt){let dt=l(this[nt+"Value"],this[nt],this.element?this.element.getAttribute(nt):null,0);return/^-?[\d\.]+$/.test(dt)&&(dt=parseFloat(dt)),dt}_defaultSetter(nt,dt,mt){mt.setAttribute(dt,nt)}add(nt){let dt,mt=this.renderer,Et=this.element;return nt&&(this.parentGroup=nt),this.textStr!==void 0&&this.element.nodeName==="text"&&mt.buildText(this),this.added=!0,(!nt||nt.handleZ||this.zIndex)&&(dt=this.zIndexSetter()),dt||(nt?nt.element:mt.box).appendChild(Et),this.onAdd&&this.onAdd(),this}addClass(nt,dt){let mt=dt?"":this.attr("class")||"";return(nt=(nt||"").split(/ /g).reduce(function(Et,Mt){return mt.indexOf(Mt)===-1&&Et.push(Mt),Et},mt?[mt]:[]).join(" "))!==mt&&this.attr("class",nt),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(nt,dt,mt,Et=!0){let Mt,I,Y,rt,ot={},D=this.renderer,P=D.alignedObjects,W=!!nt;nt?(this.alignOptions=nt,this.alignByTranslate=dt,this.alignTo=mt):(nt=this.alignOptions||{},dt=this.alignByTranslate,mt=this.alignTo);let lt=!mt||g(mt)?mt||"renderer":void 0;lt&&(W&&b(P,this),mt=void 0);let it=l(mt,D[lt],D),vt=nt.align,pt=nt.verticalAlign;return Mt=(it.x||0)+(nt.x||0),I=(it.y||0)+(nt.y||0),vt==="right"?Y=1:vt==="center"&&(Y=2),Y&&(Mt+=((it.width||0)-(nt.width||0))/Y),ot[dt?"translateX":"x"]=Math.round(Mt),pt==="bottom"?rt=1:pt==="middle"&&(rt=2),rt&&(I+=((it.height||0)-(nt.height||0))/rt),ot[dt?"translateY":"y"]=Math.round(I),Et&&(this[this.placed?"animate":"attr"](ot),this.placed=!0),this.alignAttr=ot,this}alignSetter(nt){let dt={left:"start",center:"middle",right:"end"};dt[nt]&&(this.alignValue=nt,this.element.setAttribute("text-anchor",dt[nt]))}animate(nt,dt,mt){let Et=q(l(dt,this.renderer.globalAnimation,!0)),Mt=Et.defer;return H.hidden&&(Et.duration=0),Et.duration!==0?(mt&&(Et.complete=mt),T(()=>{this.element&&J(this,nt,Et)},Mt)):(this.attr(nt,void 0,mt||Et.complete),p(nt,function(I,Y){Et.step&&Et.step.call(this,I,{prop:Y,pos:1,elem:this})},this)),this}applyTextOutline(nt){let dt=this.element;nt.indexOf("contrast")!==-1&&(nt=nt.replace(/contrast/g,this.renderer.getContrast(dt.style.fill)));let mt=nt.split(" "),Et=mt[mt.length-1],Mt=mt[0];if(Mt&&Mt!=="none"&&et.svg){this.fakeTS=!0,Mt=Mt.replace(/(^[\d\.]+)(.*?)$/g,function(D,P,W){return 2*Number(P)+W}),this.removeTextOutline();let I=H.createElementNS(F,"tspan");L(I,{class:"highcharts-text-outline",fill:Et,stroke:Et,"stroke-width":Mt,"stroke-linejoin":"round"});let Y=dt.querySelector("textPath")||dt;[].forEach.call(Y.childNodes,D=>{let P=D.cloneNode(!0);P.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(W=>P.removeAttribute(W)),I.appendChild(P)});let rt=0;[].forEach.call(Y.querySelectorAll("text tspan"),D=>{rt+=Number(D.getAttribute("dy"))});let ot=H.createElementNS(F,"tspan");ot.textContent="\u200B",L(ot,{x:Number(dt.getAttribute("x")),dy:-rt}),I.appendChild(ot),Y.insertBefore(I,Y.firstChild)}}attr(nt,dt,mt,Et){let{element:Mt}=this,I=Q.symbolCustomAttribs,Y,rt,ot=this,D;return typeof nt=="string"&&dt!==void 0&&(Y=nt,(nt={})[Y]=dt),typeof nt=="string"?ot=(this[nt+"Getter"]||this._defaultGetter).call(this,nt,Mt):(p(nt,function(P,W){D=!1,Et||Z(this,W),this.symbolName&&I.indexOf(W)!==-1&&(rt||(this.symbolAttr(nt),rt=!0),D=!0),this.rotation&&(W==="x"||W==="y")&&(this.doTransform=!0),D||(this[W+"Setter"]||this._defaultSetter).call(this,P,W,Mt)},this),this.afterSetters()),mt&&mt.call(this),ot}clip(nt){if(nt&&!nt.clipPath){let dt=k()+"-",mt=this.renderer.createElement("clipPath").attr({id:dt}).add(this.renderer.defs);u(nt,{clipPath:mt,id:dt,count:0}),nt.add(mt)}return this.attr("clip-path",nt?`url(${this.renderer.url}#${nt.id})`:"none")}crisp(nt,dt){dt=Math.round(dt||nt.strokeWidth||0);let mt=nt.x||this.x||0,Et=nt.y||this.y||0,Mt=(nt.width||this.width||0)+mt,I=(nt.height||this.height||0)+Et,Y=s(mt,dt),rt=s(Et,dt);return u(nt,{x:Y,y:rt,width:s(Mt,dt)-Y,height:s(I,dt)-rt}),w(nt.strokeWidth)&&(nt.strokeWidth=dt),nt}complexColor(nt,dt,mt){let Et=this.renderer,Mt,I,Y,rt,ot,D,P,W,lt,it,vt=[],pt;C(this.renderer,"complexColor",{args:arguments},function(){if(nt.radialGradient?I="radialGradient":nt.linearGradient&&(I="linearGradient"),I){if(Y=nt[I],ot=Et.gradients,D=nt.stops,lt=mt.radialReference,E(Y)&&(nt[I]=Y={x1:Y[0],y1:Y[1],x2:Y[2],y2:Y[3],gradientUnits:"userSpaceOnUse"}),I==="radialGradient"&<&&!w(Y.gradientUnits)&&(rt=Y,Y=x(Y,Et.getRadialAttr(lt,rt),{gradientUnits:"userSpaceOnUse"})),p(Y,function(xt,Ct){Ct!=="id"&&vt.push(Ct,xt)}),p(D,function(xt){vt.push(xt)}),ot[vt=vt.join(",")])it=ot[vt].attr("id");else{Y.id=it=k();let xt=ot[vt]=Et.createElement(I).attr(Y).add(Et.defs);xt.radAttr=rt,xt.stops=[],D.forEach(function(Ct){Ct[1].indexOf("rgba")===0?(P=(Mt=B.parse(Ct[1])).get("rgb"),W=Mt.get("a")):(P=Ct[1],W=1);let Tt=Et.createElement("stop").attr({offset:Ct[0],"stop-color":P,"stop-opacity":W}).add(xt);xt.stops.push(Tt)})}pt="url("+Et.url+"#"+it+")",mt.setAttribute(dt,pt),mt.gradient=vt,nt.toString=function(){return pt}}})}css(nt){let dt=this.styles,mt={},Et=this.element,Mt,I=!dt;if(dt&&p(nt,function(Y,rt){dt&&dt[rt]!==Y&&(mt[rt]=Y,I=!0)}),I){dt&&(nt=u(dt,mt)),nt.width===null||nt.width==="auto"?delete this.textWidth:Et.nodeName.toLowerCase()==="text"&&nt.width&&(Mt=this.textWidth=f(nt.width)),u(this.styles,nt),Mt&&!X&&this.renderer.forExport&&delete nt.width;let Y=x(nt);Et.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(rt=>Y&&delete Y[rt]),Y.color&&(Y.fill=Y.color)),_(Et,Y)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),nt.textOutline&&this.applyTextOutline(nt.textOutline)),this}dashstyleSetter(nt){let dt,mt=this["stroke-width"];if(mt==="inherit"&&(mt=1),nt=nt&&nt.toLowerCase()){let Et=nt.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(dt=Et.length;dt--;)Et[dt]=""+f(Et[dt])*l(mt,NaN);nt=Et.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",nt)}}destroy(){var rt;let nt=this,dt=nt.element||{},mt=nt.renderer,Et=dt.ownerSVGElement,Mt=dt.nodeName==="SPAN"&&nt.parentGroup||void 0,I,Y;if(dt.onclick=dt.onmouseout=dt.onmouseover=dt.onmousemove=dt.point=null,Z(nt),nt.clipPath&&Et){let ot=nt.clipPath;[].forEach.call(Et.querySelectorAll("[clip-path],[CLIP-PATH]"),function(D){D.getAttribute("clip-path").indexOf(ot.element.id)>-1&&D.removeAttribute("clip-path")}),nt.clipPath=ot.destroy()}if(nt.connector=(rt=nt.connector)==null?void 0:rt.destroy(),nt.stops){for(Y=0;YMt&&Mt.join?(I?Et+" ":"")+Mt.join(" "):(Mt||"").toString(),"")),/(NaN| {2}|^$)/.test(nt)&&(nt="M 0 0"),this[dt]!==nt&&(mt.setAttribute(dt,nt),this[dt]=nt)}fillSetter(nt,dt,mt){typeof nt=="string"?mt.setAttribute(dt,nt):nt&&this.complexColor(nt,dt,mt)}hrefSetter(nt,dt,mt){mt.setAttributeNS("http://www.w3.org/1999/xlink",dt,nt)}getBBox(nt,dt){let mt,Et,Mt,I,{alignValue:Y,element:rt,renderer:ot,styles:D,textStr:P}=this,{cache:W,cacheKeys:lt}=ot,it=rt.namespaceURI===this.SVG_NS,vt=l(dt,this.rotation,0),pt=ot.styledMode?rt&&Q.prototype.getStyle.call(rt,"font-size"):D.fontSize;if(w(P)&&((I=P.toString()).indexOf("<")===-1&&(I=I.replace(/\d/g,"0")),I+=["",ot.rootFontSize,pt,vt,this.textWidth,Y,D.textOverflow,D.fontWeight].join(",")),I&&!nt&&(mt=W[I]),!mt||mt.polygon){if(it||ot.forExport){try{Mt=this.fakeTS&&function(Ct){let Tt=rt.querySelector(".highcharts-text-outline");Tt&&_(Tt,{display:Ct})},S(Mt)&&Mt("none"),mt=rt.getBBox?u({},rt.getBBox()):{width:rt.offsetWidth,height:rt.offsetHeight,x:0,y:0},S(Mt)&&Mt("")}catch(Ct){}(!mt||mt.width<0)&&(mt={x:0,y:0,width:0,height:0})}else mt=this.htmlGetBBox();Et=mt.height,it&&(mt.height=Et={"11px,17":14,"13px,20":16}[`${pt||""},${Math.round(Et)}`]||Et),vt&&(mt=this.getRotatedBox(mt,vt));let xt={bBox:mt};C(this,"afterGetBBox",xt),mt=xt.bBox}if(I&&(P===""||mt.height>0)){for(;lt.length>250;)delete W[lt.shift()];W[I]||lt.push(I),W[I]=mt}return mt}getRotatedBox(nt,dt){let{x:mt,y:Et,width:Mt,height:I}=nt,{alignValue:Y,translateY:rt,rotationOriginX:ot=0,rotationOriginY:D=0}=this,P={right:1,center:.5}[Y||0]||0,W=Number(this.element.getAttribute("y")||0)-(rt?0:Et),lt=dt*tt,it=(dt-90)*tt,vt=Math.cos(lt),pt=Math.sin(lt),xt=Mt*vt,Ct=Mt*pt,Tt=Math.cos(it),Nt=Math.sin(it),[[gt,wt],[Rt,jt]]=[ot,D].map(te=>[te-te*vt,te*pt]),Zt=mt+P*(Mt-xt)+gt+jt+W*Tt,ne=Zt+xt,Wt=ne-I*Tt,le=Wt-xt,fe=Et+W-P*Ct-wt+Rt+W*Nt,xe=fe+Ct,be=xe-I*Nt,Ye=be-Ct,tn=Math.min(Zt,ne,Wt,le),on=Math.min(fe,xe,be,Ye),Jt=Math.max(Zt,ne,Wt,le)-tn,Kt=Math.max(fe,xe,be,Ye)-on;return{x:tn,y:on,width:Jt,height:Kt,polygon:[[Zt,fe],[ne,xe],[Wt,be],[le,Ye]]}}getStyle(nt){return U.getComputedStyle(this.element||this,"").getPropertyValue(nt)}hasClass(nt){return(""+this.attr("class")).split(" ").indexOf(nt)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(nt,dt){this.onEvents={},this.opacity=1,this.SVG_NS=F,this.element=dt==="span"||dt==="body"?M(dt):H.createElementNS(this.SVG_NS,dt),this.renderer=nt,this.styles={},C(this,"afterInit")}on(nt,dt){let{onEvents:mt}=this;return mt[nt]&&mt[nt](),mt[nt]=d(this.element,nt,dt),this}opacitySetter(nt,dt,mt){let Et=Number(Number(nt).toFixed(3));this.opacity=Et,mt.setAttribute(dt,Et)}reAlign(){var nt;(nt=this.alignOptions)!=null&&nt.width&&this.alignOptions.align!=="left"&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(nt){return this.attr("class",(""+this.attr("class")).replace(g(nt)?RegExp(`(^| )${nt}( |$)`):nt," ").replace(/ +/g," ").trim())}removeTextOutline(){let nt=this.element.querySelector("tspan.highcharts-text-outline");nt&&this.safeRemoveChild(nt)}safeRemoveChild(nt){let dt=nt.parentNode;dt&&dt.removeChild(nt)}setRadialReference(nt){let dt=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=nt,dt&&dt.radAttr&&dt.animate(this.renderer.getRadialAttr(nt,dt.radAttr)),this}shadow(nt){var Mt;let{renderer:dt}=this,mt=x(((Mt=this.parentGroup)==null?void 0:Mt.rotation)===90?{offsetX:-1,offsetY:-1}:{},v(nt)?nt:{}),Et=dt.shadowDefinition(mt);return this.attr({filter:nt?`url(${dt.url}#${Et})`:"none"})}show(nt=!0){return this.attr({visibility:nt?"inherit":"visible"})}"stroke-widthSetter"(nt,dt,mt){this[dt]=nt,mt.setAttribute(dt,nt)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let nt=this.getStyle("stroke-width"),dt=0,mt;return/px$/.test(nt)?dt=f(nt):nt!==""&&(L(mt=H.createElementNS(F,"rect"),{width:nt,"stroke-width":0}),this.element.parentNode.appendChild(mt),dt=mt.getBBox().width,mt.parentNode.removeChild(mt)),dt}symbolAttr(nt){let dt=this;Q.symbolCustomAttribs.forEach(function(mt){dt[mt]=l(nt[mt],dt[mt])}),dt.attr({d:dt.renderer.symbols[dt.symbolName](dt.x,dt.y,dt.width,dt.height,dt)})}textSetter(nt){nt!==this.textStr&&(delete this.textPxLength,this.textStr=nt,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(nt){let dt=this.element,mt=dt.getElementsByTagName("title")[0]||H.createElementNS(this.SVG_NS,"title");dt.insertBefore?dt.insertBefore(mt,dt.firstChild):dt.appendChild(mt),mt.textContent=z(l(nt,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){let nt=this.element;return nt.parentNode.appendChild(nt),this}translate(nt,dt){return this.attr({translateX:nt,translateY:dt})}updateTransform(nt="transform"){var W;let{element:dt,matrix:mt,rotation:Et=0,rotationOriginX:Mt,rotationOriginY:I,scaleX:Y,scaleY:rt,translateX:ot=0,translateY:D=0}=this,P=["translate("+ot+","+D+")"];w(mt)&&P.push("matrix("+mt.join(",")+")"),Et&&(P.push("rotate("+Et+" "+l(Mt,dt.getAttribute("x"),0)+" "+l(I,dt.getAttribute("y")||0)+")"),((W=this.text)==null?void 0:W.element.tagName)==="SPAN"&&this.text.attr({rotation:Et,rotationOriginX:(Mt||0)-this.padding,rotationOriginY:(I||0)-this.padding})),(w(Y)||w(rt))&&P.push("scale("+l(Y,1)+" "+l(rt,1)+")"),P.length&&!(this.text||this).textPath&&dt.setAttribute(nt,P.join(" "))}visibilitySetter(nt,dt,mt){nt==="inherit"?mt.removeAttribute(dt):this[dt]!==nt&&mt.setAttribute(dt,nt),this[dt]=nt}xGetter(nt){return this.element.nodeName==="circle"&&(nt==="x"?nt="cx":nt==="y"&&(nt="cy")),this._defaultGetter(nt)}zIndexSetter(nt,dt){let mt=this.renderer,Et=this.parentGroup,Mt=(Et||mt).element||mt.box,I=this.element,Y=Mt===mt.box,rt,ot,D,P=!1,W,lt=this.added,it;if(w(nt)?(I.setAttribute("data-z-index",nt),nt=+nt,this[dt]===nt&&(lt=!1)):w(this[dt])&&I.removeAttribute("data-z-index"),this[dt]=nt,lt){for((nt=this.zIndex)&&Et&&(Et.handleZ=!0),it=(rt=Mt.childNodes).length-1;it>=0&&!P;it--)W=!w(D=(ot=rt[it]).getAttribute("data-z-index")),ot!==I&&(nt<0&&W&&!Y&&!it?(Mt.insertBefore(I,rt[it]),P=!0):(f(D)<=nt||W&&(!w(nt)||nt>=0))&&(Mt.insertBefore(I,rt[it+1]),P=!0));P||(Mt.insertBefore(I,rt[Y?3:0]),P=!0)}return P}}return Q.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],Q.prototype.strokeSetter=Q.prototype.fillSetter,Q.prototype.yGetter=Q.prototype.xGetter,Q.prototype.matrixSetter=Q.prototype.rotationOriginXSetter=Q.prototype.rotationOriginYSetter=Q.prototype.rotationSetter=Q.prototype.scaleXSetter=Q.prototype.scaleYSetter=Q.prototype.translateXSetter=Q.prototype.translateYSetter=Q.prototype.verticalAlignSetter=function(st,nt){this[nt]=st,this.doTransform=!0},Q}),y(m,"Core/Renderer/SVG/SVGLabel.js",[m["Core/Renderer/SVG/SVGElement.js"],m["Core/Utilities.js"]],function(R,B){let{defined:et,extend:K,isNumber:J,merge:q,pick:Z,removeEvent:tt}=B;class H extends R{constructor(F,U,d,L,M,s,_,w,o,u){let C;super(F,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=U,this.x=d,this.y=L,this.anchorX=s,this.anchorY=_,this.baseline=o,this.className=u,this.addClass(u==="button"?"highcharts-no-tooltip":"highcharts-label"),u&&this.addClass("highcharts-"+u),this.text=F.text(void 0,0,0,w).attr({zIndex:1}),typeof M=="string"&&((C=/^url\((.*?)\)$/.test(M))||this.renderer.symbols[M])&&(this.symbolKey=M),this.bBox=H.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=F.styledMode||C,this.deferredAttr={},this.alignFactor=0}alignSetter(F){let U={left:0,center:.5,right:1}[F];U!==this.alignFactor&&(this.alignFactor=U,this.bBox&&J(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(F,U){this.anchorX=F,this.boxAttr(U,Math.round(F)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(F,U){this.anchorY=F,this.boxAttr(U,F-this.ySetting)}boxAttr(F,U){this.box?this.box.attr(F,U):this.deferredAttr[F]=U}css(F){if(F){let U={};F=q(F),H.textProps.forEach(d=>{F[d]!==void 0&&(U[d]=F[d],delete F[d])}),this.text.css(U),"fontSize"in U||"fontWeight"in U?this.updateTextPadding():("width"in U||"textOverflow"in U)&&this.updateBoxSize()}return R.prototype.css.call(this,F)}destroy(){tt(this.element,"mouseenter"),tt(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),R.prototype.destroy.call(this)}fillSetter(F,U){F&&(this.needsBox=!0),this.fill=F,this.boxAttr(U,F)}getBBox(F,U){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();let{padding:d,height:L=0,translateX:M=0,translateY:s=0,width:_=0}=this,w=Z(this.paddingLeft,d),o=U!=null?U:this.rotation||0,u={width:_,height:L,x:M+this.bBox.x-w,y:s+this.bBox.y-d+this.baselineOffset};return o&&(u=this.getRotatedBox(u,o)),u}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(F){this.heightSetting=F,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:Z(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&et(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(F,U){J(F)?F!==this[U]&&(this[U]=F,this.updateTextPadding()):this[U]=void 0}rSetter(F,U){this.boxAttr(U,F)}strokeSetter(F,U){this.stroke=F,this.boxAttr(U,F)}"stroke-widthSetter"(F,U){F&&(this.needsBox=!0),this["stroke-width"]=F,this.boxAttr(U,F)}"text-alignSetter"(F){this.textAlign=F}textSetter(F){F!==void 0&&this.text.attr({text:F}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let F,U=this.text,d={},L=this.padding,M=this.bBox=(!J(this.widthSetting)||!J(this.heightSetting)||this.textAlign)&&et(U.textStr)?U.getBBox(void 0,0):H.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||M.height||0)+2*L;let s=this.renderer.fontMetrics(U);if(this.baselineOffset=L+Math.min((this.text.firstLineMetrics||s).b,M.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-s.h)/2),this.needsBox&&!U.textPath){if(!this.box){let _=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();_.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),_.add(this)}F=this.getCrispAdjust(),d.x=F,d.y=(this.baseline?-this.baselineOffset:0)+F,d.width=Math.round(this.width),d.height=Math.round(this.height),this.box.attr(K(d,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let F=this.text;if(!F.textPath){this.updateBoxSize();let U=this.baseline?0:this.baselineOffset,d=Z(this.paddingLeft,this.padding);et(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(d+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(d!==F.x||U!==F.y)&&(F.attr("x",d),F.hasBoxWidthChanged&&(this.bBox=F.getBBox(!0)),U!==void 0&&F.attr("y",U)),F.x=d,F.y=U}}widthSetter(F){this.widthSetting=J(F)?F:void 0,this.doUpdate=!0}getPaddedWidth(){let F=this.padding,U=Z(this.paddingLeft,F),d=Z(this.paddingRight,F);return(this.widthSetting||this.bBox.width||0)+U+d}xSetter(F){this.x=F,this.alignFactor&&(F-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(F),this.attr("translateX",this.xSetting)}ySetter(F){this.ySetting=this.y=Math.round(F),this.attr("translateY",this.ySetting)}}return H.emptyBBox={width:0,height:0,x:0,y:0},H.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],H}),y(m,"Core/Renderer/SVG/Symbols.js",[m["Core/Utilities.js"]],function(R){let{defined:B,isNumber:et,pick:K}=R;function J(tt,H,X,F,U){let d=[];if(U){let L=U.start||0,M=K(U.r,X),s=K(U.r,F||X),_=2e-4/(U.borderRadius?1:Math.max(M,1)),w=Math.abs((U.end||0)-L-2*Math.PI)<_,o=(U.end||0)-(w?_:0),u=U.innerR,C=K(U.open,w),E=Math.cos(L),S=Math.sin(L),v=Math.cos(o),g=Math.sin(o),x=K(U.longArc,o-L-Math.PI<_?0:1),p=["A",M,s,0,x,K(U.clockwise,1),tt+M*v,H+s*g];p.params={start:L,end:o,cx:tt,cy:H},d.push(["M",tt+M*E,H+s*S],p),B(u)&&((p=["A",u,u,0,x,B(U.clockwise)?1-U.clockwise:0,tt+u*E,H+u*S]).params={start:o,end:L,cx:tt,cy:H},d.push(C?["M",tt+u*v,H+u*g]:["L",tt+u*v,H+u*g],p)),C||d.push(["Z"])}return d}function q(tt,H,X,F,U){return U&&U.r?Z(tt,H,X,F,U):[["M",tt,H],["L",tt+X,H],["L",tt+X,H+F],["L",tt,H+F],["Z"]]}function Z(tt,H,X,F,U){let d=(U==null?void 0:U.r)||0;return[["M",tt+d,H],["L",tt+X-d,H],["A",d,d,0,0,1,tt+X,H+d],["L",tt+X,H+F-d],["A",d,d,0,0,1,tt+X-d,H+F],["L",tt+d,H+F],["A",d,d,0,0,1,tt,H+F-d],["L",tt,H+d],["A",d,d,0,0,1,tt+d,H],["Z"]]}return{arc:J,callout:function(tt,H,X,F,U){let d=Math.min(U&&U.r||0,X,F),L=d+6,M=U&&U.anchorX,s=U&&U.anchorY||0,_=Z(tt,H,X,F,{r:d});if(!et(M)||M0&&s0)return _;if(tt+M>X-L)if(s>H+L&&sH+L&&s0){let w=sF&&ML&&_.splice(1,1,["L",M-6,H],["L",M,H-6],["L",M+6,H],["L",X-d,H]);return _},circle:function(tt,H,X,F){return J(tt+X/2,H+F/2,X/2,F/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(tt,H,X,F){return[["M",tt+X/2,H],["L",tt+X,H+F/2],["L",tt+X/2,H+F],["L",tt,H+F/2],["Z"]]},rect:q,roundedRect:Z,square:q,triangle:function(tt,H,X,F){return[["M",tt+X/2,H],["L",tt+X,H+F],["L",tt,H+F],["Z"]]},"triangle-down":function(tt,H,X,F){return[["M",tt,H],["L",tt+X,H],["L",tt+X/2,H+F],["Z"]]}}}),y(m,"Core/Renderer/SVG/TextBuilder.js",[m["Core/Renderer/HTML/AST.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B,et){let{doc:K,SVG_NS:J,win:q}=B,{attr:Z,extend:tt,fireEvent:H,isString:X,objectEach:F,pick:U}=et;return class{constructor(d){let L=d.styles;this.renderer=d.renderer,this.svgElement=d,this.width=d.textWidth,this.textLineHeight=L&&L.lineHeight,this.textOutline=L&&L.textOutline,this.ellipsis=!!(L&&L.textOverflow==="ellipsis"),this.noWrap=!!(L&&L.whiteSpace==="nowrap")}buildSVG(){let d=this.svgElement,L=d.element,M=d.renderer,s=U(d.textStr,"").toString(),_=s.indexOf("<")!==-1,w=L.childNodes,o=!d.added&&M.box,u=[s,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,d.getStyle("font-size"),this.width].join(",");if(u!==d.textCache){d.textCache=u,delete d.actualWidth;for(let C=w.length;C--;)L.removeChild(w[C]);if(_||this.ellipsis||this.width||d.textPath||s.indexOf(" ")!==-1&&(!this.noWrap||//g.test(s))){if(s!==""){o&&o.appendChild(L);let C=new R(s);this.modifyTree(C.nodes),C.addToDOM(L),this.modifyDOM(),this.ellipsis&&(L.textContent||"").indexOf("\u2026")!==-1&&d.attr("title",this.unescapeEntities(d.textStr||"",["<",">"])),o&&o.removeChild(L)}}else L.appendChild(K.createTextNode(this.unescapeEntities(s)));X(this.textOutline)&&d.applyTextOutline&&d.applyTextOutline(this.textOutline)}}modifyDOM(){let d,L=this.svgElement,M=Z(L.element,"x");for(L.firstLineMetrics=void 0;(d=L.element.firstChild)&&/^[\s\u200B]*$/.test(d.textContent||" ");)L.element.removeChild(d);[].forEach.call(L.element.querySelectorAll("tspan.highcharts-br"),(o,u)=>{o.nextSibling&&o.previousSibling&&(u===0&&o.previousSibling.nodeType===1&&(L.firstLineMetrics=L.renderer.fontMetrics(o.previousSibling)),Z(o,{dy:this.getLineHeight(o.nextSibling),x:M}))});let s=this.width||0;if(!s)return;let _=(o,u)=>{let C=o.textContent||"",E=C.replace(/([^\^])-/g,"$1- ").split(" "),S=!this.noWrap&&(E.length>1||L.element.childNodes.length>1),v=this.getLineHeight(u),g=0,x=L.actualWidth;if(this.ellipsis)C&&this.truncate(o,C,void 0,0,Math.max(0,s-.8*v),(p,l)=>p.substring(0,l)+"\u2026");else if(S){let p=[],l=[];for(;u.firstChild&&u.firstChild!==o;)l.push(u.firstChild),u.removeChild(u.firstChild);for(;E.length;)E.length&&!this.noWrap&&g>0&&(p.push(o.textContent||""),o.textContent=E.join(" ").replace(/- /g,"-")),this.truncate(o,void 0,E,g===0&&x||0,s,(f,b)=>E.slice(0,b).join(" ").replace(/- /g,"-")),x=L.actualWidth,g++;l.forEach(f=>{u.insertBefore(f,o)}),p.forEach(f=>{u.insertBefore(K.createTextNode(f),o);let b=K.createElementNS(J,"tspan");b.textContent="\u200B",Z(b,{dy:v,x:M}),u.insertBefore(b,o)})}},w=o=>{[].slice.call(o.childNodes).forEach(u=>{u.nodeType===q.Node.TEXT_NODE?_(u,o):(u.className.baseVal.indexOf("highcharts-br")!==-1&&(L.actualWidth=0),w(u))})};w(L.element)}getLineHeight(d){let L=d.nodeType===q.Node.TEXT_NODE?d.parentElement:d;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(L||this.svgElement.element).h}modifyTree(d){let L=(M,s)=>{let{attributes:_={},children:w,style:o={},tagName:u}=M,C=this.renderer.styledMode;if(u==="b"||u==="strong"?C?_.class="highcharts-strong":o.fontWeight="bold":(u==="i"||u==="em")&&(C?_.class="highcharts-emphasized":o.fontStyle="italic"),o&&o.color&&(o.fill=o.color),u==="br"){_.class="highcharts-br",M.textContent="\u200B";let E=d[s+1];E&&E.textContent&&(E.textContent=E.textContent.replace(/^ +/gm,""))}else u==="a"&&w&&w.some(E=>E.tagName==="#text")&&(M.children=[{children:w,tagName:"tspan"}]);u!=="#text"&&u!=="a"&&(M.tagName="tspan"),tt(M,{attributes:_,style:o}),w&&w.filter(E=>E.tagName!=="#text").forEach(L)};d.forEach(L),H(this.svgElement,"afterModifyTree",{nodes:d})}truncate(d,L,M,s,_,w){let o,u,C=this.svgElement,{rotation:E}=C,S=[],v=M?1:0,g=(L||M||"").length,x=g,p=function(l,f){let b=f||l,z=d.parentNode;if(z&&S[b]===void 0&&z.getSubStringLength)try{S[b]=s+z.getSubStringLength(0,M?b+1:b)}catch(T){}return S[b]};if(C.rotation=0,s+(u=p(d.textContent.length))>_){for(;v<=g;)x=Math.ceil((v+g)/2),M&&(o=w(M,x)),u=p(x,o&&o.length-1),v===g?v=g+1:u>_?g=x-1:v=x;g===0?d.textContent="":L&&g===L.length-1||(d.textContent=o||w(L||M,x))}M&&M.splice(0,x),C.actualWidth=u,C.rotation=E}unescapeEntities(d,L){return F(this.renderer.escapes,function(M,s){L&&L.indexOf(M)!==-1||(d=d.toString().replace(RegExp(M,"g"),s))}),d}}}),y(m,"Core/Renderer/SVG/SVGRenderer.js",[m["Core/Renderer/HTML/AST.js"],m["Core/Defaults.js"],m["Core/Color/Color.js"],m["Core/Globals.js"],m["Core/Renderer/RendererRegistry.js"],m["Core/Renderer/SVG/SVGElement.js"],m["Core/Renderer/SVG/SVGLabel.js"],m["Core/Renderer/SVG/Symbols.js"],m["Core/Renderer/SVG/TextBuilder.js"],m["Core/Utilities.js"]],function(R,B,et,K,J,q,Z,tt,H,X){let F,{defaultOptions:U}=B,{charts:d,deg2rad:L,doc:M,isFirefox:s,isMS:_,isWebKit:w,noop:o,SVG_NS:u,symbolSizes:C,win:E}=K,{addEvent:S,attr:v,createElement:g,crisp:x,css:p,defined:l,destroyObjectProperties:f,extend:b,isArray:z,isNumber:T,isObject:k,isString:Q,merge:st,pick:nt,pInt:dt,replaceNested:mt,uniqueKey:Et}=X;class Mt{constructor(Y,rt,ot,D,P,W,lt){let it,vt,pt=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),xt=pt.element;lt||pt.css(this.getStyle(D||{})),Y.appendChild(xt),v(Y,"dir","ltr"),Y.innerHTML.indexOf("xmlns")===-1&&v(xt,"xmlns",this.SVG_NS),this.box=xt,this.boxWrapper=pt,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(M.createTextNode("Created with Highcharts 11.4.8")),this.defs=this.createElement("defs").add(),this.allowHTML=W,this.forExport=P,this.styledMode=lt,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=pt.getStyle("font-size"),this.setSize(rt,ot,!1),s&&Y.getBoundingClientRect&&((it=function(){p(Y,{left:0,top:0}),vt=Y.getBoundingClientRect(),p(Y,{left:Math.ceil(vt.left)-vt.left+"px",top:Math.ceil(vt.top)-vt.top+"px"})})(),this.unSubPixelFix=S(E,"resize",it))}definition(Y){return new R([Y]).addToDOM(this.defs.element)}getReferenceURL(){if((s||w)&&M.getElementsByTagName("base").length){if(!l(F)){let Y=Et(),rt=new R([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:Y},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${Y})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(M.body);p(rt,{position:"fixed",top:0,left:0,zIndex:9e5});let ot=M.elementFromPoint(6,6);F=(ot&&ot.id)==="hitme",M.body.removeChild(rt)}if(F)return mt(E.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(Y){return this.style=b({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},Y),this.style}setStyle(Y){this.boxWrapper.css(this.getStyle(Y))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let Y=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),f(this.gradients||{}),this.gradients=null,this.defs=Y.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(Y){return new this.Element(this,Y)}getRadialAttr(Y,rt){return{cx:Y[0]-Y[2]/2+(rt.cx||0)*Y[2],cy:Y[1]-Y[2]/2+(rt.cy||0)*Y[2],r:(rt.r||0)*Y[2]}}shadowDefinition(Y){let rt=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(Y).map(D=>`${D}-${Y[D]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),ot=st({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},Y);return this.defs.element.querySelector(`#${rt}`)||this.definition({tagName:"filter",attributes:{id:rt,filterUnits:ot.filterUnits},children:this.getShadowFilterContent(ot)}),rt}getShadowFilterContent(Y){return[{tagName:"feDropShadow",attributes:{dx:Y.offsetX,dy:Y.offsetY,"flood-color":Y.color,"flood-opacity":Math.min(5*Y.opacity,1),stdDeviation:Y.width/2}}]}buildText(Y){new H(Y).buildSVG()}getContrast(Y){let rt=et.parse(Y).rgba.map(D=>{let P=D/255;return P<=.03928?P/12.92:Math.pow((P+.055)/1.055,2.4)}),ot=.2126*rt[0]+.7152*rt[1]+.0722*rt[2];return 1.05/(ot+.05)>(ot+.05)/.05?"#FFFFFF":"#000000"}button(Y,rt,ot,D,P={},W,lt,it,vt,pt){let xt=this.label(Y,rt,ot,vt,void 0,void 0,pt,void 0,"button"),Ct=this.styledMode,Tt=arguments,Nt=0;P=st(U.global.buttonTheme,P),Ct&&(delete P.fill,delete P.stroke,delete P["stroke-width"]);let gt=P.states||{},wt=P.style||{};delete P.states,delete P.style;let Rt=[R.filterUserAttributes(P)],jt=[wt];return Ct||["hover","select","disabled"].forEach((Zt,ne)=>{Rt.push(st(Rt[0],R.filterUserAttributes(Tt[ne+5]||gt[Zt]||{}))),jt.push(Rt[ne+1].style),delete Rt[ne+1].style}),S(xt.element,_?"mouseover":"mouseenter",function(){Nt!==3&&xt.setState(1)}),S(xt.element,_?"mouseout":"mouseleave",function(){Nt!==3&&xt.setState(Nt)}),xt.setState=(Zt=0)=>{if(Zt!==1&&(xt.state=Nt=Zt),xt.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][Zt]),!Ct){xt.attr(Rt[Zt]);let ne=jt[Zt];k(ne)&&xt.css(ne)}},xt.attr(Rt[0]),!Ct&&(xt.css(b({cursor:"default"},wt)),pt&&xt.text.css({pointerEvents:"none"})),xt.on("touchstart",Zt=>Zt.stopPropagation()).on("click",function(Zt){Nt!==3&&D.call(xt,Zt)})}crispLine(Y,rt){let[ot,D]=Y;return l(ot[1])&&ot[1]===D[1]&&(ot[1]=D[1]=x(ot[1],rt)),l(ot[2])&&ot[2]===D[2]&&(ot[2]=D[2]=x(ot[2],rt)),Y}path(Y){let rt=this.styledMode?{}:{fill:"none"};return z(Y)?rt.d=Y:k(Y)&&b(rt,Y),this.createElement("path").attr(rt)}circle(Y,rt,ot){let D=k(Y)?Y:Y===void 0?{}:{x:Y,y:rt,r:ot},P=this.createElement("circle");return P.xSetter=P.ySetter=function(W,lt,it){it.setAttribute("c"+lt,W)},P.attr(D)}arc(Y,rt,ot,D,P,W){let lt;k(Y)?(rt=(lt=Y).y,ot=lt.r,D=lt.innerR,P=lt.start,W=lt.end,Y=lt.x):lt={innerR:D,start:P,end:W};let it=this.symbol("arc",Y,rt,ot,ot,lt);return it.r=ot,it}rect(Y,rt,ot,D,P,W){let lt=k(Y)?Y:Y===void 0?{}:{x:Y,y:rt,r:P,width:Math.max(ot||0,0),height:Math.max(D||0,0)},it=this.createElement("rect");return this.styledMode||(W!==void 0&&(lt["stroke-width"]=W,b(lt,it.crisp(lt))),lt.fill="none"),it.rSetter=function(vt,pt,xt){it.r=vt,v(xt,{rx:vt,ry:vt})},it.rGetter=function(){return it.r||0},it.attr(lt)}roundedRect(Y){return this.symbol("roundedRect").attr(Y)}setSize(Y,rt,ot){this.width=Y,this.height=rt,this.boxWrapper.animate({width:Y,height:rt},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:nt(ot,!0)?void 0:0}),this.alignElements()}g(Y){let rt=this.createElement("g");return Y?rt.attr({class:"highcharts-"+Y}):rt}image(Y,rt,ot,D,P,W){let lt={preserveAspectRatio:"none"};T(rt)&&(lt.x=rt),T(ot)&&(lt.y=ot),T(D)&&(lt.width=D),T(P)&&(lt.height=P);let it=this.createElement("image").attr(lt),vt=function(pt){it.attr({href:Y}),W.call(it,pt)};if(W){it.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let pt=new E.Image;S(pt,"load",vt),pt.src=Y,pt.complete&&vt({})}else it.attr({href:Y});return it}symbol(Y,rt,ot,D,P,W){let lt,it,vt,pt,xt=this,Ct=/^url\((.*?)\)$/,Tt=Ct.test(Y),Nt=!Tt&&(this.symbols[Y]?Y:"circle"),gt=Nt&&this.symbols[Nt];if(gt)typeof rt=="number"&&(it=gt.call(this.symbols,rt||0,ot||0,D||0,P||0,W)),lt=this.path(it),xt.styledMode||lt.attr("fill","none"),b(lt,{symbolName:Nt||void 0,x:rt,y:ot,width:D,height:P}),W&&b(lt,W);else if(Tt){vt=Y.match(Ct)[1];let wt=lt=this.image(vt);wt.imgwidth=nt(W&&W.width,C[vt]&&C[vt].width),wt.imgheight=nt(W&&W.height,C[vt]&&C[vt].height),pt=Rt=>Rt.attr({width:Rt.width,height:Rt.height}),["width","height"].forEach(Rt=>{wt[`${Rt}Setter`]=function(jt,Zt){this[Zt]=jt;let{alignByTranslate:ne,element:Wt,width:le,height:fe,imgwidth:xe,imgheight:be}=this,Ye=Zt==="width"?xe:be,tn=1;W&&W.backgroundSize==="within"&&le&&fe&&xe&&be?(tn=Math.min(le/xe,fe/be),v(Wt,{width:Math.round(xe*tn),height:Math.round(be*tn)})):Wt&&Ye&&Wt.setAttribute(Zt,Ye),!ne&&xe&&be&&this.translate(((le||0)-xe*tn)/2,((fe||0)-be*tn)/2)}}),l(rt)&&wt.attr({x:rt,y:ot}),wt.isImg=!0,wt.symbolUrl=Y,l(wt.imgwidth)&&l(wt.imgheight)?pt(wt):(wt.attr({width:0,height:0}),g("img",{onload:function(){let Rt=d[xt.chartIndex];this.width===0&&(p(this,{position:"absolute",top:"-999em"}),M.body.appendChild(this)),C[vt]={width:this.width,height:this.height},wt.imgwidth=this.width,wt.imgheight=this.height,wt.element&&pt(wt),this.parentNode&&this.parentNode.removeChild(this),xt.imgCount--,xt.imgCount||!Rt||Rt.hasLoaded||Rt.onload()},src:vt}),this.imgCount++)}return lt}clipRect(Y,rt,ot,D){return this.rect(Y,rt,ot,D,0)}text(Y,rt,ot,D){let P={};if(D&&(this.allowHTML||!this.forExport))return this.html(Y,rt,ot);P.x=Math.round(rt||0),ot&&(P.y=Math.round(ot)),l(Y)&&(P.text=Y);let W=this.createElement("text").attr(P);return D&&(!this.forExport||this.allowHTML)||(W.xSetter=function(lt,it,vt){let pt=vt.getElementsByTagName("tspan"),xt=vt.getAttribute(it);for(let Ct=0,Tt;CtY.align())}}return b(Mt.prototype,{Element:q,SVG_NS:u,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:tt,draw:o}),J.registerRendererType("svg",Mt,!0),Mt}),y(m,"Core/Renderer/HTML/HTMLElement.js",[m["Core/Renderer/HTML/AST.js"],m["Core/Globals.js"],m["Core/Renderer/SVG/SVGElement.js"],m["Core/Utilities.js"]],function(R,B,et,K){let{composed:J}=B,{attr:q,css:Z,createElement:tt,defined:H,extend:X,pInt:F,pushUnique:U}=K;function d(_,w,o){var C;let u=((C=this.div)==null?void 0:C.style)||o.style;et.prototype[`${w}Setter`].call(this,_,w,o),u&&(u[w]=_)}let L=(_,w)=>{var o;if(!_.div){let u=q(_.element,"class"),C=_.css,E=tt("div",u?{className:u}:void 0,co(Fr({position:"absolute",left:`${_.translateX||0}px`,top:`${_.translateY||0}px`},_.styles),{display:_.display,opacity:_.opacity,visibility:_.visibility}),((o=_.parentGroup)==null?void 0:o.div)||w);_.classSetter=(S,v,g)=>{g.setAttribute("class",S),E.className=S},_.translateXSetter=_.translateYSetter=(S,v)=>{_[v]=S,E.style[v==="translateX"?"left":"top"]=`${S}px`,_.doTransform=!0},_.opacitySetter=_.visibilitySetter=d,_.css=S=>(C.call(_,S),S.cursor&&(E.style.cursor=S.cursor),S.pointerEvents&&(E.style.pointerEvents=S.pointerEvents),_),_.on=function(){return et.prototype.on.apply({element:E,onEvents:_.onEvents},arguments),_},_.div=E}return _.div};class M extends et{static compose(w){U(J,this.compose)&&(w.prototype.html=function(o,u,C){return new M(this,"span").attr({text:o,x:Math.round(u),y:Math.round(C)})})}constructor(w,o){super(w,o),this.css(Fr({position:"absolute"},w.styledMode?{}:{fontFamily:w.style.fontFamily,fontSize:w.style.fontSize})),this.element.style.whiteSpace="nowrap"}getSpanCorrection(w,o,u){this.xCorr=-w*u,this.yCorr=-o}css(w){let o,{element:u}=this,C=u.tagName==="SPAN"&&w&&"width"in w,E=C&&w.width;return C&&(delete w.width,this.textWidth=F(E)||void 0,o=!0),(w==null?void 0:w.textOverflow)==="ellipsis"&&(w.whiteSpace="nowrap",w.overflow="hidden"),X(this.styles,w),Z(u,w),o&&this.updateTransform(),this}htmlGetBBox(){let{element:w}=this;return{x:w.offsetLeft,y:w.offsetTop,width:w.offsetWidth,height:w.offsetHeight}}updateTransform(){var T;if(!this.added){this.alignOnAdd=!0;return}let{element:w,renderer:o,rotation:u,rotationOriginX:C,rotationOriginY:E,styles:S,textAlign:v="left",textWidth:g,translateX:x=0,translateY:p=0,x:l=0,y:f=0}=this,b={left:0,center:.5,right:1}[v],z=S.whiteSpace;if(Z(w,{marginLeft:`${x}px`,marginTop:`${p}px`}),w.tagName==="SPAN"){let k=[u,v,w.innerHTML,g,this.textAlign].join(","),Q=-(((T=this.parentGroup)==null?void 0:T.padding)*1)||0,st,nt=!1;if(g!==this.oldTextWidth){let I=this.textPxLength?this.textPxLength:(Z(w,{width:"",whiteSpace:z||"nowrap"}),w.offsetWidth),Y=g||0;(Y>this.oldTextWidth||I>Y)&&(/[ \-]/.test(w.textContent||w.innerText)||w.style.textOverflow==="ellipsis")&&(Z(w,{width:I>Y||u?g+"px":"auto",display:"block",whiteSpace:z||"normal"}),this.oldTextWidth=g,nt=!0)}this.hasBoxWidthChanged=nt,k!==this.cTT&&(st=o.fontMetrics(w).b,H(u)&&(u!==(this.oldRotation||0)||v!==this.oldAlign)&&this.setSpanRotation(u,Q,Q),this.getSpanCorrection(!H(u)&&this.textPxLength||w.offsetWidth,st,b));let{xCorr:dt=0,yCorr:mt=0}=this,Et=(C!=null?C:l)-dt-l-Q,Mt=(E!=null?E:f)-mt-f-Q;Z(w,{left:`${l+dt}px`,top:`${f+mt}px`,transformOrigin:`${Et}px ${Mt}px`}),this.cTT=k,this.oldRotation=u,this.oldAlign=v}}setSpanRotation(w,o,u){Z(this.element,{transform:`rotate(${w}deg)`,transformOrigin:`${o}% ${u}px`})}add(w){let o,u=this.renderer.box.parentNode,C=[];if(this.parentGroup=w,w&&!(o=w.div)){let E=w;for(;E;)C.push(E),E=E.parentGroup;for(let S of C.reverse())o=L(S,u)}return(o||u).appendChild(this.element),this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(w){w!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,R.setElementHTML(this.element,w!=null?w:""),this.textStr=w,this.doTransform=!0)}alignSetter(w){this.alignValue=this.textAlign=w,this.doTransform=!0}xSetter(w,o){this[o]=w,this.doTransform=!0}}let s=M.prototype;return s.visibilitySetter=s.opacitySetter=d,s.ySetter=s.rotationSetter=s.rotationOriginXSetter=s.rotationOriginYSetter=s.xSetter,M}),y(m,"Core/Axis/AxisDefaults.js",[],function(){var R,B;return(B=R||(R={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},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:"#333333",cursor:"default",fontSize:"0.8em"}},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,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},B.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:et}=this.axis.chart;return et(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},R}),y(m,"Core/Foundation.js",[m["Core/Utilities.js"]],function(R){var B;let{addEvent:et,isFunction:K,objectEach:J,removeEvent:q}=R;return(B||(B={})).registerEventOptions=function(Z,tt){Z.eventOptions=Z.eventOptions||{},J(tt.events,function(H,X){Z.eventOptions[X]!==H&&(Z.eventOptions[X]&&(q(Z,X,Z.eventOptions[X]),delete Z.eventOptions[X]),K(H)&&(Z.eventOptions[X]=H,et(Z,X,H,{order:0})))})},B}),y(m,"Core/Axis/Tick.js",[m["Core/Templating.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B,et){let{deg2rad:K}=B,{clamp:J,correctFloat:q,defined:Z,destroyObjectProperties:tt,extend:H,fireEvent:X,isNumber:F,merge:U,objectEach:d,pick:L}=et;return class{constructor(M,s,_,w,o){this.isNew=!0,this.isNewLabel=!0,this.axis=M,this.pos=s,this.type=_||"",this.parameters=o||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,X(this,"init"),_||w||this.addLabel()}addLabel(){let M=this,s=M.axis,_=s.options,w=s.chart,o=s.categories,u=s.logarithmic,C=s.names,E=M.pos,S=L(M.options&&M.options.labels,_.labels),v=s.tickPositions,g=E===v[0],x=E===v[v.length-1],p=(!S.step||S.step===1)&&s.tickInterval===1,l=v.info,f=M.label,b,z,T,k=this.parameters.category||(o?L(o[E],C[E],E):E);u&&F(k)&&(k=q(u.lin2log(k))),s.dateTime&&(l?b=(z=w.time.resolveDTLFormat(_.dateTimeLabelFormats[!_.grid&&l.higherRanks[E]||l.unitName])).main:F(k)&&(b=s.dateTime.getXDateFormat(k,_.dateTimeLabelFormats||{}))),M.isFirst=g,M.isLast=x;let Q={axis:s,chart:w,dateTimeLabelFormat:b,isFirst:g,isLast:x,pos:E,tick:M,tickPositionInfo:l,value:k};X(this,"labelFormat",Q);let st=mt=>S.formatter?S.formatter.call(mt,mt):S.format?(mt.text=s.defaultLabelFormatter.call(mt),R.format(S.format,mt,w)):s.defaultLabelFormatter.call(mt),nt=st.call(Q,Q),dt=z&&z.list;dt?M.shortenLabel=function(){for(T=0;T0&&w+g*x>E&&(k=Math.round((o-w)/Math.cos(v*K))):(z=w-g*x,T=w+(1-g)*x,zE&&(f=E-M.x+f*g,b=-1),(f=Math.min(p,f))f||s.autoRotation&&(S.styles||{}).width)&&(k=f)),k&&(this.shortenLabel?this.shortenLabel():(l.width=Math.floor(k)+"px",(_.style||{}).textOverflow||(l.textOverflow="ellipsis"),S.css(l)))}moveLabel(M,s){let _=this,w=_.label,o=_.axis,u=!1,C;w&&w.textStr===M?(_.movedLabel=w,u=!0,delete _.label):d(o.ticks,function(E){u||E.isNew||E===_||!E.label||E.label.textStr!==M||(_.movedLabel=E.label,u=!0,E.labelPos=_.movedLabel.xy,delete E.label)}),!u&&(_.labelPos||w)&&(C=_.labelPos||w.xy,_.movedLabel=_.createLabel(M,s,C),_.movedLabel&&_.movedLabel.attr({opacity:0}))}render(M,s,_){let w=this.axis,o=w.horiz,u=this.pos,C=L(this.tickmarkOffset,w.tickmarkOffset),E=this.getPosition(o,u,C,s),S=E.x,v=E.y,g=w.pos,x=g+w.len,p=o?S:v;!w.chart.polar&&this.isNew&&(q(p)x)&&(_=0);let l=L(_,this.label&&this.label.newOpacity,1);_=L(_,1),this.isActive=!0,this.renderGridLine(s,_),this.renderMark(E,_),this.renderLabel(E,s,l,M),this.isNew=!1,X(this,"afterRender")}renderGridLine(M,s){let _=this.axis,w=_.options,o={},u=this.pos,C=this.type,E=L(this.tickmarkOffset,_.tickmarkOffset),S=_.chart.renderer,v=this.gridLine,g,x=w.gridLineWidth,p=w.gridLineColor,l=w.gridLineDashStyle;this.type==="minor"&&(x=w.minorGridLineWidth,p=w.minorGridLineColor,l=w.minorGridLineDashStyle),v||(_.chart.styledMode||(o.stroke=p,o["stroke-width"]=x||0,o.dashstyle=l),C||(o.zIndex=1),M&&(s=0),this.gridLine=v=S.path().attr(o).addClass("highcharts-"+(C?C+"-":"")+"grid-line").add(_.gridGroup)),v&&(g=_.getPlotLinePath({value:u+E,lineWidth:v.strokeWidth(),force:"pass",old:M,acrossPanes:!1}))&&v[M||this.isNew?"attr":"animate"]({d:g,opacity:s})}renderMark(M,s){let _=this.axis,w=_.options,o=_.chart.renderer,u=this.type,C=_.tickSize(u?u+"Tick":"tick"),E=M.x,S=M.y,v=L(w[u!=="minor"?"tickWidth":"minorTickWidth"],!u&&_.isXAxis?1:0),g=w[u!=="minor"?"tickColor":"minorTickColor"],x=this.mark,p=!x;C&&(_.opposite&&(C[0]=-C[0]),x||(this.mark=x=o.path().addClass("highcharts-"+(u?u+"-":"")+"tick").add(_.axisGroup),_.chart.styledMode||x.attr({stroke:g,"stroke-width":v})),x[p?"attr":"animate"]({d:this.getMarkPath(E,S,C[0],x.strokeWidth(),_.horiz,o),opacity:s}))}renderLabel(M,s,_,w){let o=this.axis,u=o.horiz,C=o.options,E=this.label,S=C.labels,v=S.step,g=L(this.tickmarkOffset,o.tickmarkOffset),x=M.x,p=M.y,l=!0;E&&F(x)&&(E.xy=M=this.getLabelPosition(x,p,E,u,S,g,w,v),(!this.isFirst||this.isLast||C.showFirstLabel)&&(!this.isLast||this.isFirst||C.showLastLabel)?!u||S.step||S.rotation||s||_===0||this.handleOverflow(M):l=!1,v&&w%v&&(l=!1),l&&F(M.y)?(M.opacity=_,E[this.isNewLabel?"attr":"animate"](M).show(!0),this.isNewLabel=!1):(E.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let M=this.label,s=this.axis;M&&!this.isNew&&(M.animate({opacity:0},void 0,M.destroy),delete this.label),s.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}}),y(m,"Core/Axis/Axis.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Axis/AxisDefaults.js"],m["Core/Color/Color.js"],m["Core/Defaults.js"],m["Core/Foundation.js"],m["Core/Globals.js"],m["Core/Axis/Tick.js"],m["Core/Utilities.js"]],function(R,B,et,K,J,q,Z,tt){let{animObject:H}=R,{xAxis:X,yAxis:F}=B,{defaultOptions:U}=K,{registerEventOptions:d}=J,{deg2rad:L}=q,{arrayMax:M,arrayMin:s,clamp:_,correctFloat:w,defined:o,destroyObjectProperties:u,erase:C,error:E,extend:S,fireEvent:v,getClosestDistance:g,insertItem:x,isArray:p,isNumber:l,isString:f,merge:b,normalizeTickInterval:z,objectEach:T,pick:k,relativeLength:Q,removeEvent:st,splat:nt,syncTimeout:dt}=tt,mt=(Mt,I)=>z(I,void 0,void 0,k(Mt.options.allowDecimals,I<.5||Mt.tickAmount!==void 0),!!Mt.tickAmount);S(U,{xAxis:X,yAxis:b(X,F)});class Et{constructor(I,Y,rt){this.init(I,Y,rt)}init(I,Y,rt=this.coll){var it,vt,pt,xt;let ot=rt==="xAxis",D=this.isZAxis||(I.inverted?!ot:ot);this.chart=I,this.horiz=D,this.isXAxis=ot,this.coll=rt,v(this,"init",{userOptions:Y}),this.opposite=k(Y.opposite,this.opposite),this.side=k(Y.side,this.side,D?this.opposite?0:2:this.opposite?1:3),this.setOptions(Y);let P=this.options,W=P.labels;(it=this.type)!=null||(this.type=P.type||"linear"),(pt=this.uniqueNames)!=null||(this.uniqueNames=(vt=P.uniqueNames)!=null?vt:!0),v(this,"afterSetType"),this.userOptions=Y,this.minPixelPadding=0,this.reversed=k(P.reversed,this.reversed),this.visible=P.visible,this.zoomEnabled=P.zoomEnabled,this.hasNames=this.type==="category"||P.categories===!0,this.categories=p(P.categories)&&P.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=o(P.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},(xt=this.len)!=null||(this.len=0),this.minRange=this.userMinRange=P.minRange||P.maxZoom,this.range=P.range,this.offset=P.offset||0,this.max=void 0,this.min=void 0;let lt=k(P.crosshair,nt(I.options.tooltip.crosshairs)[ot?0:1]);this.crosshair=lt===!0?{}:lt,I.axes.indexOf(this)===-1&&(ot?I.axes.splice(I.xAxis.length,0,this):I.axes.push(this),x(this,I[this.coll])),I.orderItems(this.coll),this.series=this.series||[],I.inverted&&!this.isZAxis&&ot&&!o(this.reversed)&&(this.reversed=!0),this.labelRotation=l(W.rotation)?W.rotation:void 0,d(this,P),v(this,"afterInit")}setOptions(I){let Y=this.horiz?{labels:{autoRotation:[-45],padding:4},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=b(Y,U[this.coll],I),v(this,"afterSetOptions",{userOptions:I})}defaultLabelFormatter(){let I=this.axis,{numberFormatter:Y}=this.chart,rt=l(this.value)?this.value:NaN,ot=I.chart.time,D=I.categories,P=this.dateTimeLabelFormat,W=U.lang,lt=W.numericSymbols,it=W.numericSymbolMagnitude||1e3,vt=I.logarithmic?Math.abs(rt):I.tickInterval,pt=lt&<.length,xt,Ct;if(D)Ct=`${this.value}`;else if(P)Ct=ot.dateFormat(P,rt);else if(pt&<&&vt>=1e3)for(;pt--&&Ct===void 0;)vt>=(xt=Math.pow(it,pt+1))&&10*rt%xt==0&<[pt]!==null&&rt!==0&&(Ct=Y(rt/xt,-1)+lt[pt]);return Ct===void 0&&(Ct=Math.abs(rt)>=1e4?Y(rt,-1):Y(rt,-1,void 0,"")),Ct}getSeriesExtremes(){let I,Y=this;v(this,"getSeriesExtremes",null,function(){Y.hasVisibleSeries=!1,Y.dataMin=Y.dataMax=Y.threshold=void 0,Y.softThreshold=!Y.isXAxis,Y.series.forEach(rt=>{if(rt.reserveSpace()){let ot=rt.options,D,P=ot.threshold,W,lt;if(Y.hasVisibleSeries=!0,Y.positiveValuesOnly&&0>=(P||0)&&(P=void 0),Y.isXAxis)(D=rt.xData)&&D.length&&(D=Y.logarithmic?D.filter(it=>it>0):D,W=(I=rt.getXExtremes(D)).min,lt=I.max,l(W)||W instanceof Date||(D=D.filter(l),W=(I=rt.getXExtremes(D)).min,lt=I.max),D.length&&(Y.dataMin=Math.min(k(Y.dataMin,W),W),Y.dataMax=Math.max(k(Y.dataMax,lt),lt)));else{let it=rt.applyExtremes();l(it.dataMin)&&(W=it.dataMin,Y.dataMin=Math.min(k(Y.dataMin,W),W)),l(it.dataMax)&&(lt=it.dataMax,Y.dataMax=Math.max(k(Y.dataMax,lt),lt)),o(P)&&(Y.threshold=P),(!ot.softThreshold||Y.positiveValuesOnly)&&(Y.softThreshold=!1)}}})}),v(this,"afterGetSeriesExtremes")}translate(I,Y,rt,ot,D,P){var Nt;let W=this.linkedParent||this,lt=ot&&W.old?W.old.min:W.min;if(!l(lt))return NaN;let it=W.minPixelPadding,vt=(W.isOrdinal||((Nt=W.brokenAxis)==null?void 0:Nt.hasBreaks)||W.logarithmic&&D)&&W.lin2val,pt=1,xt=0,Ct=ot&&W.old?W.old.transA:W.transA,Tt=0;return Ct||(Ct=W.transA),rt&&(pt*=-1,xt=W.len),W.reversed&&(pt*=-1,xt-=pt*(W.sector||W.len)),Y?(Tt=(I=I*pt+xt-it)/Ct+lt,vt&&(Tt=W.lin2val(Tt))):(vt&&(I=W.val2lin(I)),Tt=pt*(I-lt)*Ct+xt+pt*it+(l(P)?Ct*P:0),W.isRadial||(Tt=w(Tt))),Tt}toPixels(I,Y){return this.translate(I,!1,!this.horiz,void 0,!0)+(Y?0:this.pos)}toValue(I,Y){return this.translate(I-(Y?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(I){let Y=this,rt=Y.chart,ot=Y.left,D=Y.top,P=I.old,W=I.value,lt=I.lineWidth,it=P&&rt.oldChartHeight||rt.chartHeight,vt=P&&rt.oldChartWidth||rt.chartWidth,pt=Y.transB,xt=I.translatedValue,Ct=I.force,Tt,Nt,gt,wt,Rt;function jt(ne,Wt,le){return Ct!=="pass"&&(nele)&&(Ct?ne=_(ne,Wt,le):Rt=!0),ne}let Zt={value:W,lineWidth:lt,old:P,force:Ct,acrossPanes:I.acrossPanes,translatedValue:xt};return v(this,"getPlotLinePath",Zt,function(ne){Tt=gt=(xt=_(xt=k(xt,Y.translate(W,void 0,void 0,P)),-1e9,1e9))+pt,Nt=wt=it-xt-pt,l(xt)?Y.horiz?(Nt=D,wt=it-Y.bottom+(Y.options.isInternal?0:rt.scrollablePixelsY||0),Tt=gt=jt(Tt,ot,ot+Y.width)):(Tt=ot,gt=vt-Y.right+(rt.scrollablePixelsX||0),Nt=wt=jt(Nt,D,D+Y.height)):(Rt=!0,Ct=!1),ne.path=Rt&&!Ct?void 0:rt.renderer.crispLine([["M",Tt,Nt],["L",gt,wt]],lt||1)}),Zt.path}getLinearTickPositions(I,Y,rt){let ot,D,P,W=w(Math.floor(Y/I)*I),lt=w(Math.ceil(rt/I)*I),it=[];if(w(W+I)===W&&(P=20),this.single)return[Y];for(ot=W;ot<=lt&&(it.push(ot),(ot=w(ot+I,P))!==D);)D=ot;return it}getMinorTickInterval(){let{minorTicks:I,minorTickInterval:Y}=this.options;return I===!0?k(Y,"auto"):I!==!1?Y:void 0}getMinorTickPositions(){let I=this.options,Y=this.tickPositions,rt=this.minorTickInterval,ot=this.pointRangePadding||0,D=(this.min||0)-ot,P=(this.max||0)+ot,W=P-D,lt=[],it;if(W&&W/rt{var pt;return(vt.xIncrement?(pt=vt.xData)==null?void 0:pt.slice(0,2):vt.xData)||[]}))||0),this.dataMax-this.dataMin)),l(rt)&&l(ot)&&l(D)&&rt-ot=D,P=(D-rt+ot)/2,lt=[ot-P,k(I.min,ot-P)],W&&(lt[2]=Y?Y.log2lin(this.dataMin):this.dataMin),it=[(ot=M(lt))+D,k(I.max,ot+D)],W&&(it[2]=Y?Y.log2lin(this.dataMax):this.dataMax),(rt=s(it))-otot-D),I=g([rt]))}return I&&Y?Math.min(I,Y):I||Y}nameToX(I){let Y=p(this.options.categories),rt=Y?this.categories:this.names,ot=I.options.x,D;return I.series.requireSorting=!1,o(ot)||(ot=this.uniqueNames&&rt?Y?rt.indexOf(I.name):k(rt.keys[I.name],-1):I.series.autoIncrement()),ot===-1?!Y&&rt&&(D=rt.length):D=ot,D!==void 0?(this.names[D]=I.name,this.names.keys[I.name]=D):I.x&&(D=I.x),D}updateNames(){let I=this,Y=this.names;Y.length>0&&(Object.keys(Y.keys).forEach(function(rt){delete Y.keys[rt]}),Y.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(rt=>{rt.xIncrement=null,(!rt.points||rt.isDirtyData)&&(I.max=Math.max(I.max,rt.xData.length-1),rt.processData(),rt.generatePoints()),rt.data.forEach(function(ot,D){let P;ot!=null&&ot.options&&ot.name!==void 0&&(P=I.nameToX(ot))!==void 0&&P!==ot.x&&(ot.x=P,rt.xData[D]=P)})}))}setAxisTranslation(){let I=this,Y=I.max-I.min,rt=I.linkedParent,ot=!!I.categories,D=I.isXAxis,P=I.axisPointRange||0,W,lt=0,it=0,vt,pt=I.transA;(D||ot||P)&&(W=I.getClosest(),rt?(lt=rt.minPointOffset,it=rt.pointRangePadding):I.series.forEach(function(xt){let Ct=ot?1:D?k(xt.options.pointRange,W,0):I.axisPointRange||0,Tt=xt.options.pointPlacement;if(P=Math.max(P,Ct),!I.single||ot){let Nt=xt.is("xrange")?!D:D;lt=Math.max(lt,Nt&&f(Tt)?0:Ct/2),it=Math.max(it,Nt&&Tt==="on"?0:Ct)}}),vt=I.ordinal&&I.ordinal.slope&&W?I.ordinal.slope/W:1,I.minPointOffset=lt*=vt,I.pointRangePadding=it*=vt,I.pointRange=Math.min(P,I.single&&ot?1:Y),D&&W&&(I.closestPointRange=W)),I.translationSlope=I.transA=pt=I.staticScale||I.len/(Y+it||1),I.transB=I.horiz?I.left:I.bottom,I.minPixelPadding=pt*lt,v(this,"afterSetAxisTranslation")}minFromRange(){let{max:I,min:Y}=this;return l(I)&&l(Y)&&I-Y||void 0}setTickInterval(I){var Jt,Kt,te,Ot;let{categories:Y,chart:rt,dataMax:ot,dataMin:D,dateTime:P,isXAxis:W,logarithmic:lt,options:it,softThreshold:vt}=this,pt=l(this.threshold)?this.threshold:void 0,xt=this.minRange||0,{ceiling:Ct,floor:Tt,linkedTo:Nt,softMax:gt,softMin:wt}=it,Rt=l(Nt)&&((Jt=rt[this.coll])==null?void 0:Jt[Nt]),jt=it.tickPixelInterval,Zt=it.maxPadding,ne=it.minPadding,Wt=0,le,fe=l(it.tickInterval)&&it.tickInterval>=0?it.tickInterval:void 0,xe,be,Ye,tn;if(P||Y||Rt||this.getTickAmount(),Ye=k(this.userMin,it.min),tn=k(this.userMax,it.max),Rt?(this.linkedParent=Rt,le=Rt.getExtremes(),this.min=k(le.min,le.dataMin),this.max=k(le.max,le.dataMax),this.type!==Rt.type&&E(11,!0,rt)):(vt&&o(pt)&&l(ot)&&l(D)&&(D>=pt?(xe=pt,ne=0):ot<=pt&&(be=pt,Zt=0)),this.min=k(Ye,xe,D),this.max=k(tn,be,ot)),l(this.max)&&l(this.min)&&(lt&&(this.positiveValuesOnly&&!I&&0>=Math.min(this.min,k(D,this.min))&&E(10,!0,rt),this.min=w(lt.log2lin(this.min),16),this.max=w(lt.log2lin(this.max),16)),this.range&&l(D)&&(this.userMin=this.min=Ye=Math.max(D,this.minFromRange()||0),this.userMax=tn=this.max,this.range=void 0)),v(this,"foundExtremes"),this.adjustForMinRange(),l(this.min)&&l(this.max)){if(!l(this.userMin)&&l(wt)&&wtthis.max&&(this.max=tn=gt),Y||this.axisPointRange||(Kt=this.stacking)!=null&&Kt.usePercentage||Rt||!(Wt=this.max-this.min)||(!o(Ye)&&ne&&(this.min-=Wt*ne),o(tn)||!Zt||(this.max+=Wt*Zt)),!l(this.userMin)&&l(Tt)&&(this.min=Math.max(this.min,Tt)),!l(this.userMax)&&l(Ct)&&(this.max=Math.min(this.max,Ct)),vt&&l(D)&&l(ot)){let Bt=pt||0;!o(Ye)&&this.min=Bt?this.min=it.minRange?Math.min(Bt,this.max-xt):Bt:!o(tn)&&this.max>Bt&&ot<=Bt&&(this.max=it.minRange?Math.max(Bt,this.min+xt):Bt)}!rt.polar&&this.min>this.max&&(o(it.min)?this.max=this.min:o(it.max)&&(this.min=this.max)),Wt=this.max-this.min}if(this.min!==this.max&&l(this.min)&&l(this.max)?Rt&&!fe&&jt===Rt.options.tickPixelInterval?this.tickInterval=fe=Rt.tickInterval:this.tickInterval=k(fe,this.tickAmount?Wt/Math.max(this.tickAmount-1,1):void 0,Y?1:Wt*jt/Math.max(this.len,jt)):this.tickInterval=1,W&&!I){let Bt=this.min!==((te=this.old)==null?void 0:te.min)||this.max!==((Ot=this.old)==null?void 0:Ot.max);this.series.forEach(function(Ut){var zt;Ut.forceCrop=(zt=Ut.forceCropping)==null?void 0:zt.call(Ut),Ut.processData(Bt)}),v(this,"postProcessData",{hasExtremesChanged:Bt})}this.setAxisTranslation(),v(this,"initialAxisTranslation"),this.pointRange&&!fe&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let on=k(it.minTickInterval,P&&!this.series.some(Bt=>Bt.noSharedTooltip)?this.closestPointRange:0);!fe&&this.tickIntervalMath.max(2*this.len,200))lt=[this.min,this.max],E(19,!1,this.chart);else if(this.dateTime)lt=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,I.units),this.min,this.max,I.startOfWeek,(pt=this.ordinal)==null?void 0:pt.positions,this.closestPointRange,!0);else if(this.logarithmic)lt=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let xt=this.tickInterval,Ct=xt;for(;Ct<=2*xt&&(lt=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&<.length>this.tickAmount);)this.tickInterval=mt(this,Ct*=1.1)}lt.length>this.len&&(lt=[lt[0],lt[lt.length-1]])[0]===lt[1]&&(lt.length=1),rt&&(this.tickPositions=lt,(it=rt.apply(this,[this.min,this.max]))&&(lt=it))}this.tickPositions=lt,this.minorTickInterval=ot==="auto"&&this.tickInterval?this.tickInterval/I.minorTicksPerMajor:ot,this.paddedTicks=lt.slice(0),this.trimTicks(lt,P,W),!this.isLinked&&l(this.min)&&l(this.max)&&(this.single&<.length<2&&!this.categories&&!this.series.some(xt=>xt.is("heatmap")&&xt.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),Y||it||this.adjustTickAmount()),v(this,"afterSetTickPositions")}trimTicks(I,Y,rt){let ot=I[0],D=I[I.length-1],P=!this.isOrdinal&&this.minPointOffset||0;if(v(this,"trimTicks"),!this.isLinked){if(Y&&ot!==-1/0)this.min=ot;else for(;this.min-P>I[0];)I.shift();if(rt)this.max=D;else for(;this.max+P{let{horiz:xt,options:Ct}=pt;return[xt?Ct.left:Ct.top,Ct.width,Ct.height,Ct.pane].join(",")},vt=it(this);rt[this.coll].forEach(function(pt){let{series:xt}=pt;xt.length&&xt.some(Ct=>Ct.visible)&&pt!==Y&&it(pt)===vt&&(I=!0,ot.push(pt))})}if(I&&W){ot.forEach(vt=>{let pt=vt.getThresholdAlignment(Y);l(pt)&<.push(pt)});let it=lt.length>1?lt.reduce((vt,pt)=>vt+=pt,0)/lt.length:void 0;ot.forEach(vt=>{vt.thresholdAlignment=it})}return I}getThresholdAlignment(I){if((!l(this.dataMin)||this!==I&&this.series.some(Y=>Y.isDirty||Y.isDirtyData))&&this.getSeriesExtremes(),l(this.threshold)){let Y=_((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(Y=1-Y),Y}}getTickAmount(){let I=this.options,Y=I.tickPixelInterval,rt=I.tickAmount;o(I.tickInterval)||rt||!(this.lenP.push(w(P[P.length-1]+Ct)),gt=()=>P.unshift(w(P[0]-Ct));if(l(lt)&&(Tt=lt<.5?Math.ceil(lt*(W-1)):Math.floor(lt*(W-1)),D.reversed&&(Tt=W-1-Tt)),I.hasData()&&l(ot)&&l(rt)){let wt=()=>{I.transA*=(it-1)/(W-1),I.min=D.startOnTick?P[0]:Math.min(ot,P[0]),I.max=D.endOnTick?P[P.length-1]:Math.max(rt,P[P.length-1])};if(l(Tt)&&l(I.threshold)){for(;P[Tt]!==vt||P.length!==W||P[0]>ot||P[P.length-1]I.threshold?gt():Nt();if(Ct>8*I.tickInterval)break;Ct*=2}wt()}else if(it0&&xt{rt=rt||lt.isDirtyData||lt.isDirty,ot=ot||lt.xAxis&<.xAxis.isDirty||!1}),this.setAxisSize();let D=this.len!==(this.old&&this.old.len);D||rt||ot||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(Y&&I==="yAxis"&&Y.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),Y&&I==="xAxis"&&Y.buildStacks(),this.isDirty||(this.isDirty=D||this.min!==((P=this.old)==null?void 0:P.min)||this.max!==((W=this.old)==null?void 0:W.max))):Y&&Y.cleanStacks(),rt&&delete this.allExtremes,v(this,"afterSetScale")}setExtremes(I,Y,rt=!0,ot,D){this.series.forEach(P=>{delete P.kdTree}),v(this,"setExtremes",D=S(D,{min:I,max:Y}),P=>{this.userMin=P.min,this.userMax=P.max,this.eventArgs=P,rt&&this.chart.redraw(ot)})}setAxisSize(){let I=this.chart,Y=this.options,rt=Y.offsets||[0,0,0,0],ot=this.horiz,D=this.width=Math.round(Q(k(Y.width,I.plotWidth-rt[3]+rt[1]),I.plotWidth)),P=this.height=Math.round(Q(k(Y.height,I.plotHeight-rt[0]+rt[2]),I.plotHeight)),W=this.top=Math.round(Q(k(Y.top,I.plotTop+rt[0]),I.plotHeight,I.plotTop)),lt=this.left=Math.round(Q(k(Y.left,I.plotLeft+rt[3]),I.plotWidth,I.plotLeft));this.bottom=I.chartHeight-P-W,this.right=I.chartWidth-D-lt,this.len=Math.max(ot?D:P,0),this.pos=ot?lt:W}getExtremes(){let I=this.logarithmic;return{min:I?w(I.lin2log(this.min)):this.min,max:I?w(I.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(I){let Y=this.logarithmic,rt=Y?Y.lin2log(this.min):this.min,ot=Y?Y.lin2log(this.max):this.max;return I===null||I===-1/0?I=rt:I===1/0?I=ot:rt>I?I=rt:ot15&&Y<165?ot.align="right":Y>195&&Y<345&&(ot.align="left")}),rt.align}tickSize(I){let Y=this.options,rt=k(Y[I==="tick"?"tickWidth":"minorTickWidth"],I==="tick"&&this.isXAxis&&!this.categories?1:0),ot=Y[I==="tick"?"tickLength":"minorTickLength"],D;rt&&ot&&(Y[I+"Position"]==="inside"&&(ot=-ot),D=[ot,rt]);let P={tickSize:D};return v(this,"afterTickSize",P),P.tickSize}labelMetrics(){let I=this.chart.renderer,Y=this.ticks,rt=Y[Object.keys(Y)[0]]||{};return this.chart.renderer.fontMetrics(rt.label||rt.movedLabel||I.box)}unsquish(){let I=this.options.labels,Y=I.padding||0,rt=this.horiz,ot=this.tickInterval,D=this.len/(((this.categories?1:0)+this.max-this.min)/ot),P=I.rotation,W=w(.8*this.labelMetrics().h),lt=Math.max(this.max-this.min,0),it=function(Tt){let Nt=(Tt+2*Y)/(D||1);return(Nt=Nt>1?Math.ceil(Nt):1)*ot>lt&&Tt!==1/0&&D!==1/0&<&&(Nt=Math.ceil(lt/ot)),w(Nt*ot)},vt=ot,pt,xt=Number.MAX_VALUE,Ct;if(rt){if(!I.staggerLines&&(l(P)?Ct=[P]:D=-90&><=90)&&(Nt=(Tt=it(Math.abs(W/Math.sin(L*gt))))+Math.abs(gt/360))Nt&&(Nt=jt.label.textPxLength)}),this.maxLabelLength=Nt,this.autoRotation)Nt>it&&Nt>pt.h?vt.rotation=this.labelRotation:this.labelRotation=0;else if(lt&&(Ct=it,!xt))for(Tt="clip",wt=rt.length;!W&&wt--;)(gt=ot[rt[wt]].label)&&(gt.styles.textOverflow==="ellipsis"?gt.css({textOverflow:"clip"}):gt.textPxLength>lt&>.css({width:lt+"px"}),gt.getBBox().height>this.len/rt.length-(pt.h-pt.f)&&(gt.specificTextOverflow="ellipsis"));vt.rotation&&(Ct=Nt>.5*I.chartHeight?.33*I.chartHeight:Nt,xt||(Tt="ellipsis")),this.labelAlign=D.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(vt.align=this.labelAlign),rt.forEach(function(Rt){let jt=ot[Rt],Zt=jt&&jt.label,ne=P.width,Wt={};Zt&&(Zt.attr(vt),jt.shortenLabel?jt.shortenLabel():Ct&&!ne&&P.whiteSpace!=="nowrap"&&(CtD.g(W).attr({zIndex:it}).addClass(`highcharts-${rt.toLowerCase()}${lt} `+(this.isRadial?`highcharts-radial-axis${lt} `:"")+(ot.className||"")).add(I);this.axisGroup||(this.gridGroup=P("grid","-grid",ot.gridZIndex),this.axisGroup=P("axis","",ot.zIndex),this.labelGroup=P("axis-labels","-labels",ot.labels.zIndex))}getOffset(){let I=this,{chart:Y,horiz:rt,options:ot,side:D,ticks:P,tickPositions:W,coll:lt}=I,it=Y.inverted&&!I.isZAxis?[1,0,3,2][D]:D,vt=I.hasData(),pt=ot.title,xt=ot.labels,Ct=l(ot.crossing),Tt=Y.axisOffset,Nt=Y.clipOffset,gt=[-1,1,1,-1][D],wt,Rt=0,jt,Zt=0,ne=0,Wt,le;if(I.showAxis=wt=vt||ot.showEmpty,I.staggerLines=I.horiz&&xt.staggerLines||void 0,I.createGroups(),vt||I.isLinked?(W.forEach(function(fe){I.generateTick(fe)}),I.renderUnsquish(),I.reserveSpaceDefault=D===0||D===2||{1:"left",3:"right"}[D]===I.labelAlign,k(xt.reserveSpace,!Ct&&null,I.labelAlign==="center"||null,I.reserveSpaceDefault)&&W.forEach(function(fe){ne=Math.max(P[fe].getLabelSize(),ne)}),I.staggerLines&&(ne*=I.staggerLines),I.labelOffset=ne*(I.opposite?-1:1)):T(P,function(fe,xe){fe.destroy(),delete P[xe]}),pt!=null&&pt.text&&pt.enabled!==!1&&(I.addTitle(wt),wt&&!Ct&&pt.reserveSpace!==!1&&(I.titleOffset=Rt=I.axisTitle.getBBox()[rt?"height":"width"],Zt=o(jt=pt.offset)?0:k(pt.margin,rt?5:10))),I.renderLine(),I.offset=gt*k(ot.offset,Tt[D]?Tt[D]+(ot.margin||0):0),I.tickRotCorr=I.tickRotCorr||{x:0,y:0},le=D===0?-I.labelMetrics().h:D===2?I.tickRotCorr.y:0,Wt=Math.abs(ne)+Zt,ne&&(Wt-=le,Wt+=gt*(rt?k(xt.y,I.tickRotCorr.y+gt*xt.distance):k(xt.x,gt*xt.distance))),I.axisTitleMargin=k(jt,Wt),I.getMaxLabelDimensions&&(I.maxLabelDimensions=I.getMaxLabelDimensions(P,W)),lt!=="colorAxis"&&Nt){let fe=this.tickSize("tick");Tt[D]=Math.max(Tt[D],(I.axisTitleMargin||0)+Rt+gt*I.offset,Wt,W&&W.length&&fe?fe[0]+gt*I.offset:0);let xe=!I.axisLine||ot.offset?0:I.axisLine.strokeWidth()/2;Nt[it]=Math.max(Nt[it],xe)}v(this,"afterGetOffset")}getLinePath(I){let Y=this.chart,rt=this.opposite,ot=this.offset,D=this.horiz,P=this.left+(rt?this.width:0)+ot,W=Y.chartHeight-this.bottom-(rt?this.height:0)+ot;return rt&&(I*=-1),Y.renderer.crispLine([["M",D?this.left:P,D?W:this.top],["L",D?Y.chartWidth-this.right:P,D?W:Y.chartHeight-this.bottom]],I)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(I){let Y=this.horiz,rt=this.left,ot=this.top,D=this.len,P=this.options.title,W=Y?rt:ot,lt=this.opposite,it=this.offset,vt=P.x,pt=P.y,xt=this.chart.renderer.fontMetrics(I),Ct=I?Math.max(I.getBBox(!1,0).height-xt.h-1,0):0,Tt={low:W+(Y?0:D),middle:W+D/2,high:W+(Y?D:0)}[P.align],Nt=(Y?ot+this.height:rt)+(Y?1:-1)*(lt?-1:1)*(this.axisTitleMargin||0)+[-Ct,Ct,xt.f,-Ct][this.side],gt={x:Y?Tt+vt:Nt+(lt?this.width:0)+it+vt,y:Y?Nt+pt-(lt?this.height:0)+it:Tt+pt};return v(this,"afterGetTitlePosition",{titlePosition:gt}),gt}renderMinorTick(I,Y){let rt=this.minorTicks;rt[I]||(rt[I]=new Z(this,I,"minor")),Y&&rt[I].isNew&&rt[I].render(null,!0),rt[I].render(null,!1,1)}renderTick(I,Y,rt){let ot=this.isLinked,D=this.ticks;(!ot||I>=this.min&&I<=this.max||this.grid&&this.grid.isColumn)&&(D[I]||(D[I]=new Z(this,I)),rt&&D[I].isNew&&D[I].render(Y,!0,-1),D[I].render(Y))}render(){let I,Y,rt=this,ot=rt.chart,D=rt.logarithmic,P=ot.renderer,W=rt.options,lt=rt.isLinked,it=rt.tickPositions,vt=rt.axisTitle,pt=rt.ticks,xt=rt.minorTicks,Ct=rt.alternateBands,Tt=W.stackLabels,Nt=W.alternateGridColor,gt=W.crossing,wt=rt.tickmarkOffset,Rt=rt.axisLine,jt=rt.showAxis,Zt=H(P.globalAnimation);if(rt.labelEdge.length=0,rt.overlap=!1,[pt,xt,Ct].forEach(function(ne){T(ne,function(Wt){Wt.isActive=!1})}),l(gt)){let ne=this.isXAxis?ot.yAxis[0]:ot.xAxis[0],Wt=[1,-1,-1,1][this.side];if(ne){let le=ne.toPixels(gt,!0);rt.horiz&&(le=ne.len-le),rt.offset=Wt*le}}if(rt.hasData()||lt){let ne=rt.chart.hasRendered&&rt.old&&l(rt.old.min);rt.minorTickInterval&&!rt.categories&&rt.getMinorTickPositions().forEach(function(Wt){rt.renderMinorTick(Wt,ne)}),it.length&&(it.forEach(function(Wt,le){rt.renderTick(Wt,le,ne)}),wt&&(rt.min===0||rt.single)&&(pt[-1]||(pt[-1]=new Z(rt,-1,null,!0)),pt[-1].render(-1))),Nt&&it.forEach(function(Wt,le){Y=it[le+1]!==void 0?it[le+1]+wt:rt.max-wt,le%2==0&&Wt=.5)F=Math.round(F),w=M.getLinearTickPositions(F,U,d);else if(F>=.08){let o,u,C,E,S,v,g,x=Math.floor(U);for(o=F>.3?[1,2,4]:F>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],u=x;uU&&(!L||v<=d)&&v!==void 0&&w.push(v),v>d&&(g=!0),v=S}else{let o=this.lin2log(U),u=this.lin2log(d),C=L?M.getMinorTickInterval():_.tickInterval,E=_.tickPixelInterval/(L?5:1),S=L?s/M.tickPositions.length:s;F=K(F=J(C==="auto"?null:C,this.minorAutoInterval,(u-o)*E/(S||1))),w=M.getLinearTickPositions(F,o,u).map(this.log2lin),L||(this.minorAutoInterval=F/5)}return L||(M.tickInterval=F),w}lin2log(F){return Math.pow(10,F)}log2lin(F){return Math.log(F)/Math.LN10}}q.Additions=H}(B||(B={})),B}),y(m,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[m["Core/Utilities.js"]],function(R){var B;let{erase:et,extend:K,isNumber:J}=R;return function(q){let Z;function tt(M){return this.addPlotBandOrLine(M,"plotBands")}function H(M,s){let _=this.userOptions,w=new Z(this,M);if(this.visible&&(w=w.render()),w){if(this._addedPlotLB||(this._addedPlotLB=!0,(_.plotLines||[]).concat(_.plotBands||[]).forEach(o=>{this.addPlotBandOrLine(o)})),s){let o=_[s]||[];o.push(M),_[s]=o}this.plotLinesAndBands.push(w)}return w}function X(M){return this.addPlotBandOrLine(M,"plotLines")}function F(M,s,_){_=_||this.options;let w=this.getPlotLinePath({value:s,force:!0,acrossPanes:_.acrossPanes}),o=[],u=this.horiz,C=!J(this.min)||!J(this.max)||Mthis.max&&s>this.max,E=this.getPlotLinePath({value:M,force:!0,acrossPanes:_.acrossPanes}),S,v=1,g;if(E&&w)for(C&&(g=E.toString()===w.toString(),v=0),S=0;S{var w;let _=[];for(let o of this.axes)for(let{label:u,options:C}of o.plotLinesAndBands)u&&!((w=C==null?void 0:C.label)!=null&&w.allowOverlap)&&_.push(u);return _})}),R.compose(d,s)}constructor(M,s){this.axis=M,this.options=s,this.id=s.id}render(){var mt,Et,Mt;H(this,"render");let{axis:M,options:s}=this,{horiz:_,logarithmic:w}=M,{color:o,events:u,zIndex:C=0}=s,E={},S=M.chart.renderer,v=s.to,g=s.from,x=s.value,p=s.borderWidth,l=s.label,{label:f,svgElem:b}=this,z=[],T,k=q(g)&&q(v),Q=q(x),st=!b,nt={class:"highcharts-plot-"+(k?"band ":"line ")+(s.className||"")},dt=k?"bands":"lines";if(!M.chart.styledMode&&(Q?(nt.stroke=o||"#999999",nt["stroke-width"]=U(s.width,1),s.dashStyle&&(nt.dashstyle=s.dashStyle)):k&&(nt.fill=o||"#e6e9ff",p&&(nt.stroke=s.borderColor,nt["stroke-width"]=p))),E.zIndex=C,dt+="-"+C,(T=M.plotLinesAndBandsGroups[dt])||(M.plotLinesAndBandsGroups[dt]=T=S.g("plot-"+dt).attr(E).add()),b||(this.svgElem=b=S.path().attr(nt).add(T)),q(x))z=M.getPlotLinePath({value:(mt=w==null?void 0:w.log2lin(x))!=null?mt:x,lineWidth:b.strokeWidth(),acrossPanes:s.acrossPanes});else{if(!(q(g)&&q(v)))return;z=M.getPlotBandPath((Et=w==null?void 0:w.log2lin(g))!=null?Et:g,(Mt=w==null?void 0:w.log2lin(v))!=null?Mt:v,s)}return!this.eventsAdded&&u&&(F(u,(I,Y)=>{b==null||b.on(Y,rt=>{u[Y].apply(this,[rt])})}),this.eventsAdded=!0),(st||!b.d)&&(z!=null&&z.length)?b.attr({d:z}):b&&(z?(b.show(),b.animate({d:z})):b.d&&(b.hide(),f&&(this.label=f=f.destroy()))),l&&(q(l.text)||q(l.formatter))&&(z!=null&&z.length)&&M.width>0&&M.height>0&&!z.isFlat?(l=X(Fr({align:_&&k?"center":void 0,x:_?!k&&4:10,verticalAlign:!_&&k?"middle":void 0,y:_?k?16:10:k?6:-4,rotation:_&&!k?90:0},k?{inside:!0}:{}),l),this.renderLabel(l,z,k,C)):f&&f.hide(),this}renderLabel(M,s,_,w){var l;let o=this.axis,u=o.chart.renderer,C=M.inside,E=this.label;E||(this.label=E=u.text(this.getLabelText(M),0,0,M.useHTML).attr({align:M.textAlign||M.align,rotation:M.rotation,class:"highcharts-plot-"+(_?"band":"line")+"-label "+(M.className||""),zIndex:w}),o.chart.styledMode||E.css(X({fontSize:"0.8em",textOverflow:_&&!C?"":"ellipsis"},M.style)),E.add());let S=s.xBounds||[s[0][1],s[1][1],_?s[2][1]:s[0][1]],v=s.yBounds||[s[0][2],s[1][2],_?s[2][2]:s[0][2]],g=J(S),x=J(v),p=K(S)-g;E.align(M,!1,{x:g,y:x,width:p,height:K(v)-x}),(!E.alignValue||E.alignValue==="left"||q(C))&&E.css({width:(((l=M.style)==null?void 0:l.width)||(_&&C?p:E.rotation===90?o.height-(E.alignAttr.y-o.top):(M.clip?o.width:o.chart.chartWidth)-(E.alignAttr.x-o.left)))+"px"}),E.show(!0)}getLabelText(M){return q(M.formatter)?M.formatter.call(this):M.text}destroy(){tt(this.axis.plotLinesAndBands,this),delete this.axis,Z(this)}}return d}),y(m,"Core/Tooltip.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Templating.js"],m["Core/Globals.js"],m["Core/Renderer/RendererUtilities.js"],m["Core/Renderer/RendererRegistry.js"],m["Core/Utilities.js"]],function(R,B,et,K,J,q){var Z;let{animObject:tt}=R,{format:H}=B,{composed:X,doc:F,isSafari:U}=et,{distribute:d}=K,{addEvent:L,clamp:M,css:s,discardElement:_,extend:w,fireEvent:o,isArray:u,isNumber:C,isString:E,merge:S,pick:v,pushUnique:g,splat:x,syncTimeout:p}=q;class l{constructor(b,z,T){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=b,this.init(b,z),this.pointer=T}bodyFormatter(b){return b.map(function(z){let T=z.series.tooltipOptions;return(T[(z.point.formatPrefix||"point")+"Formatter"]||z.point.tooltipFormatter).call(z.point,T[(z.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(b){this.chart.series.forEach(function(z){let T=z&&z.tt;T&&(!T.isActive||b?z.tt=T.destroy():T.isActive=!1)})}defaultFormatter(b){let z,T=this.points||x(this);return(z=(z=[b.tooltipFooterHeaderFormatter(T[0])]).concat(b.bodyFormatter(T))).push(b.tooltipFooterHeaderFormatter(T[0],!0)),z}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(),_(this.container)),q.clearTimeout(this.hideTimer)}getAnchor(b,z){let T,{chart:k,pointer:Q}=this,st=k.inverted,nt=k.plotTop,dt=k.plotLeft;if((b=x(b))[0].series&&b[0].series.yAxis&&!b[0].series.yAxis.options.reversedStacks&&(b=b.slice().reverse()),this.followPointer&&z)z.chartX===void 0&&(z=Q.normalize(z)),T=[z.chartX-dt,z.chartY-nt];else if(b[0].tooltipPos)T=b[0].tooltipPos;else{let mt=0,Et=0;b.forEach(function(Mt){let I=Mt.pos(!0);I&&(mt+=I[0],Et+=I[1])}),mt/=b.length,Et/=b.length,this.shared&&b.length>1&&z&&(st?mt=z.chartX:Et=z.chartY),T=[mt-dt,Et-nt]}return T.map(Math.round)}getClassName(b,z,T){let k=this.options,Q=b.series,st=Q.options;return[k.className,"highcharts-label",T&&"highcharts-tooltip-header",z?"highcharts-tooltip-box":"highcharts-tooltip",!T&&"highcharts-color-"+v(b.colorIndex,Q.colorIndex),st&&st.className].filter(E).join(" ")}getLabel({anchorX:b,anchorY:z}={anchorX:0,anchorY:0}){let T=this,k=this.chart.styledMode,Q=this.options,st=this.split&&this.allowShared,nt=this.container,dt=this.chart.renderer;if(this.label){let mt=!this.label.hasClass("highcharts-label");(!st&&mt||st&&!mt)&&this.destroy()}if(!this.label){if(this.outside){let mt=this.chart.options.chart.style,Et=J.getRendererType();this.container=nt=et.doc.createElement("div"),nt.className="highcharts-tooltip-container",s(nt,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(mt&&mt.zIndex||0)+3)}),this.renderer=dt=new Et(nt,0,0,mt,void 0,void 0,dt.styledMode)}if(st?this.label=dt.g("tooltip"):(this.label=dt.label("",b,z,Q.shape,void 0,void 0,Q.useHTML,void 0,"tooltip").attr({padding:Q.padding,r:Q.borderRadius}),k||this.label.attr({fill:Q.backgroundColor,"stroke-width":Q.borderWidth||0}).css(Q.style).css({pointerEvents:Q.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),T.outside){let mt=this.label;[mt.xSetter,mt.ySetter].forEach((Et,Mt)=>{mt[Mt?"ySetter":"xSetter"]=I=>{Et.call(mt,T.distance),mt[Mt?"y":"x"]=I,nt&&(nt.style[Mt?"top":"left"]=`${I}px`)}})}this.label.attr({zIndex:8}).shadow(Q.shadow).add()}return nt&&!nt.parentElement&&et.doc.body.appendChild(nt),this.label}getPlayingField(){let{body:b,documentElement:z}=F,{chart:T,distance:k,outside:Q}=this;return{width:Q?Math.max(b.scrollWidth,z.scrollWidth,b.offsetWidth,z.offsetWidth,z.clientWidth)-2*k:T.chartWidth,height:Q?Math.max(b.scrollHeight,z.scrollHeight,b.offsetHeight,z.offsetHeight,z.clientHeight):T.chartHeight}}getPosition(b,z,T){var Zt,ne;let{distance:k,chart:Q,outside:st,pointer:nt}=this,{inverted:dt,plotLeft:mt,plotTop:Et,polar:Mt}=Q,{plotX:I=0,plotY:Y=0}=T,rt={},ot=dt&&T.h||0,{height:D,width:P}=this.getPlayingField(),W=nt.getChartPosition(),lt=Wt=>Wt*W.scaleX,it=Wt=>Wt*W.scaleY,vt=Wt=>{let le=Wt==="x";return[Wt,le?P:D,le?b:z].concat(st?[le?lt(b):it(z),le?W.left-k+lt(I+mt):W.top-k+it(Y+Et),0,le?P:D]:[le?b:z,le?I+mt:Y+Et,le?mt:Et,le?mt+Q.plotWidth:Et+Q.plotHeight])},pt=vt("y"),xt=vt("x"),Ct,Tt=!!T.negative;!Mt&&((ne=(Zt=Q.hoverSeries)==null?void 0:Zt.yAxis)!=null&&ne.reversed)&&(Tt=!Tt);let Nt=!this.followPointer&&v(T.ttBelow,!Mt&&!dt===Tt),gt=function(Wt,le,fe,xe,be,Ye,tn){let on=st?Wt==="y"?it(k):lt(k):k,Jt=(fe-xe)/2,Kt=xele?Bt:Bt+ot)}},wt=function(Wt,le,fe,xe,be){if(bele-k)return!1;bele-xe/2?rt[Wt]=le-xe-2:rt[Wt]=be-fe/2},Rt=function(Wt){[pt,xt]=[xt,pt],Ct=Wt},jt=()=>{gt.apply(0,pt)!==!1?wt.apply(0,xt)!==!1||Ct||(Rt(!0),jt()):Ct?rt.x=rt.y=0:(Rt(!0),jt())};return(dt&&!Mt||this.len>1)&&Rt(),jt(),rt}hide(b){let z=this;q.clearTimeout(this.hideTimer),b=v(b,this.options.hideDelay),this.isHidden||(this.hideTimer=p(function(){let T=z.getLabel();z.getLabel().animate({opacity:0},{duration:b&&150,complete:()=>{T.hide(),z.container&&z.container.remove()}}),z.isHidden=!0},b))}init(b,z){this.chart=b,this.options=z,this.crosshairs=[],this.isHidden=!0,this.split=z.split&&!b.inverted&&!b.polar,this.shared=z.shared||this.split,this.outside=v(z.outside,!!(b.scrollablePixelsX||b.scrollablePixelsY))}shouldStickOnContact(b){return!!(!this.followPointer&&this.options.stickOnContact&&(!b||this.pointer.inClass(b.target,"highcharts-tooltip")))}move(b,z,T,k){let Q=this,st=tt(!Q.isHidden&&Q.options.animation),nt=Q.followPointer||(Q.len||0)>1,dt={x:b,y:z};nt||(dt.anchorX=T,dt.anchorY=k),st.step=()=>Q.drawTracker(),Q.getLabel().animate(dt,st)}refresh(b,z){let{chart:T,options:k,pointer:Q,shared:st}=this,nt=x(b),dt=nt[0],mt=[],Et=k.format,Mt=k.formatter||this.defaultFormatter,I=T.styledMode,Y={},rt=this.allowShared;if(!k.enabled||!dt.series)return;q.clearTimeout(this.hideTimer),this.allowShared=!(!u(b)&&b.series&&b.series.noSharedTooltip),rt=rt&&!this.allowShared,this.followPointer=!this.split&&dt.series.tooltipOptions.followPointer;let ot=this.getAnchor(b,z),D=ot[0],P=ot[1];st&&this.allowShared?(Q.applyInactiveState(nt),nt.forEach(function(it){it.setState("hover"),mt.push(it.getLabelConfig())}),(Y=dt.getLabelConfig()).points=mt):Y=dt.getLabelConfig(),this.len=mt.length;let W=E(Et)?H(Et,Y,T):Mt.call(Y,this),lt=dt.series;if(this.distance=v(lt.tooltipOptions.distance,16),W===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(W,nt);else{let it=D,vt=P;if(z&&Q.isDirectTouch&&(it=z.chartX-T.plotLeft,vt=z.chartY-T.plotTop),T.polar||lt.options.clip===!1||nt.some(pt=>Q.isDirectTouch||pt.series.shouldShowTooltip(it,vt))){let pt=this.getLabel(rt&&this.tt||{});(!k.style.width||I)&&pt.css({width:(this.outside?this.getPlayingField():T.spacingBox).width+"px"}),pt.attr({class:this.getClassName(dt),text:W&&W.join?W.join(""):W}),this.outside&&pt.attr({x:M(pt.x||0,0,this.getPlayingField().width-(pt.width||0))}),I||pt.attr({stroke:k.borderColor||dt.color||lt.color||"#666666"}),this.updatePosition({plotX:D,plotY:P,negative:dt.negative,ttBelow:dt.ttBelow,h:ot[2]||0})}else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}o(this,"refresh")}renderSplit(b,z){var le;let T=this,{chart:k,chart:{chartWidth:Q,chartHeight:st,plotHeight:nt,plotLeft:dt,plotTop:mt,scrollablePixelsY:Et=0,scrollablePixelsX:Mt,styledMode:I},distance:Y,options:rt,options:{positioner:ot},pointer:D}=T,{scrollLeft:P=0,scrollTop:W=0}=((le=k.scrollablePlotArea)==null?void 0:le.scrollingContainer)||{},lt=T.outside&&typeof Mt!="number"?F.documentElement.getBoundingClientRect():{left:P,right:P+Q,top:W,bottom:W+st},it=T.getLabel(),vt=this.renderer||k.renderer,pt=!!(k.xAxis[0]&&k.xAxis[0].opposite),{left:xt,top:Ct}=D.getChartPosition(),Tt=mt+W,Nt=0,gt=nt-Et;function wt(fe,xe,be,Ye,tn=!0){let on,Jt;return be?(on=pt?0:gt,Jt=M(fe-Ye/2,lt.left,lt.right-Ye-(T.outside?xt:0))):(on=xe-Tt,Jt=M(Jt=tn?fe-Ye-Y:fe+Y,tn?Jt:lt.left,lt.right)),{x:Jt,y:on}}E(b)&&(b=[!1,b]);let Rt=b.slice(0,z.length+1).reduce(function(fe,xe,be){if(xe!==!1&&xe!==""){let Ye=z[be-1]||{isHeader:!0,plotX:z[0].plotX,plotY:nt,series:{}},tn=Ye.isHeader,on=tn?T:Ye.series,Jt=on.tt=function(Ut,zt,ce){var hn;let we=Ut,{isHeader:ye,series:qe}=zt;if(!we){let yn={padding:rt.padding,r:rt.borderRadius};I||(yn.fill=rt.backgroundColor,yn["stroke-width"]=(hn=rt.borderWidth)!=null?hn:1),we=vt.label("",0,0,rt[ye?"headerShape":"shape"],void 0,void 0,rt.useHTML).addClass(T.getClassName(zt,!0,ye)).attr(yn).add(it)}return we.isActive=!0,we.attr({text:ce}),I||we.css(rt.style).attr({stroke:rt.borderColor||zt.color||qe.color||"#333333"}),we}(on.tt,Ye,xe.toString()),Kt=Jt.getBBox(),te=Kt.width+Jt.strokeWidth();tn&&(Nt=Kt.height,gt+=Nt,pt&&(Tt-=Nt));let{anchorX:Ot,anchorY:Bt}=function(Ut){let zt,ce,{isHeader:we,plotX:ye=0,plotY:qe=0,series:hn}=Ut;if(we)zt=Math.max(dt+ye,dt),ce=mt+nt/2;else{let{xAxis:yn,yAxis:Nn}=hn;zt=yn.pos+M(ye,-Y,yn.len+Y),hn.shouldShowTooltip(0,Nn.pos-mt+qe,{ignoreX:!0})&&(ce=Nn.pos+qe)}return{anchorX:zt=M(zt,lt.left-Y,lt.right+Y),anchorY:ce}}(Ye);if(typeof Bt=="number"){let Ut=Kt.height+1,zt=ot?ot.call(T,te,Ut,Ye):wt(Ot,Bt,tn,te);fe.push({align:ot?0:void 0,anchorX:Ot,anchorY:Bt,boxWidth:te,point:Ye,rank:v(zt.rank,tn?1:0),size:Ut,target:zt.y,tt:Jt,x:zt.x})}else Jt.isActive=!1}return fe},[]);!ot&&Rt.some(fe=>{let{outside:xe}=T,be=(xe?xt:0)+fe.anchorX;return bebe})&&(Rt=Rt.map(fe=>{let{x:xe,y:be}=wt(fe.anchorX,fe.anchorY,fe.point.isHeader,fe.boxWidth,!1);return w(fe,{target:be,x:xe})})),T.cleanSplit(),d(Rt,gt);let jt={left:xt,right:xt};Rt.forEach(function(fe){let{x:xe,boxWidth:be,isHeader:Ye}=fe;!Ye&&(T.outside&&xt+xejt.right&&(jt.right=xt+xe))}),Rt.forEach(function(fe){let{x:xe,anchorX:be,anchorY:Ye,pos:tn,point:{isHeader:on}}=fe,Jt={visibility:tn===void 0?"hidden":"inherit",x:xe,y:(tn||0)+Tt,anchorX:be,anchorY:Ye};if(T.outside&&xe0&&(on||(Jt.x=xe+Kt,Jt.anchorX=be+Kt),on&&(Jt.x=(jt.right-jt.left)/2,Jt.anchorX=be+Kt))}fe.tt.attr(Jt)});let{container:Zt,outside:ne,renderer:Wt}=T;if(ne&&Zt&&Wt){let{width:fe,height:xe,x:be,y:Ye}=it.getBBox();Wt.setSize(fe+be,xe+Ye,!1),Zt.style.left=jt.left+"px",Zt.style.top=Ct+"px"}U&&it.attr({opacity:it.opacity===1?.999:1})}drawTracker(){if(!this.shouldStickOnContact()){this.tracker&&(this.tracker=this.tracker.destroy());return}let b=this.chart,z=this.label,T=this.shared?b.hoverPoints:b.hoverPoint;if(!z||!T)return;let k={x:0,y:0,width:0,height:0},Q=this.getAnchor(T),st=z.getBBox();Q[0]+=b.plotLeft-(z.translateX||0),Q[1]+=b.plotTop-(z.translateY||0),k.x=Math.min(0,Q[0]),k.y=Math.min(0,Q[1]),k.width=Q[0]<0?Math.max(Math.abs(Q[0]),st.width-Q[0]):Math.max(Math.abs(Q[0]),st.width),k.height=Q[1]<0?Math.max(Math.abs(Q[1]),st.height-Math.abs(Q[1])):Math.max(Math.abs(Q[1]),st.height),this.tracker?this.tracker.attr(k):(this.tracker=z.renderer.rect(k).addClass("highcharts-tracker").add(z),b.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(b){return b.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}"')}tooltipFooterHeaderFormatter(b,z){let T=b.series,k=T.tooltipOptions,Q=T.xAxis,st=Q&&Q.dateTime,nt={isFooter:z,labelConfig:b},dt=k.xDateFormat,mt=k[z?"footerFormat":"headerFormat"];return o(this,"headerFormatter",nt,function(Et){st&&!dt&&C(b.key)&&(dt=st.getXDateFormat(b.key,k.dateTimeLabelFormats)),st&&dt&&(b.point&&b.point.tooltipDateKeys||["key"]).forEach(function(Mt){mt=mt.replace("{point."+Mt+"}","{point."+Mt+":"+dt+"}")}),T.chart.styledMode&&(mt=this.styledModeFormat(mt)),Et.text=H(mt,{point:b,series:T},this.chart)}),nt.text}update(b){this.destroy(),this.init(this.chart,S(!0,this.options,b))}updatePosition(b){let{chart:z,container:T,distance:k,options:Q,pointer:st,renderer:nt}=this,{height:dt=0,width:mt=0}=this.getLabel(),{left:Et,top:Mt,scaleX:I,scaleY:Y}=st.getChartPosition(),rt=(Q.positioner||this.getPosition).call(this,mt,dt,b),ot=(b.plotX||0)+z.plotLeft,D=(b.plotY||0)+z.plotTop,P;nt&&T&&(Q.positioner&&(rt.x+=Et-k,rt.y+=Mt-k),P=(Q.borderWidth||0)+2*k+2,nt.setSize(mt+P,dt+P,!1),(I!==1||Y!==1)&&(s(T,{transform:`scale(${I}, ${Y})`}),ot*=I,D*=Y),ot+=Et-rt.x,D+=Mt-rt.y),this.move(Math.round(rt.x),Math.round(rt.y||0),ot,D)}}return(Z=l||(l={})).compose=function(f){g(X,"Core.Tooltip")&&L(f,"afterInit",function(){let b=this.chart;b.options.tooltip&&(b.tooltip=new Z(b,b.options.tooltip,this))})},l}),y(m,"Core/Series/Point.js",[m["Core/Renderer/HTML/AST.js"],m["Core/Animation/AnimationUtilities.js"],m["Core/Defaults.js"],m["Core/Templating.js"],m["Core/Utilities.js"]],function(R,B,et,K,J){let{animObject:q}=B,{defaultOptions:Z}=et,{format:tt}=K,{addEvent:H,crisp:X,erase:F,extend:U,fireEvent:d,getNestedProperty:L,isArray:M,isFunction:s,isNumber:_,isObject:w,merge:o,pick:u,syncTimeout:C,removeEvent:E,uniqueKey:S}=J;class v{animateBeforeDestroy(){let x=this,p={x:x.startXPos,opacity:0},l=x.getGraphicalProps();l.singular.forEach(function(f){x[f]=x[f].animate(f==="dataLabel"?{x:x[f].startXPos,y:x[f].startYPos,opacity:0}:p)}),l.plural.forEach(function(f){x[f].forEach(function(b){b.element&&b.animate(U({x:x.startXPos},b.startYPos?{x:b.startXPos,y:b.startYPos}:{}))})})}applyOptions(x,p){let l=this.series,f=l.options.pointValKey||l.pointValKey;return U(this,x=v.prototype.optionsToObject.call(this,x)),this.options=this.options?U(this.options,x):x,x.group&&delete this.group,x.dataLabels&&delete this.dataLabels,f&&(this.y=v.prototype.getNestedProperty.call(this,f)),this.selected&&(this.state="select"),"name"in this&&p===void 0&&l.xAxis&&l.xAxis.hasNames&&(this.x=l.xAxis.nameToX(this)),this.x===void 0&&l?this.x=p!=null?p:l.autoIncrement():_(x.x)&&l.options.relativeXValue&&(this.x=l.autoIncrement(x.x)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let x=this,p=x.series,l=p.chart,f=p.options.dataSorting,b=l.hoverPoints,z=q(x.series.chart.renderer.globalAnimation),T=()=>{for(let k in(x.graphic||x.graphics||x.dataLabel||x.dataLabels)&&(E(x),x.destroyElements()),x)delete x[k]};x.legendItem&&l.legend.destroyItem(x),b&&(x.setState(),F(b,x),b.length||(l.hoverPoints=null)),x===l.hoverPoint&&x.onMouseOut(),f&&f.enabled?(this.animateBeforeDestroy(),C(T,z.duration)):T(),l.pointCount--}this.destroyed=!0}destroyElements(x){let p=this,l=p.getGraphicalProps(x);l.singular.forEach(function(f){p[f]=p[f].destroy()}),l.plural.forEach(function(f){p[f].forEach(function(b){b&&b.element&&b.destroy()}),delete p[f]})}firePointEvent(x,p,l){let f=this,b=this.series.options;f.manageEvent(x),x==="click"&&b.allowPointSelect&&(l=function(z){!f.destroyed&&f.select&&f.select(null,z.ctrlKey||z.metaKey||z.shiftKey)}),d(f,x,p,l)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(x){let p,l,f=this,b=[],z={singular:[],plural:[]};for((x=x||{graphic:1,dataLabel:1}).graphic&&b.push("graphic","connector"),x.dataLabel&&b.push("dataLabel","dataLabelPath","dataLabelUpper"),l=b.length;l--;)f[p=b[l]]&&z.singular.push(p);return["graphic","dataLabel"].forEach(function(T){let k=T+"s";x[T]&&f[k]&&z.plural.push(k)}),z}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(x){return x?x.indexOf("custom.")===0?L(x,this.options):this[x]:void 0}getZone(){let x=this.series,p=x.zones,l=x.zoneAxis||"y",f,b=0;for(f=p[0];this[l]>=f.value;)f=p[++b];return this.nonZonedColor||(this.nonZonedColor=this.color),f&&f.color&&!this.options.color?this.color=f.color:this.color=this.nonZonedColor,f}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(x,p,l){var f;this.formatPrefix="point",this.visible=!0,this.series=x,this.applyOptions(p,l),(f=this.id)!=null||(this.id=S()),this.resolveColor(),x.chart.pointCount++,d(this,"afterInit")}isValid(){return(_(this.x)||this.x instanceof Date)&&_(this.y)}optionsToObject(x){let p=this.series,l=p.options.keys,f=l||p.pointArrayMap||["y"],b=f.length,z={},T,k=0,Q=0;if(_(x)||x===null)z[f[0]]=x;else if(M(x))for(!l&&x.length>b&&((T=typeof x[0])=="string"?z.name=x[0]:T==="number"&&(z.x=x[0]),k++);Q0?v.prototype.setNestedProperty(z,x[k],f[Q]):z[f[Q]]=x[k]),k++,Q++;else typeof x=="object"&&(z=x,x.dataLabels&&(p.hasDataLabels=()=>!0),x.marker&&(p._hasPointMarkers=!0));return z}pos(x,p=this.plotY){if(!this.destroyed){let{plotX:l,series:f}=this,{chart:b,xAxis:z,yAxis:T}=f,k=0,Q=0;if(_(l)&&_(p))return x&&(k=z?z.pos:b.plotLeft,Q=T?T.pos:b.plotTop),b.inverted&&z&&T?[T.len-p+Q,z.len-l+k]:[l+k,p+Q]}}resolveColor(){let x=this.series,p=x.chart.options.chart,l=x.chart.styledMode,f,b,z=p.colorCount,T;delete this.nonZonedColor,x.options.colorByPoint?(l||(f=(b=x.options.colors||x.chart.options.colors)[x.colorCounter],z=b.length),T=x.colorCounter,x.colorCounter++,x.colorCounter===z&&(x.colorCounter=0)):(l||(f=x.color),T=x.colorIndex),this.colorIndex=u(this.options.colorIndex,T),this.color=u(this.options.color,f)}setNestedProperty(x,p,l){return l.split(".").reduce(function(f,b,z,T){let k=T.length-1===z;return f[b]=k?p:w(f[b],!0)?f[b]:{},f[b]},x),x}shouldDraw(){return!this.isNull}tooltipFormatter(x){let p=this.series,l=p.tooltipOptions,f=u(l.valueDecimals,""),b=l.valuePrefix||"",z=l.valueSuffix||"";return p.chart.styledMode&&(x=p.chart.tooltip.styledModeFormat(x)),(p.pointArrayMap||["y"]).forEach(function(T){T="{point."+T,(b||z)&&(x=x.replace(RegExp(T+"}","g"),b+T+"}"+z)),x=x.replace(RegExp(T+"}","g"),T+":,."+f+"f}")}),tt(x,{point:this,series:this.series},p.chart)}update(x,p,l,f){let b,z=this,T=z.series,k=z.graphic,Q=T.chart,st=T.options;function nt(){z.applyOptions(x);let dt=k&&z.hasMockGraphic,mt=z.y===null?!dt:dt;k&&mt&&(z.graphic=k.destroy(),delete z.hasMockGraphic),w(x,!0)&&(k&&k.element&&x&&x.marker&&x.marker.symbol!==void 0&&(z.graphic=k.destroy()),x!=null&&x.dataLabels&&z.dataLabel&&(z.dataLabel=z.dataLabel.destroy())),b=z.index,T.updateParallelArrays(z,b),st.data[b]=w(st.data[b],!0)||w(x,!0)?z.options:u(x,st.data[b]),T.isDirty=T.isDirtyData=!0,!T.fixedBox&&T.hasCartesianSeries&&(Q.isDirtyBox=!0),st.legendType==="point"&&(Q.isDirtyLegend=!0),p&&Q.redraw(l)}p=u(p,!0),f===!1?nt():z.firePointEvent("update",{options:x},nt)}remove(x,p){this.series.removePoint(this.series.data.indexOf(this),x,p)}select(x,p){let l=this,f=l.series,b=f.chart;x=u(x,!l.selected),this.selectedStaging=x,l.firePointEvent(x?"select":"unselect",{accumulate:p},function(){l.selected=l.options.selected=x,f.options.data[f.data.indexOf(l)]=l.options,l.setState(x&&"select"),p||b.getSelectedPoints().forEach(function(z){let T=z.series;z.selected&&z!==l&&(z.selected=z.options.selected=!1,T.options.data[T.data.indexOf(z)]=z.options,z.setState(b.hoverPoints&&T.options.inactiveOtherPoints?"inactive":""),z.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(x){let{inverted:p,pointer:l}=this.series.chart;l&&(x=x?l.normalize(x):l.getChartCoordinatesFromPoint(this,p),l.runPointActions(x,this))}onMouseOut(){let x=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(x.hoverPoints||[]).forEach(function(p){p.setState()}),x.hoverPoints=x.hoverPoint=null}manageEvent(x){var f,b,z,T,k,Q;let p=o(this.series.options.point,this.options),l=(f=p.events)==null?void 0:f[x];s(l)&&(!((b=this.hcEvents)!=null&&b[x])||((T=(z=this.hcEvents)==null?void 0:z[x])==null?void 0:T.map(st=>st.fn).indexOf(l))===-1)?((k=this.importedUserEvent)==null||k.call(this),this.importedUserEvent=H(this,x,l)):this.importedUserEvent&&!l&&((Q=this.hcEvents)!=null&&Q[x])&&(E(this,x),delete this.hcEvents[x],Object.keys(this.hcEvents)||delete this.importedUserEvent)}setState(x,p){var W;let l=this.series,f=this.state,b=l.options.states[x||"normal"]||{},z=Z.plotOptions[l.type].marker&&l.options.marker,T=z&&z.enabled===!1,k=z&&z.states&&z.states[x||"normal"]||{},Q=k.enabled===!1,st=this.marker||{},nt=l.chart,dt=z&&l.markerAttribs,mt=l.halo,Et,Mt,I,Y=l.stateMarkerGraphic,rt;if((x=x||"")===this.state&&!p||this.selected&&x!=="select"||b.enabled===!1||x&&(Q||T&&k.enabled===!1)||x&&st.states&&st.states[x]&&st.states[x].enabled===!1)return;if(this.state=x,dt&&(Et=l.markerAttribs(this,x)),this.graphic&&!this.hasMockGraphic){if(f&&this.graphic.removeClass("highcharts-point-"+f),x&&this.graphic.addClass("highcharts-point-"+x),!nt.styledMode){Mt=l.pointAttribs(this,x),I=u(nt.options.chart.animation,b.animation);let lt=Mt.opacity;l.options.inactiveOtherPoints&&_(lt)&&(this.dataLabels||[]).forEach(function(it){it&&!it.hasClass("highcharts-data-label-hidden")&&(it.animate({opacity:lt},I),it.connector&&it.connector.animate({opacity:lt},I))}),this.graphic.animate(Mt,I)}Et&&this.graphic.animate(Et,u(nt.options.chart.animation,k.animation,z.animation)),Y&&Y.hide()}else x&&k&&(rt=st.symbol||l.symbol,Y&&Y.currentSymbol!==rt&&(Y=Y.destroy()),Et&&(Y?Y[p?"animate":"attr"]({x:Et.x,y:Et.y}):rt&&(l.stateMarkerGraphic=Y=nt.renderer.symbol(rt,Et.x,Et.y,Et.width,Et.height).add(l.markerGroup),Y.currentSymbol=rt)),!nt.styledMode&&Y&&this.state!=="inactive"&&Y.attr(l.pointAttribs(this,x))),Y&&(Y[x&&this.isInside?"show":"hide"](),Y.element.point=this,Y.addClass(this.getClassName(),!0));let ot=b.halo,D=this.graphic||Y,P=D&&D.visibility||"inherit";ot&&ot.size&&D&&P!=="hidden"&&!this.isCluster?(mt||(l.halo=mt=nt.renderer.path().add(D.parentGroup)),mt.show()[p?"animate":"attr"]({d:this.haloPath(ot.size)}),mt.attr({class:"highcharts-halo highcharts-color-"+u(this.colorIndex,l.colorIndex)+(this.className?" "+this.className:""),visibility:P,zIndex:-1}),mt.point=this,nt.styledMode||mt.attr(U({fill:this.color||l.color,"fill-opacity":ot.opacity},R.filterUserAttributes(ot.attributes||{})))):(W=mt==null?void 0:mt.point)!=null&&W.haloPath&&!mt.point.destroyed&&mt.animate({d:mt.point.haloPath(0)},null,mt.hide),d(this,"afterSetState",{state:x})}haloPath(x){let p=this.pos();return p?this.series.chart.renderer.symbols.circle(X(p[0],1)-x,p[1]-x,2*x,2*x):[]}}return v}),y(m,"Core/Pointer.js",[m["Core/Color/Color.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B,et){var K;let{parse:J}=R,{charts:q,composed:Z,isTouchDevice:tt}=B,{addEvent:H,attr:X,css:F,extend:U,find:d,fireEvent:L,isNumber:M,isObject:s,objectEach:_,offset:w,pick:o,pushUnique:u,splat:C}=et;class E{applyInactiveState(v){let g=[],x;(v||[]).forEach(function(p){x=p.series,g.push(x),x.linkedParent&&g.push(x.linkedParent),x.linkedSeries&&(g=g.concat(x.linkedSeries)),x.navigatorSeries&&g.push(x.navigatorSeries)}),this.chart.series.forEach(function(p){g.indexOf(p)===-1?p.setState("inactive",!0):p.options.inactiveOtherPoints&&p.setAllPointsToState("inactive")})}destroy(){let v=this;this.eventsToUnbind.forEach(g=>g()),this.eventsToUnbind=[],!B.chartCount&&(E.unbindDocumentMouseUp&&E.unbindDocumentMouseUp.forEach(g=>g()),E.unbindDocumentTouchEnd&&(E.unbindDocumentTouchEnd=E.unbindDocumentTouchEnd())),clearInterval(v.tooltipTimeout),_(v,function(g,x){v[x]=void 0})}getSelectionMarkerAttrs(v,g){let x={args:{chartX:v,chartY:g},attrs:{},shapeType:"rect"};return L(this,"getSelectionMarkerAttrs",x,p=>{let l,{chart:f,zoomHor:b,zoomVert:z}=this,{mouseDownX:T=0,mouseDownY:k=0}=f,Q=p.attrs;Q.x=f.plotLeft,Q.y=f.plotTop,Q.width=b?1:f.plotWidth,Q.height=z?1:f.plotHeight,b&&(l=v-T,Q.width=Math.max(1,Math.abs(l)),Q.x=(l>0?0:l)+T),z&&(l=g-k,Q.height=Math.max(1,Math.abs(l)),Q.y=(l>0?0:l)+k)}),x}drag(v){let{chart:g}=this,{mouseDownX:x=0,mouseDownY:p=0}=g,{panning:l,panKey:f,selectionMarkerFill:b}=g.options.chart,z=g.plotLeft,T=g.plotTop,k=g.plotWidth,Q=g.plotHeight,st=s(l)?l.enabled:l,nt=f&&v[`${f}Key`],dt=v.chartX,mt=v.chartY,Et,Mt=this.selectionMarker;if((!Mt||!Mt.touch)&&(dtz+k&&(dt=z+k),mtT+Q&&(mt=T+Q),this.hasDragged=Math.sqrt(Math.pow(x-dt,2)+Math.pow(p-mt,2)),this.hasDragged>10)){Et=g.isInsidePlot(x-z,p-T,{visiblePlotOnly:!0});let{shapeType:I,attrs:Y}=this.getSelectionMarkerAttrs(dt,mt);(g.hasCartesianSeries||g.mapView)&&this.hasZoom&&Et&&!nt&&!Mt&&(this.selectionMarker=Mt=g.renderer[I](),Mt.attr({class:"highcharts-selection-marker",zIndex:7}).add(),g.styledMode||Mt.attr({fill:b||J("#334eff").setOpacity(.25).get()})),Mt&&Mt.attr(Y),Et&&!Mt&&st&&g.pan(v,l)}}dragStart(v){let g=this.chart;g.mouseIsDown=v.type,g.cancelClick=!1,g.mouseDownX=v.chartX,g.mouseDownY=v.chartY}getSelectionBox(v){let g={args:{marker:v},result:v.getBBox()};return L(this,"getSelectionBox",g),g.result}drop(v){let g,{chart:x,selectionMarker:p}=this;for(let l of x.axes)l.isPanning&&(l.isPanning=!1,(l.options.startOnTick||l.options.endOnTick||l.series.some(f=>f.boosted))&&(l.forceRedraw=!0,l.setExtremes(l.userMin,l.userMax,!1),g=!0));if(g&&x.redraw(),p&&v){if(this.hasDragged){let l=this.getSelectionBox(p);x.transform({axes:x.axes.filter(f=>f.zoomEnabled&&(f.coll==="xAxis"&&this.zoomX||f.coll==="yAxis"&&this.zoomY)),selection:Fr({originalEvent:v,xAxis:[],yAxis:[]},l),from:l})}M(x.index)&&(this.selectionMarker=p.destroy())}x&&M(x.index)&&(F(x.container,{cursor:x._cursor}),x.cancelClick=this.hasDragged>10,x.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(v,g,x){let p;return v.forEach(function(l){let f=!(l.noSharedTooltip&&g)&&0>l.options.findNearestPointBy.indexOf("y"),b=l.searchPoint(x,f);s(b,!0)&&b.series&&(!s(p,!0)||function(z,T){var nt,dt;let k=z.distX-T.distX,Q=z.dist-T.dist,st=((nt=T.series.group)==null?void 0:nt.zIndex)-((dt=z.series.group)==null?void 0:dt.zIndex);return k!==0&&g?k:Q!==0?Q:st!==0?st:z.series.index>T.series.index?-1:1}(p,b)>0)&&(p=b)}),p}getChartCoordinatesFromPoint(v,g){var f,b;let{xAxis:x,yAxis:p}=v.series,l=v.shapeArgs;if(x&&p){let z=(b=(f=v.clientX)!=null?f:v.plotX)!=null?b:0,T=v.plotY||0;return v.isNode&&l&&M(l.x)&&M(l.y)&&(z=l.x,T=l.y),g?{chartX:p.len+p.pos-T,chartY:x.len+x.pos-z}:{chartX:z+x.pos,chartY:T+p.pos}}if(l&&l.x&&l.y)return{chartX:l.x,chartY:l.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:v}=this.chart,g=w(v);this.chartPosition={left:g.left,top:g.top,scaleX:1,scaleY:1};let{offsetHeight:x,offsetWidth:p}=v;return p>2&&x>2&&(this.chartPosition.scaleX=g.width/p,this.chartPosition.scaleY=g.height/x),this.chartPosition}getCoordinates(v){let g={xAxis:[],yAxis:[]};for(let x of this.chart.axes)g[x.isXAxis?"xAxis":"yAxis"].push({axis:x,value:x.toValue(v[x.horiz?"chartX":"chartY"])});return g}getHoverData(v,g,x,p,l,f){let b=[],z=function(nt){return nt.visible&&!(!l&&nt.directTouch)&&o(nt.options.enableMouseTracking,!0)},T=g,k,Q={chartX:f?f.chartX:void 0,chartY:f?f.chartY:void 0,shared:l};L(this,"beforeGetHoverData",Q),k=T&&!T.stickyTracking?[T]:x.filter(nt=>nt.stickyTracking&&(Q.filter||z)(nt));let st=p&&v||!f?v:this.findNearestKDPoint(k,l,f);return T=st&&st.series,st&&(l&&!T.noSharedTooltip?(k=x.filter(function(nt){return Q.filter?Q.filter(nt):z(nt)&&!nt.noSharedTooltip})).forEach(function(nt){let dt=d(nt.points,function(mt){return mt.x===st.x&&!mt.isNull});s(dt)&&(nt.boosted&&nt.boost&&(dt=nt.boost.getPoint(dt)),b.push(dt))}):b.push(st)),L(this,"afterGetHoverData",Q={hoverPoint:st}),{hoverPoint:Q.hoverPoint,hoverSeries:T,hoverPoints:b}}getPointFromEvent(v){let g=v.target,x;for(;g&&!x;)x=g.point,g=g.parentNode;return x}onTrackerMouseOut(v){let g=this.chart,x=v.relatedTarget,p=g.hoverSeries;this.isDirectTouch=!1,!p||!x||p.stickyTracking||this.inClass(x,"highcharts-tooltip")||this.inClass(x,"highcharts-series-"+p.index)&&this.inClass(x,"highcharts-tracker")||p.onMouseOut()}inClass(v,g){let x=v,p;for(;x;){if(p=X(x,"class")){if(p.indexOf(g)!==-1)return!0;if(p.indexOf("highcharts-container")!==-1)return!1}x=x.parentElement}}constructor(v,g){var x;this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=g,this.chart=v,this.runChartClick=!!((x=g.chart.events)!=null&&x.click),this.pinchDown=[],this.setDOMEvents(),L(this,"afterInit")}normalize(v,g){let x=v.touches,p=x?x.length?x.item(0):o(x.changedTouches,v.changedTouches)[0]:v;g||(g=this.getChartPosition());let l=p.pageX-g.left,f=p.pageY-g.top;return U(v,{chartX:Math.round(l/=g.scaleX),chartY:Math.round(f/=g.scaleY)})}onContainerClick(v){let g=this.chart,x=g.hoverPoint,p=this.normalize(v),l=g.plotLeft,f=g.plotTop;!g.cancelClick&&(x&&this.inClass(p.target,"highcharts-tracker")?(L(x.series,"click",U(p,{point:x})),g.hoverPoint&&x.firePointEvent("click",p)):(U(p,this.getCoordinates(p)),g.isInsidePlot(p.chartX-l,p.chartY-f,{visiblePlotOnly:!0})&&L(g,"click",p)))}onContainerMouseDown(v){var x;let g=(1&(v.buttons||v.button))==1;v=this.normalize(v),B.isFirefox&&v.button!==0&&this.onContainerMouseMove(v),(v.button===void 0||g)&&(this.zoomOption(v),g&&((x=v.preventDefault)==null||x.call(v)),this.dragStart(v))}onContainerMouseLeave(v){let{pointer:g}=q[o(E.hoverChartIndex,-1)]||{};v=this.normalize(v),this.onContainerMouseMove(v),g&&!this.inClass(v.relatedTarget,"highcharts-tooltip")&&(g.reset(),g.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(v){let g=this.chart,x=g.tooltip,p=this.normalize(v);this.setHoverChartIndex(v),(g.mouseIsDown==="mousedown"||this.touchSelect(p))&&this.drag(p),!g.openMenu&&(this.inClass(p.target,"highcharts-tracker")||g.isInsidePlot(p.chartX-g.plotLeft,p.chartY-g.plotTop,{visiblePlotOnly:!0}))&&!(x&&x.shouldStickOnContact(p))&&(this.inClass(p.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(p))}onDocumentTouchEnd(v){this.onDocumentMouseUp(v)}onContainerTouchMove(v){this.touchSelect(v)?this.onContainerMouseMove(v):this.touch(v)}onContainerTouchStart(v){this.touchSelect(v)?this.onContainerMouseDown(v):(this.zoomOption(v),this.touch(v,!0))}onDocumentMouseMove(v){let g=this.chart,x=g.tooltip,p=this.chartPosition,l=this.normalize(v,p);!p||g.isInsidePlot(l.chartX-g.plotLeft,l.chartY-g.plotTop,{visiblePlotOnly:!0})||x&&x.shouldStickOnContact(l)||l.target!==g.container.ownerDocument&&this.inClass(l.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(v){var g,x;(x=(g=q[o(E.hoverChartIndex,-1)])==null?void 0:g.pointer)==null||x.drop(v)}pinch(v){let g=this,{chart:x,hasZoom:p,lastTouches:l}=g,f=[].map.call(v.touches||[],Q=>g.normalize(Q)),b=f.length,z=b===1&&(g.inClass(v.target,"highcharts-tracker")&&x.runTrackerClick||g.runChartClick),T=x.tooltip,k=b===1&&o(T==null?void 0:T.options.followTouchMove,!0);b>1?g.initiated=!0:k&&(g.initiated=!1),p&&g.initiated&&!z&&v.cancelable!==!1&&v.preventDefault(),v.type==="touchstart"?(g.pinchDown=f,g.res=!0,x.mouseDownX=v.chartX):k?this.runPointActions(g.normalize(v)):l&&(L(x,"touchpan",{originalEvent:v,touches:f},()=>{let Q=st=>{let nt=st[0],dt=st[1]||nt;return{x:nt.chartX,y:nt.chartY,width:dt.chartX-nt.chartX,height:dt.chartY-nt.chartY}};x.transform({axes:x.axes.filter(st=>st.zoomEnabled&&(this.zoomHor&&st.horiz||this.zoomVert&&!st.horiz)),to:Q(f),from:Q(l),trigger:v.type})}),g.res&&(g.res=!1,this.reset(!1,0))),g.lastTouches=f}reset(v,g){let x=this.chart,p=x.hoverSeries,l=x.hoverPoint,f=x.hoverPoints,b=x.tooltip,z=b&&b.shared?f:l;v&&z&&C(z).forEach(function(T){T.series.isCartesian&&T.plotX===void 0&&(v=!1)}),v?b&&z&&C(z).length&&(b.refresh(z),b.shared&&f?f.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))}):l&&(l.setState(l.state,!0),x.axes.forEach(function(T){T.crosshair&&l.series[T.coll]===T&&T.drawCrosshair(null,l)}))):(l&&l.onMouseOut(),f&&f.forEach(function(T){T.setState()}),p&&p.onMouseOut(),b&&b.hide(g),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),x.axes.forEach(function(T){T.hideCrosshair()}),x.hoverPoints=x.hoverPoint=void 0)}runPointActions(v,g,x){let p=this.chart,l=p.series,f=p.tooltip&&p.tooltip.options.enabled?p.tooltip:void 0,b=!!f&&f.shared,z=g||p.hoverPoint,T=z&&z.series||p.hoverSeries,k=(!v||v.type!=="touchmove")&&(!!g||T&&T.directTouch&&this.isDirectTouch),Q=this.getHoverData(z,T,l,k,b,v);z=Q.hoverPoint,T=Q.hoverSeries;let st=Q.hoverPoints,nt=T&&T.tooltipOptions.followPointer&&!T.tooltipOptions.split,dt=b&&T&&!T.noSharedTooltip;if(z&&(x||z!==p.hoverPoint||f&&f.isHidden)){if((p.hoverPoints||[]).forEach(function(mt){st.indexOf(mt)===-1&&mt.setState()}),p.hoverSeries!==T&&T.onMouseOver(),this.applyInactiveState(st),(st||[]).forEach(function(mt){mt.setState("hover")}),p.hoverPoint&&p.hoverPoint.firePointEvent("mouseOut"),!z.series)return;p.hoverPoints=st,p.hoverPoint=z,z.firePointEvent("mouseOver",void 0,()=>{f&&z&&f.refresh(dt?st:z,v)})}else if(nt&&f&&!f.isHidden){let mt=f.getAnchor([{}],v);p.isInsidePlot(mt[0],mt[1],{visiblePlotOnly:!0})&&f.updatePosition({plotX:mt[0],plotY:mt[1]})}this.unDocMouseMove||(this.unDocMouseMove=H(p.container.ownerDocument,"mousemove",mt=>{var Et,Mt,I;return(I=(Mt=q[(Et=E.hoverChartIndex)!=null?Et:-1])==null?void 0:Mt.pointer)==null?void 0:I.onDocumentMouseMove(mt)}),this.eventsToUnbind.push(this.unDocMouseMove)),p.axes.forEach(function(mt){let Et,Mt=o((mt.crosshair||{}).snap,!0);!Mt||(Et=p.hoverPoint)&&Et.series[mt.coll]===mt||(Et=d(st,I=>I.series&&I.series[mt.coll]===mt)),Et||!Mt?mt.drawCrosshair(v,Et):mt.hideCrosshair()})}setDOMEvents(){let v=this.chart.container,g=v.ownerDocument;v.onmousedown=this.onContainerMouseDown.bind(this),v.onmousemove=this.onContainerMouseMove.bind(this),v.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(H(v,"mouseenter",this.onContainerMouseEnter.bind(this)),H(v,"mouseleave",this.onContainerMouseLeave.bind(this))),E.unbindDocumentMouseUp||(E.unbindDocumentMouseUp=[]),E.unbindDocumentMouseUp.push(H(g,"mouseup",this.onDocumentMouseUp.bind(this)));let x=this.chart.renderTo.parentElement;for(;x&&x.tagName!=="BODY";)this.eventsToUnbind.push(H(x,"scroll",()=>{delete this.chartPosition})),x=x.parentElement;this.eventsToUnbind.push(H(v,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),H(v,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),E.unbindDocumentTouchEnd||(E.unbindDocumentTouchEnd=H(g,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),H(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){var l,f;if(!tt)return;let v=this.pointerCaptureEventsToUnbind,g=this.chart,x=g.container,p=o((l=g.options.tooltip)==null?void 0:l.followTouchMove,!0)&&g.series.some(b=>b.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&p?(v.push(H(x,"pointerdown",b=>{var z,T;(z=b.target)!=null&&z.hasPointerCapture(b.pointerId)&&((T=b.target)==null||T.releasePointerCapture(b.pointerId))}),H(x,"pointermove",b=>{var z,T;(T=(z=g.pointer)==null?void 0:z.getPointFromEvent(b))==null||T.onMouseOver(b)})),g.styledMode||F(x,{"touch-action":"none"}),x.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!p&&(v.forEach(b=>b()),v.length=0,g.styledMode||F(x,{"touch-action":o((f=g.options.chart.style)==null?void 0:f["touch-action"],"manipulation")}),x.className=x.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(v){var p;let g=this.chart,x=B.charts[o(E.hoverChartIndex,-1)];if(x&&x!==g){let l={relatedTarget:g.container};v&&!(v!=null&&v.relatedTarget)&&(v=Fr(Fr({},l),v)),(p=x.pointer)==null||p.onContainerMouseLeave(v||l)}x&&x.mouseIsDown||(E.hoverChartIndex=g.index)}touch(v,g){let x,{chart:p,pinchDown:l=[]}=this;this.setHoverChartIndex(),(v=this.normalize(v)).touches.length===1?p.isInsidePlot(v.chartX-p.plotLeft,v.chartY-p.plotTop,{visiblePlotOnly:!0})&&!p.openMenu?(g&&this.runPointActions(v),v.type==="touchmove"&&(x=!!l[0]&&Math.pow(l[0].chartX-v.chartX,2)+Math.pow(l[0].chartY-v.chartY,2)>=16),o(x,!0)&&this.pinch(v)):g&&this.reset():v.touches.length===2&&this.pinch(v)}touchSelect(v){return!!(this.chart.zooming.singleTouch&&v.touches&&v.touches.length===1)}zoomOption(v){let g=this.chart,x=g.inverted,p=g.zooming.type||"",l,f;/touch/.test(v.type)&&(p=o(g.zooming.pinchType,p)),this.zoomX=l=/x/.test(p),this.zoomY=f=/y/.test(p),this.zoomHor=l&&!x||f&&x,this.zoomVert=f&&!x||l&&x,this.hasZoom=l||f}}return(K=E||(E={})).compose=function(S){u(Z,"Core.Pointer")&&H(S,"beforeRender",function(){this.pointer=new K(this,this.options)})},E}),y(m,"Core/Legend/LegendSymbol.js",[m["Core/Utilities.js"]],function(R){var B;let{extend:et,merge:K,pick:J}=R;return function(q){function Z(tt,H,X){var x,p;let F=this.legendItem=this.legendItem||{},{chart:U,options:d}=this,{baseline:L=0,symbolWidth:M,symbolHeight:s}=tt,_=this.symbol||"circle",w=s/2,o=U.renderer,u=F.group,C=L-Math.round((((x=tt.fontMetrics)==null?void 0:x.b)||s)*(X?.4:.3)),E={},S,v=d.marker,g=0;if(U.styledMode||(E["stroke-width"]=Math.min(d.lineWidth||0,24),d.dashStyle?E.dashstyle=d.dashStyle:d.linecap==="square"||(E["stroke-linecap"]="round")),F.line=o.path().addClass("highcharts-graph").attr(E).add(u),X&&(F.area=o.path().addClass("highcharts-area").add(u)),E["stroke-linecap"]&&(g=Math.min(F.line.strokeWidth(),M)/2),M){let l=[["M",g,C],["L",M-g,C]];F.line.attr({d:l}),(p=F.area)==null||p.attr({d:[...l,["L",M-g,L],["L",g,L]]})}if(v&&v.enabled!==!1&&M){let l=Math.min(J(v.radius,w),w);_.indexOf("url")===0&&(v=K(v,{width:s,height:s}),l=0),F.symbol=S=o.symbol(_,M/2-l,C-l,2*l,2*l,et({context:"legend"},v)).addClass("highcharts-point").add(u),S.isMarker=!0}}q.areaMarker=function(tt,H){Z.call(this,tt,H,!0)},q.lineMarker=Z,q.rectangle=function(tt,H){let X=H.legendItem||{},F=tt.options,U=tt.symbolHeight,d=F.squareSymbol,L=d?U:tt.symbolWidth;X.symbol=this.chart.renderer.rect(d?(tt.symbolWidth-U)/2:0,tt.baseline-U+1,L,U,J(tt.options.symbolRadius,U/2)).addClass("highcharts-point").attr({zIndex:3}).add(X.group)}}(B||(B={})),B}),y(m,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:R}=this.series.chart;return typeof this.y!="number"?"":R(this.y,-1)},padding:5,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"}}),y(m,"Core/Series/SeriesRegistry.js",[m["Core/Globals.js"],m["Core/Defaults.js"],m["Core/Series/Point.js"],m["Core/Utilities.js"]],function(R,B,et,K){var J;let{defaultOptions:q}=B,{extend:Z,extendClass:tt,merge:H}=K;return function(X){function F(U,d){let L=q.plotOptions||{},M=d.defaultOptions,s=d.prototype;return s.type=U,s.pointClass||(s.pointClass=et),!X.seriesTypes[U]&&(M&&(L[U]=M),X.seriesTypes[U]=d,!0)}X.seriesTypes=R.seriesTypes,X.registerSeriesType=F,X.seriesType=function(U,d,L,M,s){let _=q.plotOptions||{};if(d=d||"",_[U]=H(_[d],L),delete X.seriesTypes[U],F(U,tt(X.seriesTypes[d]||function(){},M)),X.seriesTypes[U].prototype.type=U,s){class w extends et{}Z(w.prototype,s),X.seriesTypes[U].prototype.pointClass=w}return X.seriesTypes[U]}}(J||(J={})),J}),y(m,"Core/Series/Series.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Defaults.js"],m["Core/Foundation.js"],m["Core/Globals.js"],m["Core/Legend/LegendSymbol.js"],m["Core/Series/Point.js"],m["Core/Series/SeriesDefaults.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Renderer/SVG/SVGElement.js"],m["Core/Utilities.js"]],function(R,B,et,K,J,q,Z,tt,H,X){let{animObject:F,setAnimation:U}=R,{defaultOptions:d}=B,{registerEventOptions:L}=et,{svg:M,win:s}=K,{seriesTypes:_}=tt,{arrayMax:w,arrayMin:o,clamp:u,correctFloat:C,crisp:E,defined:S,destroyObjectProperties:v,diffObjects:g,erase:x,error:p,extend:l,find:f,fireEvent:b,getClosestDistance:z,getNestedProperty:T,insertItem:k,isArray:Q,isNumber:st,isString:nt,merge:dt,objectEach:mt,pick:Et,removeEvent:Mt,splat:I,syncTimeout:Y}=X;class rt{constructor(){this.zoneAxis="y"}init(D,P){let W;b(this,"init",{options:P});let lt=this,it=D.series;this.eventsToUnbind=[],lt.chart=D,lt.options=lt.setOptions(P);let vt=lt.options,pt=vt.visible!==!1;lt.linkedSeries=[],lt.bindAxes(),l(lt,{name:vt.name,state:"",visible:pt,selected:vt.selected===!0}),L(this,vt);let xt=vt.events;(xt&&xt.click||vt.point&&vt.point.events&&vt.point.events.click||vt.allowPointSelect)&&(D.runTrackerClick=!0),lt.getColor(),lt.getSymbol(),lt.parallelArrays.forEach(function(Ct){lt[Ct+"Data"]||(lt[Ct+"Data"]=[])}),lt.isCartesian&&(D.hasCartesianSeries=!0),it.length&&(W=it[it.length-1]),lt._i=Et(W&&W._i,-1)+1,lt.opacity=lt.options.opacity,D.orderItems("series",k(this,it)),vt.dataSorting&&vt.dataSorting.enabled?lt.setDataSortingOptions():lt.points||lt.data||lt.setData(vt.data,!1),b(this,"afterInit")}is(D){return _[D]&&this instanceof _[D]}bindAxes(){let D,P=this,W=P.options,lt=P.chart;b(this,"bindAxes",null,function(){(P.axisTypes||[]).forEach(function(it){(lt[it]||[]).forEach(function(vt){D=vt.options,(Et(W[it],0)===vt.index||W[it]!==void 0&&W[it]===D.id)&&(k(P,vt.series),P[it]=vt,vt.isDirty=!0)}),P[it]||P.optionalAxis===it||p(18,!0,lt)})}),b(this,"afterBindAxes")}updateParallelArrays(D,P,W){let lt=D.series,it=st(P)?function(vt){let pt=vt==="y"&<.toYData?lt.toYData(D):D[vt];lt[vt+"Data"][P]=pt}:function(vt){Array.prototype[P].apply(lt[vt+"Data"],W)};lt.parallelArrays.forEach(it)}hasData(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&this.yData.length>0}hasMarkerChanged(D,P){let W=D.marker,lt=P.marker||{};return W&&(lt.enabled&&!W.enabled||lt.symbol!==W.symbol||lt.height!==W.height||lt.width!==W.width)}autoIncrement(D){let P=this.options,W=P.pointIntervalUnit,lt=P.relativeXValue,it=this.chart.time,vt=this.xIncrement,pt,xt;return vt=Et(vt,P.pointStart,0),this.pointInterval=xt=Et(this.pointInterval,P.pointInterval,1),lt&&st(D)&&(xt*=D),W&&(pt=new it.Date(vt),W==="day"?it.set("Date",pt,it.get("Date",pt)+xt):W==="month"?it.set("Month",pt,it.get("Month",pt)+xt):W==="year"&&it.set("FullYear",pt,it.get("FullYear",pt)+xt),xt=pt.getTime()-vt),lt&&st(D)?vt+xt:(this.xIncrement=vt+xt,vt)}setDataSortingOptions(){let D=this.options;l(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),S(D.pointRange)||(D.pointRange=1)}setOptions(D){var Zt,ne;let P,W=this.chart,lt=W.options.plotOptions,it=W.userOptions||{},vt=dt(D),pt=W.styledMode,xt={plotOptions:lt,userOptions:vt};b(this,"setOptions",xt);let Ct=xt.plotOptions[this.type],Tt=it.plotOptions||{},Nt=Tt.series||{},gt=d.plotOptions[this.type]||{},wt=Tt[this.type]||{};this.userOptions=xt.userOptions;let Rt=dt(Ct,lt.series,wt,vt);this.tooltipOptions=dt(d.tooltip,(Zt=d.plotOptions.series)==null?void 0:Zt.tooltip,gt==null?void 0:gt.tooltip,W.userOptions.tooltip,(ne=Tt.series)==null?void 0:ne.tooltip,wt.tooltip,vt.tooltip),this.stickyTracking=Et(vt.stickyTracking,wt.stickyTracking,Nt.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||Rt.stickyTracking),Ct.marker===null&&delete Rt.marker,this.zoneAxis=Rt.zoneAxis||"y";let jt=this.zones=(Rt.zones||[]).map(Wt=>Fr({},Wt));return(Rt.negativeColor||Rt.negativeFillColor)&&!Rt.zones&&(P={value:Rt[this.zoneAxis+"Threshold"]||Rt.threshold||0,className:"highcharts-negative"},pt||(P.color=Rt.negativeColor,P.fillColor=Rt.negativeFillColor),jt.push(P)),jt.length&&S(jt[jt.length-1].value)&&jt.push(pt?{}:{color:this.color,fillColor:this.fillColor}),b(this,"afterSetOptions",{options:Rt}),Rt}getName(){return Et(this.options.name,"Series "+(this.index+1))}getCyclic(D,P,W){let lt,it,vt=this.chart,pt=`${D}Index`,xt=`${D}Counter`,Ct=(W==null?void 0:W.length)||vt.options.chart.colorCount;!P&&(S(it=Et(D==="color"?this.options.colorIndex:void 0,this[pt]))?lt=it:(vt.series.length||(vt[xt]=0),lt=vt[xt]%Ct,vt[xt]+=1),W&&(P=W[lt])),lt!==void 0&&(this[pt]=lt),this[D]=P}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||d.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let D=this.options.marker;this.getCyclic("symbol",D.symbol,this.chart.options.symbols)}findPointIndex(D,P){let W,lt,it,vt=D.id,pt=D.x,xt=this.points,Ct=this.options.dataSorting;if(vt){let Tt=this.chart.get(vt);Tt instanceof q&&(W=Tt)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let Tt=Nt=>!Nt.touched&&Nt.index===D.index;if(Ct&&Ct.matchByName?Tt=Nt=>!Nt.touched&&Nt.name===D.name:this.options.relativeXValue&&(Tt=Nt=>!Nt.touched&&Nt.options.x===D.x),!(W=f(xt,Tt)))return}return W&&(it=W&&W.index)!==void 0&&(lt=!0),it===void 0&&st(pt)&&(it=this.xData.indexOf(pt,P)),it!==-1&&it!==void 0&&this.cropped&&(it=it>=this.cropStart?it-this.cropStart:it),!lt&&st(it)&&xt[it]&&xt[it].touched&&(it=void 0),it}updateData(D,P){let W=this.options,lt=W.dataSorting,it=this.points,vt=[],pt=this.requireSorting,xt=D.length===it.length,Ct,Tt,Nt,gt,wt=!0;if(this.xIncrement=null,D.forEach(function(Rt,jt){let Zt,ne=S(Rt)&&this.pointClass.prototype.optionsToObject.call({series:this},Rt)||{},Wt=ne.x;ne.id||st(Wt)?((Zt=this.findPointIndex(ne,gt))===-1||Zt===void 0?vt.push(Rt):it[Zt]&&Rt!==W.data[Zt]?(it[Zt].update(Rt,!1,null,!1),it[Zt].touched=!0,pt&&(gt=Zt+1)):it[Zt]&&(it[Zt].touched=!0),(!xt||jt!==Zt||lt&<.enabled||this.hasDerivedData)&&(Ct=!0)):vt.push(Rt)},this),Ct)for(Tt=it.length;Tt--;)(Nt=it[Tt])&&!Nt.touched&&Nt.remove&&Nt.remove(!1,P);else!xt||lt&<.enabled?wt=!1:(D.forEach(function(Rt,jt){Rt===it[jt].y||it[jt].destroyed||it[jt].update(Rt,!1,null,!1)}),vt.length=0);return it.forEach(function(Rt){Rt&&(Rt.touched=!1)}),!!wt&&(vt.forEach(function(Rt){this.addPoint(Rt,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=w(this.xData),this.autoIncrement()),!0)}setData(D,P=!0,W,lt){var on;let it=this,vt=it.points,pt=vt&&vt.length||0,xt=it.options,Ct=it.chart,Tt=xt.dataSorting,Nt=it.xAxis,gt=xt.turboThreshold,wt=this.xData,Rt=this.yData,jt=it.pointArrayMap,Zt=jt&&jt.length,ne=xt.keys,Wt,le,fe,xe=0,be=1,Ye;Ct.options.chart.allowMutatingData||(xt.data&&delete it.options.data,it.userOptions.data&&delete it.userOptions.data,Ye=dt(!0,D));let tn=(D=Ye||D||[]).length;if(Tt&&Tt.enabled&&(D=this.sortData(D)),Ct.options.chart.allowMutatingData&<!==!1&&tn&&pt&&!it.cropped&&!it.hasGroupedData&&it.visible&&!it.boosted&&(fe=this.updateData(D,W)),!fe){it.xIncrement=null,it.colorCounter=0,this.parallelArrays.forEach(function(Kt){it[Kt+"Data"].length=0});let Jt=gt&&tn>gt;if(Jt){let Kt=it.getFirstValidPoint(D),te=it.getFirstValidPoint(D,tn-1,-1),Ot=Bt=>!!(Q(Bt)&&(ne||st(Bt[0])));if(st(Kt)&&st(te))for(Wt=0;Wt=0?xe:0,be=be>=0?be:1),Kt.length===1&&(be=0),xe===be)for(Wt=0;Wt{let pt=T(W,it),xt=T(W,vt);return xtpt?1:0}).forEach(function(it,vt){it.x=vt},this),P.linkedSeries&&P.linkedSeries.forEach(function(it){let vt=it.options,pt=vt.data;vt.dataSorting&&vt.dataSorting.enabled||!pt||(pt.forEach(function(xt,Ct){pt[Ct]=lt(it,xt),D[Ct]&&(pt[Ct].x=D[Ct].x,pt[Ct].index=Ct)}),it.setData(pt,!1))}),D}getProcessedData(D){let P=this,W=P.xAxis,lt=P.options.cropThreshold,it=W==null?void 0:W.logarithmic,vt=P.isCartesian,pt,xt,Ct=0,Tt,Nt,gt,wt=P.xData,Rt=P.yData,jt=!1,Zt=wt.length;W&&(Nt=(Tt=W.getExtremes()).min,gt=Tt.max,jt=!!(W.categories&&!W.names.length)),vt&&P.sorted&&!D&&(!lt||Zt>lt||P.forceCrop)&&(wt[Zt-1]gt?(wt=[],Rt=[]):P.yData&&(wt[0]gt)&&(wt=(pt=this.cropData(P.xData,P.yData,Nt,gt)).xData,Rt=pt.yData,Ct=pt.start,xt=!0));let ne=z([it?wt.map(it.log2lin):wt],()=>P.requireSorting&&!jt&&p(15,!1,P.chart));return{xData:wt,yData:Rt,cropped:xt,cropStart:Ct,closestPointRange:ne}}processData(D){let P=this.xAxis;if(this.isCartesian&&!this.isDirty&&!P.isDirty&&!this.yAxis.isDirty&&!D)return!1;let W=this.getProcessedData();this.cropped=W.cropped,this.cropStart=W.cropStart,this.processedXData=W.xData,this.processedYData=W.yData,this.closestPointRange=this.basePointRange=W.closestPointRange,b(this,"afterProcessData")}cropData(D,P,W,lt){let it=D.length,vt,pt,xt=0,Ct=it;for(vt=0;vt=W){xt=Math.max(0,vt-1);break}for(pt=vt;ptlt){Ct=pt+1;break}return{xData:D.slice(xt,Ct),yData:P.slice(xt,Ct),start:xt,end:Ct}}generatePoints(){let D=this.options,P=this.processedData||D.data,W=this.processedXData,lt=this.processedYData,it=this.pointClass,vt=W.length,pt=this.cropStart||0,xt=this.hasGroupedData,Ct=D.keys,Tt=[],Nt=D.dataGrouping&&D.dataGrouping.groupAll?pt:0,gt,wt,Rt,jt,Zt=this.data;if(!Zt&&!xt){let ne=[];ne.length=P.length,Zt=this.data=ne}for(Ct&&xt&&(this.options.keys=!1),jt=0;jt0:jt.length)||!pt),wt=P||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!W||(be[Zt+vt]||Rt)>=Wt&&(be[Zt-vt]||Rt)<=le,gt&&wt)if(ne=jt.length)for(;ne--;)st(jt[ne])&&(it[fe++]=jt[ne]);else it[fe++]=jt;let Ye={activeYData:it,dataMin:o(it),dataMax:w(it)};return b(this,"afterGetExtremes",{dataExtremes:Ye}),Ye}applyExtremes(){let D=this.getExtremes();return this.dataMin=D.dataMin,this.dataMax=D.dataMax,D}getFirstValidPoint(D,P=0,W=1){let lt=D.length,it=P;for(;it>=0&&it1)&&(vt.step=function(gt,wt){Nt&&Nt.apply(wt,arguments),wt.prop==="width"&&(Ct!=null&&Ct.element)&&Ct.attr(it?"height":"width",gt+99)}),xt.addClass("highcharts-animating").animate(Tt,vt)}}afterAnimate(){this.setClip(),mt(this.chart.sharedClips,(D,P,W)=>{D&&!this.chart.container.querySelector(`[clip-path="url(#${D.id})"]`)&&(D.destroy(),delete W[P])}),this.finishedAnimating=!0,b(this,"afterAnimate")}drawPoints(D=this.points){let P,W,lt,it,vt,pt,xt,Ct=this.chart,Tt=Ct.styledMode,{colorAxis:Nt,options:gt}=this,wt=gt.marker,Rt=this[this.specialGroup||"markerGroup"],jt=this.xAxis,Zt=Et(wt.enabled,!jt||!!jt.isRadial||null,this.closestPointRangePx>=wt.enabledThreshold*wt.radius);if(wt.enabled!==!1||this._hasPointMarkers)for(P=0;P0||W.hasImage)&&(W.graphic=lt=Ct.renderer.symbol(ne,xt.x,xt.y,xt.width,xt.height,pt?vt:wt).add(Rt),this.enabledDataSorting&&Ct.hasRendered&&(lt.attr({x:W.startXPos}),it="animate")),lt&&it==="animate"&<[Wt?"show":"hide"](Wt).animate(xt),lt){let le=this.pointAttribs(W,Tt||!W.selected?void 0:"select");Tt?Nt&<.css({fill:le.fill}):lt[it](le)}lt&<.addClass(W.getClassName(),!0)}else lt&&(W.graphic=lt.destroy())}markerAttribs(D,P){let W=this.options,lt=W.marker,it=D.marker||{},vt=it.symbol||lt.symbol,pt={},xt,Ct,Tt=Et(it.radius,lt&<.radius);P&&(xt=lt.states[P],Tt=Et((Ct=it.states&&it.states[P])&&Ct.radius,xt&&xt.radius,Tt&&Tt+(xt&&xt.radiusPlus||0))),D.hasImage=vt&&vt.indexOf("url")===0,D.hasImage&&(Tt=0);let Nt=D.pos();return st(Tt)&&Nt&&(W.crisp&&(Nt[0]=E(Nt[0],D.hasImage?0:vt==="rect"?(lt==null?void 0:lt.lineWidth)||0:1)),pt.x=Nt[0]-Tt,pt.y=Nt[1]-Tt),Tt&&(pt.width=pt.height=2*Tt),pt}pointAttribs(D,P){let W=this.options.marker,lt=D&&D.options,it=lt&<.marker||{},vt=lt&<.color,pt=D&&D.color,xt=D&&D.zone&&D.zone.color,Ct,Tt,Nt=this.color,gt,wt,Rt=Et(it.lineWidth,W.lineWidth),jt=1;return Nt=vt||xt||pt||Nt,gt=it.fillColor||W.fillColor||Nt,wt=it.lineColor||W.lineColor||Nt,P=P||"normal",Ct=W.states[P]||{},Rt=Et((Tt=it.states&&it.states[P]||{}).lineWidth,Ct.lineWidth,Rt+Et(Tt.lineWidthPlus,Ct.lineWidthPlus,0)),gt=Tt.fillColor||Ct.fillColor||gt,{stroke:wt=Tt.lineColor||Ct.lineColor||wt,"stroke-width":Rt,fill:gt,opacity:jt=Et(Tt.opacity,Ct.opacity,jt)}}destroy(D){let P,W,lt,it=this,vt=it.chart,pt=/AppleWebKit\/533/.test(s.navigator.userAgent),xt=it.data||[];for(b(it,"destroy",{keepEventsForUpdate:D}),this.removeEvents(D),(it.axisTypes||[]).forEach(function(Ct){(lt=it[Ct])&<.series&&(x(lt.series,it),lt.isDirty=lt.forceRedraw=!0)}),it.legendItem&&it.chart.legend.destroyItem(it),P=xt.length;P--;)(W=xt[P])&&W.destroy&&W.destroy();for(let Ct of it.zones)v(Ct,void 0,!0);X.clearTimeout(it.animationTimeout),mt(it,function(Ct,Tt){Ct instanceof H&&!Ct.survive&&Ct[pt&&Tt==="group"?"hide":"destroy"]()}),vt.hoverSeries===it&&(vt.hoverSeries=void 0),x(vt.series,it),vt.orderItems("series"),mt(it,function(Ct,Tt){D&&Tt==="hcEvents"||delete it[Tt]})}applyZones(){let{area:D,chart:P,graph:W,zones:lt,points:it,xAxis:vt,yAxis:pt,zoneAxis:xt}=this,{inverted:Ct,renderer:Tt}=P,Nt=this[`${xt}Axis`],{isXAxis:gt,len:wt=0}=Nt||{},Rt=((W==null?void 0:W.strokeWidth())||0)/2+1,jt=(Zt,ne=0,Wt=0)=>{Ct&&(Wt=wt-Wt);let{translated:le=0,lineClip:fe}=Zt,xe=Wt-le;fe==null||fe.push(["L",ne,Math.abs(xe){fe.forEach((xe,be)=>{(xe[0]==="M"||xe[0]==="L")&&(fe[be]=[xe[0],gt?wt-xe[1]:xe[1],gt?xe[2]:wt-xe[2]])})};if(lt.forEach(fe=>{fe.lineClip=[],fe.translated=u(Nt.toPixels(Et(fe.value,Zt),!0)||0,0,wt)}),W&&!this.showLine&&W.hide(),D&&D.hide(),xt==="y"&&it.length{var Ut,zt;let xe=fe.lineClip||[],be=Math.round(fe.translated||0);vt.reversed&&xe.reverse();let{clip:Ye,simpleClip:tn}=fe,on=0,Jt=0,Kt=vt.len,te=pt.len;gt?(on=be,Kt=le):(Jt=be,te=le);let Ot=[["M",on,Jt],["L",Kt,Jt],["L",Kt,te],["L",on,te],["Z"]],Bt=[Ot[0],...xe,Ot[1],Ot[2],...Wt,Ot[3],Ot[4]];Wt=xe.reverse(),le=be,Ct&&(ne(Bt),D&&ne(Ot)),Ye?(Ye.animate({d:Bt}),tn==null||tn.animate({d:Ot})):(Ye=fe.clip=Tt.path(Bt),D&&(tn=fe.simpleClip=Tt.path(Ot))),W&&((Ut=fe.graph)==null||Ut.clip(Ye)),D&&((zt=fe.area)==null||zt.clip(tn))})}else this.visible&&(W&&W.show(),D&&D.show())}plotGroup(D,P,W,lt,it){let vt=this[D],pt=!vt,xt={visibility:W,zIndex:lt||.1};return S(this.opacity)&&!this.chart.styledMode&&this.state!=="inactive"&&(xt.opacity=this.opacity),vt||(this[D]=vt=this.chart.renderer.g().add(it)),vt.addClass("highcharts-"+P+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(S(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(vt.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),vt.attr(xt)[pt?"attr":"animate"](this.getPlotBox(P)),vt}getPlotBox(D){let P=this.xAxis,W=this.yAxis,lt=this.chart,it=lt.inverted&&!lt.polar&&P&&this.invertible&&D==="series";return lt.inverted&&(P=W,W=this.xAxis),{translateX:P?P.left:lt.plotLeft,translateY:W?W.top:lt.plotTop,rotation:it?90:0,rotationOriginX:it?(P.len-W.len)/2:0,rotationOriginY:it?(P.len+W.len)/2:0,scaleX:it?-1:1,scaleY:1}}removeEvents(D){let{eventsToUnbind:P}=this;D||Mt(this),P.length&&(P.forEach(W=>{W()}),P.length=0)}render(){var Tt,Nt,gt,wt,Rt;let D=this,{chart:P,options:W,hasRendered:lt}=D,it=F(W.animation),vt=D.visible?"inherit":"hidden",pt=W.zIndex,xt=P.seriesGroup,Ct=D.finishedAnimating?0:it.duration;b(this,"render"),D.plotGroup("group","series",vt,pt,xt),D.markerGroup=D.plotGroup("markerGroup","markers",vt,pt,xt),W.clip!==!1&&D.setClip(),Ct&&((Tt=D.animate)==null||Tt.call(D,!0)),D.drawGraph&&(D.drawGraph(),D.applyZones()),D.visible&&D.drawPoints(),(Nt=D.drawDataLabels)==null||Nt.call(D),(gt=D.redrawPoints)==null||gt.call(D),W.enableMouseTracking&&((wt=D.drawTracker)==null||wt.call(D)),Ct&&((Rt=D.animate)==null||Rt.call(D)),lt||(Ct&&it.defer&&(Ct+=it.defer),D.animationTimeout=Y(()=>{D.afterAnimate()},Ct||0)),D.isDirty=!1,D.hasRendered=!0,b(D,"afterRender")}redraw(){let D=this.isDirty||this.isDirtyData;this.translate(),this.render(),D&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(D,P){let{xAxis:W,yAxis:lt}=this,it=this.chart.inverted;return this.searchKDTree({clientX:it?W.len-D.chartY+W.pos:D.chartX-W.pos,plotY:it?lt.len-D.chartX+lt.pos:D.chartY-lt.pos},P,D)}buildKDTree(D){this.buildingKdTree=!0;let P=this,W=P.options.findNearestPointBy.indexOf("y")>-1?2:1;delete P.kdTree,Y(function(){P.kdTree=function lt(it,vt,pt){let xt,Ct,Tt=it==null?void 0:it.length;if(Tt)return xt=P.kdAxisArray[vt%pt],it.sort((Nt,gt)=>(Nt[xt]||0)-(gt[xt]||0)),{point:it[Ct=Math.floor(Tt/2)],left:lt(it.slice(0,Ct),vt+1,pt),right:lt(it.slice(Ct+1),vt+1,pt)}}(P.getValidPoints(void 0,!P.directTouch),W,W),P.buildingKdTree=!1},P.options.kdNow||(D==null?void 0:D.type)==="touchstart"?0:1)}searchKDTree(D,P,W){let lt=this,[it,vt]=this.kdAxisArray,pt=P?"distX":"dist",xt=(lt.options.findNearestPointBy||"").indexOf("y")>-1?2:1,Ct=!!lt.isBubble;if(this.kdTree||this.buildingKdTree||this.buildKDTree(W),this.kdTree)return function Tt(Nt,gt,wt,Rt){var Ye;let jt=gt.point,Zt=lt.kdAxisArray[wt%Rt],ne,Wt,le=jt;(function(tn,on){var ce;let Jt=tn[it],Kt=on[it],te=S(Jt)&&S(Kt)?Jt-Kt:null,Ot=tn[vt],Bt=on[vt],Ut=S(Ot)&&S(Bt)?Ot-Bt:0,zt=Ct&&((ce=on.marker)==null?void 0:ce.radius)||0;on.dist=Math.sqrt((te&&te*te||0)+Ut*Ut)-zt,on.distX=S(te)?Math.abs(te)-zt:Number.MAX_VALUE})(Nt,jt);let fe=(Nt[Zt]||0)-(jt[Zt]||0)+(Ct&&((Ye=jt.marker)==null?void 0:Ye.radius)||0),xe=fe<0?"left":"right",be=fe<0?"right":"left";return gt[xe]&&(le=(ne=Tt(Nt,gt[xe],wt+1,Rt))[pt]=0&&vt<=(lt?lt.len:P.plotHeight)&&it>=0&&it<=(W?W.len:P.plotWidth)}drawTracker(){var gt;let D=this,P=D.options,W=P.trackByArea,lt=[].concat((W?D.areaPath:D.graphPath)||[]),it=D.chart,vt=it.pointer,pt=it.renderer,xt=((gt=it.options.tooltip)==null?void 0:gt.snap)||0,Ct=()=>{P.enableMouseTracking&&it.hoverSeries!==D&&D.onMouseOver()},Tt="rgba(192,192,192,"+(M?1e-4:.002)+")",Nt=D.tracker;Nt?Nt.attr({d:lt}):D.graph&&(D.tracker=Nt=pt.path(lt).attr({visibility:D.visible?"inherit":"hidden",zIndex:2}).addClass(W?"highcharts-tracker-area":"highcharts-tracker-line").add(D.group),it.styledMode||Nt.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:Tt,fill:W?Tt:"none","stroke-width":D.graph.strokeWidth()+(W?0:2*xt)}),[D.tracker,D.markerGroup,D.dataLabelsGroup].forEach(wt=>{wt&&(wt.addClass("highcharts-tracker").on("mouseover",Ct).on("mouseout",Rt=>{vt==null||vt.onTrackerMouseOut(Rt)}),P.cursor&&!it.styledMode&&wt.css({cursor:P.cursor}),wt.on("touchstart",Ct))})),b(this,"afterDrawTracker")}addPoint(D,P,W,lt,it){let vt,pt,xt=this.options,Ct=this.data,Tt=this.chart,Nt=this.xAxis,gt=Nt&&Nt.hasNames&&Nt.names,wt=xt.data,Rt=this.xData;P=Et(P,!0);let jt={series:this};this.pointClass.prototype.applyOptions.apply(jt,[D]);let Zt=jt.x;if(pt=Rt.length,this.requireSorting&&ZtZt;)pt--;this.updateParallelArrays(jt,"splice",[pt,0,0]),this.updateParallelArrays(jt,pt),gt&&jt.name&&(gt[Zt]=jt.name),wt.splice(pt,0,D),(vt||this.processedData)&&(this.data.splice(pt,0,null),this.processData()),xt.legendType==="point"&&this.generatePoints(),W&&(Ct[0]&&Ct[0].remove?Ct[0].remove(!1):(Ct.shift(),this.updateParallelArrays(jt,"shift"),wt.shift())),it!==!1&&b(this,"addPoint",{point:jt}),this.isDirty=!0,this.isDirtyData=!0,P&&Tt.redraw(lt)}removePoint(D,P,W){let lt=this,it=lt.data,vt=it[D],pt=lt.points,xt=lt.chart,Ct=function(){pt&&pt.length===it.length&&pt.splice(D,1),it.splice(D,1),lt.options.data.splice(D,1),lt.updateParallelArrays(vt||{series:lt},"splice",[D,1]),vt&&vt.destroy(),lt.isDirty=!0,lt.isDirtyData=!0,P&&xt.redraw()};U(W,xt),P=Et(P,!0),vt?vt.firePointEvent("remove",null,Ct):Ct()}remove(D,P,W,lt){let it=this,vt=it.chart;function pt(){it.destroy(lt),vt.isDirtyLegend=vt.isDirtyBox=!0,vt.linkSeries(lt),Et(D,!0)&&vt.redraw(P)}W!==!1?b(it,"remove",null,pt):pt()}update(D,P){var ne,Wt,le,fe,xe;b(this,"update",{options:D=g(D,this.userOptions)});let W=this,lt=W.chart,it=W.userOptions,vt=W.initialType||W.type,pt=lt.options.plotOptions,xt=_[vt].prototype,Ct=W.finishedAnimating&&{animation:!1},Tt={},Nt,gt,wt=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],Rt=D.type||it.type||lt.options.chart.type,jt=!(this.hasDerivedData||Rt&&Rt!==this.type||D.pointStart!==void 0||D.pointInterval!==void 0||D.relativeXValue!==void 0||D.joinBy||D.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(be=>W.hasOptionChanged(be)));Rt=Rt||vt,jt&&(wt.push("data","isDirtyData","isDirtyCanvas","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),D.visible!==!1&&wt.push("area","graph"),W.parallelArrays.forEach(function(be){wt.push(be+"Data")}),D.data&&(D.dataSorting&&l(W.options.dataSorting,D.dataSorting),this.setData(D.data,!1))),D=dt(it,{index:it.index===void 0?W.index:it.index,pointStart:(fe=(Wt=(ne=pt==null?void 0:pt.series)==null?void 0:ne.pointStart)!=null?Wt:it.pointStart)!=null?fe:(le=W.xData)==null?void 0:le[0]},!jt&&{data:W.options.data},D,Ct),jt&&D.data&&(D.data=W.options.data),(wt=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(wt)).forEach(function(be){wt[be]=W[be],delete W[be]});let Zt=!1;if(_[Rt]){if(Zt=Rt!==W.type,W.remove(!1,!1,!1,!0),Zt)if(lt.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(W,_[Rt].prototype);else{let be=Object.hasOwnProperty.call(W,"hcEvents")&&W.hcEvents;for(gt in xt)W[gt]=void 0;l(W,_[Rt].prototype),be?W.hcEvents=be:delete W.hcEvents}}else p(17,!0,lt,{missingModuleFor:Rt});if(wt.forEach(function(be){W[be]=wt[be]}),W.init(lt,D),jt&&this.points)for(let be of((Nt=W.options).visible===!1?(Tt.graphic=1,Tt.dataLabel=1):(this.hasMarkerChanged(Nt,it)&&(Tt.graphic=1),(xe=W.hasDataLabels)!=null&&xe.call(W)||(Tt.dataLabel=1)),this.points))be&&be.series&&(be.resolveColor(),Object.keys(Tt).length&&be.destroyElements(Tt),Nt.showInLegend===!1&&be.legendItem&<.legend.destroyItem(be));W.initialType=vt,lt.linkSeries(),lt.setSortedData(),Zt&&W.linkedSeries.length&&(W.isDirtyData=!0),b(this,"afterUpdate"),Et(P,!0)&<.redraw(!!jt&&void 0)}setName(D){this.name=this.options.name=this.userOptions.name=D,this.chart.isDirtyLegend=!0}hasOptionChanged(D){var pt,xt;let P=this.chart,W=this.options[D],lt=P.options.plotOptions,it=this.userOptions[D],vt=Et((pt=lt==null?void 0:lt[this.type])==null?void 0:pt[D],(xt=lt==null?void 0:lt.series)==null?void 0:xt[D]);return it&&!S(vt)?W!==it:W!==Et(vt,W)}onMouseOver(){let D=this.chart,P=D.hoverSeries,W=D.pointer;W==null||W.setHoverChartIndex(),P&&P!==this&&P.onMouseOut(),this.options.events.mouseOver&&b(this,"mouseOver"),this.setState("hover"),D.hoverSeries=this}onMouseOut(){let D=this.options,P=this.chart,W=P.tooltip,lt=P.hoverPoint;P.hoverSeries=null,lt&<.onMouseOut(),this&&D.events.mouseOut&&b(this,"mouseOut"),W&&!this.stickyTracking&&(!W.shared||this.noSharedTooltip)&&W.hide(),P.series.forEach(function(it){it.setState("",!0)})}setState(D,P){let W=this,lt=W.options,it=W.graph,vt=lt.inactiveOtherPoints,pt=lt.states,xt=Et(pt[D||"normal"]&&pt[D||"normal"].animation,W.chart.options.chart.animation),Ct=lt.lineWidth,Tt=lt.opacity;if(D=D||"",W.state!==D&&([W.group,W.markerGroup,W.dataLabelsGroup].forEach(function(Nt){Nt&&(W.state&&Nt.removeClass("highcharts-series-"+W.state),D&&Nt.addClass("highcharts-series-"+D))}),W.state=D,!W.chart.styledMode)){if(pt[D]&&pt[D].enabled===!1)return;if(D&&(Ct=pt[D].lineWidth||Ct+(pt[D].lineWidthPlus||0),Tt=Et(pt[D].opacity,Tt)),it&&!it.dashstyle&&st(Ct))for(let Nt of[it,...this.zones.map(gt=>gt.graph)])Nt==null||Nt.animate({"stroke-width":Ct},xt);vt||[W.group,W.markerGroup,W.dataLabelsGroup,W.labelBySeries].forEach(function(Nt){Nt&&Nt.animate({opacity:Tt},xt)})}P&&vt&&W.points&&W.setAllPointsToState(D||void 0)}setAllPointsToState(D){this.points.forEach(function(P){P.setState&&P.setState(D)})}setVisible(D,P){var xt;let W=this,lt=W.chart,it=lt.options.chart.ignoreHiddenSeries,vt=W.visible;W.visible=D=W.options.visible=W.userOptions.visible=D===void 0?!vt:D;let pt=D?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(Ct=>{var Tt;(Tt=W[Ct])==null||Tt[pt]()}),(lt.hoverSeries===W||((xt=lt.hoverPoint)==null?void 0:xt.series)===W)&&W.onMouseOut(),W.legendItem&<.legend.colorizeItem(W,D),W.isDirty=!0,W.options.stacking&<.series.forEach(Ct=>{Ct.options.stacking&&Ct.visible&&(Ct.isDirty=!0)}),W.linkedSeries.forEach(Ct=>{Ct.setVisible(D,!1)}),it&&(lt.isDirtyBox=!0),b(W,pt),P!==!1&<.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(D){this.selected=D=this.options.selected=D===void 0?!this.selected:D,this.checkbox&&(this.checkbox.checked=D),b(this,D?"select":"unselect")}shouldShowTooltip(D,P,W={}){return W.series=this,W.visiblePlotOnly=!0,this.chart.isInsidePlot(D,P,W)}drawLegendSymbol(D,P){var W;(W=J[this.options.legendSymbol||"rectangle"])==null||W.call(this,D,P)}}return rt.defaultOptions=Z,rt.types=tt.seriesTypes,rt.registerType=tt.registerSeriesType,l(rt.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:q,requireSorting:!0,sorted:!0}),tt.series=rt,rt}),y(m,"Core/Legend/Legend.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Foundation.js"],m["Core/Globals.js"],m["Core/Series/Series.js"],m["Core/Series/Point.js"],m["Core/Renderer/RendererUtilities.js"],m["Core/Templating.js"],m["Core/Utilities.js"]],function(R,B,et,K,J,q,Z,tt){var H;let{animObject:X,setAnimation:F}=R,{registerEventOptions:U}=B,{composed:d,marginNames:L}=et,{distribute:M}=q,{format:s}=Z,{addEvent:_,createElement:w,css:o,defined:u,discardElement:C,find:E,fireEvent:S,isNumber:v,merge:g,pick:x,pushUnique:p,relativeLength:l,stableSort:f,syncTimeout:b}=tt;class z{constructor(k,Q){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=k,this.setOptions(Q),Q.enabled&&(this.render(),U(this,Q),_(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),_(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(k){let Q=x(k.padding,8);this.options=k,this.chart.styledMode||(this.itemStyle=k.itemStyle,this.itemHiddenStyle=g(this.itemStyle,k.itemHiddenStyle)),this.itemMarginTop=k.itemMarginTop,this.itemMarginBottom=k.itemMarginBottom,this.padding=Q,this.initialItemY=Q-5,this.symbolWidth=x(k.symbolWidth,16),this.pages=[],this.proximate=k.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(k,Q){let st=this.chart;this.setOptions(g(!0,this.options,k)),"events"in this.options&&U(this,this.options),this.destroy(),st.isDirtyLegend=st.isDirtyBox=!0,x(Q,!0)&&st.redraw(),S(this,"afterUpdate",{redraw:Q})}colorizeItem(k,Q){let{area:st,group:nt,label:dt,line:mt,symbol:Et}=k.legendItem||{};if(nt==null||nt[Q?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:Mt={}}=this,I=Mt.color,{fillColor:Y,fillOpacity:rt,lineColor:ot,marker:D}=k.options,P=W=>(!Q&&(W.fill&&(W.fill=I),W.stroke&&(W.stroke=I)),W);dt==null||dt.css(g(Q?this.itemStyle:Mt)),mt==null||mt.attr(P({stroke:ot||k.color})),Et&&Et.attr(P(D&&Et.isMarker?k.pointAttribs():{fill:k.color})),st==null||st.attr(P({fill:Y||k.color,"fill-opacity":Y?1:rt!=null?rt:.75}))}S(this,"afterColorizeItem",{item:k,visible:Q})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(k){let{group:Q,x:st=0,y:nt=0}=k.legendItem||{},dt=this.options,mt=dt.symbolPadding,Et=!dt.rtl,Mt=k.checkbox;if(Q&&Q.element){let I={translateX:Et?st:this.legendWidth-st-2*mt-4,translateY:nt};Q[u(Q.translateY)?"animate":"attr"](I,void 0,()=>{S(this,"afterPositionItem",{item:k})})}Mt&&(Mt.x=st,Mt.y=nt)}destroyItem(k){let Q=k.checkbox,st=k.legendItem||{};for(let nt of["group","label","line","symbol"])st[nt]&&(st[nt]=st[nt].destroy());Q&&C(Q),k.legendItem=void 0}destroy(){for(let k of this.getAllItems())this.destroyItem(k);for(let k of["clipRect","up","down","pager","nav","box","title","group"])this[k]&&(this[k]=this[k].destroy());this.display=null}positionCheckboxes(){let k,Q=this.group&&this.group.alignAttr,st=this.clipHeight||this.legendHeight,nt=this.titleHeight;Q&&(k=Q.translateY,this.allItems.forEach(function(dt){let mt,Et=dt.checkbox;Et&&(mt=k+nt+Et.y+(this.scrollOffset||0)+3,o(Et,{left:Q.translateX+dt.checkboxOffset+Et.x-20+"px",top:mt+"px",display:this.proximate||mt>k-6&&mt1.5*Tt?Ct.height:Tt))}layoutItem(k){let Q=this.options,st=this.padding,nt=Q.layout==="horizontal",dt=k.itemHeight,mt=this.itemMarginBottom,Et=this.itemMarginTop,Mt=nt?x(Q.itemDistance,20):0,I=this.maxLegendWidth,Y=Q.alignColumns&&this.totalItemWidth>I?this.maxItemWidth:k.itemWidth,rt=k.legendItem||{};nt&&this.itemX-st+Y>I&&(this.itemX=st,this.lastLineHeight&&(this.itemY+=Et+this.lastLineHeight+mt),this.lastLineHeight=0),this.lastItemY=Et+this.itemY+mt,this.lastLineHeight=Math.max(dt,this.lastLineHeight),rt.x=this.itemX,rt.y=this.itemY,nt?this.itemX+=Y:(this.itemY+=Et+dt+mt,this.lastLineHeight=dt),this.offsetWidth=this.widthOption||Math.max((nt?this.itemX-st-(k.checkbox?0:Mt):Y)+st,this.offsetWidth)}getAllItems(){let k=[];return this.chart.series.forEach(function(Q){let st=Q&&Q.options;Q&&x(st.showInLegend,!u(st.linkedTo)&&void 0,!0)&&(k=k.concat((Q.legendItem||{}).labels||(st.legendType==="point"?Q.data:Q)))}),S(this,"afterGetAllItems",{allItems:k}),k}getAlignment(){let k=this.options;return this.proximate?k.align.charAt(0)+"tv":k.floating?"":k.align.charAt(0)+k.verticalAlign.charAt(0)+k.layout.charAt(0)}adjustMargins(k,Q){let st=this.chart,nt=this.options,dt=this.getAlignment();dt&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(mt,Et){mt.test(dt)&&!u(k[Et])&&(st[L[Et]]=Math.max(st[L[Et]],st.legend[(Et+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][Et]*nt[Et%2?"x":"y"]+x(nt.margin,12)+Q[Et]+(st.titleOffset[Et]||0)))})}proximatePositions(){let k,Q=this.chart,st=[],nt=this.options.align==="left";for(let dt of(this.allItems.forEach(function(mt){let Et,Mt,I=nt,Y,rt;mt.yAxis&&(mt.xAxis.options.reversed&&(I=!I),mt.points&&(Et=E(I?mt.points:mt.points.slice(0).reverse(),function(ot){return v(ot.plotY)})),Mt=this.itemMarginTop+mt.legendItem.label.getBBox().height+this.itemMarginBottom,rt=mt.yAxis.top-Q.plotTop,Y=mt.visible?(Et?Et.plotY:mt.yAxis.height)+(rt-.3*Mt):rt+mt.yAxis.height,st.push({target:Y,size:Mt,item:mt}))},this),M(st,Q.plotHeight)))k=dt.item.legendItem||{},v(dt.pos)&&(k.y=Q.plotTop-Q.spacing[0]+dt.pos)}render(){let k=this.chart,Q=k.renderer,st=this.options,nt=this.padding,dt=this.getAllItems(),mt,Et,Mt,I=this.group,Y,rt=this.box;this.itemX=nt,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=l(st.width,k.spacingBox.width-nt),Y=k.spacingBox.width-2*nt-st.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(Y/=2),this.maxLegendWidth=this.widthOption||Y,I||(this.group=I=Q.g("legend").addClass(st.className||"").attr({zIndex:7}).add(),this.contentGroup=Q.g().attr({zIndex:1}).add(I),this.scrollGroup=Q.g().add(this.contentGroup)),this.renderTitle(),f(dt,(ot,D)=>(ot.options&&ot.options.legendIndex||0)-(D.options&&D.options.legendIndex||0)),st.reversed&&dt.reverse(),this.allItems=dt,this.display=mt=!!dt.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,dt.forEach(this.renderItem,this),dt.forEach(this.layoutItem,this),Et=(this.widthOption||this.offsetWidth)+nt,Mt=this.lastItemY+this.lastLineHeight+this.titleHeight,Mt=this.handleOverflow(Mt)+nt,rt||(this.box=rt=Q.rect().addClass("highcharts-legend-box").attr({r:st.borderRadius}).add(I)),k.styledMode||rt.attr({stroke:st.borderColor,"stroke-width":st.borderWidth||0,fill:st.backgroundColor||"none"}).shadow(st.shadow),Et>0&&Mt>0&&rt[rt.placed?"animate":"attr"](rt.crisp.call({},{x:0,y:0,width:Et,height:Mt},rt.strokeWidth())),I[mt?"show":"hide"](),k.styledMode&&I.getStyle("display")==="none"&&(Et=Mt=0),this.legendWidth=Et,this.legendHeight=Mt,mt&&this.align(),this.proximate||this.positionItems(),S(this,"afterRender")}align(k=this.chart.spacingBox){let Q=this.chart,st=this.options,nt=k.y;/(lth|ct|rth)/.test(this.getAlignment())&&Q.titleOffset[0]>0?nt+=Q.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&Q.titleOffset[2]>0&&(nt-=Q.titleOffset[2]),nt!==k.y&&(k=g(k,{y:nt})),Q.hasRendered||(this.group.placed=!1),this.group.align(g(st,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":st.verticalAlign}),!0,k)}handleOverflow(k){let Q=this,st=this.chart,nt=st.renderer,dt=this.options,mt=dt.y,Et=dt.verticalAlign==="top",Mt=this.padding,I=dt.maxHeight,Y=dt.navigation,rt=x(Y.animation,!0),ot=Y.arrowSize||12,D=this.pages,P=this.allItems,W=function(Nt){typeof Nt=="number"?Tt.attr({height:Nt}):Tt&&(Q.clipRect=Tt.destroy(),Q.contentGroup.clip()),Q.contentGroup.div&&(Q.contentGroup.div.style.clip=Nt?"rect("+Mt+"px,9999px,"+(Mt+Nt)+"px,0)":"auto")},lt=function(Nt){return Q[Nt]=nt.circle(0,0,1.3*ot).translate(ot/2,ot/2).add(Ct),st.styledMode||Q[Nt].attr("fill","rgba(0,0,0,0.0001)"),Q[Nt]},it,vt,pt,xt=st.spacingBox.height+(Et?-mt:mt)-Mt,Ct=this.nav,Tt=this.clipRect;return dt.layout!=="horizontal"||dt.verticalAlign==="middle"||dt.floating||(xt/=2),I&&(xt=Math.min(xt,I)),D.length=0,k&&xt>0&&k>xt&&Y.enabled!==!1?(this.clipHeight=it=Math.max(xt-20-this.titleHeight-Mt,0),this.currentPage=x(this.currentPage,1),this.fullHeight=k,P.forEach((Nt,gt)=>{let wt=(pt=Nt.legendItem||{}).y||0,Rt=Math.round(pt.label.getBBox().height),jt=D.length;(!jt||wt-D[jt-1]>it&&(vt||wt)!==D[jt-1])&&(D.push(vt||wt),jt++),pt.pageIx=jt-1,vt&&((P[gt-1].legendItem||{}).pageIx=jt-1),gt===P.length-1&&wt+Rt-D[jt-1]>it&&wt>D[jt-1]&&(D.push(wt),pt.pageIx=jt),wt!==vt&&(vt=wt)}),Tt||(Tt=Q.clipRect=nt.clipRect(0,Mt-2,9999,0),Q.contentGroup.clip(Tt)),W(it),Ct||(this.nav=Ct=nt.g().attr({zIndex:1}).add(this.group),this.up=nt.symbol("triangle",0,0,ot,ot).add(Ct),lt("upTracker").on("click",function(){Q.scroll(-1,rt)}),this.pager=nt.text("",15,10).addClass("highcharts-legend-navigation"),!st.styledMode&&Y.style&&this.pager.css(Y.style),this.pager.add(Ct),this.down=nt.symbol("triangle-down",0,0,ot,ot).add(Ct),lt("downTracker").on("click",function(){Q.scroll(1,rt)})),Q.scroll(0),k=xt):Ct&&(W(),this.nav=Ct.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),k}scroll(k,Q){let st=this.chart,nt=this.pages,dt=nt.length,mt=this.clipHeight,Et=this.options.navigation,Mt=this.pager,I=this.padding,Y=this.currentPage+k;Y>dt&&(Y=dt),Y>0&&(Q!==void 0&&F(Q,st),this.nav.attr({translateX:I,translateY:mt+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(rt){rt.attr({class:Y===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),Mt.attr({text:Y+"/"+dt}),[this.down,this.downTracker].forEach(function(rt){rt.attr({x:18+this.pager.getBBox().width,class:Y===dt?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),st.styledMode||(this.up.attr({fill:Y===1?Et.inactiveColor:Et.activeColor}),this.upTracker.css({cursor:Y===1?"default":"pointer"}),this.down.attr({fill:Y===dt?Et.inactiveColor:Et.activeColor}),this.downTracker.css({cursor:Y===dt?"default":"pointer"})),this.scrollOffset=-nt[Y-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=Y,this.positionCheckboxes(),b(()=>{S(this,"afterScroll",{currentPage:Y})},X(x(Q,st.renderer.globalAnimation,!0)).duration))}setItemEvents(k,Q,st){let nt=this,dt=k.legendItem||{},mt=nt.chart.renderer.boxWrapper,Et=k instanceof J,Mt=k instanceof K,I="highcharts-legend-"+(Et?"point":"series")+"-active",Y=nt.chart.styledMode,rt=st?[Q,dt.symbol]:[dt.group],ot=D=>{nt.allItems.forEach(P=>{k!==P&&[P].concat(P.linkedSeries||[]).forEach(W=>{W.setState(D,!Et)})})};for(let D of rt)D&&D.on("mouseover",function(){k.visible&&ot("inactive"),k.setState("hover"),k.visible&&mt.addClass(I),Y||Q.css(nt.options.itemHoverStyle)}).on("mouseout",function(){nt.chart.styledMode||Q.css(g(k.visible?nt.itemStyle:nt.itemHiddenStyle)),ot(""),mt.removeClass(I),k.setState()}).on("click",function(P){let W=function(){k.setVisible&&k.setVisible(),ot(k.visible?"inactive":"")};mt.removeClass(I),S(nt,"itemClick",{browserEvent:P,legendItem:k},W),Et?k.firePointEvent("legendItemClick",{browserEvent:P}):Mt&&S(k,"legendItemClick",{browserEvent:P})})}createCheckboxForItem(k){k.checkbox=w("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:k.selected,defaultChecked:k.selected},this.options.itemCheckboxStyle,this.chart.container),_(k.checkbox,"click",function(Q){let st=Q.target;S(k.series||k,"checkboxClick",{checked:st.checked,item:k},function(){k.select()})})}}return(H=z||(z={})).compose=function(T){p(d,"Core.Legend")&&_(T,"beforeMargins",function(){this.legend=new H(this,this.options.legend)})},z}),y(m,"Core/Chart/Chart.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Axis/Axis.js"],m["Core/Defaults.js"],m["Core/Templating.js"],m["Core/Foundation.js"],m["Core/Globals.js"],m["Core/Renderer/RendererRegistry.js"],m["Core/Series/Series.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Renderer/SVG/SVGRenderer.js"],m["Core/Time.js"],m["Core/Utilities.js"],m["Core/Renderer/HTML/AST.js"],m["Core/Axis/Tick.js"]],function(R,B,et,K,J,q,Z,tt,H,X,F,U,d,L){let{animate:M,animObject:s,setAnimation:_}=R,{defaultOptions:w,defaultTime:o}=et,{numberFormat:u}=K,{registerEventOptions:C}=J,{charts:E,doc:S,marginNames:v,svg:g,win:x}=q,{seriesTypes:p}=H,{addEvent:l,attr:f,createElement:b,css:z,defined:T,diffObjects:k,discardElement:Q,erase:st,error:nt,extend:dt,find:mt,fireEvent:Et,getStyle:Mt,isArray:I,isNumber:Y,isObject:rt,isString:ot,merge:D,objectEach:P,pick:W,pInt:lt,relativeLength:it,removeEvent:vt,splat:pt,syncTimeout:xt,uniqueKey:Ct}=U;class Tt{static chart(gt,wt,Rt){return new Tt(gt,wt,Rt)}constructor(gt,wt,Rt){this.sharedClips={};let jt=[...arguments];(ot(gt)||gt.nodeName)&&(this.renderTo=jt.shift()),this.init(jt[0],jt[1])}setZoomOptions(){let gt=this.options.chart,wt=gt.zooming;this.zooming=co(Fr({},wt),{type:W(gt.zoomType,wt.type),key:W(gt.zoomKey,wt.key),pinchType:W(gt.pinchType,wt.pinchType),singleTouch:W(gt.zoomBySingleTouch,wt.singleTouch,!1),resetButton:D(wt.resetButton,gt.resetZoomButton)})}init(gt,wt){Et(this,"init",{args:arguments},function(){let Rt=D(w,gt),jt=Rt.chart;this.userOptions=dt({},gt),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=wt,this.isResizing=0,this.options=Rt,this.axes=[],this.series=[],this.time=gt.time&&Object.keys(gt.time).length?new F(gt.time):q.time,this.numberFormatter=jt.numberFormatter||u,this.styledMode=jt.styledMode,this.hasCartesianSeries=jt.showAxes,this.index=E.length,E.push(this),q.chartCount++,C(this,jt),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),Et(this,"afterInit"),this.firstRender()})}initSeries(gt){let wt=this.options.chart,Rt=gt.type||wt.type,jt=p[Rt];jt||nt(17,!0,this,{missingModuleFor:Rt});let Zt=new jt;return typeof Zt.init=="function"&&Zt.init(this,gt),Zt}setSortedData(){this.getSeriesOrderByLinks().forEach(function(gt){gt.points||gt.data||!gt.enabledDataSorting||gt.setData(gt.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(gt,wt){return gt.linkedSeries.length||wt.linkedSeries.length?wt.linkedSeries.length-gt.linkedSeries.length:0})}orderItems(gt,wt=0){let Rt=this[gt],jt=this.options[gt]=pt(this.options[gt]).slice(),Zt=this.userOptions[gt]=this.userOptions[gt]?pt(this.userOptions[gt]).slice():[];if(this.hasRendered&&(jt.splice(wt),Zt.splice(wt)),Rt)for(let ne=wt,Wt=Rt.length;ne=Math.max(fe+ne,te.pos)&&Ot<=Math.min(fe+ne+Ye.width,te.pos+te.len)||(Jt.isInsidePlot=!1)}if(!Rt.ignoreY&&Jt.isInsidePlot){let te=!jt&&Rt.axis&&!Rt.axis.isXAxis&&Rt.axis||be&&(jt?be.xAxis:be.yAxis)||{pos:Wt,len:1/0},Ot=Rt.paneCoordinates?te.pos+on:Wt+on;Ot>=Math.max(xe+Wt,te.pos)&&Ot<=Math.min(xe+Wt+Ye.height,te.pos+te.len)||(Jt.isInsidePlot=!1)}return Et(this,"afterIsInsidePlot",Jt),Jt.isInsidePlot}redraw(gt){Et(this,"beforeRedraw");let wt=this.hasCartesianSeries?this.axes:this.colorAxis||[],Rt=this.series,jt=this.pointer,Zt=this.legend,ne=this.userOptions.legend,Wt=this.renderer,le=Wt.isHidden(),fe=[],xe,be,Ye,tn=this.isDirtyBox,on=this.isDirtyLegend,Jt;for(Wt.rootFontSize=Wt.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),_(!!this.hasRendered&>,this),le&&this.temporaryDisplay(),this.layOutTitles(!1),Ye=Rt.length;Ye--;)if(((Jt=Rt[Ye]).options.stacking||Jt.options.centerInCategory)&&(be=!0,Jt.isDirty)){xe=!0;break}if(xe)for(Ye=Rt.length;Ye--;)(Jt=Rt[Ye]).options.stacking&&(Jt.isDirty=!0);Rt.forEach(function(Kt){Kt.isDirty&&(Kt.options.legendType==="point"?(typeof Kt.updateTotals=="function"&&Kt.updateTotals(),on=!0):ne&&(ne.labelFormatter||ne.labelFormat)&&(on=!0)),Kt.isDirtyData&&Et(Kt,"updatedData")}),on&&Zt&&Zt.options.enabled&&(Zt.render(),this.isDirtyLegend=!1),be&&this.getStacks(),wt.forEach(function(Kt){Kt.updateNames(),Kt.setScale()}),this.getMargins(),wt.forEach(function(Kt){Kt.isDirty&&(tn=!0)}),wt.forEach(function(Kt){let te=Kt.min+","+Kt.max;Kt.extKey!==te&&(Kt.extKey=te,fe.push(function(){Et(Kt,"afterSetExtremes",dt(Kt.eventArgs,Kt.getExtremes())),delete Kt.eventArgs})),(tn||be)&&Kt.redraw()}),tn&&this.drawChartBox(),Et(this,"predraw"),Rt.forEach(function(Kt){(tn||Kt.isDirty)&&Kt.visible&&Kt.redraw(),Kt.isDirtyData=!1}),jt&&jt.reset(!0),Wt.draw(),Et(this,"redraw"),Et(this,"render"),le&&this.temporaryDisplay(!0),fe.forEach(function(Kt){Kt.call()})}get(gt){let wt=this.series;function Rt(Zt){return Zt.id===gt||Zt.options&&Zt.options.id===gt}let jt=mt(this.axes,Rt)||mt(this.series,Rt);for(let Zt=0;!jt&&Zt(wt.getPointsCollection().forEach(Rt=>{W(Rt.selectedStaging,Rt.selected)&>.push(Rt)}),gt),[])}getSelectedSeries(){return this.series.filter(function(gt){return gt.selected})}setTitle(gt,wt,Rt){this.applyDescription("title",gt),this.applyDescription("subtitle",wt),this.applyDescription("caption",void 0),this.layOutTitles(Rt)}applyDescription(gt,wt){let Rt=this,jt=this.options[gt]=D(this.options[gt],wt),Zt=this[gt];Zt&&wt&&(this[gt]=Zt=Zt.destroy()),jt&&!Zt&&((Zt=this.renderer.text(jt.text,0,0,jt.useHTML).attr({align:jt.align,class:"highcharts-"+gt,zIndex:jt.zIndex||4}).add()).update=function(ne,Wt){Rt.applyDescription(gt,ne),Rt.layOutTitles(Wt)},this.styledMode||Zt.css(dt(gt==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},jt.style)),this[gt]=Zt)}layOutTitles(gt=!0){let wt=[0,0,0],Rt=this.renderer,jt=this.spacingBox;["title","subtitle","caption"].forEach(function(ne){let Wt=this[ne],le=this.options[ne],fe=le.verticalAlign||"top",xe=ne==="title"?fe==="top"?-3:0:fe==="top"?wt[0]+2:0;if(Wt){Wt.css({width:(le.width||jt.width+(le.widthAdjust||0))+"px"});let be=Rt.fontMetrics(Wt).b,Ye=Math.round(Wt.getBBox(le.useHTML).height);Wt.align(dt({y:fe==="bottom"?be:xe+be,height:Ye},le),!1,"spacingBox"),le.floating||(fe==="top"?wt[0]=Math.ceil(wt[0]+Ye):fe==="bottom"&&(wt[2]=Math.ceil(wt[2]+Ye)))}},this),wt[0]&&(this.options.title.verticalAlign||"top")==="top"&&(wt[0]+=this.options.title.margin),wt[2]&&this.options.caption.verticalAlign==="bottom"&&(wt[2]+=this.options.caption.margin);let Zt=!this.titleOffset||this.titleOffset.join(",")!==wt.join(",");this.titleOffset=wt,Et(this,"afterLayOutTitles"),!this.isDirtyBox&&Zt&&(this.isDirtyBox=this.isDirtyLegend=Zt,this.hasRendered&>&&this.isDirtyBox&&this.redraw())}getContainerBox(){let gt=[].map.call(this.renderTo.children,Rt=>{if(Rt!==this.container){let jt=Rt.style.display;return Rt.style.display="none",[Rt,jt]}}),wt={width:Mt(this.renderTo,"width",!0)||0,height:Mt(this.renderTo,"height",!0)||0};return gt.filter(Boolean).forEach(([Rt,jt])=>{Rt.style.display=jt}),wt}getChartSize(){var ne;let gt=this.options.chart,wt=gt.width,Rt=gt.height,jt=this.getContainerBox(),Zt=jt.height>1&&!(!((ne=this.renderTo.parentElement)!=null&&ne.style.height)&&this.renderTo.style.height==="100%");this.chartWidth=Math.max(0,wt||jt.width||600),this.chartHeight=Math.max(0,it(Rt,this.chartWidth)||(Zt?jt.height:400)),this.containerBox=jt}temporaryDisplay(gt){let wt=this.renderTo,Rt;if(gt)for(;wt&&wt.style;)wt.hcOrigStyle&&(z(wt,wt.hcOrigStyle),delete wt.hcOrigStyle),wt.hcOrigDetached&&(S.body.removeChild(wt),wt.hcOrigDetached=!1),wt=wt.parentNode;else for(;wt&&wt.style&&(S.body.contains(wt)||wt.parentNode||(wt.hcOrigDetached=!0,S.body.appendChild(wt)),(Mt(wt,"display",!1)==="none"||wt.hcOricDetached)&&(wt.hcOrigStyle={display:wt.style.display,height:wt.style.height,overflow:wt.style.overflow},Rt={display:"block",overflow:"hidden"},wt!==this.renderTo&&(Rt.height=0),z(wt,Rt),wt.offsetWidth||wt.style.setProperty("display","block","important")),(wt=wt.parentNode)!==S.body););}setClassName(gt){this.container.className="highcharts-container "+(gt||"")}getContainer(){var Ye;let gt=this.options,wt=gt.chart,Rt="data-highcharts-chart",jt=Ct(),Zt,ne=this.renderTo;ne||(this.renderTo=ne=wt.renderTo),ot(ne)&&(this.renderTo=ne=S.getElementById(ne)),ne||nt(13,!0,this);let Wt=lt(f(ne,Rt));Y(Wt)&&E[Wt]&&E[Wt].hasRendered&&E[Wt].destroy(),f(ne,Rt,this.index),ne.innerHTML=d.emptyHTML,wt.skipClone||ne.offsetWidth||this.temporaryDisplay(),this.getChartSize();let le=this.chartHeight,fe=this.chartWidth;z(ne,{overflow:"hidden"}),this.styledMode||(Zt=dt({position:"relative",overflow:"hidden",width:fe+"px",height:le+"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"},wt.style||{}));let xe=b("div",{id:jt},Zt,ne);this.container=xe,this.getChartSize(),fe===this.chartWidth||(fe=this.chartWidth,this.styledMode||z(xe,{width:W((Ye=wt.style)==null?void 0:Ye.width,fe+"px")})),this.containerBox=this.getContainerBox(),this._cursor=xe.style.cursor;let be=wt.renderer||!g?Z.getRendererType(wt.renderer):X;if(this.renderer=new be(xe,fe,le,void 0,wt.forExport,gt.exporting&>.exporting.allowHTML,this.styledMode),_(void 0,this),this.setClassName(wt.className),this.styledMode)for(let tn in gt.defs)this.renderer.definition(gt.defs[tn]);else this.renderer.setStyle(wt.style);this.renderer.chartIndex=this.index,Et(this,"afterGetContainer")}getMargins(gt){let{spacing:wt,margin:Rt,titleOffset:jt}=this;this.resetMargins(),jt[0]&&!T(Rt[0])&&(this.plotTop=Math.max(this.plotTop,jt[0]+wt[0])),jt[2]&&!T(Rt[2])&&(this.marginBottom=Math.max(this.marginBottom,jt[2]+wt[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(Rt,wt),Et(this,"getMargins"),gt||this.getAxisMargins()}getAxisMargins(){let gt=this,wt=gt.axisOffset=[0,0,0,0],Rt=gt.colorAxis,jt=gt.margin,Zt=function(ne){ne.forEach(function(Wt){Wt.visible&&Wt.getOffset()})};gt.hasCartesianSeries?Zt(gt.axes):Rt&&Rt.length&&Zt(Rt),v.forEach(function(ne,Wt){T(jt[Wt])||(gt[ne]+=wt[Wt])}),gt.setChartSize()}getOptions(){return k(this.userOptions,w)}reflow(gt){var Zt;let wt=this,Rt=wt.containerBox,jt=wt.getContainerBox();(Zt=wt.pointer)==null||delete Zt.chartPosition,!wt.isPrinting&&!wt.isResizing&&Rt&&jt.width&&((jt.width!==Rt.width||jt.height!==Rt.height)&&(U.clearTimeout(wt.reflowTimeout),wt.reflowTimeout=xt(function(){wt.container&&wt.setSize(void 0,void 0,!1)},gt?100:0)),wt.containerBox=jt)}setReflow(){let gt=this,wt=Rt=>{var jt;(jt=gt.options)!=null&&jt.chart.reflow&>.hasLoaded&>.reflow(Rt)};if(typeof ResizeObserver=="function")new ResizeObserver(wt).observe(gt.renderTo);else{let Rt=l(x,"resize",wt);l(this,"destroy",Rt)}}setSize(gt,wt,Rt){let jt=this,Zt=jt.renderer;jt.isResizing+=1,_(Rt,jt);let ne=Zt.globalAnimation;jt.oldChartHeight=jt.chartHeight,jt.oldChartWidth=jt.chartWidth,gt!==void 0&&(jt.options.chart.width=gt),wt!==void 0&&(jt.options.chart.height=wt),jt.getChartSize();let{chartWidth:Wt,chartHeight:le,scrollablePixelsX:fe=0,scrollablePixelsY:xe=0}=jt;(jt.isDirtyBox||Wt!==jt.oldChartWidth||le!==jt.oldChartHeight)&&(jt.styledMode||(ne?M:z)(jt.container,{width:`${Wt+fe}px`,height:`${le+xe}px`},ne),jt.setChartSize(!0),Zt.setSize(Wt,le,ne),jt.axes.forEach(function(be){be.isDirty=!0,be.setScale()}),jt.isDirtyLegend=!0,jt.isDirtyBox=!0,jt.layOutTitles(),jt.getMargins(),jt.redraw(ne),jt.oldChartHeight=void 0,Et(jt,"resize"),setTimeout(()=>{jt&&Et(jt,"endResize")},s(ne).duration)),jt.isResizing-=1}setChartSize(gt){let wt,Rt,jt,Zt,{chartHeight:ne,chartWidth:Wt,inverted:le,spacing:fe,renderer:xe}=this,be=this.clipOffset,Ye=Math[le?"floor":"round"];this.plotLeft=wt=Math.round(this.plotLeft),this.plotTop=Rt=Math.round(this.plotTop),this.plotWidth=jt=Math.max(0,Math.round(Wt-wt-this.marginRight)),this.plotHeight=Zt=Math.max(0,Math.round(ne-Rt-this.marginBottom)),this.plotSizeX=le?Zt:jt,this.plotSizeY=le?jt:Zt,this.spacingBox=xe.spacingBox={x:fe[3],y:fe[0],width:Wt-fe[3]-fe[1],height:ne-fe[0]-fe[2]},this.plotBox=xe.plotBox={x:wt,y:Rt,width:jt,height:Zt},be&&(this.clipBox={x:Ye(be[3]),y:Ye(be[0]),width:Ye(this.plotSizeX-be[1]-be[3]),height:Ye(this.plotSizeY-be[0]-be[2])}),gt||(this.axes.forEach(function(tn){tn.setAxisSize(),tn.setAxisTranslation()}),xe.alignElements()),Et(this,"afterSetChartSize",{skipAxes:gt})}resetMargins(){Et(this,"resetMargins");let gt=this,wt=gt.options.chart,Rt=wt.plotBorderWidth||0,jt=Rt/2;["margin","spacing"].forEach(function(Zt){let ne=wt[Zt],Wt=rt(ne)?ne:[ne,ne,ne,ne];["Top","Right","Bottom","Left"].forEach(function(le,fe){gt[Zt][fe]=W(wt[Zt+le],Wt[fe])})}),v.forEach(function(Zt,ne){gt[Zt]=W(gt.margin[ne],gt.spacing[ne])}),gt.axisOffset=[0,0,0,0],gt.clipOffset=[jt,jt,jt,jt],gt.plotBorderWidth=Rt}drawChartBox(){let gt=this.options.chart,wt=this.renderer,Rt=this.chartWidth,jt=this.chartHeight,Zt=this.styledMode,ne=this.plotBGImage,Wt=gt.backgroundColor,le=gt.plotBackgroundColor,fe=gt.plotBackgroundImage,xe=this.plotLeft,be=this.plotTop,Ye=this.plotWidth,tn=this.plotHeight,on=this.plotBox,Jt=this.clipRect,Kt=this.clipBox,te=this.chartBackground,Ot=this.plotBackground,Bt=this.plotBorder,Ut,zt,ce,we="animate";te||(this.chartBackground=te=wt.rect().addClass("highcharts-background").add(),we="attr"),Zt?Ut=zt=te.strokeWidth():(zt=(Ut=gt.borderWidth||0)+(gt.shadow?8:0),ce={fill:Wt||"none"},(Ut||te["stroke-width"])&&(ce.stroke=gt.borderColor,ce["stroke-width"]=Ut),te.attr(ce).shadow(gt.shadow)),te[we]({x:zt/2,y:zt/2,width:Rt-zt-Ut%2,height:jt-zt-Ut%2,r:gt.borderRadius}),we="animate",Ot||(we="attr",this.plotBackground=Ot=wt.rect().addClass("highcharts-plot-background").add()),Ot[we](on),!Zt&&(Ot.attr({fill:le||"none"}).shadow(gt.plotShadow),fe&&(ne?(fe!==ne.attr("href")&&ne.attr("href",fe),ne.animate(on)):this.plotBGImage=wt.image(fe,xe,be,Ye,tn).add())),Jt?Jt.animate({width:Kt.width,height:Kt.height}):this.clipRect=wt.clipRect(Kt),we="animate",Bt||(we="attr",this.plotBorder=Bt=wt.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),Zt||Bt.attr({stroke:gt.plotBorderColor,"stroke-width":gt.plotBorderWidth||0,fill:"none"}),Bt[we](Bt.crisp({x:xe,y:be,width:Ye,height:tn},-Bt.strokeWidth())),this.isDirtyBox=!1,Et(this,"afterDrawChartBox")}propFromSeries(){let gt,wt,Rt,jt=this,Zt=jt.options.chart,ne=jt.options.series;["inverted","angular","polar"].forEach(function(Wt){for(wt=p[Zt.type],Rt=Zt[Wt]||wt&&wt.prototype[Wt],gt=ne&&ne.length;!Rt&>--;)(wt=p[ne[gt].type])&&wt.prototype[Wt]&&(Rt=!0);jt[Wt]=Rt})}linkSeries(gt){let wt=this,Rt=wt.series;Rt.forEach(function(jt){jt.linkedSeries.length=0}),Rt.forEach(function(jt){let{linkedTo:Zt}=jt.options;if(ot(Zt)){let ne;(ne=Zt===":previous"?wt.series[jt.index-1]:wt.get(Zt))&&ne.linkedParent!==jt&&(ne.linkedSeries.push(jt),jt.linkedParent=ne,ne.enabledDataSorting&&jt.setDataSortingOptions(),jt.visible=W(jt.options.visible,ne.options.visible,jt.visible))}}),Et(this,"afterLinkSeries",{isUpdating:gt})}renderSeries(){this.series.forEach(function(gt){gt.translate(),gt.render()})}render(){var xe;let gt=this.axes,wt=this.colorAxis,Rt=this.renderer,jt=this.options.chart.axisLayoutRuns||2,Zt=be=>{be.forEach(Ye=>{Ye.visible&&Ye.render()})},ne=0,Wt=!0,le,fe=0;for(let be of(this.setTitle(),Et(this,"beforeMargins"),(xe=this.getStacks)==null||xe.call(this),this.getMargins(!0),this.setChartSize(),gt)){let{options:Ye}=be,{labels:tn}=Ye;if(this.hasCartesianSeries&&be.horiz&&be.visible&&tn.enabled&&be.series.length&&be.coll!=="colorAxis"&&!this.polar){ne=Ye.tickLength,be.createGroups();let on=new L(be,0,"",!0),Jt=on.createLabel("x",tn);if(on.destroy(),Jt&&W(tn.reserveSpace,!Y(Ye.crossing))&&(ne=Jt.getBBox().height+tn.distance+Math.max(Ye.offset||0,0)),ne){Jt==null||Jt.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-ne,0);(Wt||le||jt>1)&&fe(fe?1:1.1),le=Ye/this.plotHeight>(fe?1:1.05),fe++}this.drawChartBox(),this.hasCartesianSeries?Zt(gt):wt&&wt.length&&Zt(wt),this.seriesGroup||(this.seriesGroup=Rt.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(gt){let wt=this,Rt=D(!0,this.options.credits,gt);Rt.enabled&&!this.credits&&(this.credits=this.renderer.text(Rt.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){Rt.href&&(x.location.href=Rt.href)}).attr({align:Rt.position.align,zIndex:8}),wt.styledMode||this.credits.css(Rt.style),this.credits.add().align(Rt.position),this.credits.update=function(jt){wt.credits=wt.credits.destroy(),wt.addCredits(jt)})}destroy(){let gt,wt=this,Rt=wt.axes,jt=wt.series,Zt=wt.container,ne=Zt&&Zt.parentNode;for(Et(wt,"destroy"),wt.renderer.forExport?st(E,wt):E[wt.index]=void 0,q.chartCount--,wt.renderTo.removeAttribute("data-highcharts-chart"),vt(wt),gt=Rt.length;gt--;)Rt[gt]=Rt[gt].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),gt=jt.length;gt--;)jt[gt]=jt[gt].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(Wt){let le=wt[Wt];le&&le.destroy&&(wt[Wt]=le.destroy())}),Zt&&(Zt.innerHTML=d.emptyHTML,vt(Zt),ne&&Q(Zt)),P(wt,function(Wt,le){delete wt[le]})}firstRender(){var jt;let gt=this,wt=gt.options;gt.getContainer(),gt.resetMargins(),gt.setChartSize(),gt.propFromSeries(),gt.getAxes();let Rt=I(wt.series)?wt.series:[];wt.series=[],Rt.forEach(function(Zt){gt.initSeries(Zt)}),gt.linkSeries(),gt.setSortedData(),Et(gt,"beforeRender"),gt.render(),(jt=gt.pointer)==null||jt.getChartPosition(),gt.renderer.imgCount||gt.hasLoaded||gt.onload(),gt.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(gt){gt&&this.index!==void 0&>.apply(this,[this])},this),Et(this,"load"),Et(this,"render"),T(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:gt,title:wt}=this;!gt||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(wt&&wt.element.textContent||"").replace(/this.transform({reset:!0,trigger:"zoom"}))}pan(gt,wt){let Rt=this,jt=typeof wt=="object"?wt:{enabled:wt,type:"x"},Zt=jt.type,ne=Zt&&Rt[{x:"xAxis",xy:"axes",y:"yAxis"}[Zt]].filter(le=>le.options.panningEnabled&&!le.options.isInternal),Wt=Rt.options.chart;Wt!=null&&Wt.panning&&(Wt.panning=jt),Et(this,"pan",{originalEvent:gt},()=>{Rt.transform({axes:ne,event:gt,to:{x:gt.chartX-(Rt.mouseDownX||0),y:gt.chartY-(Rt.mouseDownY||0)},trigger:"pan"}),z(Rt.container,{cursor:"move"})})}transform(gt){var tn,on,Jt,Kt,te;let{axes:wt=this.axes,event:Rt,from:jt={},reset:Zt,selection:ne,to:Wt={},trigger:le}=gt,{inverted:fe}=this,xe=!1,be,Ye;for(let Ot of((tn=this.hoverPoints)==null||tn.forEach(Bt=>Bt.setState()),wt)){let{horiz:Bt,len:Ut,minPointOffset:zt=0,options:ce,reversed:we}=Ot,ye=Bt?"width":"height",qe=Bt?"x":"y",hn=W(Wt[ye],Ot.len),yn=W(jt[ye],Ot.len),Nn=10>Math.abs(hn)?1:hn/yn,mn=(jt[qe]||0)+yn/2-Ot.pos,Mn=mn-(((on=Wt[qe])!=null?on:Ot.pos)+hn/2-Ot.pos)/Nn,Kn=we&&!fe||!we&&fe?-1:1;if(!Zt&&(mn<0||mn>Ot.len))continue;let fr=Ot.toValue(Mn,!0)+(ne||Ot.isOrdinal?0:zt*Kn),ge=Ot.toValue(Mn+Ut/Nn,!0)-(ne||Ot.isOrdinal?0:zt*Kn||0),Ie=Ot.allExtremes;if(fr>ge&&([fr,ge]=[ge,fr]),Nn===1&&!Zt&&Ot.coll==="yAxis"&&!Ie){for(let nn of Ot.series){let fn=nn.getExtremes(nn.getProcessedData(!0).yData,!0);Ie!=null||(Ie={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),Y(fn.dataMin)&&Y(fn.dataMax)&&(Ie.dataMin=Math.min(fn.dataMin,Ie.dataMin),Ie.dataMax=Math.max(fn.dataMax,Ie.dataMax))}Ot.allExtremes=Ie}let{dataMin:Ge,dataMax:ve,min:Le,max:Ue}=dt(Ot.getExtremes(),Ie||{}),Oe=Ge!=null?Ge:ce.min,De=ve!=null?ve:ce.max,Ze=ge-fr,Sn=Ot.categories?0:Math.min(Ze,De-Oe),Me=Oe-Sn*(T(ce.min)?0:ce.minPadding),en=De+Sn*(T(ce.max)?0:ce.maxPadding),xn=Ot.allowZoomOutside||Nn===1||le!=="zoom"&&Nn>1,Te=Math.min((Jt=ce.min)!=null?Jt:Me,Me,xn?Le:Me),bn=Math.max((Kt=ce.max)!=null?Kt:en,en,xn?Ue:en);(!Ot.isOrdinal||Ot.options.overscroll||Nn!==1||Zt)&&(fr=1&&(ge=fr+Ze)),ge>bn&&(ge=bn,Nn>=1&&(fr=ge-Ze)),(Zt||Ot.series.length&&(fr!==Le||ge!==Ue)&&fr>=Te&&ge<=bn)&&(ne?ne[Ot.coll].push({axis:Ot,min:fr,max:ge}):(Ot.isPanning=le!=="zoom",Ot.isPanning&&(Ye=!0),Ot.setExtremes(Zt?void 0:fr,Zt?void 0:ge,!1,!1,{move:Mn,trigger:le,scale:Nn}),!Zt&&(fr>Te||ge{delete gt.selection,gt.trigger="zoom",this.transform(gt)}):(!be||Ye||this.resetZoomButton?!be&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw(le==="zoom"&&((te=this.options.chart.animation)!=null?te:this.pointCount<100)))),xe}}return dt(Tt.prototype,{callbacks:[],collectionsWithInit:{xAxis:[Tt.prototype.addAxis,[!0]],yAxis:[Tt.prototype.addAxis,[!1]],series:[Tt.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","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"]}),Tt}),y(m,"Extensions/ScrollablePlotArea.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Globals.js"],m["Core/Renderer/RendererRegistry.js"],m["Core/Utilities.js"]],function(R,B,et,K){let{stop:J}=R,{composed:q}=B,{addEvent:Z,createElement:tt,css:H,defined:X,merge:F,pushUnique:U}=K;function d(){let s=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!s&&(this.scrollablePlotArea=s=new M(this)),s==null||s.applyFixed()}function L(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class M{static compose(_,w,o){U(q,this.compose)&&(Z(_,"afterInit",L),Z(w,"afterSetChartSize",u=>this.afterSetSize(u.target,u)),Z(w,"render",d),Z(o,"show",L))}static afterSetSize(_,w){let o,u,C,{minWidth:E,minHeight:S}=_.options.chart.scrollablePlotArea||{},{clipBox:v,plotBox:g,inverted:x,renderer:p}=_;if(!p.forExport&&(E?(_.scrollablePixelsX=o=Math.max(0,E-_.chartWidth),o&&(_.scrollablePlotBox=F(_.plotBox),g.width=_.plotWidth+=o,v[x?"height":"width"]+=o,C=!0)):S&&(_.scrollablePixelsY=u=Math.max(0,S-_.chartHeight),X(u)&&(_.scrollablePlotBox=F(_.plotBox),g.height=_.plotHeight+=u,v[x?"width":"height"]+=u,C=!1)),X(C)&&!w.skipAxes))for(let l of _.axes)l.horiz===C&&(l.setAxisSize(),l.setAxisTranslation())}constructor(_){var f,b;let w,o=_.options.chart,u=et.getRendererType(),C=o.scrollablePlotArea||{},E=this.moveFixedElements.bind(this),S={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};_.scrollablePixelsX&&(S.overflowX="auto"),_.scrollablePixelsY&&(S.overflowY="auto"),this.chart=_;let v=this.parentDiv=tt("div",{className:"highcharts-scrolling-parent"},{position:"relative"},_.renderTo),g=this.scrollingContainer=tt("div",{className:"highcharts-scrolling"},S,v),x=this.innerContainer=tt("div",{className:"highcharts-inner-container"},void 0,g),p=this.fixedDiv=tt("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(((f=o.style)==null?void 0:f.zIndex)||0)+2,top:0},void 0,!0),l=this.fixedRenderer=new u(p,_.chartWidth,_.chartHeight,o.style);this.mask=l.path().attr({fill:o.backgroundColor||"#fff","fill-opacity":(b=C.opacity)!=null?b:.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),g.parentNode.insertBefore(p,g),H(_.renderTo,{overflow:"visible"}),Z(_,"afterShowResetZoom",E),Z(_,"afterApplyDrilldown",E),Z(_,"afterLayOutTitles",E),Z(g,"scroll",()=>{let{pointer:z,hoverPoint:T}=_;z&&(delete z.chartPosition,T&&(w=T),z.runPointActions(void 0,w,!0))}),x.appendChild(_.container)}applyFixed(){var Y;let{chart:_,fixedRenderer:w,isDirty:o,scrollingContainer:u}=this,{axisOffset:C,chartWidth:E,chartHeight:S,container:v,plotHeight:g,plotLeft:x,plotTop:p,plotWidth:l,scrollablePixelsX:f=0,scrollablePixelsY:b=0}=_,{scrollPositionX:z=0,scrollPositionY:T=0}=_.options.chart.scrollablePlotArea||{},k=E+f,Q=S+b;w.setSize(E,S),(o==null||o)&&(this.isDirty=!1,this.moveFixedElements()),J(_.container),H(v,{width:`${k}px`,height:`${Q}px`}),_.renderer.boxWrapper.attr({width:k,height:Q,viewBox:[0,0,k,Q].join(" ")}),(Y=_.chartBackground)==null||Y.attr({width:k,height:Q}),H(u,{width:`${E}px`,height:`${S}px`}),X(o)||(u.scrollLeft=f*z,u.scrollTop=b*T);let st=p-C[0]-1,nt=x-C[3]-1,dt=p+g+C[2]+1,mt=x+l+C[1]+1,Et=x+l-f,Mt=p+g-b,I=[["M",0,0]];f?I=[["M",0,st],["L",x-1,st],["L",x-1,dt],["L",0,dt],["Z"],["M",Et,st],["L",E,st],["L",E,dt],["L",Et,dt],["Z"]]:b&&(I=[["M",nt,0],["L",nt,p-1],["L",mt,p-1],["L",mt,0],["Z"],["M",nt,Mt],["L",nt,S],["L",mt,S],["L",mt,Mt],["Z"]]),_.redrawTrigger!=="adjustHeight"&&this.mask.attr({d:I})}moveFixedElements(){let _,{container:w,inverted:o,scrollablePixelsX:u,scrollablePixelsY:C}=this.chart,E=this.fixedRenderer,S=M.fixedSelectors;for(let v of(u&&!o?_=".highcharts-yaxis":u&&o||C&&!o?_=".highcharts-xaxis":C&&o&&(_=".highcharts-yaxis"),_&&S.push(`${_}:not(.highcharts-radial-axis)`,`${_}-labels:not(.highcharts-radial-axis-labels)`),S))[].forEach.call(w.querySelectorAll(v),g=>{(g.namespaceURI===E.SVG_NS?E.box:E.box.parentNode).appendChild(g),g.style.pointerEvents="auto"})}}return M.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"],M}),y(m,"Core/Axis/Stacking/StackItem.js",[m["Core/Templating.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B,et){let{format:K}=R,{series:J}=B,{destroyObjectProperties:q,fireEvent:Z,isNumber:tt,pick:H}=et;return class{constructor(X,F,U,d,L){let M=X.chart.inverted,s=X.reversed;this.axis=X;let _=this.isNegative=!!U!=!!s;this.options=F=F||{},this.x=d,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=L,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:F.align||(M?_?"left":"right":"center"),verticalAlign:F.verticalAlign||(M?"middle":_?"bottom":"top"),y:F.y,x:F.x},this.textAlign=F.textAlign||(M?_?"right":"left":"center")}destroy(){q(this,this.axis)}render(X){let F=this.axis.chart,U=this.options,d=U.format,L=d?K(d,this,F):U.formatter.call(this);if(this.label)this.label.attr({text:L,visibility:"hidden"});else{this.label=F.renderer.label(L,null,void 0,U.shape,void 0,void 0,U.useHTML,!1,"stack-labels");let M={r:U.borderRadius||0,text:L,padding:H(U.padding,5),visibility:"hidden"};F.styledMode||(M.fill=U.backgroundColor,M.stroke=U.borderColor,M["stroke-width"]=U.borderWidth,this.label.css(U.style||{})),this.label.attr(M),this.label.added||this.label.add(X)}this.label.labelrank=F.plotSizeY,Z(this,"afterRender")}setOffset(X,F,U,d,L,M){let{alignOptions:s,axis:_,label:w,options:o,textAlign:u}=this,C=_.chart,E=this.getStackBox({xOffset:X,width:F,boxBottom:U,boxTop:d,defaultX:L,xAxis:M}),{verticalAlign:S}=s;if(w&&E){let v=w.getBBox(void 0,0),g=w.padding,x=H(o.overflow,"justify")==="justify",p;s.x=o.x||0,s.y=o.y||0;let{x:l,y:f}=this.adjustStackPosition({labelBox:v,verticalAlign:S,textAlign:u});E.x-=l,E.y-=f,w.align(s,!1,E),(p=C.isInsidePlot(w.alignAttr.x+s.x+l,w.alignAttr.y+s.y+f))||(x=!1),x&&J.prototype.justifyDataLabel.call(_,w,s,w.alignAttr,v,E),w.attr({x:w.alignAttr.x,y:w.alignAttr.y,rotation:o.rotation,rotationOriginX:v.width*{left:0,center:.5,right:1}[o.textAlign||"center"],rotationOriginY:v.height/2}),H(!x&&o.crop,!0)&&(p=tt(w.x)&&tt(w.y)&&C.isInsidePlot(w.x-g+(w.width||0),w.y)&&C.isInsidePlot(w.x+g,w.y)),w[p?"show":"hide"]()}Z(this,"afterSetOffset",{xOffset:X,width:F})}adjustStackPosition({labelBox:X,verticalAlign:F,textAlign:U}){let d={bottom:0,middle:1,top:2,right:1,center:0,left:-1},L=d[F],M=d[U];return{x:X.width/2+X.width/2*M,y:X.height/2*L}}getStackBox(X){let F=this.axis,U=F.chart,{boxTop:d,defaultX:L,xOffset:M,width:s,boxBottom:_}=X,w=F.stacking.usePercentage?100:H(d,this.total,0),o=F.toPixels(w),u=X.xAxis||U.xAxis[0],C=H(L,u.translate(this.x))+M,E=Math.abs(o-F.toPixels(_||tt(F.min)&&F.logarithmic&&F.logarithmic.lin2log(F.min)||0)),S=U.inverted,v=this.isNegative;return S?{x:(v?o:o-E)-U.plotLeft,y:u.height-C-s+u.top-U.plotTop,width:E,height:s}:{x:C+u.transB-U.plotLeft,y:(v?o-E:o)-U.plotTop,width:s,height:E}}}}),y(m,"Core/Axis/Stacking/StackingAxis.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Axis/Axis.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Axis/Stacking/StackItem.js"],m["Core/Utilities.js"]],function(R,B,et,K,J){var q;let{getDeferredAnimation:Z}=R,{series:{prototype:tt}}=et,{addEvent:H,correctFloat:X,defined:F,destroyObjectProperties:U,fireEvent:d,isArray:L,isNumber:M,objectEach:s,pick:_}=J;function w(){let p=this.inverted;this.axes.forEach(l=>{l.stacking&&l.stacking.stacks&&l.hasVisibleSeries&&(l.stacking.oldStacks=l.stacking.stacks)}),this.series.forEach(l=>{let f=l.xAxis&&l.xAxis.options||{};l.options.stacking&&l.reserveSpace()&&(l.stackKey=[l.type,_(l.options.stack,""),p?f.top:f.left,p?f.height:f.width].join(","))})}function o(){var l;let p=this.stacking;if(p){let f=p.stacks;s(f,(b,z)=>{U(b),delete f[z]}),(l=p.stackTotalGroup)==null||l.destroy()}}function u(){this.stacking||(this.stacking=new x(this))}function C(p,l,f,b){return!F(p)||p.x!==l||b&&p.stackKey!==b?p={x:l,index:0,key:b,stackKey:b}:p.index++,p.key=[f,l,p.index].join(","),p}function E(){let p,l=this,f=l.yAxis,b=l.stackKey||"",z=f.stacking.stacks,T=l.processedXData,k=l.options.stacking,Q=l[k+"Stacker"];Q&&[b,"-"+b].forEach(st=>{var Mt;let nt=T.length,dt,mt,Et;for(;nt--;)dt=T[nt],p=l.getStackIndicator(p,dt,l.index,st),mt=(Mt=z[st])==null?void 0:Mt[dt],(Et=mt==null?void 0:mt.points[p.key||""])&&Q.call(l,Et,mt,nt)})}function S(p,l,f){let b=l.total?100/l.total:0;p[0]=X(p[0]*b),p[1]=X(p[1]*b),this.stackedYData[f]=p[1]}function v(p){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&!this.options.stacking&&this.chart.series.length>1?tt.setStackedPoints.call(this,p,"group"):p.stacking.resetStacks())}function g(p,l){var Ct,Tt;let f,b,z,T,k,Q,st,nt,dt,mt=l||this.options.stacking;if(!mt||!this.reserveSpace()||({group:"xAxis"}[mt]||"yAxis")!==p.coll)return;let Et=this.processedXData,Mt=this.processedYData,I=[],Y=Mt.length,rt=this.options,ot=rt.threshold||0,D=rt.startFromThreshold?ot:0,P=rt.stack,W=l?`${this.type},${mt}`:this.stackKey||"",lt="-"+W,it=this.negStacks,vt=p.stacking,pt=vt.stacks,xt=vt.oldStacks;for(vt.stacksTouched+=1,st=0;st0&&this.singleStacks===!1&&(z.points[Q][0]=z.points[this.index+","+nt+",0"][0])):(delete z.points[Q],delete z.points[this.index]);let Nt=z.total||0;mt==="percent"?(T=b?W:lt,Nt=it&&((Tt=pt[T])!=null&&Tt[nt])?(T=pt[T][nt]).total=Math.max(T.total||0,Nt)+Math.abs(dt)||0:X(Nt+(Math.abs(dt)||0))):mt==="group"?(L(dt)&&(dt=dt[0]),dt!==null&&Nt++):Nt=X(Nt+(dt||0)),mt==="group"?z.cumulative=(Nt||1)-1:z.cumulative=X(_(z.cumulative,D)+(dt||0)),z.total=Nt,dt!==null&&(z.points[Q].push(z.cumulative),I[st]=z.cumulative,z.hasValidPoints=!0)}mt==="percent"&&(vt.usePercentage=!0),mt!=="group"&&(this.stackedYData=I),vt.oldStacks={}}class x{constructor(l){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=l}buildStacks(){let l,f,b=this.axis,z=b.series,T=b.coll==="xAxis",k=b.options.reversedStacks,Q=z.length;for(this.resetStacks(),this.usePercentage=!1,f=Q;f--;)l=z[k?f:Q-f-1],T&&l.setGroupedPoints(b),l.setStackedPoints(b);if(!T)for(f=0;f{s(l,f=>{f.cumulative=f.total})}))}resetStacks(){s(this.stacks,l=>{s(l,(f,b)=>{M(f.touched)&&f.touched{s(st,nt=>{nt.render(k)})}),k.animate({opacity:1},T)}}return(q||(q={})).compose=function(p,l,f){let b=l.prototype,z=f.prototype;b.getStacks||(H(p,"init",u),H(p,"destroy",o),b.getStacks=w,z.getStackIndicator=C,z.modifyStacks=E,z.percentStacker=S,z.setGroupedPoints=v,z.setStackedPoints=g)},q}),y(m,"Series/Line/LineSeries.js",[m["Core/Series/Series.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B,et){let{defined:K,merge:J,isObject:q}=et;class Z extends R{drawGraph(){let H=this.options,X=(this.gappedPath||this.getGraphPath).call(this),F=this.chart.styledMode;[this,...this.zones].forEach((U,d)=>{let L,M=U.graph,s=M?"animate":"attr",_=U.dashStyle||H.dashStyle;M?(M.endX=this.preventGraphAnimation?null:X.xMap,M.animate({d:X})):X.length&&(U.graph=M=this.chart.renderer.path(X).addClass("highcharts-graph"+(d?` highcharts-zone-graph-${d-1} `:" ")+(d&&U.className||"")).attr({zIndex:1}).add(this.group)),M&&!F&&(L={stroke:!d&&H.lineColor||U.color||this.color||"#cccccc","stroke-width":H.lineWidth||0,fill:this.fillGraph&&this.color||"none"},_?L.dashstyle=_:H.linecap!=="square"&&(L["stroke-linecap"]=L["stroke-linejoin"]="round"),M[s](L).shadow(d<2&&H.shadow&&J({filterUnits:"userSpaceOnUse"},q(H.shadow)?H.shadow:{}))),M&&(M.startX=X.xMap,M.isArea=X.isArea)})}getGraphPath(H,X,F){let U=this,d=U.options,L=[],M=[],s,_=d.step,w=(H=H||U.points).reversed;return w&&H.reverse(),(_={right:1,center:2}[_]||_&&3)&&w&&(_=4-_),(H=this.getValidPoints(H,!1,!(d.connectNulls&&!X&&!F))).forEach(function(o,u){let C,E=o.plotX,S=o.plotY,v=H[u-1],g=o.isNull||typeof S!="number";(o.leftCliff||v&&v.rightCliff)&&!F&&(s=!0),g&&!K(X)&&u>0?s=!d.connectNulls:g&&!X?s=!0:(u===0||s?C=[["M",o.plotX,o.plotY]]:U.getPointSpline?C=[U.getPointSpline(H,o,u)]:_?(C=_===1?[["L",v.plotX,S]]:_===2?[["L",(v.plotX+E)/2,v.plotY],["L",(v.plotX+E)/2,S]]:[["L",E,v.plotY]]).push(["L",E,S]):C=[["L",E,S]],M.push(o.x),_&&(M.push(o.x),_===2&&M.push(o.x)),L.push.apply(L,C),s=!1)}),L.xMap=M,U.graphPath=L,L}}return Z.defaultOptions=J(R.defaultOptions,{legendSymbol:"lineMarker"}),B.registerSeriesType("line",Z),Z}),y(m,"Series/Area/AreaSeriesDefaults.js",[],function(){return{threshold:0,legendSymbol:"areaMarker"}}),y(m,"Series/Area/AreaSeries.js",[m["Series/Area/AreaSeriesDefaults.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B,et){let{seriesTypes:{line:K}}=B,{extend:J,merge:q,objectEach:Z,pick:tt}=et;class H extends K{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:F,options:U}=this;[this,...this.zones].forEach((d,L)=>{var o;let M={},s=d.fillColor||U.fillColor,_=d.area,w=_?"animate":"attr";_?(_.endX=this.preventGraphAnimation?null:F.xMap,_.animate({d:F})):(M.zIndex=0,(_=d.area=this.chart.renderer.path(F).addClass("highcharts-area"+(L?` highcharts-zone-area-${L-1} `:" ")+(L&&d.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(M.fill=s||d.color||this.color,M["fill-opacity"]=s?1:(o=U.fillOpacity)!=null?o:.75,_.css({pointerEvents:this.stickyTracking?"none":"auto"})),_[w](M),_.startX=F.xMap,_.shiftUnit=U.step?2:1})}getGraphPath(F){let U,d,L,M=K.prototype.getGraphPath,s=this.options,_=s.stacking,w=this.yAxis,o=[],u=[],C=this.index,E=w.stacking.stacks[this.stackKey],S=s.threshold,v=Math.round(w.getThreshold(s.threshold)),g=tt(s.connectNulls,_==="percent"),x=function(T,k,Q){let st=F[T],nt=_&&E[st.x].points[C],dt=st[Q+"Null"]||0,mt=st[Q+"Cliff"]||0,Et,Mt,I=!0;mt||dt?(Et=(dt?nt[0]:nt[1])+mt,Mt=nt[0]+mt,I=!!dt):!_&&F[k]&&F[k].isNull&&(Et=Mt=S),Et!==void 0&&(u.push({plotX:U,plotY:Et===null?v:w.getThreshold(Et),isNull:I,isCliff:!0}),o.push({plotX:U,plotY:Mt===null?v:w.getThreshold(Mt),doCurve:!1}))};F=F||this.points,_&&(F=this.getStackPoints(F));for(let T=0,k=F.length;T1&&_&&u.some(T=>T.isCliff)&&(b.hasStackedCliffs=z.hasStackedCliffs=!0),b.xMap=p.xMap,this.areaPath=b,z}getStackPoints(F){let U=this,d=[],L=[],M=this.xAxis,s=this.yAxis,_=s.stacking.stacks[this.stackKey],w={},o=s.series,u=o.length,C=s.options.reversedStacks?1:-1,E=o.indexOf(U);if(F=F||this.points,this.options.stacking){for(let v=0;vv.visible);L.forEach(function(v,g){let x=0,p,l;if(w[v]&&!w[v].isNull)d.push(w[v]),[-1,1].forEach(function(f){let b=f===1?"rightNull":"leftNull",z=_[L[g+f]],T=0;if(z){let k=E;for(;k>=0&&k=0&&fE&&U>s?(U=Math.max(E,s),L=2*s-U):Uv&&L>s?(L=Math.max(v,s),U=2*s-L):L1){let l=this.xAxis.series.filter(T=>T.visible).map(T=>T.index),f=0,b=0;u((p=this.xAxis.stacking)==null?void 0:p.stacks,T=>{if(typeof g.x=="number"){let k=T[g.x.toString()];if(k&&s(k.points[this.index])){let Q=Object.keys(k.points).filter(st=>!st.match(",")&&k.points[st]&&k.points[st].length>1).map(parseFloat).filter(st=>l.indexOf(st)!==-1).sort((st,nt)=>nt-st);f=Q.indexOf(this.index),b=Q.length}}}),f=this.xAxis.reversed?b-1-f:f;let z=(b-1)*x.paddedWidth+v;S=(g.plotX||0)+z/2-v-f*x.paddedWidth}return S}translate(){let S=this,v=S.chart,g=S.options,x=S.dense=S.closestPointRange*S.xAxis.transA<2,p=S.borderWidth=o(g.borderWidth,x?0:1),l=S.xAxis,f=S.yAxis,b=g.threshold,z=o(g.minPointLength,5),T=S.getColumnMetrics(),k=T.width,Q=S.pointXOffset=T.offset,st=S.dataMin,nt=S.dataMax,dt=S.translatedThreshold=f.getThreshold(b),mt=S.barW=Math.max(k,1+2*p);g.pointPadding&&(mt=Math.ceil(mt)),J.prototype.translate.apply(S),S.points.forEach(function(Et){let Mt=o(Et.yBottom,dt),I=999+Math.abs(Mt),Y=Et.plotX||0,rt=F(Et.plotY,-I,f.len+I),ot,D=Math.min(rt,Mt),P=Math.max(rt,Mt)-D,W=k,lt=Y+Q,it=mt;z&&Math.abs(P)z?Mt-z:dt-(ot?z:0)),d(Et.options.pointWidth)&&(lt-=Math.round(((W=it=Math.ceil(Et.options.pointWidth))-k)/2)),g.centerInCategory&&!g.stacking&&(lt=S.adjustForMissingColumns(lt,W,Et,T)),Et.barX=lt,Et.pointWidth=W,Et.tooltipPos=v.inverted?[F(f.len+f.pos-v.plotLeft-rt,f.pos-v.plotLeft,f.len+f.pos-v.plotLeft),l.len+l.pos-v.plotTop-lt-it/2,P]:[l.left-v.plotLeft+lt+it/2,F(rt+f.pos-v.plotTop,f.pos-v.plotTop,f.len+f.pos-v.plotTop),P],Et.shapeType=S.pointClass.prototype.shapeType||"roundedRect",Et.shapeArgs=S.crispCol(lt,Et.isNull?dt:D,it,Et.isNull?0:P)}),M(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(S,v){let g=this.options,x=this.pointAttrToOptions||{},p=x.stroke||"borderColor",l=x["stroke-width"]||"borderWidth",f,b,z,T=S&&S.color||this.color,k=S&&S[p]||g[p]||T,Q=S&&S.options.dashStyle||g.dashStyle,st=S&&S[l]||g[l]||this[l]||0,nt=o(S&&S.opacity,g.opacity,1);S&&this.zones.length&&(b=S.getZone(),T=S.options.color||b&&(b.color||S.nonZonedColor)||this.color,b&&(k=b.borderColor||k,Q=b.dashStyle||Q,st=b.borderWidth||st)),v&&S&&(z=(f=w(g.states[v],S.options.states&&S.options.states[v]||{})).brightness,T=f.color||z!==void 0&&H(T).brighten(f.brightness).get()||T,k=f[p]||k,st=f[l]||st,Q=f.dashStyle||Q,nt=o(f.opacity,nt));let dt={fill:T,stroke:k,"stroke-width":st,opacity:nt};return Q&&(dt.dashstyle=Q),dt}drawPoints(S=this.points){let v,g=this,x=this.chart,p=g.options,l=x.renderer,f=p.animationLimit||250;S.forEach(function(b){let z=b.plotY,T=b.graphic,k=!!T,Q=T&&x.pointCountp==null?void 0:p.enabled)}function o(p,l,f,b,z){var rt;let{chart:T,enabledDataSorting:k}=this,Q=this.isCartesian&&T.inverted,st=p.plotX,nt=p.plotY,dt=f.rotation||0,mt=Z(st)&&Z(nt)&&T.isInsidePlot(st,Math.round(nt),{inverted:Q,paneCoordinates:!0,series:this}),Et=dt===0&&L(f.overflow,k?"none":"justify")==="justify",Mt=this.visible&&p.visible!==!1&&Z(st)&&(p.series.forceDL||k&&!Et||mt||L(f.inside,!!this.options.stacking)&&b&&T.isInsidePlot(st,Q?b.x+1:b.y+b.height-1,{inverted:Q,paneCoordinates:!0,series:this})),I=p.pos();if(Mt&&I){var Y;let ot=l.getBBox(),D=l.getBBox(void 0,0),P={right:1,center:.5}[f.align||0]||0,W={bottom:1,middle:.5}[f.verticalAlign||0]||0;if(b=tt({x:I[0],y:Math.round(I[1]),width:0,height:0},b||{}),f.alignTo==="plotEdges"&&this.isCartesian&&(b[Q?"x":"y"]=0,b[Q?"width":"height"]=((rt=this.yAxis)==null?void 0:rt.len)||0),tt(f,{width:ot.width,height:ot.height}),Y=b,k&&this.xAxis&&!Et&&this.setDataLabelStartPos(p,l,z,mt,Y),l.align(U(f,{width:D.width,height:D.height}),!1,b,!1),l.alignAttr.x+=P*(D.width-ot.width),l.alignAttr.y+=W*(D.height-ot.height),l[l.placed?"animate":"attr"]({x:l.alignAttr.x+(ot.width-D.width)/2,y:l.alignAttr.y+(ot.height-D.height)/2,rotationOriginX:(l.width||0)/2,rotationOriginY:(l.height||0)/2}),Et&&b.height>=0)this.justifyDataLabel(l,f,l.alignAttr,ot,b,z);else if(L(f.crop,!0)){let{x:lt,y:it}=l.alignAttr;Mt=T.isInsidePlot(lt,it,{paneCoordinates:!0,series:this})&&T.isInsidePlot(lt+ot.width-1,it+ot.height-1,{paneCoordinates:!0,series:this})}f.shape&&!dt&&l[z?"attr":"animate"]({anchorX:I[0],anchorY:I[1]})}z&&k&&(l.placed=!1),Mt||k&&!Et?(l.show(),l.placed=!0):(l.hide(),l.placed=!1)}function u(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function C(p){let l=this.hasRendered||0,f=this.initDataLabelsGroup().attr({opacity:+l});return!l&&f&&(this.visible&&f.show(),this.options.animation?f.animate({opacity:1},p):f.attr({opacity:1})),f}function E(p){var Mt;let l;p=p||this.points;let f=this,b=f.chart,z=f.options,T=b.renderer,{backgroundColor:k,plotBackgroundColor:Q}=b.options.chart,st=T.getContrast(F(Q)&&Q||F(k)&&k||"#000000"),nt=g(f),{animation:dt,defer:mt}=nt[0],Et=mt?J(b,dt,f):{defer:0,duration:0};H(this,"drawDataLabels"),(Mt=f.hasDataLabels)!=null&&Mt.call(f)&&(l=this.initDataLabels(Et),p.forEach(I=>{var ot,D;let Y=I.dataLabels||[];s(v(nt,I.dlOptions||((ot=I.options)==null?void 0:ot.dataLabels))).forEach((P,W)=>{let lt=P.enabled&&(I.visible||I.dataLabelOnHidden)&&(!I.isNull||I.dataLabelOnNull)&&function(ne,Wt){let le=Wt.filter;if(le){let fe=le.operator,xe=ne[le.property],be=le.value;return fe===">"&&xe>be||fe==="<"&&xe="&&xe>=be||fe==="<="&&xe<=be||fe==="=="&&xe==be||fe==="==="&&xe===be||fe==="!="&&xe!=be||fe==="!=="&&xe!==be}return!0}(I,P),{backgroundColor:it,borderColor:vt,distance:pt,style:xt={}}=P,Ct,Tt,Nt,gt,wt={},Rt=Y[W],jt=!Rt,Zt;lt&&(Tt=L(P[I.formatPrefix+"Format"],P.format),Ct=I.getLabelConfig(),Nt=Z(Tt)?q(Tt,Ct,b):(P[I.formatPrefix+"Formatter"]||P.formatter).call(Ct,P),gt=P.rotation,!b.styledMode&&(xt.color=L(P.color,xt.color,F(f.color)?f.color:void 0,"#000000"),xt.color==="contrast"?(it!=="none"&&(Zt=it),I.contrastColor=T.getContrast(Zt!=="auto"&&Zt||I.color||f.color),xt.color=Zt||!Z(pt)&&P.inside||0>M(pt||0)||z.stacking?I.contrastColor:st):delete I.contrastColor,z.cursor&&(xt.cursor=z.cursor)),wt={r:P.borderRadius||0,rotation:gt,padding:P.padding,zIndex:1},b.styledMode||(wt.fill=it==="auto"?I.color:it,wt.stroke=vt==="auto"?I.color:vt,wt["stroke-width"]=P.borderWidth),d(wt,(ne,Wt)=>{ne===void 0&&delete wt[Wt]})),!Rt||lt&&Z(Nt)&&!!Rt.div==!!P.useHTML&&(Rt.rotation&&P.rotation||Rt.rotation===P.rotation)||(Rt=void 0,jt=!0),lt&&Z(Nt)&&(Rt?wt.text=Nt:(Rt=T.label(Nt,0,0,P.shape,void 0,void 0,P.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+I.colorIndex+" "+(P.className||"")+(P.useHTML?" highcharts-tracker":"")),Rt&&(Rt.options=P,Rt.attr(wt),b.styledMode?xt.width&&Rt.css({width:xt.width,textOverflow:xt.textOverflow}):Rt.css(xt).shadow(P.shadow),H(Rt,"beforeAddingDataLabel",{labelOptions:P,point:I}),Rt.added||Rt.add(l),f.alignDataLabel(I,Rt,P,void 0,jt),Rt.isActive=!0,Y[W]&&Y[W]!==Rt&&Y[W].destroy(),Y[W]=Rt))});let rt=Y.length;for(;rt--;)Y[rt]&&Y[rt].isActive?Y[rt].isActive=!1:((D=Y[rt])==null||D.destroy(),Y.splice(rt,1));I.dataLabel=Y[0],I.dataLabels=Y})),H(this,"afterDrawDataLabels")}function S(p,l,f,b,z,T){let k=this.chart,Q=l.align,st=l.verticalAlign,nt=p.box?0:p.padding||0,dt=k.inverted?this.yAxis:this.xAxis,mt=dt?dt.left-k.plotLeft:0,Et=k.inverted?this.xAxis:this.yAxis,Mt=Et?Et.top-k.plotTop:0,{x:I=0,y:Y=0}=l,rt,ot;return(rt=(f.x||0)+nt+mt)<0&&(Q==="right"&&I>=0?(l.align="left",l.inside=!0):I-=rt,ot=!0),(rt=(f.x||0)+b.width-nt+mt)>k.plotWidth&&(Q==="left"&&I<=0?(l.align="right",l.inside=!0):I+=k.plotWidth-rt,ot=!0),(rt=f.y+nt+Mt)<0&&(st==="bottom"&&Y>=0?(l.verticalAlign="top",l.inside=!0):Y-=rt,ot=!0),(rt=(f.y||0)+b.height-nt+Mt)>k.plotHeight&&(st==="top"&&Y<=0?(l.verticalAlign="bottom",l.inside=!0):Y+=k.plotHeight-rt,ot=!0),ot&&(l.x=I,l.y=Y,p.placed=!T,p.align(l,void 0,z)),ot}function v(p,l){let f=[],b;if(X(p)&&!X(l))f=p.map(function(z){return U(z,l)});else if(X(l)&&!X(p))f=l.map(function(z){return U(p,z)});else if(X(p)||X(l)){if(X(p)&&X(l))for(b=Math.max(p.length,l.length);b--;)f[b]=U(p[b],l[b])}else f=U(p,l);return f}function g(p){var f,b;let l=p.chart.options.plotOptions;return s(v(v((f=l==null?void 0:l.series)==null?void 0:f.dataLabels,(b=l==null?void 0:l[p.type])==null?void 0:b.dataLabels),p.options.dataLabels))}function x(p,l,f,b,z){let T=this.chart,k=T.inverted,Q=this.xAxis,st=Q.reversed,nt=((k?l.height:l.width)||0)/2,dt=p.pointWidth,mt=dt?dt/2:0;l.startXPos=k?z.x:st?-nt-mt:Q.width-nt+mt,l.startYPos=k?st?this.yAxis.height-nt+mt:-nt-mt:z.y,b?l.visibility==="hidden"&&(l.show(),l.attr({opacity:0}).animate({opacity:1})):l.attr({opacity:1}).animate({opacity:0},void 0,l.hide),T.hasRendered&&(f&&l.attr({x:l.startXPos,y:l.startYPos}),l.placed=!0)}_.compose=function(p){let l=p.prototype;l.initDataLabels||(l.initDataLabels=C,l.initDataLabelsGroup=u,l.alignDataLabel=o,l.drawDataLabels=E,l.justifyDataLabel=S,l.setDataLabelStartPos=x,l.hasDataLabels=w)}}(K||(K={})),K}),y(m,"Series/Column/ColumnDataLabel.js",[m["Core/Series/DataLabel.js"],m["Core/Globals.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B,et,K){var J;let{composed:q}=B,{series:Z}=et,{merge:tt,pick:H,pushUnique:X}=K;return function(F){function U(d,L,M,s,_){let w=this.chart.inverted,o=d.series,u=(o.xAxis?o.xAxis.len:this.chart.plotSizeX)||0,C=(o.yAxis?o.yAxis.len:this.chart.plotSizeY)||0,E=d.dlBox||d.shapeArgs,S=H(d.below,d.plotY>H(this.translatedThreshold,C)),v=H(M.inside,!!this.options.stacking);if(E){if(s=tt(E),!(M.overflow==="allow"&&M.crop===!1)){s.y<0&&(s.height+=s.y,s.y=0);let g=s.y+s.height-C;g>0&&g\u25CF {series.name}
    ',pointFormat:"x: {point.x}
    y: {point.y}
    "}}}),y(m,"Series/Scatter/ScatterSeries.js",[m["Series/Scatter/ScatterSeriesDefaults.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B,et){let{column:K,line:J}=B.seriesTypes,{addEvent:q,extend:Z,merge:tt}=et;class H extends J{applyJitter(){let F=this,U=this.options.jitter,d=this.points.length;U&&this.points.forEach(function(L,M){["x","y"].forEach(function(s,_){if(U[s]&&!L.isNull){let w=`plot${s.toUpperCase()}`,o=F[`${s}Axis`],u=U[s]*o.transA;if(o&&!o.logarithmic){let C=Math.max(0,(L[w]||0)-u),E=Math.min(o.len,(L[w]||0)+u);L[w]=C+(E-C)*function(S){let v=1e4*Math.sin(S);return v-Math.floor(v)}(M+_*d),s==="x"&&(L.clientX=L.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return H.defaultOptions=tt(J.defaultOptions,R),Z(H.prototype,{drawTracker:K.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),q(H,"afterTranslate",function(){this.applyJitter()}),B.registerSeriesType("scatter",H),H}),y(m,"Series/CenteredUtilities.js",[m["Core/Globals.js"],m["Core/Series/Series.js"],m["Core/Utilities.js"]],function(R,B,et){var K,J;let{deg2rad:q}=R,{fireEvent:Z,isNumber:tt,pick:H,relativeLength:X}=et;return(J=K||(K={})).getCenter=function(){let F=this.options,U=this.chart,d=2*(F.slicedOffset||0),L=U.plotWidth-2*d,M=U.plotHeight-2*d,s=F.center,_=Math.min(L,M),w=F.thickness,o,u=F.size,C=F.innerSize||0,E,S;typeof u=="string"&&(u=parseFloat(u)),typeof C=="string"&&(C=parseFloat(C));let v=[H(s[0],"50%"),H(s[1],"50%"),H(u&&u<0?void 0:F.size,"100%"),H(C&&C<0?void 0:F.innerSize||0,"0%")];for(!U.angular||this instanceof B||(v[3]=0),E=0;E<4;++E)S=v[E],o=E<2||E===2&&/%$/.test(S),v[E]=X(S,[L,M,_,v[2]][E])+(o?d:0);return v[3]>v[2]&&(v[3]=v[2]),tt(w)&&2*w0&&(v[3]=v[2]-2*w),Z(this,"afterGetCenter",{positions:v}),v},J.getStartAndEndRadians=function(F,U){let d=tt(F)?F:0,L=tt(U)&&U>d&&U-d<360?U:d+360;return{start:q*(d+-90),end:q*(L+-90)}},K}),y(m,"Series/Pie/PiePoint.js",[m["Core/Animation/AnimationUtilities.js"],m["Core/Series/Point.js"],m["Core/Utilities.js"]],function(R,B,et){let{setAnimation:K}=R,{addEvent:J,defined:q,extend:Z,isNumber:tt,pick:H,relativeLength:X}=et;class F extends B{getConnectorPath(d){let L=d.dataLabelPosition,M=d.options||{},s=M.connectorShape,_=this.connectorShapes[s]||s;return L&&_.call(this,co(Fr({},L.computed),{alignment:L.alignment}),L.connectorPosition,M)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(d){let L=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(L.x,L.y,L.r+d,L.r+d,{innerR:L.r-1,start:L.start,end:L.end,borderRadius:L.borderRadius})}constructor(d,L,M){var _;super(d,L,M),this.half=0,(_=this.name)!=null||(this.name="Slice");let s=w=>{this.slice(w.type==="select")};J(this,"select",s),J(this,"unselect",s)}isValid(){return tt(this.y)&&this.y>=0}setVisible(d,L=!0){d!==this.visible&&this.update({visible:d!=null?d:!this.visible},L,void 0,!1)}slice(d,L,M){let s=this.series;K(M,s.chart),L=H(L,!0),this.sliced=this.options.sliced=d=q(d)?d:!this.sliced,s.options.data[s.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return Z(F.prototype,{connectorShapes:{fixedOffset:function(U,d,L){let M=d.breakAt,s=d.touchingSliceAt,_=L.softConnector?["C",U.x+(U.alignment==="left"?-5:5),U.y,2*M.x-s.x,2*M.y-s.y,M.x,M.y]:["L",M.x,M.y];return[["M",U.x,U.y],_,["L",s.x,s.y]]},straight:function(U,d){let L=d.touchingSliceAt;return[["M",U.x,U.y],["L",L.x,L.y]]},crookedLine:function(U,d,L){let{breakAt:M,touchingSliceAt:s}=d,{series:_}=this,[w,o,u]=_.center,C=u/2,{plotLeft:E,plotWidth:S}=_.chart,v=U.alignment==="left",{x:g,y:x}=U,p=M.x;if(L.crookDistance){let f=X(L.crookDistance,1);p=v?w+C+(S+E-w-C)*(1-f):E+(w-C)*f}else p=w+(o-x)*Math.tan((this.angle||0)-Math.PI/2);let l=[["M",g,x]];return(v?p<=g&&p>=M.x:p>=g&&p<=M.x)&&l.push(["L",p,x]),l.push(["L",M.x,M.y],["L",s.x,s.y]),l}}}),F}),y(m,"Series/Pie/PieSeriesDefaults.js",[],function(){return{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.point.isNull?void 0:this.point.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:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),y(m,"Series/Pie/PieSeries.js",[m["Series/CenteredUtilities.js"],m["Series/Column/ColumnSeries.js"],m["Core/Globals.js"],m["Series/Pie/PiePoint.js"],m["Series/Pie/PieSeriesDefaults.js"],m["Core/Series/Series.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Renderer/SVG/Symbols.js"],m["Core/Utilities.js"]],function(R,B,et,K,J,q,Z,tt,H){let{getStartAndEndRadians:X}=R,{noop:F}=et,{clamp:U,extend:d,fireEvent:L,merge:M,pick:s}=H;class _ extends q{animate(o){let u=this,C=u.points,E=u.startAngleRad;o||C.forEach(function(S){let v=S.graphic,g=S.shapeArgs;v&&g&&(v.attr({r:s(S.startR,u.center&&u.center[3]/2),start:E,end:E}),v.animate({r:g.r,start:g.start,end:g.end},u.options.animation))})}drawEmpty(){let o,u,C=this.startAngleRad,E=this.endAngleRad,S=this.options;this.total===0&&this.center?(o=this.center[0],u=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(o,u,this.center[1]/2,0,C,E).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:tt.arc(o,u,this.center[2]/2,0,{start:C,end:E,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":S.borderWidth,fill:S.fillColor||"none",stroke:S.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let o=this.chart.renderer;this.points.forEach(function(u){u.graphic&&u.hasNewShapeType()&&(u.graphic=u.graphic.destroy()),u.graphic||(u.graphic=o[u.shapeType](u.shapeArgs).add(u.series.group),u.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(o,u,C,E){let S=this.center,v=this.radii?this.radii[C.index]||0:S[2]/2,g=E.dataLabelPosition,x=(g==null?void 0:g.distance)||0,p=Math.asin(U((o-S[1])/(v+x),-1,1));return S[0]+Math.cos(p)*(v+x)*(u?-1:1)+(x>0?(u?-1:1)*(E.padding||0):0)}hasData(){return!!this.processedXData.length}redrawPoints(){let o,u,C,E,S=this,v=S.chart;this.drawEmpty(),S.group&&!v.styledMode&&S.group.shadow(S.options.shadow),S.points.forEach(function(g){let x={};u=g.graphic,!g.isNull&&u?(E=g.shapeArgs,o=g.getTranslate(),v.styledMode||(C=S.pointAttribs(g,g.selected&&"select")),g.delayedRendering?(u.setRadialReference(S.center).attr(E).attr(o),v.styledMode||u.attr(C).attr({"stroke-linejoin":"round"}),g.delayedRendering=!1):(u.setRadialReference(S.center),v.styledMode||M(!0,x,C),M(!0,x,E,o),u.animate(x)),u.attr({visibility:g.visible?"inherit":"hidden"}),u.addClass(g.getClassName(),!0)):u&&(g.graphic=u.destroy())})}sortByAngle(o,u){o.sort(function(C,E){return C.angle!==void 0&&(E.angle-C.angle)*u})}translate(o){L(this,"translate"),this.generatePoints();let u=this.options,C=u.slicedOffset,E=X(u.startAngle,u.endAngle),S=this.startAngleRad=E.start,v=(this.endAngleRad=E.end)-S,g=this.points,x=u.ignoreHiddenPoint,p=g.length,l,f,b,z,T,k,Q,st=0;for(o||(this.center=o=this.getCenter()),k=0;k1.5*Math.PI?b-=2*Math.PI:b<-Math.PI/2&&(b+=2*Math.PI),Q.slicedTranslation={translateX:Math.round(Math.cos(b)*C),translateY:Math.round(Math.sin(b)*C)},z=Math.cos(b)*o[2]/2,T=Math.sin(b)*o[2]/2,Q.tooltipPos=[o[0]+.7*z,o[1]+.7*T],Q.half=b<-Math.PI/2||b>Math.PI/2?1:0,Q.angle=b}L(this,"afterTranslate")}updateTotals(){let o=this.points,u=o.length,C=this.options.ignoreHiddenPoint,E,S,v=0;for(E=0;E0&&(S.visible||!C)?S.y/v*100:0,S.total=v}}return _.defaultOptions=M(q.defaultOptions,J),d(_.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:B.prototype.drawTracker,getCenter:R.getCenter,getSymbol:F,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:B.prototype.pointAttribs,pointClass:K,requireSorting:!1,searchPoint:F,trackerGroups:["group","dataLabelsGroup"]}),Z.registerSeriesType("pie",_),_}),y(m,"Series/Pie/PieDataLabel.js",[m["Core/Series/DataLabel.js"],m["Core/Globals.js"],m["Core/Renderer/RendererUtilities.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B,et,K,J){var q;let{composed:Z,noop:tt}=B,{distribute:H}=et,{series:X}=K,{arrayMax:F,clamp:U,defined:d,pick:L,pushUnique:M,relativeLength:s}=J;return function(_){let w={radialDistributionY:function(S,v){var g;return(((g=v.dataLabelPosition)==null?void 0:g.top)||0)+S.distributeBox.pos},radialDistributionX:function(S,v,g,x,p){let l=p.dataLabelPosition;return S.getX(g<((l==null?void 0:l.top)||0)+2||g>((l==null?void 0:l.bottom)||0)-2?x:g,v.half,v,p)},justify:function(S,v,g,x){var p;return x[0]+(S.half?-1:1)*(g+(((p=v.dataLabelPosition)==null?void 0:p.distance)||0))},alignToPlotEdges:function(S,v,g,x){let p=S.getBBox().width;return v?p+x:g-p-x},alignToConnectors:function(S,v,g,x){let p=0,l;return S.forEach(function(f){(l=f.dataLabel.getBBox().width)>p&&(p=l)}),v?p+x:g-p-x}};function o(S,v){let{center:g,options:x}=this,p=g[2]/2,l=S.angle||0,f=Math.cos(l),b=Math.sin(l),z=g[0]+f*p,T=g[1]+b*p,k=Math.min((x.slicedOffset||0)+(x.borderWidth||0),v/5);return{natural:{x:z+f*v,y:T+b*v},computed:{},alignment:v<0?"center":S.half?"right":"left",connectorPosition:{breakAt:{x:z+f*k,y:T+b*k},touchingSliceAt:{x:z,y:T}},distance:v}}function u(){var Mt;let S=this,v=S.points,g=S.chart,x=g.plotWidth,p=g.plotHeight,l=g.plotLeft,f=Math.round(g.chartWidth/3),b=S.center,z=b[2]/2,T=b[1],k=[[],[]],Q=[0,0,0,0],st=S.dataLabelPositioners,nt,dt,mt,Et=0;S.visible&&((Mt=S.hasDataLabels)!=null&&Mt.call(S))&&(v.forEach(I=>{(I.dataLabels||[]).forEach(Y=>{Y.shortened&&(Y.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),Y.shortened=!1)})}),X.prototype.drawDataLabels.apply(S),v.forEach(I=>{(I.dataLabels||[]).forEach((Y,rt)=>{var W;let ot=b[2]/2,D=Y.options,P=s((D==null?void 0:D.distance)||0,ot);rt===0&&k[I.half].push(I),!d((W=D==null?void 0:D.style)==null?void 0:W.width)&&Y.getBBox().width>f&&(Y.css({width:Math.round(.7*f)+"px"}),Y.shortened=!0),Y.dataLabelPosition=this.getDataLabelPosition(I,P),Et=Math.max(Et,P)})}),k.forEach((I,Y)=>{let rt=I.length,ot=[],D,P,W=0,lt;rt&&(S.sortByAngle(I,Y-.5),Et>0&&(D=Math.max(0,T-z-Et),P=Math.min(T+z+Et,g.plotHeight),I.forEach(it=>{(it.dataLabels||[]).forEach(vt=>{var xt;let pt=vt.dataLabelPosition;pt&&pt.distance>0&&(pt.top=Math.max(0,T-z-pt.distance),pt.bottom=Math.min(T+z+pt.distance,g.plotHeight),W=vt.getBBox().height||21,vt.lineHeight=g.renderer.fontMetrics(vt.text||vt).h+2*vt.padding,it.distributeBox={target:(((xt=vt.dataLabelPosition)==null?void 0:xt.natural.y)||0)-pt.top+vt.lineHeight/2,size:W,rank:it.y},ot.push(it.distributeBox))})}),H(ot,lt=P+W-D,lt/5)),I.forEach(it=>{(it.dataLabels||[]).forEach(vt=>{let pt=vt.options||{},xt=it.distributeBox,Ct=vt.dataLabelPosition,Tt=(Ct==null?void 0:Ct.natural.y)||0,Nt=pt.connectorPadding||0,gt=vt.lineHeight||21,wt=(gt-vt.getBBox().height)/2,Rt=0,jt=Tt,Zt="inherit";if(Ct){if(ot&&d(xt)&&Ct.distance>0&&(xt.pos===void 0?Zt="hidden":(mt=xt.size,jt=st.radialDistributionY(it,vt))),pt.justify)Rt=st.justify(it,vt,z,b);else switch(pt.alignTo){case"connectors":Rt=st.alignToConnectors(I,Y,x,l);break;case"plotEdges":Rt=st.alignToPlotEdges(vt,Y,x,l);break;default:Rt=st.radialDistributionX(S,it,jt-wt,Tt,vt)}if(Ct.attribs={visibility:Zt,align:Ct.alignment},Ct.posAttribs={x:Rt+(pt.x||0)+({left:Nt,right:-Nt}[Ct.alignment]||0),y:jt+(pt.y||0)-gt/2},Ct.computed.x=Rt,Ct.computed.y=jt-wt,L(pt.crop,!0)){let ne;Rt-(dt=vt.getBBox().width)x-Nt&&Y===0&&(ne=Math.round(Rt+dt-x+Nt),Q[1]=Math.max(ne,Q[1])),jt-mt/2<0?Q[0]=Math.max(Math.round(-jt+mt/2),Q[0]):jt+mt/2>p&&(Q[2]=Math.max(Math.round(jt+mt/2-p),Q[2])),Ct.sideOverflow=ne}}})}))}),(F(Q)===0||this.verifyDataLabelOverflow(Q))&&(this.placeDataLabels(),this.points.forEach(I=>{(I.dataLabels||[]).forEach(Y=>{var P;let{connectorColor:rt,connectorWidth:ot=1}=Y.options||{},D=Y.dataLabelPosition;if(ot){let W;nt=Y.connector,D&&D.distance>0?(W=!nt,nt||(Y.connector=nt=g.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+I.colorIndex+(I.className?" "+I.className:"")).add(S.dataLabelsGroup)),g.styledMode||nt.attr({"stroke-width":ot,stroke:rt||I.color||"#666666"}),nt[W?"attr":"animate"]({d:I.getConnectorPath(Y)}),nt.attr({visibility:(P=D.attribs)==null?void 0:P.visibility})):nt&&(Y.connector=nt.destroy())}})})))}function C(){this.points.forEach(S=>{(S.dataLabels||[]).forEach(v=>{var x;let g=v.dataLabelPosition;g?(g.sideOverflow&&(v.css({width:Math.max(v.getBBox().width-g.sideOverflow,0)+"px",textOverflow:(((x=v.options)==null?void 0:x.style)||{}).textOverflow||"ellipsis"}),v.shortened=!0),v.attr(g.attribs),v[v.moved?"animate":"attr"](g.posAttribs),v.moved=!0):v&&v.attr({y:-9999})}),delete S.distributeBox},this)}function E(S){let v=this.center,g=this.options,x=g.center,p=g.minSize||80,l=p,f=g.size!==null;return!f&&(x[0]!==null?l=Math.max(v[2]-Math.max(S[1],S[3]),p):(l=Math.max(v[2]-S[1]-S[3],p),v[0]+=(S[3]-S[1])/2),x[1]!==null?l=U(l,p,v[2]-Math.max(S[0],S[2])):(l=U(l,p,v[2]-S[0]-S[2]),v[1]+=(S[0]-S[2])/2),l(J.x+=q.x,J.y+=q.y,J),{x:0,y:0});return{x:K.x/et.length,y:K.y/et.length}},B.getDistanceBetweenPoints=function(et,K){return Math.sqrt(Math.pow(K.x-et.x,2)+Math.pow(K.y-et.y,2))},B.getAngleBetweenPoints=function(et,K){return Math.atan2(K.x-et.x,K.y-et.y)},B.pointInPolygon=function({x:et,y:K},J){let q=J.length,Z,tt,H=!1;for(Z=0,tt=q-1;ZK!=d>K&&et<(U-X)*(K-F)/(d-F)+X&&(H=!H)}return H},R}),y(m,"Extensions/OverlappingDataLabels.js",[m["Core/Geometry/GeometryUtilities.js"],m["Core/Utilities.js"]],function(R,B){let{pointInPolygon:et}=R,{addEvent:K,fireEvent:J,objectEach:q,pick:Z}=B;function tt(F){let U=F.length,d=(C,E)=>!(E.x>=C.x+C.width||E.x+E.width<=C.x||E.y>=C.y+C.height||E.y+E.height<=C.y),L=(C,E)=>{for(let S of C)if(et({x:S[0],y:S[1]},E))return!0;return!1},M,s,_,w,o,u=!1;for(let C=0;C(E.labelrank||0)-(C.labelrank||0));for(let C=0;C{q(M,s=>{s.label&&U.push(s.label)})});for(let L of F.series||[])if(L.visible&&((d=L.hasDataLabels)!=null&&d.call(L))){let M=s=>{for(let _ of s)_.visible&&(_.dataLabels||[]).forEach(w=>{var u,C;let o=w.options||{};w.labelrank=Z(o.labelrank,_.labelrank,(u=_.shapeArgs)==null?void 0:u.height),((C=o.allowOverlap)!=null?C:Number(o.distance)>0)?(w.oldOpacity=w.opacity,w.newOpacity=1,H(w,F)):U.push(w)})};M(L.nodes||[]),M(L.points)}this.hideOverlappingLabels(U)}return{compose:function(F){let U=F.prototype;U.hideOverlappingLabels||(U.hideOverlappingLabels=tt,K(F,"render",X))}}}),y(m,"Extensions/BorderRadius.js",[m["Core/Defaults.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B,et){let{defaultOptions:K}=R,{noop:J}=B,{addEvent:q,extend:Z,isObject:tt,merge:H,relativeLength:X}=et,F={radius:0,scope:"stack",where:void 0},U=J,d=J;function L(o,u,C,E,S={}){let v=U(o,u,C,E,S),{innerR:g=0,r:x=C,start:p=0,end:l=0}=S;if(S.open||!S.borderRadius)return v;let f=l-p,b=Math.sin(f/2),z=Math.max(Math.min(X(S.borderRadius||0,x-g),(x-g)/2,x*b/(1+b)),0),T=Math.min(z,f/Math.PI*2*g),k=v.length-1;for(;k--;)(function(Q,st,nt){let dt,mt,Et,Mt=Q[st],I=Q[st+1];if(I[0]==="Z"&&(I=Q[0]),(Mt[0]==="M"||Mt[0]==="L")&&I[0]==="A"?(dt=Mt,mt=I,Et=!0):Mt[0]==="A"&&(I[0]==="M"||I[0]==="L")&&(dt=I,mt=Mt),dt&&mt&&mt.params){let Y=mt[1],rt=mt[5],ot=mt.params,{start:D,end:P,cx:W,cy:lt}=ot,it=rt?Y-nt:Y+nt,vt=it?Math.asin(nt/it):0,pt=rt?vt:-vt,xt=Math.cos(vt)*it;Et?(ot.start=D+pt,dt[1]=W+xt*Math.cos(D),dt[2]=lt+xt*Math.sin(D),Q.splice(st+1,0,["A",nt,nt,0,0,1,W+Y*Math.cos(ot.start),lt+Y*Math.sin(ot.start)])):(ot.end=P-pt,mt[6]=W+Y*Math.cos(ot.end),mt[7]=lt+Y*Math.sin(ot.end),Q.splice(st+1,0,["A",nt,nt,0,0,1,W+xt*Math.cos(P),lt+xt*Math.sin(P)])),mt[4]=Math.abs(ot.end-ot.start)1?T:z);return v}function M(){var o,u;if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:C,yAxis:E}=this,S=C.stacking==="percent",v=(u=(o=K.plotOptions)==null?void 0:o[this.type])==null?void 0:u.borderRadius,g=s(C.borderRadius,tt(v)?v:{}),x=E.options.reversed;for(let p of this.points){let{shapeArgs:l}=p;if(p.shapeType==="roundedRect"&&l){let{width:f=0,height:b=0,y:z=0}=l,T=z,k=b;if(g.scope==="stack"&&p.stackTotal){let dt=E.translate(S?100:p.stackTotal,!1,!0,!1,!0),mt=E.translate(C.threshold||0,!1,!0,!1,!0),Et=this.crispCol(0,Math.min(dt,mt),0,Math.abs(dt-mt));T=Et.y,k=Et.height}let Q=(p.negative?-1:1)*(x?-1:1)==-1,st=g.where;!st&&this.is("waterfall")&&Math.abs((p.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(st="all"),st||(st="end");let nt=Math.min(X(g.radius,f),f/2,st==="all"?b/2:1/0)||0;st==="end"&&(Q&&(T-=nt),k+=nt),Z(l,{brBoxHeight:k,brBoxY:T,r:nt})}}}}function s(o,u){return tt(o)||(o={radius:o||0}),H(F,u,o)}function _(){let o=s(this.options.borderRadius);for(let u of this.points){let C=u.shapeArgs;C&&(C.borderRadius=X(o.radius,(C.r||0)-(C.innerR||0)))}}function w(o,u,C,E,S={}){let v=d(o,u,C,E,S),{r:g=0,brBoxHeight:x=E,brBoxY:p=u}=S,l=u-p,f=p+x-(u+E),b=l-g>-.1?0:g,z=f-g>-.1?0:g,T=Math.max(b&&l,0),k=Math.max(z&&f,0),Q=[o+b,u],st=[o+C-b,u],nt=[o+C,u+b],dt=[o+C,u+E-z],mt=[o+C-z,u+E],Et=[o+z,u+E],Mt=[o,u+E-z],I=[o,u+b],Y=(rt,ot)=>Math.sqrt(Math.pow(rt,2)-Math.pow(ot,2));if(T){let rt=Y(b,b-T);Q[0]-=rt,st[0]+=rt,nt[1]=I[1]=u+b-T}if(E=Z(L.minWidth,0)&&this.chartHeight>=Z(L.minHeight,0)}).call(this)&&d.push(U._id)}function F(U,d){let L=this.options.responsive,M=this.currentResponsive,s=[],_;!d&&L&&L.rules&&L.rules.forEach(u=>{u._id===void 0&&(u._id=tt()),this.matchResponsiveRule(u,s)},this);let w=q(...s.map(u=>J((L||{}).rules||[],C=>C._id===u)).map(u=>u&&u.chartOptions));w.isResponsiveOptions=!0,s=s.toString()||void 0;let o=M&&M.ruleIds;s===o||(M&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(M.undoOptions,U,!0),this.updatingResponsive=!1),s?((_=et(w,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:w,undoOptions:_},this.updatingResponsive||this.update(w,U,!0)):this.currentResponsive=void 0)}H.compose=function(U){let d=U.prototype;return d.matchResponsiveRule||K(d,{matchResponsiveRule:X,setResponsive:F}),U}}(B||(B={})),B}),y(m,"masters/highcharts.src.js",[m["Core/Globals.js"],m["Core/Utilities.js"],m["Core/Defaults.js"],m["Core/Animation/Fx.js"],m["Core/Animation/AnimationUtilities.js"],m["Core/Renderer/HTML/AST.js"],m["Core/Templating.js"],m["Core/Renderer/RendererRegistry.js"],m["Core/Renderer/RendererUtilities.js"],m["Core/Renderer/SVG/SVGElement.js"],m["Core/Renderer/SVG/SVGRenderer.js"],m["Core/Renderer/HTML/HTMLElement.js"],m["Core/Axis/Axis.js"],m["Core/Axis/DateTimeAxis.js"],m["Core/Axis/LogarithmicAxis.js"],m["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],m["Core/Axis/Tick.js"],m["Core/Tooltip.js"],m["Core/Series/Point.js"],m["Core/Pointer.js"],m["Core/Legend/Legend.js"],m["Core/Legend/LegendSymbol.js"],m["Core/Chart/Chart.js"],m["Extensions/ScrollablePlotArea.js"],m["Core/Axis/Stacking/StackingAxis.js"],m["Core/Axis/Stacking/StackItem.js"],m["Core/Series/Series.js"],m["Core/Series/SeriesRegistry.js"],m["Series/Column/ColumnDataLabel.js"],m["Series/Pie/PieDataLabel.js"],m["Core/Series/DataLabel.js"],m["Extensions/OverlappingDataLabels.js"],m["Extensions/BorderRadius.js"],m["Core/Responsive.js"],m["Core/Color/Color.js"],m["Core/Time.js"]],function(R,B,et,K,J,q,Z,tt,H,X,F,U,d,L,M,s,_,w,o,u,C,E,S,v,g,x,p,l,f,b,z,T,k,Q,st,nt){return R.AST=q,R.Axis=d,R.Chart=S,R.Color=st,R.DataLabel=z,R.Fx=K,R.HTMLElement=U,R.Legend=C,R.LegendSymbol=E,R.OverlappingDataLabels=R.OverlappingDataLabels||T,R.PlotLineOrBand=s,R.Point=o,R.Pointer=u,R.RendererRegistry=tt,R.Series=p,R.SeriesRegistry=l,R.StackItem=x,R.SVGElement=X,R.SVGRenderer=F,R.Templating=Z,R.Tick=_,R.Time=nt,R.Tooltip=w,R.animate=J.animate,R.animObject=J.animObject,R.chart=S.chart,R.color=st.parse,R.dateFormat=Z.dateFormat,R.defaultOptions=et.defaultOptions,R.distribute=H.distribute,R.format=Z.format,R.getDeferredAnimation=J.getDeferredAnimation,R.getOptions=et.getOptions,R.numberFormat=Z.numberFormat,R.seriesType=l.seriesType,R.setAnimation=J.setAnimation,R.setOptions=et.setOptions,R.stop=J.stop,R.time=et.defaultTime,R.timers=K.timers,k.compose(R.Series,R.SVGElement,R.SVGRenderer),f.compose(R.Series.types.column),z.compose(R.Series),L.compose(R.Axis),U.compose(R.SVGRenderer),C.compose(R.Chart),M.compose(R.Axis),T.compose(R.Chart),b.compose(R.Series.types.pie),s.compose(R.Chart,R.Axis),u.compose(R.Chart),Q.compose(R.Chart),v.compose(R.Axis,R.Chart,R.Series),g.compose(R.Axis,R.Chart,R.Series),w.compose(R.Pointer),B.extend(R,B),R}),y(m,"Core/Axis/Color/ColorAxisComposition.js",[m["Core/Color/Color.js"],m["Core/Utilities.js"]],function(R,B){var et;let{parse:K}=R,{addEvent:J,extend:q,merge:Z,pick:tt,splat:H}=B;return function(X){let F;function U(){let{userOptions:E}=this;this.colorAxis=[],E.colorAxis&&(E.colorAxis=H(E.colorAxis),E.colorAxis.map(S=>new F(this,S)))}function d(E){let S=this.chart.colorAxis||[],v=l=>{let f=E.allItems.indexOf(l);f!==-1&&(this.destroyItem(E.allItems[f]),E.allItems.splice(f,1))},g=[],x,p;for(S.forEach(function(l){(x=l.options)&&x.showInLegend&&(x.dataClasses&&x.visible?g=g.concat(l.getDataClassLegendSymbols()):x.visible&&g.push(l),l.series.forEach(function(f){(!f.options.showInLegend||x.dataClasses)&&(f.options.legendType==="point"?f.points.forEach(function(b){v(b)}):v(f))}))}),p=g.length;p--;)E.allItems.unshift(g[p])}function L(E){E.visible&&E.item.legendColor&&E.item.legendItem.symbol.attr({fill:E.item.legendColor})}function M(E){var S;(S=this.chart.colorAxis)==null||S.forEach(v=>{v.update({},E.redraw)})}function s(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function _(){let E=this.axisTypes;E?E.indexOf("colorAxis")===-1&&E.push("colorAxis"):this.axisTypes=["colorAxis"]}function w(E){let S=this,v=E?"show":"hide";S.visible=S.options.visible=!!E,["graphic","dataLabel"].forEach(function(g){S[g]&&S[g][v]()}),this.series.buildKDTree()}function o(){let E=this,S=this.getPointsCollection(),v=this.options.nullColor,g=this.colorAxis,x=this.colorKey;S.forEach(p=>{let l=p.getNestedProperty(x),f=p.options.color||(p.isNull||p.value===null?v:g&&l!==void 0?g.toColor(l,p):p.color||E.color);f&&p.color!==f&&(p.color=f,E.options.legendType==="point"&&p.legendItem&&p.legendItem.label&&E.chart.legend.colorizeItem(p,p.visible))})}function u(){this.elem.attr("fill",K(this.start).tweenTo(K(this.end),this.pos),void 0,!0)}function C(){this.elem.attr("stroke",K(this.start).tweenTo(K(this.end),this.pos),void 0,!0)}X.compose=function(E,S,v,g,x){let p=S.prototype,l=v.prototype,f=x.prototype;p.collectionsWithUpdate.includes("colorAxis")||(F=E,p.collectionsWithUpdate.push("colorAxis"),p.collectionsWithInit.colorAxis=[p.addColorAxis],J(S,"afterGetAxes",U),function(b){let z=b.prototype.createAxis;b.prototype.createAxis=function(T,k){if(T!=="colorAxis")return z.apply(this,arguments);let Q=new F(this,Z(k.axis,{index:this[T].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(st=>{st.series=[]}),this.series.forEach(st=>{st.bindAxes(),st.isDirtyData=!0}),tt(k.redraw,!0)&&this.redraw(k.animation),Q}}(S),l.fillSetter=u,l.strokeSetter=C,J(g,"afterGetAllItems",d),J(g,"afterColorizeItem",L),J(g,"afterUpdate",M),q(f,{optionalAxis:"colorAxis",translateColors:o}),q(f.pointClass.prototype,{setVisible:w}),J(x,"afterTranslate",s,{order:1}),J(x,"bindAxes",_))},X.pointSetVisible=w}(et||(et={})),et}),y(m,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineColor:"#ffffff",gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{distance:8,overflow:"justify",rotation:0},minColor:"#e6e9ff",maxColor:"#0022ff",tickLength:5,showInLegend:!0}}),y(m,"Core/Axis/Color/ColorAxisLike.js",[m["Core/Color/Color.js"],m["Core/Utilities.js"]],function(R,B){var et,K;let{parse:J}=R,{merge:q}=B;return(K=et||(et={})).initDataClasses=function(Z){let tt=this.chart,H=this.legendItem=this.legendItem||{},X=this.options,F=Z.dataClasses||[],U,d,L=tt.options.chart.colorCount,M=0,s;this.dataClasses=d=[],H.labels=[];for(let _=0,w=F.length;_=X)&&(F===void 0||Z<=F)){U=d.color,tt&&(tt.dataClass=L,tt.colorIndex=d.colorIndex);break}}else{for(H=this.normalizedValue(Z),L=s.length;L--&&!(H>s[L][0]););X=s[L]||s[L+1],H=1-((F=s[L+1]||X)[0]-H)/(F[0]-X[0]||1),U=X.color.tweenTo(F.color,H)}return U},et}),y(m,"Core/Axis/Color/ColorAxis.js",[m["Core/Axis/Axis.js"],m["Core/Axis/Color/ColorAxisComposition.js"],m["Core/Axis/Color/ColorAxisDefaults.js"],m["Core/Axis/Color/ColorAxisLike.js"],m["Core/Defaults.js"],m["Core/Legend/LegendSymbol.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B,et,K,J,q,Z,tt){let{defaultOptions:H}=J,{series:X}=Z,{defined:F,extend:U,fireEvent:d,isArray:L,isNumber:M,merge:s,pick:_,relativeLength:w}=tt;H.colorAxis=s(H.xAxis,et);class o extends R{static compose(C,E,S,v){B.compose(o,C,E,S,v)}constructor(C,E){super(C,E),this.coll="colorAxis",this.visible=!0,this.init(C,E)}init(C,E){let S=C.options.legend||{},v=E.layout?E.layout!=="vertical":S.layout!=="vertical";this.side=E.side||v?2:1,this.reversed=E.reversed||!v,this.opposite=!v,super.init(C,E,"colorAxis"),this.userOptions=E,L(C.userOptions.colorAxis)&&(C.userOptions.colorAxis[this.index]=E),E.dataClasses&&this.initDataClasses(E),this.initStops(),this.horiz=v,this.zoomEnabled=!1}hasData(){return!!(this.tickPositions||[]).length}setTickPositions(){if(!this.dataClasses)return super.setTickPositions()}setOptions(C){let E=s(H.colorAxis,C,{showEmpty:!1,title:null,visible:this.chart.options.legend.enabled&&C.visible!==!1});super.setOptions(E),this.options.crosshair=this.options.marker}setAxisSize(){var g;let C=this.chart,E=(g=this.legendItem)==null?void 0:g.symbol,{width:S,height:v}=this.getSize();E&&(this.left=+E.attr("x"),this.top=+E.attr("y"),this.width=S=+E.attr("width"),this.height=v=+E.attr("height"),this.right=C.chartWidth-this.left-S,this.bottom=C.chartHeight-this.top-v,this.pos=this.horiz?this.left:this.top),this.len=(this.horiz?S:v)||o.defaultLegendLength}getOffset(){var S;let C=(S=this.legendItem)==null?void 0:S.group,E=this.chart.axisOffset[this.side];if(C){this.axisParent=C,super.getOffset();let v=this.chart.legend;v.allItems.forEach(function(g){g instanceof o&&g.drawLegendSymbol(v,g)}),v.render(),this.chart.getMargins(!0),this.chart.series.some(g=>g.isDrilling)||(this.isDirty=!0),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=E}}setLegendColor(){let C=this.horiz,E=this.reversed,S=E?1:0,v=E?0:1,g=C?[S,0,v,0]:[0,v,0,S];this.legendColor={linearGradient:{x1:g[0],y1:g[1],x2:g[2],y2:g[3]},stops:this.stops}}drawLegendSymbol(C,E){var T;let S=E.legendItem||{},v=C.padding,g=C.options,x=this.options.labels,p=_(g.itemDistance,10),l=this.horiz,{width:f,height:b}=this.getSize(),z=_(g.labelPadding,l?16:30);this.setLegendColor(),S.symbol||(S.symbol=this.chart.renderer.symbol("roundedRect").attr({r:(T=g.symbolRadius)!=null?T:3,zIndex:1}).add(S.group)),S.symbol.attr({x:0,y:(C.baseline||0)-11,width:f,height:b}),S.labelWidth=f+v+(l?p:_(x.x,x.distance)+(this.maxLabelLength||0)),S.labelHeight=b+v+(l?z:0)}setState(C){this.series.forEach(function(E){E.setState(C)})}setVisible(){}getSeriesExtremes(){let C=this.series,E,S,v,g,x,p,l=C.length,f,b;for(this.dataMin=1/0,this.dataMax=-1/0;l--;){if(S=(p=C[l]).colorKey=_(p.options.colorKey,p.colorKey,p.pointValKey,p.zoneAxis,"y"),g=p.pointArrayMap,x=p[S+"Min"]&&p[S+"Max"],p[S+"Data"])E=p[S+"Data"];else if(g){if(E=[],v=g.indexOf(S),f=p.yData,v>=0&&f)for(b=0;bp+l&&(S=p+l+2),E.plotX=S,E.plotY=this.len-S,super.drawCrosshair(C,E),E.plotX=g,E.plotY=x,this.cross&&!this.cross.addedToColorAxis&&v.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(v.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||typeof this.crosshair!="object"||this.cross.attr({fill:this.crosshair.color})))}getPlotLinePath(C){let E=this.left,S=C.translatedValue,v=this.top;return M(S)?this.horiz?[["M",S-4,v-6],["L",S+4,v-6],["L",S,v],["Z"]]:[["M",E,S],["L",E-6,S+6],["L",E-6,S-6],["Z"]]:super.getPlotLinePath(C)}update(C,E){let S=this.chart.legend;this.series.forEach(v=>{v.isDirtyData=!0}),(C.dataClasses&&S.allItems||this.dataClasses)&&this.destroyItems(),super.update(C,E),this.legendItem&&this.legendItem.label&&(this.setLegendColor(),S.colorizeItem(this,!0))}destroyItems(){let C=this.chart,E=this.legendItem||{};if(E.label)C.legend.destroyItem(this);else if(E.labels)for(let S of E.labels)C.legend.destroyItem(S);C.isDirtyLegend=!0}destroy(){this.chart.isDirtyLegend=!0,this.destroyItems(),super.destroy(...[].slice.call(arguments))}remove(C){this.destroyItems(),super.remove(C)}getDataClassLegendSymbols(){let C,E=this,S=E.chart,v=E.legendItem&&E.legendItem.labels||[],g=S.options.legend,x=_(g.valueDecimals,-1),p=_(g.valueSuffix,""),l=f=>E.series.reduce((b,z)=>(b.push(...z.points.filter(T=>T.dataClass===f)),b),[]);return v.length||E.dataClasses.forEach((f,b)=>{let z=f.from,T=f.to,{numberFormatter:k}=S,Q=!0;C="",z===void 0?C="< ":T===void 0&&(C="> "),z!==void 0&&(C+=k(z,x)+p),z!==void 0&&T!==void 0&&(C+=" - "),T!==void 0&&(C+=k(T,x)+p),v.push(U({chart:S,name:C,options:{},drawLegendSymbol:q.rectangle,visible:!0,isDataClass:!0,setState:st=>{for(let nt of l(b))nt.setState(st)},setVisible:function(){this.visible=Q=E.visible=!Q;let st=[];for(let nt of l(b))nt.setVisible(Q),nt.hiddenInDataClass=!Q,st.indexOf(nt.series)===-1&&st.push(nt.series);S.legend.colorizeItem(this,Q),st.forEach(nt=>{d(nt,"afterDataClassLegendClick")})}},f))}),v}getSize(){let{chart:C,horiz:E}=this,{height:S,width:v}=this.options,{legend:g}=C.options;return{width:_(F(v)?w(v,C.chartWidth):void 0,g==null?void 0:g.symbolWidth,E?o.defaultLegendLength:12),height:_(F(S)?w(S,C.chartHeight):void 0,g==null?void 0:g.symbolHeight,E?12:o.defaultLegendLength)}}}return o.defaultLegendLength=200,o.keepProps=["legendItem"],U(o.prototype,K),Array.prototype.push.apply(R.keepProps,o.keepProps),o}),y(m,"masters/modules/coloraxis.src.js",[m["Core/Globals.js"],m["Core/Axis/Color/ColorAxis.js"]],function(R,B){return R.ColorAxis=R.ColorAxis||B,R.ColorAxis.compose(R.Chart,R.Fx,R.Legend,R.Series),R}),y(m,"Maps/MapNavigationDefaults.js",[],function(){return{lang:{zoomIn:"Zoom in",zoomOut:"Zoom out"},mapNavigation:{buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{color:"#666666",fontSize:"1em",fontWeight:"bold"},theme:{fill:"#ffffff",stroke:"#e6e6e6","stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1}}}),y(m,"Maps/MapPointer.js",[m["Core/Utilities.js"]],function(R){var B;let{defined:et,extend:K,pick:J,wrap:q}=R;return function(Z){let tt,H=0;function X(L){let M=this.chart;L=this.normalize(L),M.options.mapNavigation.enableDoubleClickZoomTo?M.pointer.inClass(L.target,"highcharts-tracker")&&M.hoverPoint&&M.hoverPoint.zoomTo():M.isInsidePlot(L.chartX-M.plotLeft,L.chartY-M.plotTop)&&M.mapZoom(.5,void 0,void 0,L.chartX,L.chartY)}function F(L){let M=this.chart,s=et((L=this.normalize(L)).wheelDelta)&&-L.wheelDelta/120||L.deltaY||L.detail;Math.abs(s)>=1&&(H+=Math.abs(s),tt&&clearTimeout(tt),tt=setTimeout(()=>{H=0},50)),H<10&&M.isInsidePlot(L.chartX-M.plotLeft,L.chartY-M.plotTop)&&M.mapView&&M.mapView.zoomBy(-((M.options.mapNavigation.mouseWheelSensitivity-1)*s),void 0,[L.chartX,L.chartY],!(1>Math.abs(s))&&void 0)}function U(L,M,s){let _=this.chart;if(M=L.call(this,M,s),_&&_.mapView){let w=_.mapView.pixelsToLonLat({x:M.chartX-_.plotLeft,y:M.chartY-_.plotTop});w&&K(M,w)}return M}function d(L){let M=this.chart.options.mapNavigation;M&&J(M.enableTouchZoom,M.enabled)&&(this.chart.zooming.pinchType="xy"),L.apply(this,[].slice.call(arguments,1))}Z.compose=function(L){let M=L.prototype;M.onContainerDblClick||(K(M,{onContainerDblClick:X,onContainerMouseWheel:F}),q(M,"normalize",U),q(M,"zoomOption",d))}}(B||(B={})),B}),y(m,"Maps/MapSymbols.js",[],function(){let R;function B(K,J,q,Z,tt){if(tt){let H=(tt==null?void 0:tt.r)||0;tt.brBoxY=J-H,tt.brBoxHeight=Z+H}return R.roundedRect(K,J,q,Z,tt)}function et(K,J,q,Z,tt){if(tt){let H=(tt==null?void 0:tt.r)||0;tt.brBoxHeight=Z+H}return R.roundedRect(K,J,q,Z,tt)}return{compose:function(K){(R=K.prototype.symbols).bottombutton=B,R.topbutton=et}}}),y(m,"Maps/MapNavigation.js",[m["Core/Defaults.js"],m["Core/Globals.js"],m["Maps/MapNavigationDefaults.js"],m["Maps/MapPointer.js"],m["Maps/MapSymbols.js"],m["Core/Utilities.js"]],function(R,B,et,K,J,q){let{setOptions:Z}=R,{composed:tt}=B,{addEvent:H,extend:X,merge:F,objectEach:U,pick:d,pushUnique:L}=q;function M(_){_&&(_.preventDefault&&_.preventDefault(),_.stopPropagation&&_.stopPropagation(),_.cancelBubble=!0)}class s{static compose(w,o,u){K.compose(o),J.compose(u),L(tt,"Map.Navigation")&&(H(w,"beforeRender",function(){this.mapNavigation=new s(this),this.mapNavigation.update()}),Z(et))}constructor(w){this.chart=w,this.navButtons=[]}update(w){let o=this,u=o.chart,C=o.navButtons,E=function(v){this.handler.call(u,v),M(v)},S=u.options.mapNavigation;for(w&&(S=u.options.mapNavigation=F(u.options.mapNavigation,w));C.length;)C.pop().destroy();if(!u.renderer.forExport&&d(S.enableButtons,S.enabled)){o.navButtonsGroup||(o.navButtonsGroup=u.renderer.g().attr({zIndex:7}).add()),U(S.buttons,(g,x)=>{var k;let p={padding:(g=F(S.buttonOptions,g)).padding};!u.styledMode&&g.theme&&(X(p,g.theme),p.style=F(g.theme.style,g.style));let{text:l,width:f=0,height:b=0,padding:z=0}=g,T=u.renderer.button(l!=="+"&&l!=="-"&&l||"",0,0,E,p,void 0,void 0,void 0,x==="zoomIn"?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[x]).attr({width:f,height:b,title:u.options.lang[x],zIndex:5}).add(o.navButtonsGroup);if(l==="+"||l==="-"){let Q=f+1,st=[["M",z+3,z+b/2],["L",z+Q-3,z+b/2]];l==="+"&&st.push(["M",z+Q/2,z+3],["L",z+Q/2,z+b-3]),u.renderer.path(st).addClass("highcharts-button-symbol").attr(u.styledMode?{}:{stroke:(k=g.style)==null?void 0:k.color,"stroke-width":3,"stroke-linecap":"round"}).add(T)}if(T.handler=g.onclick,H(T.element,"dblclick",M),C.push(T),X(g,{width:T.width,height:2*(T.height||0)}),u.hasLoaded)T.align(g,!1,g.alignTo);else{let Q=H(u,"load",()=>{T.element&&T.align(g,!1,g.alignTo),Q()})}});let v=(g,x)=>!(x.x>=g.x+g.width||x.x+x.width<=g.x||x.y>=g.y+g.height||x.y+x.height<=g.y);u.hasLoaded||H(u,"render",function(){let g=u.exportingGroup&&u.exportingGroup.getBBox();if(g){let x=o.navButtonsGroup.getBBox();if(v(g,x)){let p=-x.y-x.height+g.y-5,l=g.y+g.height-x.y+5,f=S.buttonOptions&&S.buttonOptions.verticalAlign;o.navButtonsGroup.attr({translateY:f==="bottom"?p:l})}}})}this.updateEvents(S)}updateEvents(w){let o=this.chart;d(w.enableDoubleClickZoom,w.enabled)||w.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||H(o.container,"dblclick",function(u){o.pointer.onContainerDblClick(u)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),d(w.enableMouseWheelZoom,w.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||H(o.container,"wheel",function(u){return o.pointer.inClass(u.target,"highcharts-no-mousewheel")||(o.pointer.onContainerMouseWheel(u),M(u)),!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())}}return s}),y(m,"Series/ColorMapComposition.js",[m["Core/Series/SeriesRegistry.js"],m["Core/Renderer/SVG/SVGElement.js"],m["Core/Utilities.js"]],function(R,B,et){var K;let{column:{prototype:J}}=R.seriesTypes,{addEvent:q,defined:Z}=et;return function(tt){function H(X){let F=this.series,U=F.chart.renderer;this.moveToTopOnHover&&this.graphic&&(F.stateMarkerGraphic||(F.stateMarkerGraphic=new B(U,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),(X==null?void 0:X.state)==="hover"?(this.graphic.attr({id:this.id}),F.stateMarkerGraphic.attr({href:`${U.url}#${this.id}`,visibility:"visible"})):F.stateMarkerGraphic.attr({href:""}))}tt.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return this.value!==null&&this.value!==1/0&&this.value!==-1/0&&(this.value===void 0||!isNaN(this.value))}},tt.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(X){let F={};return Z(X.color)&&(!X.state||X.state==="normal")&&(F[this.colorProp||"fill"]=X.color),F},pointAttribs:J.pointAttribs},tt.compose=function(X){return q(X.prototype.pointClass,"afterSetState",H),X}}(K||(K={})),K}),y(m,"Core/Chart/MapChart.js",[m["Core/Chart/Chart.js"],m["Core/Defaults.js"],m["Core/Renderer/SVG/SVGRenderer.js"],m["Core/Utilities.js"]],function(R,B,et,K){var J;let{getOptions:q}=B,{isNumber:Z,merge:tt,pick:H}=K;class X extends R{init(U,d){let L=q().credits,M=tt({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:H(L.mapText,' \xA9 {geojson.copyrightShort}'),mapTextFull:H(L.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},U);super.init(M,d)}mapZoom(U,d,L,M,s){this.mapView&&(Z(U)&&(U=Math.log(U)/Math.log(.5)),this.mapView.zoomBy(U,Z(d)&&Z(L)?this.mapView.projection.inverse([d,L]):void 0,Z(M)&&Z(s)?[M,s]:void 0))}update(U){var d;U.chart&&"map"in U.chart&&((d=this.mapView)==null||d.recommendMapView(this,[U.chart.map,...(this.options.series||[]).map(L=>L.mapData)],!0)),super.update.apply(this,arguments)}}return(J=X||(X={})).maps={},J.mapChart=function(F,U,d){return new J(F,U,d)},J.splitPath=function(F){let U;return U=typeof F=="string"?(F=F.replace(/([A-Z])/gi," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(d=>/[A-Z]/i.test(d)?d:parseFloat(d)):F,et.prototype.pathToSegments(U)},X}),y(m,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(R){let B=-Number.MAX_VALUE,et=Number.MAX_VALUE,K=-Number.MAX_VALUE,J=Number.MAX_VALUE,q;if(R.forEach(Z=>{let tt=Z[Z.length-2],H=Z[Z.length-1];typeof tt=="number"&&typeof H=="number"&&(et=Math.min(et,tt),B=Math.max(B,tt),J=Math.min(J,H),K=Math.max(K,H),q=!0)}),q)return{x1:et,y1:J,x2:B,y2:K}}}}),y(m,"Series/Map/MapPoint.js",[m["Series/ColorMapComposition.js"],m["Maps/MapUtilities.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B,et,K){let{boundsFromPath:J}=B,q=et.seriesTypes.scatter.prototype.pointClass,{extend:Z,isNumber:tt,pick:H}=K;class X extends q{static getProjectedPath(U,d){return U.projectedPath||(d&&U.geometry?(d.hasCoordinates=!0,U.projectedPath=d.path(U.geometry)):U.projectedPath=U.path),U.projectedPath||[]}applyOptions(U,d){var _;let L=this.series,M=super.applyOptions(U,d),s=L.joinBy;if(L.mapData&&L.mapMap){let w=s[1],o=super.getNestedProperty(w),u=o!==void 0&&L.mapMap[o];u?Z(M,co(Fr({},u),{name:(_=M.name)!=null?_:u.name})):L.pointArrayMap.indexOf("value")!==-1&&(M.value=M.value||null)}return M}getProjectedBounds(U){let d=J(X.getProjectedPath(this,U)),L=this.properties,M=this.series.chart.mapView;if(d){let s=L&&L["hc-middle-lon"],_=L&&L["hc-middle-lat"];if(M&&tt(s)&&tt(_)){let w=U.forward([s,_]);d.midX=w[0],d.midY=w[1]}else{let w=L&&L["hc-middle-x"],o=L&&L["hc-middle-y"];d.midX=d.x1+(d.x2-d.x1)*H(this.middleX,tt(w)?w:.5);let u=H(this.middleY,tt(o)?o:.5);this.geometry||(u=1-u),d.midY=d.y2-(d.y2-d.y1)*u}return d}}onMouseOver(U){K.clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?super.onMouseOver.call(this,U):this.series.onMouseOut()}setVisible(U){this.visible=this.options.visible=!!U,this.dataLabel&&this.dataLabel[U?"show":"hide"](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))}zoomTo(U){let d=this.series.chart,L=d.mapView,M=this.bounds;if(L&&M){let s=tt(this.insetIndex)&&L.insets[this.insetIndex];if(s){let _=s.projectedUnitsToPixels({x:M.x1,y:M.y1}),w=s.projectedUnitsToPixels({x:M.x2,y:M.y2}),o=L.pixelsToProjectedUnits({x:_.x,y:_.y}),u=L.pixelsToProjectedUnits({x:w.x,y:w.y});M={x1:o.x,y1:o.y,x2:u.x,y2:u.y}}L.fitToBounds(M,void 0,!1),this.series.isDirty=!0,d.redraw(U)}}}return Z(X.prototype,{dataLabelOnNull:R.pointMembers.dataLabelOnNull,moveToTopOnHover:R.pointMembers.moveToTopOnHover,isValid:R.pointMembers.isValid}),X}),y(m,"Series/Map/MapSeriesDefaults.js",[m["Core/Utilities.js"]],function(R){let{isNumber:B}=R;return{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){let{numberFormatter:et}=this.series.chart,{value:K}=this.point;return B(K)?et(K,-1):this.point.name},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},linecap:"round",marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}
    "},turboThreshold:0,allAreas:!0,borderColor:"#e6e6e6",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:void 0,borderColor:"#666666",borderWidth:2},normal:{animation:!0},select:{color:"#cccccc"}},legendSymbol:"rectangle"}}),y(m,"Maps/MapViewDefaults.js",[],function(){return{center:[0,0],fitToGeometry:void 0,maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0,insetOptions:{borderColor:"#cccccc",borderWidth:1,padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}}}),y(m,"Maps/GeoJSONComposition.js",[m["Core/Globals.js"],m["Core/Templating.js"],m["Core/Utilities.js"]],function(R,B,et){var K;let{win:J}=R,{format:q}=B,{error:Z,extend:tt,merge:H,wrap:X}=et;return function(F){function U(w){return this.mapView&&this.mapView.lonLatToProjectedUnits(w)}function d(w){return this.mapView&&this.mapView.projectedUnitsToLonLat(w)}function L(w,o){let u=this.options.chart.proj4||J.proj4;if(!u){Z(21,!1,this);return}let{jsonmarginX:C=0,jsonmarginY:E=0,jsonres:S=1,scale:v=1,xoffset:g=0,xpan:x=0,yoffset:p=0,ypan:l=0}=o,f=u(o.crs,[w.lon,w.lat]),b=o.cosAngle||o.rotation&&Math.cos(o.rotation),z=o.sinAngle||o.rotation&&Math.sin(o.rotation),T=o.rotation?[f[0]*b+f[1]*z,-f[0]*z+f[1]*b]:f;return{x:((T[0]-g)*v+x)*S+C,y:-(((p-T[1])*v+l)*S-E)}}function M(w,o){let u=this.options.chart.proj4||J.proj4;if(!u){Z(21,!1,this);return}if(w.y===null)return;let{jsonmarginX:C=0,jsonmarginY:E=0,jsonres:S=1,scale:v=1,xoffset:g=0,xpan:x=0,yoffset:p=0,ypan:l=0}=o,f={x:((w.x-C)/S-x)/v+g,y:((w.y-E)/S+l)/v+p},b=o.cosAngle||o.rotation&&Math.cos(o.rotation),z=o.sinAngle||o.rotation&&Math.sin(o.rotation),T=u(o.crs,"WGS84",o.rotation?{x:f.x*b+-(f.y*z),y:f.x*z+f.y*b}:f);return{lat:T.y,lon:T.x}}function s(w,o){o||(o=Object.keys(w.objects)[0]);let u=w.objects[o];if(u["hc-decoded-geojson"]&&u["hc-decoded-geojson"].title===w.title)return u["hc-decoded-geojson"];let C=w.arcs;if(w.transform){let x,p,l,f=w.arcs,{scale:b,translate:z}=w.transform;C=[];for(let T=0,k=f.length;Ttypeof x[0]=="number"?x.reduce((p,l,f)=>{let b=l<0?C[~l]:C[l];return l<0?(b=b.slice(0,f===0?b.length:b.length-1)).reverse():f&&(b=b.slice(1)),p.concat(b)},[]):x.map(E),S=u.geometries,v=[];for(let x=0,p=S.length;x(J[1]-K[1])*(q[0]-K[0])}function et(K,J,q,Z){let tt=[K[0]-J[0],K[1]-J[1]],H=[q[0]-Z[0],q[1]-Z[1]],X=K[0]*J[1]-K[1]*J[0],F=q[0]*Z[1]-q[1]*Z[0],U=1/(tt[0]*H[1]-tt[1]*H[0]),d=[(X*H[0]-F*tt[0])*U,(X*H[1]-F*tt[1])*U];return d.isIntersection=!0,d}return{clipLineString:function(K,J){let q=[],Z=R(K,J,!1);for(let tt=1;ttJ===0?0:J>0?1:-1),B=Math.PI/180,et=Math.PI/2,K=J=>Math.tan((et+J)/2);return class{constructor(J){var F;let q=(J.parallels||[]).map(U=>U*B),Z=q[0]||0,tt=(F=q[1])!=null?F:Z,H=Math.cos(Z);typeof J.projectedBounds=="object"&&(this.projectedBounds=J.projectedBounds);let X=Z===tt?Math.sin(Z):Math.log(H/Math.cos(tt))/Math.log(K(tt)/K(Z));1e-10>Math.abs(X)&&(X=1e-10*(R(X)||1)),this.n=X,this.c=H*Math.pow(K(Z),X)/X}forward(J){let{c:q,n:Z,projectedBounds:tt}=this,H=J[0]*B,X=J[1]*B;q>0?X<-et+1e-6&&(X=-et+1e-6):X>et-1e-6&&(X=et-1e-6);let F=q/Math.pow(K(X),Z),U=F*Math.sin(Z*H)*63.78137,d=(q-F*Math.cos(Z*H))*63.78137,L=[U,d];return tt&&(Utt.x2||dtt.y2)&&(L.outside=!0),L}inverse(J){let{c:q,n:Z}=this,tt=J[0]/63.78137,H=q-J[1]/63.78137,X=R(Z)*Math.sqrt(tt*tt+H*H),F=Math.atan2(tt,Math.abs(H))*R(H);return H*Z<0&&(F-=Math.PI*R(tt)*R(H)),[F/Z/B,(2*Math.atan(Math.pow(q/X,1/Z))-et)/B]}}}),y(m,"Maps/Projections/EqualEarth.js",[],function(){let R=Math.sqrt(3)/2;return class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}forward(B){let et=Math.PI/180,K=Math.asin(R*Math.sin(B[1]*et)),J=K*K,q=J*J*J;return[B[0]*et*Math.cos(K)*74.03120656864502/(R*(1.340264+-.24331799999999998*J+q*(.0062510000000000005+.034164*J))),74.03120656864502*K*(1.340264+-.081106*J+q*(893e-6+.003796*J))]}inverse(B){let et=B[0]/74.03120656864502,K=B[1]/74.03120656864502,J=180/Math.PI,q=K,Z,tt,H,X;for(let d=0;d<12&&(tt=(Z=q*q)*Z*Z,H=q*(1.340264+-.081106*Z+tt*(893e-6+.003796*Z))-K,q-=X=H/(1.340264+-.24331799999999998*Z+tt*(.0062510000000000005+.034164*Z)),!(1e-9>Math.abs(X)));++d);tt=(Z=q*q)*Z*Z;let F=J*R*et*(1.340264+-.24331799999999998*Z+tt*(.0062510000000000005+.034164*Z))/Math.cos(q),U=J*Math.asin(Math.sin(q)/R);return Math.abs(F)>180?[NaN,NaN]:[F,U]}}}),y(m,"Maps/Projections/Miller.js",[],function(){let R=Math.PI/4,B=Math.PI/180;return class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}forward(et){return[et[0]*B*63.78137,79.7267125*Math.log(Math.tan(R+.4*et[1]*B))]}inverse(et){return[et[0]/63.78137/B,2.5*(Math.atan(Math.exp(.8*(et[1]/63.78137)))-R)/B]}}}),y(m,"Maps/Projections/Orthographic.js",[],function(){let R=Math.PI/180;return class{constructor(){this.antimeridianCutting=!1,this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}forward(B){let et=B[0],K=B[1]*R,J=[Math.cos(K)*Math.sin(et*R)*63.78460826781007,63.78460826781007*Math.sin(K)];return(et<-90||et>90)&&(J.outside=!0),J}inverse(B){let et=B[0]/63.78460826781007,K=B[1]/63.78460826781007,J=Math.sqrt(et*et+K*K),q=Math.asin(J),Z=Math.sin(q);return[Math.atan2(et*Z,J*Math.cos(q))/R,Math.asin(J&&K*Z/J)/R]}}}),y(m,"Maps/Projections/WebMercator.js",[],function(){let R=Math.PI/180;return class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071},this.maxLatitude=85.0511287798}forward(B){let et=Math.sin(B[1]*R),K=[63.78137*B[0]*R,63.78137*Math.log((1+et)/(1-et))/2];return Math.abs(B[1])>this.maxLatitude&&(K.outside=!0),K}inverse(B){return[B[0]/(63.78137*R),(2*Math.atan(Math.exp(B[1]/63.78137))-Math.PI/2)/R]}}}),y(m,"Maps/Projections/ProjectionRegistry.js",[m["Maps/Projections/LambertConformalConic.js"],m["Maps/Projections/EqualEarth.js"],m["Maps/Projections/Miller.js"],m["Maps/Projections/Orthographic.js"],m["Maps/Projections/WebMercator.js"]],function(R,B,et,K,J){return{EqualEarth:B,LambertConformalConic:R,Miller:et,Orthographic:K,WebMercator:J}}),y(m,"Maps/Projection.js",[m["Core/Geometry/PolygonClip.js"],m["Maps/Projections/ProjectionRegistry.js"],m["Core/Utilities.js"]],function(R,B,et){let{clipLineString:K,clipPolygon:J}=R,{clamp:q,erase:Z}=et,tt=2*Math.PI/360,H=d=>(d<-180&&(d+=360),d>180&&(d-=360),d),X=d=>(1-Math.cos(d))/2,F=(d,L)=>{let M=Math.cos,s=d[1]*tt,_=d[0]*tt,w=L[1]*tt,o=L[0]*tt;return X(w-s)+M(s)*M(w)*X(o-_)};class U{static add(L,M){U.registry[L]=M}static distance(L,M){let{atan2:s,sqrt:_}=Math,w=F(L,M);return 6371e3*(2*s(_(w),_(1-w)))}static geodesic(L,M,s,_=5e5){let{atan2:w,cos:o,sin:u,sqrt:C}=Math,E=U.distance,S=L[1]*tt,v=L[0]*tt,g=M[1]*tt,x=M[0]*tt,p=o(S)*o(v),l=o(g)*o(x),f=o(S)*u(v),b=o(g)*u(x),z=u(S),T=u(g),k=E(L,M),Q=k/6371e3,st=u(Q),nt=Math.round(k/_),dt=[];if(s&&dt.push(L),nt>1){let mt=1/nt;for(let Et=mt;Et<.999;Et+=mt){let Mt=u((1-Et)*Q)/st,I=u(Et*Q)/st,Y=Mt*p+I*l,rt=Mt*f+I*b,ot=w(Mt*z+I*T,C(Y*Y+rt*rt)),D=w(rt,Y);dt.push([D/tt,ot/tt])}}return s&&dt.push(M),dt}static insertGeodesics(L){let M=L.length-1;for(;M--;)if(Math.max(Math.abs(L[M][0]-L[M+1][0]),Math.abs(L[M][1]-L[M+1][1]))>10){let s=U.geodesic(L[M],L[M+1]);s.length&&L.splice(M+1,0,...s)}}static toString(L){let{name:M,rotation:s}=L||{};return[M,s&&s.join(",")].join(";")}constructor(L={}){this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=L;let{name:M,projectedBounds:s,rotation:_}=L;this.rotator=_?this.getRotator(_):void 0;let w=M?U.registry[M]:void 0;w&&(this.def=new w(L));let{def:o,rotator:u}=this;o&&(this.maxLatitude=o.maxLatitude||90,this.hasGeoProjection=!0),u&&o?(this.forward=C=>o.forward(u.forward(C)),this.inverse=C=>u.inverse(o.inverse(C))):o?(this.forward=C=>o.forward(C),this.inverse=C=>o.inverse(C)):u&&(this.forward=u.forward,this.inverse=u.inverse),this.bounds=s==="world"?o&&o.bounds:s}lineIntersectsBounds(L){let{x1:M,x2:s,y1:_,y2:w}=this.bounds||{},o=(E,S,v)=>{let[g,x]=E,p=S?0:1;if(typeof v=="number"&&g[S]>=v!=x[S]>=v){let l=(v-g[S])/(x[S]-g[S]),f=g[p]+l*(x[p]-g[p]);return S?[f,v]:[v,f]}},u,C=L[0];return((u=o(L,0,M))||(u=o(L,0,s)))&&(C=u,L[1]=u),((u=o(L,1,_))||(u=o(L,1,w)))&&(C=u),C}getRotator(L){let M=L[0]*tt,s=(L[1]||0)*tt,_=(L[2]||0)*tt,w=Math.cos(s),o=Math.sin(s),u=Math.cos(_),C=Math.sin(_);if(M!==0||s!==0||_!==0)return{forward:E=>{let S=E[0]*tt+M,v=E[1]*tt,g=Math.cos(v),x=Math.cos(S)*g,p=Math.sin(S)*g,l=Math.sin(v),f=l*w+x*o;return[Math.atan2(p*u-f*C,x*w-l*o)/tt,Math.asin(f*u+p*C)/tt]},inverse:E=>{let S=E[0]*tt,v=E[1]*tt,g=Math.cos(v),x=Math.cos(S)*g,p=Math.sin(S)*g,l=Math.sin(v),f=l*u-p*C;return[(Math.atan2(p*u+l*C,x*w+f*o)-M)/tt,Math.asin(f*w-x*o)/tt]}}}forward(L){return L}inverse(L){return L}cutOnAntimeridian(L,M){let s,_=[],w=[L];for(let o=0,u=L.length;o90)&&(v<-90||v>90)&&S>0!=v>0){let g=q((180-(S+360)%360)/((v+360)%360-(S+360)%360),0,1),x=E[1]+g*(C[1]-E[1]);_.push({i:o,lat:x,direction:S<0?1:-1,previousLonLat:E,lonLat:C})}}if(_.length)if(M){_.length%2==1&&(s=_.slice().sort((u,C)=>Math.abs(C.lat)-Math.abs(u.lat))[0],Z(_,s));let o=_.length-2;for(;o>=0;){let u=_[o].i,C=H(180+1e-6*_[o].direction),E=H(180-1e-6*_[o].direction),S=L.splice(u,_[o+1].i-u,...U.geodesic([C,_[o].lat],[C,_[o+1].lat],!0));S.push(...U.geodesic([E,_[o+1].lat],[E,_[o].lat],!0)),w.push(S),o-=2}if(s)for(let u=0;u-1){let g=(E<0?-1:1)*this.maxLatitude,x=H(180+1e-6*C),p=H(180-1e-6*C),l=U.geodesic([x,E],[x,g],!0);for(let f=x+120*C;f>-180&&f<180;f+=120*C)l.push([f,g]);l.push(...U.geodesic([p,g],[p,s.lat],!0)),S.splice(v,0,...l);break}}}else{let o=_.length;for(;o--;){let u=_[o].i,C=L.splice(u,L.length,[H(180+1e-6*_[o].direction),_[o].lat]);C.unshift([H(180-1e-6*_[o].direction),_[o].lat]),w.push(C)}}return w}path(L){let M,{bounds:s,def:_,rotator:w}=this,o=[],u=L.type==="Polygon"||L.type==="MultiPolygon",C=this.hasGeoProjection,E=!_||_.antimeridianCutting!==!1,S=E?w:void 0,v=E&&_||this;s&&(M=[[s.x1,s.y1],[s.x2,s.y1],[s.x2,s.y2],[s.x1,s.y2]]);let g=x=>{let p=x.map(f=>{if(E){S&&(f=S.forward(f));let b=f[0];1e-6>Math.abs(b-180)&&(b=b<180?179.999999:180.000001),f=[b,f[1]]}return f}),l=[p];C&&(U.insertGeodesics(p),E&&(l=this.cutOnAntimeridian(p,u))),l.forEach(f=>{let b,z;if(f.length<2)return;let T=!1,k=!1,Q=mt=>{T?o.push(["L",mt[0],mt[1]]):(o.push(["M",mt[0],mt[1]]),T=!0)},st=!1,nt=!1,dt=f.map(mt=>{let Et=v.forward(mt);return Et.outside?st=!0:nt=!0,Et[1]===1/0?Et[1]=1e10:Et[1]===-1/0&&(Et[1]=-1e10),Et});if(E){if(u&&dt.push(dt[0]),st){if(!nt)return;if(M){if(u)dt=J(dt,M);else if(s){K(dt,M).forEach(mt=>{T=!1,mt.forEach(Q)});return}}}dt.forEach(Q)}else for(let mt=0;mtQ(v.forward(I))):T=!1),Q(Mt),z=Et,k=!1)}})};return L.type==="LineString"?g(L.coordinates):L.type==="MultiLineString"?L.coordinates.forEach(x=>g(x)):L.type==="Polygon"?(L.coordinates.forEach(x=>g(x)),o.length&&o.push(["Z"])):L.type==="MultiPolygon"&&(L.coordinates.forEach(x=>{x.forEach(p=>g(p))}),o.length&&o.push(["Z"])),o}}return U.registry=B,U}),y(m,"Maps/MapView.js",[m["Core/Globals.js"],m["Maps/MapViewDefaults.js"],m["Maps/GeoJSONComposition.js"],m["Core/Geometry/GeometryUtilities.js"],m["Maps/MapUtilities.js"],m["Maps/Projection.js"],m["Core/Utilities.js"]],function(R,B,et,K,J,q,Z){let{composed:tt}=R,{pointInPolygon:H}=K,{topo2geo:X}=et,{boundsFromPath:F}=J,{addEvent:U,clamp:d,crisp:L,fireEvent:M,isArray:s,isNumber:_,isObject:w,isString:o,merge:u,pick:C,pushUnique:E,relativeLength:S}=Z,v={};function g(f,b){let{width:z,height:T}=b;return Math.log(400.979322/Math.max((f.x2-f.x1)/(z/256),(f.y2-f.y1)/(T/256)))/Math.log(2)}function x(f){var b,z;f.seriesOptions.mapData&&((z=this.mapView)==null||z.recommendMapView(this,[this.options.chart.map,f.seriesOptions.mapData],(b=this.options.drilldown)==null?void 0:b.mapZooming))}class p{static compose(b){E(tt,"MapView")&&(v=b.maps,U(b,"afterInit",function(){this.mapView=new p(this,this.options.mapView)},{order:0}),U(b,"addSeriesAsDrilldown",x),U(b,"afterDrillUp",x))}static compositeBounds(b){if(b.length)return b.slice(1).reduce((z,T)=>(z.x1=Math.min(z.x1,T.x1),z.y1=Math.min(z.y1,T.y1),z.x2=Math.max(z.x2,T.x2),z.y2=Math.max(z.y2,T.y2),z),u(b[0]))}static mergeInsets(b,z){let T=Q=>{let st={};return Q.forEach((nt,dt)=>{st[nt&&nt.id||`i${dt}`]=nt}),st},k=u(T(b),T(z));return Object.keys(k).map(Q=>k[Q])}constructor(b,z){var st;this.allowTransformAnimation=!0,this.eventsToUnbind=[],this.insets=[],this.padding=[0,0,0,0],this.recommendedMapView={},this instanceof l||this.recommendMapView(b,[b.options.chart.map,...(b.options.series||[]).map(nt=>nt.mapData)]),this.userOptions=z||{};let T=u(B,this.recommendedMapView,z),k=(st=this.recommendedMapView)==null?void 0:st.insets,Q=z&&z.insets;k&&Q&&(T.insets=p.mergeInsets(k,Q)),this.chart=b,this.center=T.center,this.options=T,this.projection=new q(T.projection),this.playingField=b.plotBox,this.zoom=T.zoom||0,this.minZoom=T.minZoom,this.createInsets(),this.eventsToUnbind.push(U(b,"afterSetChartSize",()=>{this.playingField=this.getField(),(this.minZoom===void 0||this.minZoom===this.zoom)&&(this.fitToBounds(void 0,void 0,!1),!this.chart.hasRendered&&_(this.userOptions.zoom)&&(this.zoom=this.userOptions.zoom),this.userOptions.center&&u(!0,this.center,this.userOptions.center))})),this.setUpEvents()}createInsets(){let b=this.options,z=b.insets;z&&z.forEach(T=>{let k=new l(this,u(b.insetOptions,T));this.insets.push(k)})}fitToBounds(b,z,T=!0,k){let Q=b||this.getProjectedBounds();if(Q){let st=C(z,b?0:this.options.padding),nt=this.getField(!1),dt=s(st)?st:[st,st,st,st];this.padding=[S(dt[0],nt.height),S(dt[1],nt.width),S(dt[2],nt.height),S(dt[3],nt.width)],this.playingField=this.getField();let mt=g(Q,this.playingField);b||(this.minZoom=mt);let Et=this.projection.inverse([(Q.x2+Q.x1)/2,(Q.y2+Q.y1)/2]);this.setView(Et,mt,T,k)}}getField(b=!0){let z=b?this.padding:[0,0,0,0];return{x:z[3],y:z[0],width:this.chart.plotWidth-z[1]-z[3],height:this.chart.plotHeight-z[0]-z[2]}}getGeoMap(b){if(o(b))return v[b]&&v[b].type==="Topology"?X(v[b]):v[b];if(w(b,!0)){if(b.type==="FeatureCollection")return b;if(b.type==="Topology")return X(b)}}getMapBBox(){let b=this.getProjectedBounds(),z=this.getScale();if(b){let T=this.padding,k=this.projectedUnitsToPixels({x:b.x1,y:b.y2});return{width:(b.x2-b.x1)*z+T[1]+T[3],height:(b.y2-b.y1)*z+T[0]+T[2],x:k.x-T[3],y:k.y-T[0]}}}getProjectedBounds(){let b=this.projection,z=this.chart.series.reduce((k,Q)=>{let st=Q.getProjectedBounds&&Q.getProjectedBounds();return st&&Q.options.affectsMapView!==!1&&k.push(st),k},[]),T=this.options.fitToGeometry;if(T){if(!this.fitToGeometryCache)if(T.type==="MultiPoint"){let k=T.coordinates.map(nt=>b.forward(nt)),Q=k.map(nt=>nt[0]),st=k.map(nt=>nt[1]);this.fitToGeometryCache={x1:Math.min.apply(0,Q),x2:Math.max.apply(0,Q),y1:Math.min.apply(0,st),y2:Math.max.apply(0,st)}}else this.fitToGeometryCache=F(b.path(T));return this.fitToGeometryCache}return this.projection.bounds||p.compositeBounds(z)}getScale(){return .638436911716859*Math.pow(2,this.zoom)}getSVGTransform(){let{x:b,y:z,width:T,height:k}=this.playingField,Q=this.projection.forward(this.center),st=this.projection.hasCoordinates?-1:1,nt=this.getScale(),dt=nt*st,mt=b+T/2-Q[0]*nt,Et=z+k/2-Q[1]*dt;return{scaleX:nt,scaleY:dt,translateX:mt,translateY:Et}}lonLatToPixels(b){let z=this.lonLatToProjectedUnits(b);if(z)return this.projectedUnitsToPixels(z)}lonLatToProjectedUnits(b){let z=this.chart,T=z.mapTransforms;if(T){for(let Q in T)if(Object.hasOwnProperty.call(T,Q)&&T[Q].hitZone){let st=z.transformFromLatLon(b,T[Q]);if(st&&H(st,T[Q].hitZone.coordinates[0]))return st}return z.transformFromLatLon(b,T.default)}for(let Q of this.insets)if(Q.options.geoBounds&&H({x:b.lon,y:b.lat},Q.options.geoBounds.coordinates[0])){let st=Q.projection.forward([b.lon,b.lat]),nt=Q.projectedUnitsToPixels({x:st[0],y:st[1]});return this.pixelsToProjectedUnits(nt)}let k=this.projection.forward([b.lon,b.lat]);if(!k.outside)return{x:k[0],y:k[1]}}projectedUnitsToLonLat(b){let z=this.chart,T=z.mapTransforms;if(T){for(let st in T)if(Object.hasOwnProperty.call(T,st)&&T[st].hitZone&&H(b,T[st].hitZone.coordinates[0]))return z.transformToLatLon(b,T[st]);return z.transformToLatLon(b,T.default)}let k=this.projectedUnitsToPixels(b);for(let st of this.insets)if(st.hitZone&&H(k,st.hitZone.coordinates[0])){let nt=st.pixelsToProjectedUnits(k),dt=st.projection.inverse([nt.x,nt.y]);return{lon:dt[0],lat:dt[1]}}let Q=this.projection.inverse([b.x,b.y]);return{lon:Q[0],lat:Q[1]}}recommendMapView(b,z,T=!1){var nt;this.recommendedMapView={};let k=z.map(dt=>this.getGeoMap(dt)),Q=[];k.forEach(dt=>{if(dt&&(Object.keys(this.recommendedMapView).length||(this.recommendedMapView=dt["hc-recommended-mapview"]||{}),dt.bbox)){let[mt,Et,Mt,I]=dt.bbox;Q.push({x1:mt,y1:Et,x2:Mt,y2:I})}});let st=Q.length&&p.compositeBounds(Q);M(this,"onRecommendMapView",{geoBounds:st,chart:b},function(){if(st&&this.recommendedMapView){if(!this.recommendedMapView.projection){let{x1:dt,y1:mt,x2:Et,y2:Mt}=st;this.recommendedMapView.projection=Et-dt>180&&Mt-mt>90?{name:"EqualEarth",parallels:[0,0],rotation:[0]}:{name:"LambertConformalConic",parallels:[mt,Mt],rotation:[-(dt+Et)/2]}}this.recommendedMapView.insets||(this.recommendedMapView.insets=void 0)}}),this.geoMap=k[0],T&&b.hasRendered&&!((nt=b.userOptions.mapView)!=null&&nt.projection)&&this.recommendedMapView&&this.update(this.recommendedMapView)}redraw(b){this.chart.series.forEach(z=>{z.useMapGeometry&&(z.isDirty=!0)}),this.chart.redraw(b)}setView(b,z,T=!0,k){b&&(this.center=b),typeof z=="number"&&(typeof this.minZoom=="number"&&(z=Math.max(z,this.minZoom)),typeof this.options.maxZoom=="number"&&(z=Math.min(z,this.options.maxZoom)),_(z)&&(this.zoom=z));let Q=this.getProjectedBounds();if(Q){let st=this.projection.forward(this.center),{x:nt,y:dt,width:mt,height:Et}=this.playingField,Mt=this.getScale(),I=this.projectedUnitsToPixels({x:Q.x1,y:Q.y1}),Y=this.projectedUnitsToPixels({x:Q.x2,y:Q.y2}),rt=[(Q.x1+Q.x2)/2,(Q.y1+Q.y2)/2];if(!this.chart.series.some(ot=>ot.isDrilling)){let ot=I.x,D=Y.y,P=Y.x,W=I.y;P-otnt+mt&&ot>nt&&(st[0]+=Math.min(P-mt-nt,ot-nt)/Mt),W-Ddt+Et&&D>dt&&(st[1]-=Math.min(W-Et-dt,D-dt)/Mt),this.center=this.projection.inverse(st)}this.insets.forEach(ot=>{ot.options.field&&(ot.hitZone=ot.getHitZone(),ot.playingField=ot.getField())}),this.render()}M(this,"afterSetView"),T&&this.redraw(k)}projectedUnitsToPixels(b){let z=this.getScale(),T=this.projection.forward(this.center),k=this.playingField,Q=k.x+k.width/2,st=k.y+k.height/2;return{x:Q-z*(T[0]-b.x),y:st+z*(T[1]-b.y)}}pixelsToLonLat(b){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(b))}pixelsToProjectedUnits(b){let{x:z,y:T}=b,k=this.getScale(),Q=this.projection.forward(this.center),st=this.playingField,nt=st.x+st.width/2,dt=st.y+st.height/2;return{x:Q[0]+(z-nt)/k,y:Q[1]-(T-dt)/k}}setUpEvents(){let b,z,T,{chart:k}=this,Q=st=>{let{lastTouches:nt,pinchDown:dt}=k.pointer,mt=this.projection,Et=st.touches,{mouseDownX:Mt,mouseDownY:I}=k,Y=0;if((dt==null?void 0:dt.length)===1?(Mt=dt[0].chartX,I=dt[0].chartY):(dt==null?void 0:dt.length)===2&&(Mt=(dt[0].chartX+dt[1].chartX)/2,I=(dt[0].chartY+dt[1].chartY)/2),(Et==null?void 0:Et.length)===2&&nt&&(Y=Math.log(Math.sqrt(Math.pow(nt[0].chartX-nt[1].chartX,2)+Math.pow(nt[0].chartY-nt[1].chartY,2))/Math.sqrt(Math.pow(Et[0].chartX-Et[1].chartX,2)+Math.pow(Et[0].chartY-Et[1].chartY,2)))/Math.log(.5)),_(Mt)&&_(I)){let rt=`${Mt},${I}`,{chartX:ot,chartY:D}=st.originalEvent;(Et==null?void 0:Et.length)===2&&(ot=(Et[0].chartX+Et[1].chartX)/2,D=(Et[0].chartY+Et[1].chartY)/2),rt!==z&&(z=rt,b=this.projection.forward(this.center),T=(this.projection.options.rotation||[0,0]).slice());let P=mt.def&&mt.def.bounds,W=P&&g(P,this.playingField)||-1/0;if(mt.options.name==="Orthographic"&&2>((Et==null?void 0:Et.length)||0)&&(this.minZoom||1/0)<1.3*W){let lt=440/(this.getScale()*Math.min(k.plotWidth,k.plotHeight));if(T){let it=(Mt-ot)*lt-T[0],vt=d(-T[1]-(I-D)*lt,-80,80),pt=this.zoom;this.update({projection:{rotation:[-it,-vt]}},!1),this.fitToBounds(void 0,void 0,!1),this.zoom=pt,k.redraw(!1)}}else if(_(ot)&&_(D)){let lt=this.getScale(),it=this.projection.hasCoordinates?1:-1,vt=this.projection.inverse([b[0]+(Mt-ot)/lt,b[1]-(I-D)/lt*it]);isNaN(vt[0]+vt[1])||this.zoomBy(Y,vt,void 0,!1)}st.preventDefault()}};U(k,"pan",Q),U(k,"touchpan",Q),U(k,"selection",st=>{if(st.resetSelection)this.zoomBy();else{let nt=st.x-k.plotLeft,dt=st.y-k.plotTop,{y:mt,x:Et}=this.pixelsToProjectedUnits({x:nt,y:dt}),{y:Mt,x:I}=this.pixelsToProjectedUnits({x:nt+st.width,y:dt+st.height});this.fitToBounds({x1:Et,y1:mt,x2:I,y2:Mt},void 0,!0,!st.originalEvent.touches&&void 0),/^touch/.test(st.originalEvent.type)||k.showResetZoom(),st.preventDefault()}})}render(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())}update(b,z=!0,T){let k=b.projection,Q=k&&q.toString(k)!==q.toString(this.options.projection),st=!1;u(!0,this.userOptions,b),u(!0,this.options,b),"insets"in b&&(this.insets.forEach(nt=>nt.destroy()),this.insets.length=0,st=!0),(Q||"fitToGeometry"in b)&&delete this.fitToGeometryCache,(Q||st)&&(this.chart.series.forEach(nt=>{let dt=nt.transformGroups;if(nt.clearBounds&&nt.clearBounds(),nt.isDirty=!0,nt.isDirtyData=!0,st&&dt)for(;dt.length>1;){let mt=dt.pop();mt&&mt.destroy()}}),Q&&(this.projection=new q(this.options.projection)),st&&this.createInsets(),!b.center&&Object.hasOwnProperty.call(b,"zoom")&&!_(b.zoom)&&this.fitToBounds(void 0,void 0,!1)),b.center||_(b.zoom)?this.setView(this.options.center,b.zoom,!1):"fitToGeometry"in b&&this.fitToBounds(void 0,void 0,!1),z&&this.chart.redraw(T)}zoomBy(b,z,T,k){let Q=this.chart,st=this.projection.forward(this.center);if(typeof b=="number"){let nt,dt,mt,Et=this.zoom+b;if(T){let[Mt,I]=T,Y=this.getScale(),rt=Mt-Q.plotLeft-Q.plotWidth/2,ot=I-Q.plotTop-Q.plotHeight/2;dt=st[0]+rt/Y,mt=st[1]+ot/Y}if(typeof dt=="number"&&typeof mt=="number"){let Mt=1-Math.pow(2,this.zoom)/Math.pow(2,Et),I=st[0]-dt,Y=st[1]-mt;st[0]-=I*Mt,st[1]+=Y*Mt,nt=this.projection.inverse(st)}this.setView(z||nt,Et,void 0,k)}else this.fitToBounds(void 0,void 0,void 0,k)}}class l extends p{constructor(b,z){if(super(b.chart,z),this.id=z.id,this.mapView=b,this.options=u({center:[0,0]},b.options.insetOptions,z),this.allBounds=[],this.options.geoBounds){let T=b.projection.path(this.options.geoBounds);this.geoBoundsProjectedBox=F(T),this.geoBoundsProjectedPolygon=T.map(k=>[k[1]||0,k[2]||0])}}getField(b=!0){let z=this.hitZone;if(z){let T=b?this.padding:[0,0,0,0],k=z.coordinates[0],Q=k.map(Mt=>Mt[0]),st=k.map(Mt=>Mt[1]),nt=Math.min.apply(0,Q)+T[3],dt=Math.max.apply(0,Q)-T[1],mt=Math.min.apply(0,st)+T[0],Et=Math.max.apply(0,st)-T[2];if(_(nt)&&_(mt))return{x:nt,y:mt,width:dt-nt,height:Et-mt}}return super.getField.call(this,b)}getHitZone(){let{chart:b,mapView:z,options:T}=this,{coordinates:k}=T.field||{};if(k){let Q=k[0];if(T.units==="percent"){let st=T.relativeTo==="mapBoundingBox"&&z.getMapBBox()||u(b.plotBox,{x:0,y:0});Q=Q.map(nt=>[S(`${nt[0]}%`,st.width,st.x),S(`${nt[1]}%`,st.height,st.y)])}return{type:"Polygon",coordinates:[Q]}}}getProjectedBounds(){return p.compositeBounds(this.allBounds)}isInside(b){let{geoBoundsProjectedBox:z,geoBoundsProjectedPolygon:T}=this;return!!(z&&b.x>=z.x1&&b.x<=z.x2&&b.y>=z.y1&&b.y<=z.y2&&T&&H(b,T))}render(){let{chart:b,mapView:z,options:T}=this,k=T.borderPath||T.field;if(k&&z.group){let Q=!0;this.border||(this.border=b.renderer.path().addClass("highcharts-mapview-inset-border").add(z.group),Q=!1),b.styledMode||this.border.attr({stroke:T.borderColor,"stroke-width":T.borderWidth});let st=this.border.strokeWidth(),nt=T.relativeTo==="mapBoundingBox"&&z.getMapBBox()||z.playingField,dt=(k.coordinates||[]).reduce((mt,Et)=>Et.reduce((Mt,I,Y)=>{let[rt,ot]=I;return T.units==="percent"&&(rt=b.plotLeft+S(`${rt}%`,nt.width,nt.x),ot=b.plotTop+S(`${ot}%`,nt.height,nt.y)),rt=L(rt,st),ot=L(ot,st),Mt.push(Y===0?["M",rt,ot]:["L",rt,ot]),Mt},mt),[]);this.border[Q?"animate":"attr"]({d:dt})}}destroy(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(b=>b())}setUpEvents(){}}return p}),y(m,"Series/Map/MapSeries.js",[m["Core/Animation/AnimationUtilities.js"],m["Series/ColorMapComposition.js"],m["Series/CenteredUtilities.js"],m["Core/Globals.js"],m["Core/Chart/MapChart.js"],m["Series/Map/MapPoint.js"],m["Series/Map/MapSeriesDefaults.js"],m["Maps/MapView.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B,et,K,J,q,Z,tt,H,X){let{animObject:F,stop:U}=R,{noop:d}=K,{splitPath:L}=J,{column:M,scatter:s}=H.seriesTypes,{extend:_,find:w,fireEvent:o,getNestedProperty:u,isArray:C,defined:E,isNumber:S,isObject:v,merge:g,objectEach:x,pick:p,splat:l}=X;class f extends s{constructor(){super(...arguments),this.processedData=[]}animate(z){let{chart:T,group:k}=this,Q=F(this.options.animation);z?k.attr({translateX:T.plotLeft+T.plotWidth/2,translateY:T.plotTop+T.plotHeight/2,scaleX:.001,scaleY:.001}):k.animate({translateX:T.plotLeft,translateY:T.plotTop,scaleX:1,scaleY:1},Q)}clearBounds(){this.points.forEach(z=>{delete z.bounds,delete z.insetIndex,delete z.projectedPath}),delete this.bounds}doFullTranslate(){return!!(this.isDirtyData||this.chart.isResizing||!this.hasRendered)}drawMapDataLabels(){super.drawDataLabels(),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)}drawPoints(){let z=this,{chart:T,group:k,transformGroups:Q=[]}=this,{mapView:st,renderer:nt}=T;if(st){this.transformGroups=Q,Q[0]||(Q[0]=nt.g().add(k));for(let dt=0,mt=st.insets.length;dt{let{graphic:mt}=dt;dt.group=Q[typeof dt.insetIndex=="number"?dt.insetIndex+1:0],mt&&mt.parentGroup!==dt.group&&mt.add(dt.group)}),M.prototype.drawPoints.apply(this),this.points.forEach(dt=>{let mt=dt.graphic;if(mt){let Et=mt.animate,Mt="";dt.name&&(Mt+="highcharts-name-"+dt.name.replace(/ /g,"-").toLowerCase()),dt.properties&&dt.properties["hc-key"]&&(Mt+=" highcharts-key-"+dt.properties["hc-key"].toString().toLowerCase()),Mt&&mt.addClass(Mt),T.styledMode&&mt.css(this.pointAttribs(dt,dt.selected&&"select"||void 0)),mt.attr({visibility:!dt.visible&&(dt.visible||dt.isNull)?"hidden":"inherit"}),mt.animate=function(I,Y,rt){let ot=S(I["stroke-width"])&&!S(mt["stroke-width"]),D=S(mt["stroke-width"])&&!S(I["stroke-width"]);if(ot||D){let P=p(z.getStrokeWidth(z.options),1)/(T.mapView&&T.mapView.getScale()||1);ot&&(mt["stroke-width"]=P),D&&(I["stroke-width"]=P)}return Et.call(mt,I,Y,D?function(){mt.element.removeAttribute("stroke-width"),delete mt["stroke-width"],rt&&rt.apply(this,arguments)}:rt)}}})),Q.forEach((dt,mt)=>{let Et=(mt===0?st:st.insets[mt-1]).getSVGTransform(),Mt=p(this.getStrokeWidth(this.options),1),I=Et.scaleX,Y=Et.scaleY>0?1:-1,rt=ot=>{(z.points||[]).forEach(D=>{let P,W=D.graphic;W&&W["stroke-width"]&&(P=this.getStrokeWidth(D.options))&&W.attr({"stroke-width":P/ot})})};if(nt.globalAnimation&&T.hasRendered&&st.allowTransformAnimation){let ot=Number(dt.attr("translateX")),D=Number(dt.attr("translateY")),P=Number(dt.attr("scaleX")),W=(vt,pt)=>{let xt=P+(I-P)*pt.pos;dt.attr({translateX:ot+(Et.translateX-ot)*pt.pos,translateY:D+(Et.translateY-D)*pt.pos,scaleX:xt,scaleY:xt*Y,"stroke-width":Mt/xt}),rt(xt)},lt=g(F(nt.globalAnimation)),it=lt.step;lt.step=function(){it&&it.apply(this,arguments),W.apply(this,arguments)},dt.attr({animator:0}).animate({animator:1},lt,function(){typeof nt.globalAnimation!="boolean"&&nt.globalAnimation.complete&&nt.globalAnimation.complete({applyDrilldown:!0}),o(this,"mapZoomComplete")}.bind(this))}else U(dt),dt.attr(g(Et,{"stroke-width":Mt/I})),rt(I)}),this.isDrilling||this.drawMapDataLabels()}}getProjectedBounds(){if(!this.bounds&&this.chart.mapView){let{insets:z,projection:T}=this.chart.mapView,k=[];(this.points||[]).forEach(Q=>{if(Q.path||Q.geometry){if(typeof Q.path=="string"?Q.path=L(Q.path):C(Q.path)&&Q.path[0]==="M"&&(Q.path=this.chart.renderer.pathToSegments(Q.path)),!Q.bounds){let st=Q.getProjectedBounds(T);if(st){Q.labelrank=p(Q.labelrank,(st.x2-st.x1)*(st.y2-st.y1));let{midX:nt,midY:dt}=st;if(z&&S(nt)&&S(dt)){let mt=w(z,Et=>Et.isInside({x:nt,y:dt}));mt&&(delete Q.projectedPath,(st=Q.getProjectedBounds(mt.projection))&&mt.allBounds.push(st),Q.insetIndex=z.indexOf(mt))}Q.bounds=st}}Q.bounds&&Q.insetIndex===void 0&&k.push(Q.bounds)}}),this.bounds=tt.compositeBounds(k)}return this.bounds}getStrokeWidth(z){let T=this.pointAttrToOptions;return z[T&&T["stroke-width"]||"borderWidth"]}hasData(){return!!this.processedXData.length}pointAttribs(z,T){var mt;let{mapView:k,styledMode:Q}=z.series.chart,st=Q?this.colorAttribs(z):M.prototype.pointAttribs.call(this,z,T),nt=this.getStrokeWidth(z.options);if(T){let Et=g(this.options.states&&this.options.states[T],z.options.states&&z.options.states[T]||{}),Mt=this.getStrokeWidth(Et);E(Mt)&&(nt=Mt),st.stroke=(mt=Et.borderColor)!=null?mt:z.color}nt&&k&&(nt/=k.getScale());let dt=this.getStrokeWidth(this.options);return st.dashstyle&&k&&S(dt)&&(nt=dt/k.getScale()),z.visible||(st.fill=this.options.nullColor),E(nt)?st["stroke-width"]=nt:delete st["stroke-width"],st["stroke-linecap"]=st["stroke-linejoin"]=this.options.linecap,st}updateData(){return!this.processedData&&super.updateData.apply(this,arguments)}setData(z,T=!0,k,Q){delete this.bounds,super.setData(z,!1,void 0,Q),this.processData(),this.generatePoints(),T&&this.chart.redraw(k)}processData(){let z,T,k,Q=this.options,st=Q.data,nt=this.chart,dt=nt.options.chart,mt=this.joinBy,Et=Q.keys||this.pointArrayMap,Mt=[],I={},Y=this.chart.mapView,rt=Y&&(v(Q.mapData,!0)?Y.getGeoMap(Q.mapData):Y.geoMap),ot=nt.mapTransforms=dt.mapTransforms||rt&&rt["hc-transform"]||nt.mapTransforms;ot&&x(ot,P=>{P.rotation&&(P.cosAngle=Math.cos(P.rotation),P.sinAngle=Math.sin(P.rotation))}),C(Q.mapData)?k=Q.mapData:rt&&rt.type==="FeatureCollection"&&(this.mapTitle=rt.title,k=K.geojson(rt,this.type,this)),this.processedData=[];let D=this.processedData;if(st){let P;for(let W=0,lt=st.length;WEt.length&&typeof P[0]=="string"&&(D[W]["hc-key"]=P[0],++it);for(let vt=0;vt0?q.prototype.setNestedProperty(D[W],P[it],Et[vt]):D[W][Et[vt]]=P[it])}else D[W]=st[W];mt&&mt[0]==="_i"&&(D[W]._i=W)}}if(k){this.mapData=k,this.mapMap={};for(let P=0;P{let lt=u(P,W);I[lt]&&Mt.push(I[lt])})}if(Q.allAreas){if(mt[1]){let W=mt[1];D.forEach(lt=>{Mt.push(u(W,lt))})}let P="|"+Mt.map(function(W){return W&&W[mt[0]]}).join("|")+"|";k.forEach(W=>{mt[0]&&P.indexOf("|"+W[mt[0]]+"|")!==-1||D.push(g(W,{value:null}))})}}this.processedXData=Array(D.length)}setOptions(z){let T=super.setOptions(z),k=T.joinBy;return T.joinBy===null&&(k="_i"),(k=this.joinBy=l(k))[1]||(k[1]=k[0]),T}translate(){let z=this.doFullTranslate(),T=this.chart.mapView,k=T&&T.projection;if(this.chart.hasRendered&&(this.isDirtyData||!this.hasRendered)&&(this.processData(),this.generatePoints(),delete this.bounds,!T||T.userOptions.center||S(T.userOptions.zoom)||T.zoom!==T.minZoom?this.getProjectedBounds():T.fitToBounds(void 0,void 0,!1)),T){let Q=T.getSVGTransform();this.points.forEach(st=>{let nt=S(st.insetIndex)&&T.insets[st.insetIndex].getSVGTransform()||Q;nt&&st.bounds&&S(st.bounds.midX)&&S(st.bounds.midY)&&(st.plotX=st.bounds.midX*nt.scaleX+nt.translateX,st.plotY=st.bounds.midY*nt.scaleY+nt.translateY),z&&(st.shapeType="path",st.shapeArgs={d:q.getProjectedPath(st,k)}),st.hiddenInDataClass||(st.projectedPath&&!st.projectedPath.length?st.setVisible(!1):st.visible||st.setVisible(!0))})}o(this,"afterTranslate")}update(z){var T;z.mapData&&((T=this.chart.mapView)==null||T.recommendMapView(this.chart,[this.chart.options.chart.map,...(this.chart.options.series||[]).map((k,Q)=>Q===this._i?z.mapData:k.mapData)],!0)),super.update.apply(this,arguments)}}return f.defaultOptions=g(s.defaultOptions,Z),_(f.prototype,{type:"map",axisTypes:B.seriesMembers.axisTypes,colorAttribs:B.seriesMembers.colorAttribs,colorKey:B.seriesMembers.colorKey,directTouch:!0,drawDataLabels:d,drawGraph:d,forceDL:!0,getCenter:et.getCenter,getExtremesFromAll:!0,getSymbol:d,isCartesian:!1,parallelArrays:B.seriesMembers.parallelArrays,pointArrayMap:B.seriesMembers.pointArrayMap,pointClass:q,preserveAspectRatio:!0,searchPoint:d,trackerGroups:B.seriesMembers.trackerGroups,useMapGeometry:!0}),B.compose(f),H.registerSeriesType("map",f),f}),y(m,"Series/MapLine/MapLineSeriesDefaults.js",[],function(){return{lineWidth:1,fillColor:"none",legendSymbol:"lineMarker"}}),y(m,"Series/MapLine/MapLineSeries.js",[m["Series/MapLine/MapLineSeriesDefaults.js"],m["Series/Map/MapSeries.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B,et,K){let{extend:J,merge:q}=K;class Z extends B{pointAttribs(H,X){let F=super.pointAttribs(H,X);return F.fill=this.options.fillColor,F}}return Z.defaultOptions=q(B.defaultOptions,R),J(Z.prototype,{type:"mapline",colorProp:"stroke",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),et.registerSeriesType("mapline",Z),Z}),y(m,"Series/MapPoint/MapPointPoint.js",[m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B){let{scatter:et}=R.seriesTypes,{isNumber:K}=B;class J extends et.prototype.pointClass{isValid(){return!!(this.options.geometry||K(this.x)&&K(this.y)||K(this.options.lon)&&K(this.options.lat))}}return J}),y(m,"Series/MapPoint/MapPointSeriesDefaults.js",[],function(){return{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}},legendSymbol:"lineMarker"}}),y(m,"Series/MapPoint/MapPointSeries.js",[m["Core/Globals.js"],m["Series/MapPoint/MapPointPoint.js"],m["Series/MapPoint/MapPointSeriesDefaults.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Renderer/SVG/SVGRenderer.js"],m["Core/Utilities.js"]],function(R,B,et,K,J,q){let{noop:Z}=R,{map:tt,scatter:H}=K.seriesTypes,{extend:X,fireEvent:F,isNumber:U,merge:d}=q;class L extends H{constructor(){super(...arguments),this.clearBounds=tt.prototype.clearBounds}drawDataLabels(){super.drawDataLabels(),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)}projectPoint(s){let _=this.chart.mapView;if(_){let{geometry:w,lon:o,lat:u}=s,C=w&&w.type==="Point"&&w.coordinates;if(U(o)&&U(u)&&(C=[o,u]),C)return _.lonLatToProjectedUnits({lon:C[0],lat:C[1]})}}translate(){let s=this.chart.mapView;if(this.processedXData||this.processData(),this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),s){let _=s.getSVGTransform(),{hasCoordinates:w}=s.projection;this.points.forEach(o=>{let u,{x:C,y:E}=o,S=U(o.insetIndex)&&s.insets[o.insetIndex].getSVGTransform()||_,v=this.projectPoint(o.options)||o.properties&&this.projectPoint(o.properties);if(v?(C=v.x,E=v.y):o.bounds&&(C=o.bounds.midX,E=o.bounds.midY,S&&U(C)&&U(E)&&(o.plotX=C*S.scaleX+S.translateX,o.plotY=E*S.scaleY+S.translateY,u=!0)),U(C)&&U(E)){if(!u){let g=s.projectedUnitsToPixels({x:C,y:E});o.plotX=g.x,o.plotY=w?g.y:this.chart.plotHeight-g.y}}else o.y=o.plotX=o.plotY=void 0;o.isInside=this.isPointInside(o),o.zone=this.zones.length?o.getZone():void 0})}F(this,"afterTranslate")}}return L.defaultOptions=d(H.defaultOptions,et),J.prototype.symbols.mapmarker=(M,s,_,w,o)=>{let u,C,E=o&&o.context==="legend";E?(u=M+_/2,C=s+w):o&&typeof o.anchorX=="number"&&typeof o.anchorY=="number"?(u=o.anchorX,C=o.anchorY):(u=M+_/2,C=s+w/2,s-=w);let S=E?w/3:w/2;return[["M",u,C],["C",u,C,u-S,s+1.5*S,u-S,s+S],["A",S,S,1,1,1,u+S,s+S],["C",u+S,s+1.5*S,u,C,u,C],["Z"]]},X(L.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:B,searchPoint:Z,useMapGeometry:!0}),K.registerSeriesType("mappoint",L),L}),y(m,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"0.9em",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),y(m,"Series/Bubble/BubbleLegendItem.js",[m["Core/Color/Color.js"],m["Core/Templating.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B,et,K){let{parse:J}=R,{noop:q}=et,{arrayMax:Z,arrayMin:tt,isNumber:H,merge:X,pick:F,stableSort:U}=K;return class{constructor(d,L){this.setState=q,this.init(d,L)}init(d,L){this.options=d,this.visible=!0,this.chart=L.chart,this.legend=L}addToLegend(d){d.splice(this.options.legendIndex,0,this)}drawLegendSymbol(d){let L,M=F(d.options.itemDistance,20),s=this.legendItem||{},_=this.options,w=_.ranges,o=_.connectorDistance;if(!w||!w.length||!H(w[0].value)){d.options.bubbleLegend.autoRanges=!0;return}U(w,function(S,v){return v.value-S.value}),this.ranges=w,this.setOptions(),this.render();let u=this.getMaxLabelSize(),C=this.ranges[0].radius,E=2*C;L=(L=o-C+u.width)>0?L:0,this.maxLabel=u,this.movementX=_.labels.align==="left"?L:0,s.labelWidth=E+L+M,s.labelHeight=E+u.height/2}setOptions(){let d=this.ranges,L=this.options,M=this.chart.series[L.seriesIndex],s=this.legend.baseline,_={zIndex:L.zIndex,"stroke-width":L.borderWidth},w={zIndex:L.zIndex,"stroke-width":L.connectorWidth},o={align:this.legend.options.rtl||L.labels.align==="left"?"right":"left",zIndex:L.zIndex},u=M.options.marker.fillOpacity,C=this.chart.styledMode;d.forEach(function(E,S){C||(_.stroke=F(E.borderColor,L.borderColor,M.color),_.fill=F(E.color,L.color,u!==1?J(M.color).setOpacity(u).get("rgba"):M.color),w.stroke=F(E.connectorColor,L.connectorColor,M.color)),d[S].radius=this.getRangeRadius(E.value),d[S]=X(d[S],{center:d[0].radius-d[S].radius+s}),C||X(!0,d[S],{bubbleAttribs:X(_),connectorAttribs:X(w),labelAttribs:o})},this)}getRangeRadius(d){let L=this.options,M=this.options.seriesIndex,s=this.chart.series[M],_=L.ranges[0].value,w=L.ranges[L.ranges.length-1].value,o=L.minSize,u=L.maxSize;return s.getRadius.call(this,w,_,o,u,d)}render(){let d=this.legendItem||{},L=this.chart.renderer,M=this.options.zThreshold;for(let s of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),d.symbol=L.g("bubble-legend"),d.label=L.g("bubble-legend-item").css(this.legend.itemStyle||{}),d.symbol.translateX=0,d.symbol.translateY=0,d.symbol.add(d.label),d.label.add(d.group),this.ranges))s.value>=M&&this.renderRange(s);this.hideOverlappingLabels()}renderRange(d){let L=this.ranges[0],M=this.legend,s=this.options,_=s.labels,w=this.chart,o=w.series[s.seriesIndex],u=w.renderer,C=this.symbols,E=C.labels,S=d.center,v=Math.abs(d.radius),g=s.connectorDistance||0,x=_.align,p=M.options.rtl,l=s.borderWidth,f=s.connectorWidth,b=L.radius||0,z=S-v-l/2+f/2,T=(z%1?1:.5)-(f%2?0:.5),k=u.styledMode,Q=p||x==="left"?-g:g;x==="center"&&(Q=0,s.connectorDistance=0,d.labelAttribs.align="center"),C.bubbleItems.push(u.circle(b,S+T,v).attr(k?{}:d.bubbleAttribs).addClass((k?"highcharts-color-"+o.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(s.className||"")).add(this.legendItem.symbol)),C.connectors.push(u.path(u.crispLine([["M",b,z],["L",b+Q,z]],s.connectorWidth)).attr(k?{}:d.connectorAttribs).addClass((k?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(s.connectorClassName||"")).add(this.legendItem.symbol));let st=u.text(this.formatLabel(d)).attr(k?{}:d.labelAttribs).css(k?{}:_.style).addClass("highcharts-bubble-legend-labels "+(s.labels.className||"")).add(this.legendItem.symbol),nt={x:b+Q+s.labels.x,y:z+s.labels.y+.4*st.getBBox().height};st.attr(nt),E.push(st),st.placed=!0,st.alignAttr=nt}getMaxLabelSize(){let d,L;return this.symbols.labels.forEach(function(M){L=M.getBBox(!0),d=d?L.width>d.width?L:d:L}),d||{}}formatLabel(d){let L=this.options,M=L.labels.formatter,s=L.labels.format,{numberFormatter:_}=this.chart;return s?B.format(s,d):M?M.call(d):_(d.value,1)}hideOverlappingLabels(){let d=this.chart,L=this.options.labels.allowOverlap,M=this.symbols;!L&&M&&(d.hideOverlappingLabels(M.labels),M.labels.forEach(function(s,_){s.newOpacity?s.newOpacity!==s.oldOpacity&&M.connectors[_].show():M.connectors[_].hide()}))}getRanges(){let d=this.legend.bubbleLegend,L=d.chart.series,M=d.options.ranges,s,_,w=Number.MAX_VALUE,o=-Number.MAX_VALUE;return L.forEach(function(u){u.isBubble&&!u.ignoreSeries&&(_=u.zData.filter(H)).length&&(w=F(u.options.zMin,Math.min(w,Math.max(tt(_),u.options.displayNegative===!1?u.options.zThreshold:-Number.MAX_VALUE))),o=F(u.options.zMax,Math.max(o,Z(_))))}),s=w===o?[{value:o}]:[{value:w},{value:(w+o)/2},{value:o,autoRanges:!0}],M.length&&M[0].radius&&s.reverse(),s.forEach(function(u,C){M&&M[C]&&(s[C]=X(M[C],u))}),s}predictBubbleSizes(){let d=this.chart,L=d.legend.options,M=L.floating,s=L.layout==="horizontal",_=s?d.legend.lastLineHeight:0,w=d.plotSizeX,o=d.plotSizeY,u=d.series[this.options.seriesIndex],C=u.getPxExtremes(),E=Math.ceil(C.minPxSize),S=Math.ceil(C.maxPxSize),v=Math.min(o,w),g,x=u.options.maxSize;return M||!/%$/.test(x)?g=S:(g=(v+_)*(x=parseFloat(x))/100/(x/100+1),(s&&o-g>=w||!s&&w-g>=o)&&(g=S)),[E,Math.ceil(g)]}updateRanges(d,L){let M=this.legend.options.bubbleLegend;M.minSize=d,M.maxSize=L,M.ranges=this.getRanges()}correctSizes(){let d=this.legend,L=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(L.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,L.maxPxSize),d.render())}}}),y(m,"Series/Bubble/BubbleLegendComposition.js",[m["Series/Bubble/BubbleLegendDefaults.js"],m["Series/Bubble/BubbleLegendItem.js"],m["Core/Defaults.js"],m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B,et,K,J){let{setOptions:q}=et,{composed:Z}=K,{addEvent:tt,objectEach:H,pushUnique:X,wrap:F}=J;function U(w,o,u){let C,E,S,v=this.legend,g=d(this)>=0;v&&v.options.enabled&&v.bubbleLegend&&v.options.bubbleLegend.autoRanges&&g?(C=v.bubbleLegend.options,E=v.bubbleLegend.predictBubbleSizes(),v.bubbleLegend.updateRanges(E[0],E[1]),C.placed||(v.group.placed=!1,v.allItems.forEach(x=>{(S=x.legendItem||{}).group&&(S.group.translateY=void 0)})),v.render(),C.placed||(this.getMargins(),this.axes.forEach(function(x){x.visible&&x.render(),C.placed||(x.setScale(),x.updateNames(),H(x.ticks,function(p){p.isNew=!0,p.isNewLabel=!0}))}),this.getMargins()),C.placed=!0,w.call(this,o,u),v.bubbleLegend.correctSizes(),_(v,L(v))):(w.call(this,o,u),v&&v.options.enabled&&v.bubbleLegend&&(v.render(),_(v,L(v))))}function d(w){let o=w.series,u=0;for(;uE.height&&(E.height=o[x].itemHeight);E.step=g}return u}function M(w){let o=this.bubbleLegend,u=this.options,C=u.bubbleLegend,E=d(this.chart);o&&o.ranges&&o.ranges.length&&(C.ranges.length&&(C.autoRanges=!!C.ranges[0].autoRanges),this.destroyItem(o)),E>=0&&u.enabled&&C.enabled&&(C.seriesIndex=E,this.bubbleLegend=new B(C,this),this.bubbleLegend.addToLegend(w.allItems))}function s(w){let o;if(w.defaultPrevented)return!1;let u=w.legendItem,C=this.chart,E=u.visible;this&&this.bubbleLegend&&(u.visible=!E,u.ignoreSeries=E,o=d(C)>=0,this.bubbleLegend.visible!==o&&(this.update({bubbleLegend:{enabled:o}}),this.bubbleLegend.visible=o),u.visible=E)}function _(w,o){let u=w.allItems,C=w.options.rtl,E,S,v,g,x=0;u.forEach((p,l)=>{(g=p.legendItem||{}).group&&(E=g.group.translateX||0,S=g.y||0,((v=p.movementX)||C&&p.ranges)&&(v=C?E-p.options.maxSize/2:E+v,g.group.attr({translateX:v})),l>o[x].step&&x++,g.group.attr({translateY:Math.round(S+o[x].height/2)}),g.y=S+o[x].height/2)})}return{compose:function(w,o){X(Z,"Series.BubbleLegend")&&(q({legend:{bubbleLegend:R}}),F(w.prototype,"drawChartBox",U),tt(o,"afterGetAllItems",M),tt(o,"itemClick",s))}}}),y(m,"Series/Bubble/BubblePoint.js",[m["Core/Series/Point.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B,et){let{seriesTypes:{scatter:{prototype:{pointClass:K}}}}=B,{extend:J}=et;class q extends K{haloPath(tt){let H=(tt&&this.marker&&this.marker.radius||0)+tt;if(this.series.chart.inverted){let X=this.pos()||[0,0],{xAxis:F,yAxis:U,chart:d}=this.series;return d.renderer.symbols.circle(F.len-X[1]-H,U.len-X[0]-H,2*H,2*H)}return R.prototype.haloPath.call(this,H)}}return J(q.prototype,{ttBelow:!1}),q}),y(m,"Series/Bubble/BubbleSeries.js",[m["Series/Bubble/BubbleLegendComposition.js"],m["Series/Bubble/BubblePoint.js"],m["Core/Color/Color.js"],m["Core/Globals.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B,et,K,J,q){let{parse:Z}=et,{composed:tt,noop:H}=K,{series:X,seriesTypes:{column:{prototype:F},scatter:U}}=J,{addEvent:d,arrayMax:L,arrayMin:M,clamp:s,extend:_,isNumber:w,merge:o,pick:u,pushUnique:C}=q;function E(){let v=this.len,{coll:g,isXAxis:x,min:p}=this,l=x?"xData":"yData",f=(this.max||0)-(p||0),b=0,z=v,T=v/f,k;(g==="xAxis"||g==="yAxis")&&(this.series.forEach(Q=>{if(Q.bubblePadding&&Q.reserveSpace()){this.allowZoomOutside=!0,k=!0;let st=Q[l];if(x&&((Q.onPoint||Q).getRadii(0,0,Q),Q.onPoint&&(Q.radii=Q.onPoint.radii)),f>0){let nt=st.length;for(;nt--;)if(w(st[nt])&&this.dataMin<=st[nt]&&st[nt]<=this.max){let dt=Q.radii&&Q.radii[nt]||0;b=Math.min((st[nt]-p)*T-dt,b),z=Math.max((st[nt]-p)*T+dt,z)}}}}),k&&f>0&&!this.logarithmic&&(z-=v,T*=(v+Math.max(0,b)-Math.min(z,v))/v,[["min","userMin",b],["max","userMax",z]].forEach(Q=>{u(this.options[Q[0]],this[Q[1]])===void 0&&(this[Q[0]]+=Q[2]/T)})))}class S extends U{static compose(g,x,p){R.compose(x,p),C(tt,"Series.Bubble")&&d(g,"foundExtremes",E)}animate(g){!g&&this.points.length{if(dt.bubblePadding&&dt.reserveSpace()){let mt=(dt.onPoint||dt).getZExtremes();mt&&(st=Math.min(u(st,mt.zMin),mt.zMin),nt=Math.max(u(nt,mt.zMax),mt.zMax),Q=!0)}}),Q?(z={zMin:st,zMax:nt},this.chart.bubbleZExtremes=z):z={zMin:0,zMax:0}}for(f=0,l=g.length;f0&&(st=(f-g)/Q)}return T&&st>=0&&(st=Math.sqrt(st)),Math.ceil(p+st*(l-p))/2}hasData(){return!!this.processedXData.length}markerAttribs(g,x){let p=super.markerAttribs(g,x),{height:l=0,width:f=0}=p;return this.chart.inverted?_(p,{x:(g.plotX||0)-f/2,y:(g.plotY||0)-l/2}):p}pointAttribs(g,x){let p=this.options.marker.fillOpacity,l=X.prototype.pointAttribs.call(this,g,x);return p!==1&&(l.fill=Z(l.fill).setOpacity(p).get("rgba")),l}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{data:g,options:x,radii:p}=this,{minPxSize:l}=this.getPxExtremes(),f=g.length;for(;f--;){let b=g[f],z=p?p[f]:0;this.zoneAxis==="z"&&(b.negative=(b.z||0)<(x.zThreshold||0)),w(z)&&z>=l/2?(b.marker=_(b.marker,{radius:z,width:2*z,height:2*z}),b.dlBox={x:b.plotX-z,y:b.plotY-z,width:2*z,height:2*z}):(b.shapeArgs=b.plotY=b.dlBox=void 0,b.isInside=!1)}}getPxExtremes(){let g=Math.min(this.chart.plotWidth,this.chart.plotHeight),x=f=>{let b;return typeof f=="string"&&(b=/%$/.test(f),f=parseInt(f,10)),b?g*f/100:f},p=x(u(this.options.minSize,8)),l=Math.max(x(u(this.options.maxSize,"20%")),p);return{minPxSize:p,maxPxSize:l}}getZExtremes(){let g=this.options,x=(this.zData||[]).filter(w);if(x.length){let p=u(g.zMin,s(M(x),g.displayNegative===!1?g.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),l=u(g.zMax,L(x));if(w(p)&&w(l))return{zMin:p,zMax:l}}}}return S.defaultOptions=o(U.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:v}=this.series.chart,{z:g}=this.point;return w(g)?v(g,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),_(S.prototype,{alignDataLabel:F.alignDataLabel,applyZones:H,bubblePadding:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:B,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),d(S,"updatedData",v=>{delete v.target.chart.bubbleZExtremes}),d(S,"remove",v=>{delete v.target.chart.bubbleZExtremes}),J.registerSeriesType("bubble",S),S}),y(m,"Series/MapBubble/MapBubblePoint.js",[m["Series/Bubble/BubblePoint.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B,et){let{seriesTypes:{map:{prototype:{pointClass:{prototype:K}}}}}=B,{extend:J}=et;class q extends R{isValid(){return typeof this.z=="number"}}return J(q.prototype,{applyOptions:K.applyOptions,getProjectedBounds:K.getProjectedBounds}),q}),y(m,"Series/MapBubble/MapBubbleSeries.js",[m["Series/Bubble/BubbleSeries.js"],m["Series/MapBubble/MapBubblePoint.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B,et,K){let{seriesTypes:{map:{prototype:J},mappoint:{prototype:q}}}=et,{extend:Z,merge:tt}=K;class H extends R{constructor(){super(...arguments),this.clearBounds=J.clearBounds}searchPoint(F,U){return this.searchKDTree({plotX:F.chartX-this.chart.plotLeft,plotY:F.chartY-this.chart.plotTop},U,F)}translate(){q.translate.call(this),this.getRadii(),this.translateBubble()}updateParallelArrays(F,U,d){super.updateParallelArrays.call(this,F,U,d);let L=this.processedXData,M=this.xData;L&&M&&(L.length=M.length)}}return H.defaultOptions=tt(R.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}}),Z(H.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:J.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:B,processData:J.processData,projectPoint:q.projectPoint,kdAxisArray:["plotX","plotY"],setData:J.setData,setOptions:J.setOptions,updateData:J.updateData,useMapGeometry:!0,xyFromShape:!0}),et.registerSeriesType("mapbubble",H),H}),y(m,"Series/Heatmap/HeatmapPoint.js",[m["Core/Series/SeriesRegistry.js"],m["Core/Utilities.js"]],function(R,B){let{scatter:{prototype:{pointClass:et}}}=R.seriesTypes,{clamp:K,defined:J,extend:q,pick:Z}=B;class tt extends et{applyOptions(X,F){return(this.isNull||this.value===null)&&delete this.color,super.applyOptions(X,F),this.formatPrefix=this.isNull||this.value===null?"null":"point",this}getCellAttributes(){let X=this.series,F=X.options,U=(F.colsize||1)/2,d=(F.rowsize||1)/2,L=X.xAxis,M=X.yAxis,s=this.options.marker||X.options.marker,_=X.pointPlacementToXValue(),w=Z(this.pointPadding,F.pointPadding,0),o={x1:K(Math.round(L.len-L.translate(this.x-U,!1,!0,!1,!0,-_)),-L.len,2*L.len),x2:K(Math.round(L.len-L.translate(this.x+U,!1,!0,!1,!0,-_)),-L.len,2*L.len),y1:K(Math.round(M.translate(this.y-d,!1,!0,!1,!0)),-M.len,2*M.len),y2:K(Math.round(M.translate(this.y+d,!1,!0,!1,!0)),-M.len,2*M.len)};for(let u of[["width","x"],["height","y"]]){let C=u[0],E=u[1],S=E+"1",v=E+"2",g=Math.abs(o[S]-o[v]),x=s&&s.lineWidth||0,p=Math.abs(o[S]+o[v])/2,l=s&&s[C];if(J(l)&&l"},states:{hover:{halo:!1,brightness:.2}},legendSymbol:"rectangle"}}),y(m,"Series/InterpolationUtilities.js",[m["Core/Globals.js"],m["Core/Utilities.js"]],function(R,B){let{doc:et}=R,{defined:K,pick:J}=B;return{colorFromPoint:function(q,Z){let tt=Z.series.colorAxis;if(tt){let H=tt.toColor(q||0,Z).split(")")[0].split("(")[1].split(",").map(X=>J(parseFloat(X),parseInt(X,10)));return H[3]=255*J(H[3],1),K(q)&&Z.visible||(H[3]=0),H}return[0,0,0,0]},getContext:function(q){let{canvas:Z,context:tt}=q;return Z&&tt?(tt.clearRect(0,0,Z.width,Z.height),tt):(q.canvas=et.createElement("canvas"),q.context=q.canvas.getContext("2d",{willReadFrequently:!0})||void 0,q.context)}}}),y(m,"Series/Heatmap/HeatmapSeries.js",[m["Core/Color/Color.js"],m["Series/ColorMapComposition.js"],m["Series/Heatmap/HeatmapPoint.js"],m["Series/Heatmap/HeatmapSeriesDefaults.js"],m["Core/Series/SeriesRegistry.js"],m["Core/Renderer/SVG/SVGRenderer.js"],m["Core/Utilities.js"],m["Series/InterpolationUtilities.js"]],function(R,B,et,K,J,q,Z,tt){let{series:H,seriesTypes:{column:X,scatter:F}}=J,{prototype:{symbols:U}}=q,{addEvent:d,extend:L,fireEvent:M,isNumber:s,merge:_,pick:w}=Z,{colorFromPoint:o,getContext:u}=tt;class C extends F{constructor(){super(...arguments),this.valueMax=NaN,this.valueMin=NaN,this.isDirtyCanvas=!0}drawPoints(){let S=this,v=S.options,g=v.interpolation,x=v.marker||{};if(g){let{image:p,chart:l,xAxis:f,yAxis:b}=S,{reversed:z=!1,len:T}=f,{reversed:k=!1,len:Q}=b,st={width:T,height:Q};if(!p||S.isDirtyData||S.isDirtyCanvas){let nt=u(S),{canvas:dt,options:{colsize:mt=1,rowsize:Et=1},points:Mt,points:{length:I}}=S,Y=l.colorAxis&&l.colorAxis[0];if(dt&&nt&&Y){let{min:rt,max:ot}=f.getExtremes(),{min:D,max:P}=b.getExtremes(),W=ot-rt,lt=P-D,it=Math.round(W/mt/8*8),vt=Math.round(lt/Et/8*8),[pt,xt]=[[it,it/W,z,"ceil"],[vt,vt/lt,!k,"floor"]].map(([Rt,jt,Zt,ne])=>Zt?Wt=>Math[ne](Rt-jt*Wt):Wt=>Math[ne](jt*Wt)),Ct=dt.width=it+1,Tt=Ct*(dt.height=vt+1),Nt=(I-1)/Tt,gt=new Uint8ClampedArray(4*Tt),wt=(Rt,jt)=>4*Math.ceil(Ct*xt(jt-D)+pt(Rt-rt));S.buildKDTree();for(let Rt=0;Rt{p.graphic&&(p.graphic[S.chart.styledMode?"css":"animate"](S.colorAttribs(p)),p.value===null&&p.graphic.addClass("highcharts-null-point"))}))}getExtremes(){let{dataMin:S,dataMax:v}=H.prototype.getExtremes.call(this,this.valueData);return s(S)&&(this.valueMin=S),s(v)&&(this.valueMax=v),H.prototype.getExtremes.call(this)}getValidPoints(S,v){return H.prototype.getValidPoints.call(this,S,v,!0)}hasData(){return!!this.xData}init(){super.init.apply(this,arguments);let S=this.options;S.pointRange=w(S.pointRange,S.colsize||1),this.yAxis.axisPointRange=S.rowsize||1,U.ellipse=U.circle,S.marker&&s(S.borderRadius)&&(S.marker.r=S.borderRadius)}markerAttribs(S,v){let g=S.shapeArgs||{};if(S.hasImage)return{x:S.plotX,y:S.plotY};if(v&&v!=="normal"){let x=S.options.marker||{},p=this.options.marker||{},l=p.states&&p.states[v]||{},f=x.states&&x.states[v]||{},b=(f.width||l.width||g.width||0)+(f.widthPlus||l.widthPlus||0),z=(f.height||l.height||g.height||0)+(f.heightPlus||l.heightPlus||0);return{x:(g.x||0)+((g.width||0)-b)/2,y:(g.y||0)+((g.height||0)-z)/2,width:b,height:z}}return g}pointAttribs(S,v){let g=H.prototype.pointAttribs.call(this,S,v),x=this.options||{},p=this.chart.options.plotOptions||{},l=p.series||{},f=p.heatmap||{},b=S&&S.options.borderColor||x.borderColor||f.borderColor||l.borderColor,z=S&&S.options.borderWidth||x.borderWidth||f.borderWidth||l.borderWidth||g["stroke-width"];if(g.stroke=S&&S.marker&&S.marker.lineColor||x.marker&&x.marker.lineColor||b||this.color,g["stroke-width"]=z,v&&v!=="normal"){let T=_(x.states&&x.states[v],x.marker&&x.marker.states&&x.marker.states[v],S&&S.options.states&&S.options.states[v]||{});g.fill=T.color||R.parse(g.fill).brighten(T.brightness||0).get(),g.stroke=T.lineColor||g.stroke}return g}translate(){let{borderRadius:S,marker:v}=this.options,g=v&&v.symbol||"rect",x=U[g]?g:"rect",p=["circle","square"].indexOf(x)!==-1;if(!this.processedXData){let{xData:l,yData:f}=this.getProcessedData();this.processedXData=l,this.processedYData=f}for(let l of(this.generatePoints(),this.points)){let f=l.getCellAttributes(),b=Math.min(f.x1,f.x2),z=Math.min(f.y1,f.y2),T=Math.max(Math.abs(f.x2-f.x1),0),k=Math.max(Math.abs(f.y2-f.y1),0);if(l.hasImage=(l.marker&&l.marker.symbol||g||"").indexOf("url")===0,p){let Q=Math.abs(T-k);b=Math.min(f.x1,f.x2)+(T{var j,_t;(function(m){We.exports?(m.default=m,We.exports=m):(j=[ht(6193)],_t=function(y){return m(y),m.Highcharts=y,m}.apply(ue,j),_t!==void 0&&(We.exports=_t))})(function(m){"use strict";var y=m?m._modules:{};function R(B,et,K,J){B.hasOwnProperty(et)||(B[et]=J.apply(null,K),typeof CustomEvent=="function"&&m.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:et,module:B[et]}})))}R(y,"Accessibility/Utils/HTMLUtilities.js",[y["Core/Globals.js"],y["Core/Utilities.js"]],function(B,et){let{doc:K,win:J}=B,{css:q}=et,Z=J.EventTarget&&new J.EventTarget||"none";function tt(X){if(typeof J.MouseEvent=="function")return new J.MouseEvent(X.type,X);if(K.createEvent){let F=K.createEvent("MouseEvent");if(F.initMouseEvent)return F.initMouseEvent(X.type,X.bubbles,X.cancelable,X.view||J,X.detail,X.screenX,X.screenY,X.clientX,X.clientY,X.ctrlKey,X.altKey,X.shiftKey,X.metaKey,X.button,X.relatedTarget),F}return H(X.type)}function H(X,F,U){let d=F||{x:0,y:0};if(typeof J.MouseEvent=="function")return new J.MouseEvent(X,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:U||Z,view:J,detail:X==="click"?1:0,screenX:d.x,screenY:d.y,clientX:d.x,clientY:d.y});if(K.createEvent){let L=K.createEvent("MouseEvent");if(L.initMouseEvent)return L.initMouseEvent(X,!0,!0,J,X==="click"?1:0,d.x,d.y,d.x,d.y,!1,!1,!1,!1,0,null),L}return{type:X}}return{addClass:function(X,F){X.classList?X.classList.add(F):0>X.className.indexOf(F)&&(X.className+=" "+F)},cloneMouseEvent:tt,cloneTouchEvent:function(X){let F=d=>{let L=[];for(let M=0;M/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},getElement:function(X){return K.getElementById(X)},getFakeMouseEvent:H,getHeadingTagNameForElement:function(X){let F=M=>"h"+Math.min(6,parseInt(M.slice(1),10)+1),U=M=>/^H[1-6]$/i.test(M),d=M=>{let s=M;for(;s=s.previousSibling;){let _=s.tagName||"";if(U(_))return _}return""},L=M=>{let s=d(M);if(s)return F(s);let _=M.parentElement;if(!_)return"p";let w=_.tagName;return U(w)?F(w):L(_)};return L(X)},removeChildNodes:function(X){for(;X.lastChild;)X.removeChild(X.lastChild)},removeClass:function(X,F){X.classList?X.classList.remove(F):X.className=X.className.replace(RegExp(F,"g"),"")},removeElement:function(X){X&&X.parentNode&&X.parentNode.removeChild(X)},reverseChildNodes:function(X){let F=X.childNodes.length;for(;F--;)X.appendChild(X.childNodes[F])},simulatedEventTarget:Z,stripHTMLTagsFromString:function(X,F=!1){return typeof X=="string"?F?X.replace(/<\/?[^>]+(>|$)/g,""):X.replace(/<\/?(?!\s)[^>]+(>|$)/g,""):X},visuallyHideElement:function(X){q(X,{position:"absolute",width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(1px, 1px, 1px, 1px)",marginTop:"-3px","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",filter:"alpha(opacity=1)",opacity:.01})}}}),R(y,"Accessibility/A11yI18n.js",[y["Core/Templating.js"],y["Core/Utilities.js"]],function(B,et){var K;let{format:J}=B,{getNestedProperty:q,pick:Z}=et;return function(tt){function H(F,U,d){let L=(o,u)=>{let C=o.slice(u||0),E=C.indexOf("{"),S=C.indexOf("}");if(E>-1&&S>E)return{statement:C.substring(E+1,S),begin:u+E+1,end:u+S}},M=[],s,_,w=0;do s=L(F,w),(_=F.substring(w,s&&s.begin-1)).length&&M.push({value:_,type:"constant"}),s&&M.push({value:s.statement,type:"statement"}),w=s?s.end+1:w+1;while(s);return M.forEach(o=>{o.type==="statement"&&(o.value=function(u,C){let E,S,v=u.indexOf("#each("),g=u.indexOf("#plural("),x=u.indexOf("["),p=u.indexOf("]");if(v>-1){let f=u.slice(v).indexOf(")")+v,b=u.substring(0,v),z=u.substring(f+1),T=u.substring(v+6,f).split(","),k=Number(T[1]),Q;if(S="",E=q(T[0],C)){Q=(k=isNaN(k)?E.length:k)<0?E.length+k:Math.min(k,E.length);for(let st=0;st-1){var l;let f=u.slice(g).indexOf(")")+g,b=u.substring(g+8,f).split(",");switch(Number(q(b[0],C))){case 0:S=Z(b[4],b[1]);break;case 1:S=Z(b[2],b[1]);break;case 2:S=Z(b[3],b[1]);break;default:S=b[1]}return S?(l=S).trim&&l.trim()||l.replace(/^\s+|\s+$/g,""):""}if(x>-1){let f,b=u.substring(0,x),z=Number(u.substring(x+1,p));return E=q(b,C),!isNaN(z)&&E&&(z<0?(f=E[E.length+z])===void 0&&(f=E[0]):(f=E[z])===void 0&&(f=E[E.length-1])),f!==void 0?f:""}return"{"+u+"}"}(o.value,U))}),J(M.reduce((o,u)=>o+u.value,""),U,d)}function X(F,U){let d=F.split("."),L=this.options.lang,M=0;for(;M!!L.graphic);return d&&d.graphic&&d.graphic.element}}function F(U){let d=X(U);return d&&d.parentNode||U.graph&&U.graph.element||U.group&&U.group.element}return{fireEventOnWrappedOrUnwrappedElement:function U(d,L){let M=L.type,s=d.hcEvents;J.createEvent&&(d.dispatchEvent||d.fireEvent)?d.dispatchEvent?d.dispatchEvent(L):d.fireEvent(M,L):s&&s[M]?H(d,M,L):d.element&&U(d.element,L)},getChartTitle:function(U){return q(U.options.title.text||U.langFormat("accessibility.defaultChartTitle",{chart:U}),U.renderer.forExport)},getAxisDescription:function(U){var d,L;return U&&(((d=U.options.accessibility)==null?void 0:d.description)||((L=U.axisTitle)==null?void 0:L.textStr)||U.options.id||U.categories&&"categories"||U.dateTime&&"Time"||"values")},getAxisRangeDescription:function(U){let d=U.options||{};return d.accessibility&&d.accessibility.rangeDescription!==void 0?d.accessibility.rangeDescription:U.categories?function(L){let M=L.chart;return L.dataMax&&L.dataMin?M.langFormat("accessibility.axis.rangeCategories",{chart:M,axis:L,numCategories:L.dataMax-L.dataMin+1}):""}(U):U.dateTime&&(U.min===0||U.dataMin===0)?function(L){let M=L.chart,s={},_=L.dataMin||L.min||0,w=L.dataMax||L.max||0,o="Seconds";s.Seconds=(w-_)/1e3,s.Minutes=s.Seconds/60,s.Hours=s.Minutes/60,s.Days=s.Hours/24,["Minutes","Hours","Days"].forEach(function(C){s[C]>2&&(o=C)});let u=s[o].toFixed(o!=="Seconds"&&o!=="Minutes"?1:0);return M.langFormat("accessibility.axis.timeRange"+o,{chart:M,axis:L,range:u.replace(".0","")})}(U):function(L){let M=L.chart,s=M.options,_=s&&s.accessibility&&s.accessibility.screenReaderSection.axisRangeDateFormat||"",w={min:L.dataMin||L.min||0,max:L.dataMax||L.max||0},o=function(u){return L.dateTime?M.time.dateFormat(_,w[u]):w[u].toString()};return M.langFormat("accessibility.axis.rangeFromTo",{chart:M,axis:L,rangeFrom:o("min"),rangeTo:o("max")})}(U)},getPointFromXY:function(U,d,L){let M=U.length,s;for(;M--;)if(s=tt(U[M].points||[],function(_){return _.x===d&&_.y===L}))return s},getSeriesFirstPointElement:X,getSeriesFromName:function(U,d){return d?(U.series||[]).filter(function(L){return L.name===d}):U.series},getSeriesA11yElement:F,unhideChartElementFromAT:function U(d,L){L.setAttribute("aria-hidden",!1),L!==d.renderTo&&L.parentNode&&L.parentNode!==J.body&&(Array.prototype.forEach.call(L.parentNode.childNodes,function(M){M.hasAttribute("aria-hidden")||M.setAttribute("aria-hidden",!0)}),U(d,L.parentNode))},hideSeriesFromAT:function(U){let d=F(U);d&&d.setAttribute("aria-hidden",!0)},scrollAxisToPoint:function(U){let d=U.series.xAxis,L=U.series.yAxis,M=d&&d.scrollbar?d:L,s=M&&M.scrollbar;if(s&&Z(s.to)&&Z(s.from)){let _=s.to-s.from,w=function(o,u){if(!Z(o.dataMin)||!Z(o.dataMax))return 0;let C=o.toPixels(o.dataMin),E=o.toPixels(o.dataMax),S=o.coll==="xAxis"?"x":"y";return(o.toPixels(u[S]||0)-C)/(E-C)}(M,U);s.updatePosition(w-_/2,w+_/2),H(s,"changed",{from:s.from,to:s.to,trigger:"scrollbar",DOMEvent:null})}}}}),R(y,"Accessibility/Utils/DOMElementProvider.js",[y["Core/Globals.js"],y["Accessibility/Utils/HTMLUtilities.js"]],function(B,et){let{doc:K}=B,{removeElement:J}=et;return class{constructor(){this.elements=[]}createElement(){let q=K.createElement.apply(K,arguments);return this.elements.push(q),q}removeElement(q){J(q),this.elements.splice(this.elements.indexOf(q),1)}destroyCreatedElements(){this.elements.forEach(function(q){J(q)}),this.elements=[]}}}),R(y,"Accessibility/Utils/EventProvider.js",[y["Core/Globals.js"],y["Core/Utilities.js"]],function(B,et){let{addEvent:K}=et;return class{constructor(){this.eventRemovers=[]}addEvent(){let J=K.apply(B,arguments);return this.eventRemovers.push({element:arguments[0],remover:J}),J}removeEvent(J){let q=this.eventRemovers.map(Z=>Z.remover).indexOf(J);this.eventRemovers[q].remover(),this.eventRemovers.splice(q,1)}removeAddedEvents(){this.eventRemovers.map(J=>J.remover).forEach(J=>J()),this.eventRemovers=[]}}}),R(y,"Accessibility/AccessibilityComponent.js",[y["Accessibility/Utils/ChartUtilities.js"],y["Accessibility/Utils/DOMElementProvider.js"],y["Accessibility/Utils/EventProvider.js"],y["Accessibility/Utils/HTMLUtilities.js"]],function(B,et,K,J){let{fireEventOnWrappedOrUnwrappedElement:q}=B,{getFakeMouseEvent:Z}=J;return class{destroy(){}getKeyboardNavigation(){return[]}init(){}onChartRender(){}onChartUpdate(){}initBase(tt,H){this.chart=tt,this.eventProvider=new K,this.domElementProvider=new et,this.proxyProvider=H,this.keyCodes={left:37,right:39,up:38,down:40,enter:13,space:32,esc:27,tab:9,pageUp:33,pageDown:34,end:35,home:36}}addEvent(tt,H,X,F){return this.eventProvider.addEvent(tt,H,X,F)}createElement(tt,H){return this.domElementProvider.createElement(tt,H)}fakeClickEvent(tt){q(tt,Z("click"))}destroyBase(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()}}}),R(y,"Accessibility/KeyboardNavigationHandler.js",[y["Core/Utilities.js"]],function(B){let{find:et}=B;return class{constructor(K,J){this.chart=K,this.keyCodeMap=J.keyCodeMap||[],this.validate=J.validate,this.init=J.init,this.terminate=J.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}run(K){let J=K.which||K.keyCode,q=this.response.noHandler,Z=et(this.keyCodeMap,function(tt){return tt[0].indexOf(J)>-1});return Z?q=Z[1].call(this,J,K):J===9&&(q=this.response[K.shiftKey?"prev":"next"]),q}}}),R(y,"Accessibility/Components/ContainerComponent.js",[y["Accessibility/AccessibilityComponent.js"],y["Accessibility/KeyboardNavigationHandler.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Core/Globals.js"],y["Accessibility/Utils/HTMLUtilities.js"]],function(B,et,K,J,q){let{unhideChartElementFromAT:Z,getChartTitle:tt}=K,{doc:H}=J,{stripHTMLTagsFromString:X}=q;return class extends B{onChartUpdate(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()}handleSVGTitleElement(){let F=this.chart,U="highcharts-title-"+F.index,d=X(F.langFormat("accessibility.svgContainerTitle",{chartTitle:tt(F)}));if(d.length){let L=this.svgTitleElement=this.svgTitleElement||H.createElementNS("http://www.w3.org/2000/svg","title");L.textContent=d,L.id=U,F.renderTo.insertBefore(L,F.renderTo.firstChild)}}setSVGContainerLabel(){let F=this.chart,U=F.langFormat("accessibility.svgContainerLabel",{chartTitle:tt(F)});F.renderer.box&&U.length&&F.renderer.box.setAttribute("aria-label",U)}setGraphicContainerAttrs(){let F=this.chart,U=F.langFormat("accessibility.graphicContainerLabel",{chartTitle:tt(F)});U.length&&F.container.setAttribute("aria-label",U)}setRenderToAttrs(){let F=this.chart,U=F.options.accessibility.landmarkVerbosity!=="disabled",d=F.langFormat("accessibility.chartContainerLabel",{title:tt(F),chart:F});d&&(F.renderTo.setAttribute("role",U?"region":"group"),F.renderTo.setAttribute("aria-label",d))}makeCreditsAccessible(){let F=this.chart,U=F.credits;U&&(U.textStr&&U.element.setAttribute("aria-label",F.langFormat("accessibility.credits",{creditsStr:X(U.textStr,F.renderer.forExport)})),Z(F,U.element))}getKeyboardNavigation(){let F=this.chart;return new et(F,{keyCodeMap:[],validate:function(){return!0},init:function(){let U=F.accessibility;U&&U.keyboardNavigation.tabindexContainer.focus()}})}destroy(){this.chart.renderTo.setAttribute("aria-hidden",!0)}}}),R(y,"Accessibility/FocusBorder.js",[y["Core/Utilities.js"]],function(B){var et;let{addEvent:K,pick:J}=B;return function(q){let Z=["x","y","transform","width","height","r","d","stroke-width"];function tt(){let U=this.focusElement,d=this.options.accessibility.keyboardNavigation.focusBorder;U&&(U.removeFocusBorder(),d.enabled&&U.addFocusBorder(d.margin,{stroke:d.style.color,strokeWidth:d.style.lineWidth,r:d.style.borderRadius}))}function H(U,d){let L=this.options.accessibility.keyboardNavigation.focusBorder,M=d||U.element;M&&M.focus&&(M.hcEvents&&M.hcEvents.focusin||K(M,"focusin",function(){}),M.focus(),L.hideBrowserFocusOutline&&(M.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=U,this.renderFocusBorder()}function X(U,d){this.focusBorder&&this.removeFocusBorder();let L=this.getBBox(),M=J(U,3),s=this.parentGroup,_=this.scaleX||s&&s.scaleX,w=this.scaleY||s&&s.scaleY,o=(_?!w:w)?Math.abs(_||w||1):(Math.abs(_||1)+Math.abs(w||1))/2;L.x+=this.translateX?this.translateX:0,L.y+=this.translateY?this.translateY:0;let u=L.x-M,C=L.y-M,E=L.width+2*M,S=L.height+2*M,v=!!this.text;if(this.element.nodeName==="text"||v){let g,x,p=!!this.rotation,l=v?{x:p?1:0,y:0}:(g=0,x=0,this.attr("text-anchor")==="middle"?g=x=.5:this.rotation?g=.25:x=.75,{x:g,y:x}),f=+this.attr("x"),b=+this.attr("y");if(isNaN(f)||(u=f-L.width*l.x-M),isNaN(b)||(C=b-L.height*l.y-M),v&&p){let z=E;E=S,S=z,isNaN(f)||(u=f-L.height*l.x-M),isNaN(b)||(C=b-L.width*l.y-M)}}this.focusBorder=this.renderer.rect(u,C,E,S,parseInt((d&&d.r||0).toString(),10)/o).addClass("highcharts-focus-border").attr({zIndex:99}).add(s),this.renderer.styledMode||this.focusBorder.attr({stroke:d&&d.stroke,"stroke-width":(d&&d.strokeWidth||0)/o}),function(g,...x){g.focusBorderUpdateHooks||(g.focusBorderUpdateHooks={},Z.forEach(p=>{let l=p+"Setter",f=g[l]||g._defaultSetter;g.focusBorderUpdateHooks[l]=f,g[l]=function(){let b=f.apply(g,arguments);return g.addFocusBorder.apply(g,x),b}}))}(this,U,d),function(g){if(g.focusBorderDestroyHook)return;let x=g.destroy;g.destroy=function(){return g.focusBorder&&g.focusBorder.destroy&&g.focusBorder.destroy(),x.apply(g,arguments)},g.focusBorderDestroyHook=x}(this)}function F(){var U;U=this,U.focusBorderUpdateHooks&&(Object.keys(U.focusBorderUpdateHooks).forEach(d=>{let L=U.focusBorderUpdateHooks[d];L===U._defaultSetter?delete U[d]:U[d]=L}),delete U.focusBorderUpdateHooks),this.focusBorderDestroyHook&&(this.destroy=this.focusBorderDestroyHook,delete this.focusBorderDestroyHook),this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}q.compose=function(U,d){let L=U.prototype,M=d.prototype;L.renderFocusBorder||(L.renderFocusBorder=tt,L.setFocusToElement=H),M.addFocusBorder||(M.addFocusBorder=X,M.removeFocusBorder=F)}}(et||(et={})),et}),R(y,"Accessibility/Utils/Announcer.js",[y["Core/Renderer/HTML/AST.js"],y["Accessibility/Utils/DOMElementProvider.js"],y["Core/Globals.js"],y["Accessibility/Utils/HTMLUtilities.js"],y["Core/Utilities.js"]],function(B,et,K,J,q){let{doc:Z}=K,{addClass:tt,visuallyHideElement:H}=J,{attr:X}=q;return class{constructor(F,U){this.chart=F,this.domElementProvider=new et,this.announceRegion=this.addAnnounceRegion(U)}destroy(){this.domElementProvider.destroyCreatedElements()}announce(F){B.setElementHTML(this.announceRegion,F),this.clearAnnouncementRegionTimer&&clearTimeout(this.clearAnnouncementRegionTimer),this.clearAnnouncementRegionTimer=setTimeout(()=>{this.announceRegion.innerHTML=B.emptyHTML,delete this.clearAnnouncementRegionTimer},3e3)}addAnnounceRegion(F){let U=this.chart.announcerContainer||this.createAnnouncerContainer(),d=this.domElementProvider.createElement("div");return X(d,{"aria-hidden":!1,"aria-live":F,"aria-atomic":!0}),this.chart.styledMode?tt(d,"highcharts-visually-hidden"):H(d),U.appendChild(d),d}createAnnouncerContainer(){let F=this.chart,U=Z.createElement("div");return X(U,{"aria-hidden":!1,class:"highcharts-announcer-container"}),U.style.position="relative",F.renderTo.insertBefore(U,F.renderTo.firstChild),F.announcerContainer=U,U}}}),R(y,"Accessibility/Components/AnnotationsA11y.js",[y["Accessibility/Utils/HTMLUtilities.js"]],function(B){let{escapeStringForHTML:et,stripHTMLTagsFromString:K}=B;function J(H){return(H.annotations||[]).reduce((X,F)=>(F.options&&F.options.visible!==!1&&(X=X.concat(F.labels)),X),[])}function q(H){return H.options&&H.options.accessibility&&H.options.accessibility.description||H.graphic&&H.graphic.text&&H.graphic.text.textStr||""}function Z(H){let X=H.options&&H.options.accessibility&&H.options.accessibility.description;if(X)return X;let F=H.chart,U=q(H),d=H.points,L=o=>o.graphic&&o.graphic.element&&o.graphic.element.getAttribute("aria-label")||"",M=d.filter(o=>!!o.graphic).map(o=>{let u=o.accessibility&&o.accessibility.valueDescription||L(o),C=o&&o.series.name||"";return(C?C+", ":"")+"data point "+u}).filter(o=>!!o),s=M.length,_=s>1?"MultiplePoints":s?"SinglePoint":"NoPoints",w={annotationText:U,annotation:H,numPoints:s,annotationPoint:M[0],additionalAnnotationPoints:M.slice(1)};return F.langFormat("accessibility.screenReaderSection.annotations.description"+_,w)}function tt(H){return J(H).map(X=>{let F=et(K(Z(X),H.renderer.forExport));return F?`
  • ${F}
  • `:""})}return{getAnnotationsInfoHTML:function(H){let X=H.annotations;return X&&X.length?`
      ${tt(H).join(" ")}
    `:""},getAnnotationLabelDescription:Z,getAnnotationListItems:tt,getPointAnnotationTexts:function(H){let X=J(H.series.chart).filter(F=>F.points.indexOf(H)>-1);return X.length?X.map(F=>`${q(F)}`):[]}}}),R(y,"Accessibility/Components/InfoRegionsComponent.js",[y["Accessibility/A11yI18n.js"],y["Accessibility/AccessibilityComponent.js"],y["Accessibility/Utils/Announcer.js"],y["Accessibility/Components/AnnotationsA11y.js"],y["Core/Renderer/HTML/AST.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Core/Templating.js"],y["Core/Globals.js"],y["Accessibility/Utils/HTMLUtilities.js"],y["Core/Utilities.js"]],function(B,et,K,J,q,Z,tt,H,X,F){let{getAnnotationsInfoHTML:U}=J,{getAxisDescription:d,getAxisRangeDescription:L,getChartTitle:M,unhideChartElementFromAT:s}=Z,{format:_}=tt,{doc:w}=H,{addClass:o,getElement:u,getHeadingTagNameForElement:C,stripHTMLTagsFromString:E,visuallyHideElement:S}=X,{attr:v,pick:g,replaceNested:x}=F;function p(l){return x(l,[/<([\w\-.:!]+)\b[^<>]*>\s*<\/\1>/g,""])}return class extends et{constructor(){super(...arguments),this.screenReaderSections={}}init(){let l=this.chart,f=this;this.initRegionsDefinitions(),this.addEvent(l,"aftergetTableAST",function(b){f.onDataTableCreated(b)}),this.addEvent(l,"afterViewData",function(b){b.wasHidden&&(f.dataTableDiv=b.element,setTimeout(function(){f.focusDataTable()},300))}),this.addEvent(l,"afterHideData",function(){f.viewDataTableButton&&f.viewDataTableButton.setAttribute("aria-expanded","false")}),l.exporting&&this.addEvent(l,"afterPrint",function(){f.updateAllScreenReaderSections()}),this.announcer=new K(l,"assertive")}initRegionsDefinitions(){let l=this,f=this.chart.options.accessibility;this.screenReaderSections={before:{element:null,buildContent:function(b){let z=f.screenReaderSection.beforeChartFormatter;return z?z(b):l.defaultBeforeChartFormatter(b)},insertIntoDOM:function(b,z){z.renderTo.insertBefore(b,z.renderTo.firstChild)},afterInserted:function(){l.sonifyButtonId!==void 0&&l.initSonifyButton(l.sonifyButtonId),l.dataTableButtonId!==void 0&&l.initDataTableButton(l.dataTableButtonId)}},after:{element:null,buildContent:function(b){let z=f.screenReaderSection.afterChartFormatter;return z?z(b):l.defaultAfterChartFormatter()},insertIntoDOM:function(b,z){z.renderTo.insertBefore(b,z.container.nextSibling)},afterInserted:function(){l.chart.accessibility&&f.keyboardNavigation.enabled&&l.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}}onChartRender(){this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),this.updateAllScreenReaderSections()}updateAllScreenReaderSections(){let l=this;Object.keys(this.screenReaderSections).forEach(function(f){l.updateScreenReaderSection(f)})}getLinkedDescriptionElement(){let l=this.chart.options.accessibility.linkedDescription;if(!l)return;if(typeof l!="string")return l;let f=_(l,this.chart),b=w.querySelectorAll(f);if(b.length===1)return b[0]}setLinkedDescriptionAttrs(){let l=this.linkedDescriptionElement;l&&(l.setAttribute("aria-hidden","true"),o(l,"highcharts-linked-description"))}updateScreenReaderSection(l){let f=this.chart,b=this.screenReaderSections[l],z=b.buildContent(f),T=b.element=b.element||this.createElement("div"),k=T.firstChild||this.createElement("div");z?(this.setScreenReaderSectionAttribs(T,l),q.setElementHTML(k,z),T.appendChild(k),b.insertIntoDOM(T,f),f.styledMode?o(k,"highcharts-visually-hidden"):S(k),s(f,k),b.afterInserted&&b.afterInserted()):(T.parentNode&&T.parentNode.removeChild(T),b.element=null)}setScreenReaderSectionAttribs(l,f){let b=this.chart,z=b.langFormat("accessibility.screenReaderSection."+f+"RegionLabel",{chart:b,chartTitle:M(b)});v(l,{id:`highcharts-screen-reader-region-${f}-${b.index}`,"aria-label":z||void 0}),l.style.position="relative",z&&l.setAttribute("role",b.options.accessibility.landmarkVerbosity==="all"?"region":"group")}defaultBeforeChartFormatter(){let l=this.chart,f=l.options.accessibility.screenReaderSection.beforeChartFormat;if(!f)return"";let b=this.getAxesDescription(),z=l.sonify&&l.options.sonification&&l.options.sonification.enabled,T="highcharts-a11y-sonify-data-btn-"+l.index,k="hc-linkto-highcharts-data-table-"+l.index,Q=U(l),st=l.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:l}),nt={headingTagName:C(l.renderTo),chartTitle:M(l),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:b.xAxis,yAxisDescription:b.yAxis,playAsSoundButton:z?this.getSonifyButtonText(T):"",viewTableButton:l.getCSV?this.getDataTableButtonText(k):"",annotationsTitle:Q?st:"",annotationsList:Q},dt=B.i18nFormat(f,nt,l);return this.dataTableButtonId=k,this.sonifyButtonId=T,p(dt)}defaultAfterChartFormatter(){let l=this.chart,f=l.options.accessibility.screenReaderSection.afterChartFormat;if(!f)return"";let b={endOfChartMarker:this.getEndOfChartMarkerText()};return p(B.i18nFormat(f,b,l))}getLinkedDescription(){let l=this.linkedDescriptionElement;return E(l&&l.innerHTML||"",this.chart.renderer.forExport)}getLongdescText(){let l=this.chart.options,f=l.caption,b=f&&f.text,z=this.getLinkedDescription();return l.accessibility.description||z||b||""}getTypeDescriptionText(){let l=this.chart;return l.types?l.options.accessibility.typeDescription||function(f,b){let z=b[0],T=f.series&&f.series[0]||{},k=f.mapView&&f.mapView.geoMap&&f.mapView.geoMap.title,Q={numSeries:f.series.length,numPoints:T.points&&T.points.length,chart:f,mapTitle:k};return z?z==="map"||z==="tiledwebmap"?Q.mapTitle?f.langFormat("accessibility.chartTypes.mapTypeDescription",Q):f.langFormat("accessibility.chartTypes.unknownMap",Q):f.types.length>1?f.langFormat("accessibility.chartTypes.combinationChart",Q):function(st,nt,dt){let mt=nt[0],Et=st.langFormat("accessibility.seriesTypeDescriptions."+mt,dt),Mt=st.series&&st.series.length<2?"Single":"Multiple";return(st.langFormat("accessibility.chartTypes."+mt+Mt,dt)||st.langFormat("accessibility.chartTypes.default"+Mt,dt))+(Et?" "+Et:"")}(f,b,Q):f.langFormat("accessibility.chartTypes.emptyChart",Q)}(l,l.types):""}getDataTableButtonText(l){let f=this.chart;return'"}getSonifyButtonText(l){let f=this.chart;return f.options.sonification&&f.options.sonification.enabled===!1?"":'"}getSubtitleText(){let l=this.chart.options.subtitle;return E(l&&l.text||"",this.chart.renderer.forExport)}getEndOfChartMarkerText(){let l=u(`highcharts-end-of-chart-marker-${this.chart.index}`);if(l)return l.outerHTML;let f=this.chart,b=f.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:f});return'
    '+b+"
    "}onDataTableCreated(l){let f=this.chart;if(f.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");let b=l.tree.attributes||{};b.tabindex=-1,b.summary=f.langFormat("accessibility.table.tableSummary",{chart:f}),l.tree.attributes=b}}focusDataTable(){let l=this.dataTableDiv,f=l&&l.getElementsByTagName("table")[0];f&&f.focus&&f.focus()}initSonifyButton(l){let f=this.sonifyButton=u(l),b=this.chart,z=T=>{f&&(f.setAttribute("aria-hidden","true"),f.setAttribute("aria-label","")),T.preventDefault(),T.stopPropagation();let k=b.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:b});this.announcer.announce(k),setTimeout(()=>{f&&(f.removeAttribute("aria-hidden"),f.removeAttribute("aria-label")),b.sonify&&b.sonify()},1e3)};f&&b&&(f.setAttribute("tabindex",-1),f.onclick=function(T){(b.options.accessibility&&b.options.accessibility.screenReaderSection.onPlayAsSoundClick||z).call(this,T,b)})}initDataTableButton(l){let f=this.viewDataTableButton=u(l),b=this.chart,z=l.replace("hc-linkto-","");f&&(v(f,{tabindex:-1,"aria-expanded":!!u(z)}),f.onclick=b.options.accessibility.screenReaderSection.onViewDataTableClick||function(){b.viewData()})}getAxesDescription(){let l=this.chart,f=function(st,nt){let dt=l[st];return dt.length>1||dt[0]&&g(dt[0].options.accessibility&&dt[0].options.accessibility.enabled,nt)},b=!!l.types&&0>l.types.indexOf("map")&&0>l.types.indexOf("treemap")&&0>l.types.indexOf("tilemap"),z=!!l.hasCartesianSeries,T=f("xAxis",!l.angular&&z&&b),k=f("yAxis",z&&b),Q={};return T&&(Q.xAxis=this.getAxisDescriptionText("xAxis")),k&&(Q.yAxis=this.getAxisDescriptionText("yAxis")),Q}getAxisDescriptionText(l){let f=this.chart,b=f[l];return f.langFormat("accessibility.axis."+l+"Description"+(b.length>1?"Plural":"Singular"),{chart:f,names:b.map(function(z){return d(z)}),ranges:b.map(function(z){return L(z)}),numAxes:b.length})}destroy(){this.announcer&&this.announcer.destroy()}}}),R(y,"Accessibility/Components/MenuComponent.js",[y["Core/Utilities.js"],y["Accessibility/AccessibilityComponent.js"],y["Accessibility/KeyboardNavigationHandler.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Accessibility/Utils/HTMLUtilities.js"]],function(B,et,K,J,q){let{attr:Z}=B,{getChartTitle:tt,unhideChartElementFromAT:H}=J,{getFakeMouseEvent:X}=q;function F(d){return d.exportSVGElements&&d.exportSVGElements[0]}class U extends et{init(){let L=this.chart,M=this;this.addEvent(L,"exportMenuShown",function(){M.onMenuShown()}),this.addEvent(L,"exportMenuHidden",function(){M.onMenuHidden()}),this.createProxyGroup()}onMenuHidden(){let L=this.chart.exportContextMenu;L&&L.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")}onMenuShown(){let L=this.chart,M=L.exportContextMenu;M&&(this.addAccessibleContextMenuAttribs(),H(L,M)),this.setExportButtonExpandedState("true")}setExportButtonExpandedState(L){this.exportButtonProxy&&this.exportButtonProxy.innerElement.setAttribute("aria-expanded",L)}onChartRender(){let L=this.chart,M=L.focusElement,s=L.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&M&&M===L.exportingGroup&&(M.focusBorder?L.setFocusToElement(M,this.exportButtonProxy.innerElement):s&&s.keyboardNavigation.tabindexContainer.focus())}proxyMenuButton(){let L=this.chart,M=this.proxyProvider,s=F(L);(function(_){let w=_.options.exporting,o=F(_);return!!(w&&w.enabled!==!1&&w.accessibility&&w.accessibility.enabled&&o&&o.element)})(L)&&s&&(this.exportButtonProxy=M.addProxyElement("chartMenu",{click:s},"button",{"aria-label":L.langFormat("accessibility.exporting.menuButtonLabel",{chart:L,chartTitle:tt(L)}),"aria-expanded":!1,title:L.options.lang.contextButtonTitle||null}))}createProxyGroup(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu")}addAccessibleContextMenuAttribs(){let L=this.chart,M=L.exportDivElements;if(M&&M.length){M.forEach(_=>{_&&(_.tagName!=="LI"||_.children&&_.children.length?_.setAttribute("aria-hidden","true"):_.setAttribute("tabindex",-1))});let s=M[0]&&M[0].parentNode;s&&Z(s,{"aria-hidden":void 0,"aria-label":L.langFormat("accessibility.exporting.chartMenuLabel",{chart:L}),role:"list"})}}getKeyboardNavigation(){let L=this.keyCodes,M=this.chart,s=this;return new K(M,{keyCodeMap:[[[L.left,L.up],function(){return s.onKbdPrevious(this)}],[[L.right,L.down],function(){return s.onKbdNext(this)}],[[L.enter,L.space],function(){return s.onKbdClick(this)}]],validate:function(){return!!M.exporting&&M.options.exporting.enabled!==!1&&M.options.exporting.accessibility.enabled!==!1},init:function(){let _=s.exportButtonProxy,w=s.chart.exportingGroup;_&&w&&M.setFocusToElement(w,_.innerElement)},terminate:function(){M.hideExportMenu()}})}onKbdPrevious(L){let M=this.chart,s=M.options.accessibility,_=L.response,w=M.highlightedExportItemIx||0;for(;w--;)if(M.highlightExportItem(w))return _.success;return s.keyboardNavigation.wrapAround?(M.highlightLastExportItem(),_.success):_.prev}onKbdNext(L){let M=this.chart,s=M.options.accessibility,_=L.response;for(let w=(M.highlightedExportItemIx||0)+1;w{o&&o.className==="highcharts-menu-item"&&o.onmouseout&&o.onmouseout(X("mouseout"))}),this.highlightedExportItemIx=0,this.exportContextMenu.hideMenu(),this.container.focus())}function s(w){let o=this.exportDivElements&&this.exportDivElements[w],u=this.exportDivElements&&this.exportDivElements[this.highlightedExportItemIx];if(o&&o.tagName==="LI"&&!(o.children&&o.children.length)){let C=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;return o.focus&&C&&o.focus(),u&&u.onmouseout&&u.onmouseout(X("mouseout")),o.onmouseover&&o.onmouseover(X("mouseover")),this.highlightedExportItemIx=w,!0}return!1}function _(){if(this.exportDivElements){let w=this.exportDivElements.length;for(;w--;)if(this.highlightExportItem(w))return!0}return!1}d.compose=function(w){let o=w.prototype;o.hideExportMenu||(o.hideExportMenu=M,o.highlightExportItem=s,o.highlightLastExportItem=_,o.showExportMenu=L)}}(U||(U={})),U}),R(y,"Accessibility/KeyboardNavigation.js",[y["Core/Globals.js"],y["Accessibility/Components/MenuComponent.js"],y["Core/Utilities.js"],y["Accessibility/Utils/EventProvider.js"],y["Accessibility/Utils/HTMLUtilities.js"]],function(B,et,K,J,q){let{doc:Z,win:tt}=B,{addEvent:H,defined:X,fireEvent:F}=K,{getElement:U,simulatedEventTarget:d}=q;class L{constructor(s,_){this.currentModuleIx=NaN,this.modules=[],this.init(s,_)}init(s,_){let w=this.eventProvider=new J;this.chart=s,this.components=_,this.modules=[],this.currentModuleIx=0,this.update(),w.addEvent(this.tabindexContainer,"keydown",o=>this.onKeydown(o)),w.addEvent(this.tabindexContainer,"focus",o=>this.onFocus(o)),["mouseup","touchend"].forEach(o=>w.addEvent(Z,o,u=>this.onMouseUp(u))),["mousedown","touchstart"].forEach(o=>w.addEvent(s.renderTo,o,()=>{this.isClickingChart=!0}))}update(s){let _=this.chart.options.accessibility,w=_&&_.keyboardNavigation,o=this.components;this.updateContainerTabindex(),w&&w.enabled&&s&&s.length?(this.modules=s.reduce(function(u,C){let E=o[C].getKeyboardNavigation();return u.concat(E)},[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())}updateExitAnchor(){let s=U(`highcharts-end-of-chart-marker-${this.chart.index}`);this.removeExitAnchor(),s?(this.makeElementAnExitAnchor(s),this.exitAnchor=s):this.createExitAnchor()}move(s){let _=this.modules&&this.modules[this.currentModuleIx];_&&_.terminate&&_.terminate(s),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=s;let w=this.modules&&this.modules[this.currentModuleIx];if(w){if(w.validate&&!w.validate())return this.move(s);if(w.init)return w.init(s),!0}return this.currentModuleIx=0,this.exiting=!0,s>0?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus(),!1}onFocus(s){let _=this.chart,w=s.relatedTarget&&_.container.contains(s.relatedTarget),o=_.options.accessibility,u=o&&o.keyboardNavigation;if(u&&u.enabled&&!this.exiting&&!this.tabbingInBackwards&&!this.isClickingChart&&!w){let C=this.getFirstValidModuleIx();C!==null&&(this.currentModuleIx=C,this.modules[C].init(1))}this.keyboardReset=!1,this.exiting=!1}onMouseUp(s){if(delete this.isClickingChart,!this.keyboardReset&&s.relatedTarget!==d){let _=this.chart;if(!s.target||!_.container.contains(s.target)){let w=this.modules&&this.modules[this.currentModuleIx||0];w&&w.terminate&&w.terminate(),this.currentModuleIx=0}_.focusElement&&(_.focusElement.removeFocusBorder(),delete _.focusElement),this.keyboardReset=!0}}onKeydown(s){let _,w=s||tt.event,o=this.modules&&this.modules.length&&this.modules[this.currentModuleIx],u=w.target;if((!u||u.nodeName!=="INPUT"||u.classList.contains("highcharts-a11y-proxy-element"))&&(this.keyboardReset=!1,this.exiting=!1,o)){let C=o.run(w);C===o.response.success?_=!0:C===o.response.prev?_=this.move(-1):C===o.response.next&&(_=this.move(1)),_&&(w.preventDefault(),w.stopPropagation())}}updateContainerTabindex(){let s,_=this.chart.options.accessibility,w=_&&_.keyboardNavigation,o=!(w&&w.enabled===!1),u=this.chart,C=u.container;u.renderTo.hasAttribute("tabindex")?(C.removeAttribute("tabindex"),s=u.renderTo):s=C,this.tabindexContainer=s;let E=s.getAttribute("tabindex");o&&!E?s.setAttribute("tabindex","0"):o||u.container.removeAttribute("tabindex")}createExitAnchor(){let s=this.chart,_=this.exitAnchor=Z.createElement("div");s.renderTo.appendChild(_),this.makeElementAnExitAnchor(_)}makeElementAnExitAnchor(s){let _=this.tabindexContainer.getAttribute("tabindex")||0;s.setAttribute("class","highcharts-exit-anchor"),s.setAttribute("tabindex",_),s.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(s)}removeExitAnchor(){if(this.exitAnchor){let s=this.eventProvider.eventRemovers.find(_=>_.element===this.exitAnchor);s&&X(s.remover)&&this.eventProvider.removeEvent(s.remover),this.exitAnchor.parentNode&&this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor}}addExitAnchorEventsToEl(s){let _=this.chart,w=this;this.eventProvider.addEvent(s,"focus",function(o){let u=o||tt.event,C=!(u.relatedTarget&&_.container.contains(u.relatedTarget)||w.exiting);if(_.focusElement&&delete _.focusElement,C){if(w.tabbingInBackwards=!0,w.tabindexContainer.focus(),delete w.tabbingInBackwards,u.preventDefault(),w.modules&&w.modules.length){w.currentModuleIx=w.modules.length-1;let E=w.modules[w.currentModuleIx];E&&E.validate&&!E.validate()?w.move(-1):E&&E.init(-1)}}else w.exiting=!1})}getFirstValidModuleIx(){let s=this.modules.length;for(let _=0;_{o&&o.dismissPopupContent&&o.dismissPopupContent()})}M.compose=function(w){et.compose(w);let o=w.prototype;return o.dismissPopupContent||(o.dismissPopupContent=s,H(Z,"keydown",_)),w}}(L||(L={})),L}),R(y,"Accessibility/Components/LegendComponent.js",[y["Core/Animation/AnimationUtilities.js"],y["Core/Globals.js"],y["Core/Legend/Legend.js"],y["Core/Utilities.js"],y["Accessibility/AccessibilityComponent.js"],y["Accessibility/KeyboardNavigationHandler.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Accessibility/Utils/HTMLUtilities.js"]],function(B,et,K,J,q,Z,tt,H){let{animObject:X}=B,{doc:F}=et,{addEvent:U,fireEvent:d,isNumber:L,pick:M,syncTimeout:s}=J,{getChartTitle:_}=tt,{stripHTMLTagsFromString:w,addClass:o,removeClass:u}=H;function C(v){let g=v.legend&&v.legend.allItems,x=v.options.legend.accessibility||{},p=v.colorAxis&&v.colorAxis.some(l=>!l.dataClasses||!l.dataClasses.length);return!!(g&&g.length&&!p&&x.enabled!==!1)}function E(v,g){let x=g.legendItem||{};for(let p of(g.setState(v?"hover":"",!0),["group","label","symbol"])){let l=x[p],f=l&&l.element||l;f&&d(f,v?"mouseover":"mouseout")}}class S extends q{constructor(){super(...arguments),this.highlightedLegendItemIx=NaN,this.proxyGroup=null}init(){let g=this;this.recreateProxies(),this.addEvent(K,"afterScroll",function(){this.chart===g.chart&&(g.proxyProvider.updateGroupProxyElementPositions("legend"),g.updateLegendItemProxyVisibility(),g.highlightedLegendItemIx>-1&&this.chart.highlightLegendItem(g.highlightedLegendItemIx))}),this.addEvent(K,"afterPositionItem",function(x){this.chart===g.chart&&this.chart.renderer&&g.updateProxyPositionForItem(x.item)}),this.addEvent(K,"afterRender",function(){this.chart===g.chart&&this.chart.renderer&&g.recreateProxies()&&s(()=>g.proxyProvider.updateGroupProxyElementPositions("legend"),X(M(this.chart.renderer.globalAnimation,!0)).duration)})}updateLegendItemProxyVisibility(){let g,x=this.chart,p=x.legend,l=p.allItems||[],f=p.currentPage||1,b=p.clipHeight||0;l.forEach(z=>{if(z.a11yProxyElement){let T=p.pages&&p.pages.length,k=z.a11yProxyElement.element,Q=!1;if(g=z.legendItem||{},T){let st=g.pageIx||0;Q=(g.y||0)+(g.label?Math.round(g.label.getBBox().height):0)-p.pages[st]>b||st!==f-1}Q?x.styledMode?o(k,"highcharts-a11y-invisible"):k.style.visibility="hidden":(u(k,"highcharts-a11y-invisible"),k.style.visibility="")}})}onChartRender(){C(this.chart)||this.removeProxies()}highlightAdjacentLegendPage(g){let x=this.chart,p=x.legend,l=(p.currentPage||1)+g,f=p.pages||[];if(l>0&&l<=f.length){let b=0;for(let z of p.allItems)((z.legendItem||{}).pageIx||0)+1===l&&x.highlightLegendItem(b)&&(this.highlightedLegendItemIx=b),++b}}updateProxyPositionForItem(g){g.a11yProxyElement&&g.a11yProxyElement.refreshPosition()}recreateProxies(){let g=F.activeElement,x=this.proxyGroup,p=g&&x&&x.contains(g);return this.removeProxies(),!!C(this.chart)&&(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility(),this.updateLegendTitle(),p&&this.chart.highlightLegendItem(this.highlightedLegendItemIx),!0)}removeProxies(){this.proxyProvider.removeGroup("legend")}updateLegendTitle(){let g=this.chart,x=w((g.legend&&g.legend.options.title&&g.legend.options.title.text||"").replace(/
    /g," "),g.renderer.forExport),p=g.langFormat("accessibility.legend.legendLabel"+(x?"":"NoTitle"),{chart:g,legendTitle:x,chartTitle:_(g)});this.proxyProvider.updateGroupAttrs("legend",{"aria-label":p})}addLegendProxyGroup(){let g=this.chart.options.accessibility.landmarkVerbosity==="all"?"region":null;this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:g})}proxyLegendItems(){let g,x=this;((this.chart.legend||{}).allItems||[]).forEach(p=>{(g=p.legendItem||{}).label&&g.label.element&&x.proxyLegendItem(p)})}proxyLegendItem(g){let x=g.legendItem||{};if(!x.label||!x.group)return;let p=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:w(g.name,this.chart.renderer.forExport),item:g}),l={tabindex:-1,"aria-pressed":g.visible,"aria-label":p},f=x.group.div?x.label:x.group;g.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:x.label,visual:f.element},"button",l)}getKeyboardNavigation(){let g=this.keyCodes,x=this,p=this.chart;return new Z(p,{keyCodeMap:[[[g.left,g.right,g.up,g.down],function(l){return x.onKbdArrowKey(this,l)}],[[g.enter,g.space],function(){return x.onKbdClick(this)}],[[g.pageDown,g.pageUp],function(l){let f=l===g.pageDown?1:-1;return x.highlightAdjacentLegendPage(f),this.response.success}]],validate:function(){return x.shouldHaveLegendNavigation()},init:function(){p.highlightLegendItem(0),x.highlightedLegendItemIx=0},terminate:function(){x.highlightedLegendItemIx=-1,p.legend.allItems.forEach(l=>E(!1,l))}})}onKbdArrowKey(g,x){let{keyCodes:{left:p,up:l},highlightedLegendItemIx:f,chart:b}=this,z=b.legend.allItems.length,T=b.options.accessibility.keyboardNavigation.wrapAround,k=x===p||x===l?-1:1;return b.highlightLegendItem(f+k)?this.highlightedLegendItemIx+=k:T&&z>1&&(this.highlightedLegendItemIx=k>0?0:z-1,b.highlightLegendItem(this.highlightedLegendItemIx)),g.response.success}onKbdClick(g){let x=this.chart.legend.allItems[this.highlightedLegendItemIx];return x&&x.a11yProxyElement&&x.a11yProxyElement.click(),g.response.success}shouldHaveLegendNavigation(){if(!C(this.chart))return!1;let g=this.chart,x=(g.options.legend||{}).accessibility||{};return!!(g.legend.display&&x.keyboardNavigation&&x.keyboardNavigation.enabled)}destroy(){this.removeProxies()}}return function(v){function g(p){let l=this.legend.allItems,f=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,b=l[p],z=(b==null?void 0:b.legendItem)||{};if(b){L(f)&&l[f]&&E(!1,l[f]),function(Q,st){let nt=(Q.allItems[st].legendItem||{}).pageIx,dt=Q.currentPage;nt!==void 0&&nt+1!==dt&&Q.scroll(1+nt-dt)}(this.legend,p);let T=z.label,k=b.a11yProxyElement&&b.a11yProxyElement.innerElement;return T&&T.element&&k&&this.setFocusToElement(T,k),E(!0,b),!0}return!1}function x(p){let l=this.chart.options.accessibility,f=p.item;l.enabled&&f&&f.a11yProxyElement&&f.a11yProxyElement.innerElement.setAttribute("aria-pressed",p.visible?"true":"false")}v.compose=function(p,l){let f=p.prototype;f.highlightLegendItem||(f.highlightLegendItem=g,U(l,"afterColorizeItem",x))}}(S||(S={})),S}),R(y,"Stock/Navigator/ChartNavigatorComposition.js",[y["Core/Globals.js"],y["Core/Utilities.js"]],function(B,et){let K,{isTouchDevice:J}=B,{addEvent:q,merge:Z,pick:tt}=et,H=[];function X(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function F(){var E;let _,w,o,u=this.legend,C=this.navigator;if(C){_=u&&u.options,w=C.xAxis,o=C.yAxis;let{scrollbarHeight:S,scrollButtonSize:v}=C;this.inverted?(C.left=C.opposite?this.chartWidth-S-C.height:this.spacing[3]+S,C.top=this.plotTop+v):(C.left=tt(w.left,this.plotLeft+v),C.top=C.navigatorOptions.top||this.chartHeight-C.height-S-(((E=this.scrollbar)==null?void 0:E.options.margin)||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(_&&_.verticalAlign==="bottom"&&_.layout!=="proximate"&&_.enabled&&!_.floating?u.legendHeight+tt(_.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),w&&o&&(this.inverted?w.options.left=o.options.left=C.left:w.options.top=o.options.top=C.top,w.setAxisSize(),o.setAxisSize())}}function U(_){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new K(this),tt(_.redraw,!0)&&this.redraw(_.animation))}function d(){let _=this.options;(_.navigator.enabled||_.scrollbar.enabled)&&(this.scroller=this.navigator=new K(this))}function L(){let _=this.options,w=_.navigator,o=_.rangeSelector;if((w&&w.enabled||o&&o.enabled)&&(!J&&this.zooming.type==="x"||J&&this.zooming.pinchType==="x"))return!1}function M(_){let w=_.navigator;if(w&&_.xAxis[0]){let o=_.xAxis[0].getExtremes();w.render(o.min,o.max)}}function s(_){let w=_.options.navigator||{},o=_.options.scrollbar||{};!this.navigator&&!this.scroller&&(w.enabled||o.enabled)&&(Z(!0,this.options.navigator,w),Z(!0,this.options.scrollbar,o),delete _.options.navigator,delete _.options.scrollbar)}return{compose:function(_,w){if(et.pushUnique(H,_)){let o=_.prototype;K=w,o.callbacks.push(M),q(_,"afterAddSeries",X),q(_,"afterSetChartSize",F),q(_,"afterUpdate",U),q(_,"beforeRender",d),q(_,"beforeShowResetZoom",L),q(_,"update",s)}}}}),R(y,"Core/Axis/NavigatorAxisComposition.js",[y["Core/Globals.js"],y["Core/Utilities.js"]],function(B,et){let{isTouchDevice:K}=B,{addEvent:J,correctFloat:q,defined:Z,isNumber:tt,pick:H}=et;function X(){this.navigatorAxis||(this.navigatorAxis=new U(this))}function F(d){let L,M=this.chart,s=M.options,_=s.navigator,w=this.navigatorAxis,o=M.zooming.pinchType,u=s.rangeSelector,C=M.zooming.type;if(this.isXAxis&&(_!=null&&_.enabled||u!=null&&u.enabled)){if(C==="y"&&d.trigger==="zoom")L=!1;else if((d.trigger==="zoom"&&C==="xy"||K&&o==="xy")&&this.options.range){let E=w.previousZoom;Z(d.min)?w.previousZoom=[this.min,this.max]:E&&(d.min=E[0],d.max=E[1],w.previousZoom=void 0)}}L!==void 0&&d.preventDefault()}class U{static compose(L){L.keepProps.includes("navigatorAxis")||(L.keepProps.push("navigatorAxis"),J(L,"init",X),J(L,"setExtremes",F))}constructor(L){this.axis=L}destroy(){this.axis=void 0}toFixedRange(L,M,s,_){let w=this.axis,o=(w.pointRange||0)/2,u=H(s,w.translate(L,!0,!w.horiz)),C=H(_,w.translate(M,!0,!w.horiz));return Z(s)||(u=q(u+o)),Z(_)||(C=q(C-o)),tt(u)&&tt(C)||(u=C=void 0),{min:u,max:C}}}return U}),R(y,"Stock/Navigator/NavigatorDefaults.js",[y["Core/Color/Color.js"],y["Core/Series/SeriesRegistry.js"]],function(B,et){let{parse:K}=B,{seriesTypes:J}=et;return{height:40,margin:25,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:K("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:J.areaspline===void 0?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["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,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),R(y,"Stock/Navigator/NavigatorSymbols.js",[y["Core/Renderer/SVG/Symbols.js"],y["Core/Utilities.js"]],function(B,et){let{relativeLength:K}=et;return{"navigator-handle":function(J,q,Z,tt,H={}){let X=H.width?H.width/2:Z,F=K(H.borderRadius||0,Math.min(2*X,tt));return[["M",-1.5,(tt=H.height||tt)/2-3.5],["L",-1.5,tt/2+4.5],["M",.5,tt/2-3.5],["L",.5,tt/2+4.5],...B.rect(-X-1,.5,2*X+1,tt,{r:F})]}}}),R(y,"Stock/Utilities/StockUtilities.js",[y["Core/Utilities.js"]],function(B){let{defined:et}=B;return{setFixedRange:function(K){let J=this.xAxis[0];et(J.dataMax)&&et(J.dataMin)&&K?this.fixedRange=Math.min(K,J.dataMax-J.dataMin):this.fixedRange=K}}}),R(y,"Stock/Navigator/NavigatorComposition.js",[y["Core/Defaults.js"],y["Core/Globals.js"],y["Core/Axis/NavigatorAxisComposition.js"],y["Stock/Navigator/NavigatorDefaults.js"],y["Stock/Navigator/NavigatorSymbols.js"],y["Core/Renderer/RendererRegistry.js"],y["Stock/Utilities/StockUtilities.js"],y["Core/Utilities.js"]],function(B,et,K,J,q,Z,tt,H){let{setOptions:X}=B,{composed:F}=et,{getRendererType:U}=Z,{setFixedRange:d}=tt,{addEvent:L,extend:M,pushUnique:s}=H;function _(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(w,o,u){K.compose(o),s(F,"Navigator")&&(w.prototype.setFixedRange=d,M(U().prototype.symbols,q),L(u,"afterUpdate",_),X({navigator:J}))}}}),R(y,"Core/Axis/ScrollbarAxis.js",[y["Core/Globals.js"],y["Core/Utilities.js"]],function(B,et){var K;let{composed:J}=B,{addEvent:q,defined:Z,pick:tt,pushUnique:H}=et;return function(X){let F;function U(s){let _=tt(s.options&&s.options.min,s.min),w=tt(s.options&&s.options.max,s.max);return{axisMin:_,axisMax:w,scrollMin:Z(s.dataMin)?Math.min(_,s.min,s.dataMin,tt(s.threshold,1/0)):_,scrollMax:Z(s.dataMax)?Math.max(w,s.max,s.dataMax,tt(s.threshold,-1/0)):w}}function d(){let s=this.scrollbar,_=s&&!s.options.opposite,w=this.horiz?2:_?3:1;s&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[w]+=s.size+(s.options.margin||0))}function L(){let s=this;s.options&&s.options.scrollbar&&s.options.scrollbar.enabled&&(s.options.scrollbar.vertical=!s.horiz,s.options.startOnTick=s.options.endOnTick=!1,s.scrollbar=new F(s.chart.renderer,s.options.scrollbar,s.chart),q(s.scrollbar,"changed",function(_){let w,o,{axisMin:u,axisMax:C,scrollMin:E,scrollMax:S}=U(s),v=S-E;if(Z(u)&&Z(C))if(s.horiz&&!s.reversed||!s.horiz&&s.reversed?(w=E+v*this.to,o=E+v*this.from):(w=E+v*(1-this.from),o=E+v*(1-this.to)),this.shouldUpdateExtremes(_.DOMType)){let g=_.DOMType!=="mousemove"&&_.DOMType!=="touchmove"&&void 0;s.setExtremes(o,w,!0,g,_)}else this.setRange(this.from,this.to)}))}function M(){let s,_,w,{scrollMin:o,scrollMax:u}=U(this),C=this.scrollbar,E=this.axisTitleMargin+(this.titleOffset||0),S=this.chart.scrollbarsOffsets,v=this.options.margin||0;if(C&&S){if(this.horiz)this.opposite||(S[1]+=E),C.position(this.left,this.top+this.height+2+S[1]-(this.opposite?v:0),this.width,this.height),this.opposite||(S[1]+=v),s=1;else{let g;this.opposite&&(S[0]+=E),g=C.options.opposite?this.left+this.width+2+S[0]-(this.opposite?0:v):this.opposite?0:v,C.position(g,this.top,this.width,this.height),this.opposite&&(S[0]+=v),s=0}if(S[s]+=C.size+(C.options.margin||0),isNaN(o)||isNaN(u)||!Z(this.min)||!Z(this.max)||this.dataMin===this.dataMax)C.setRange(0,1);else if(this.min===this.max){let g=this.pointRange/(this.dataMax+1);_=g*this.min,w=g*(this.max+1),C.setRange(_,w)}else _=(this.min-o)/(u-o),w=(this.max-o)/(u-o),this.horiz&&!this.reversed||!this.horiz&&this.reversed?C.setRange(_,w):C.setRange(1-w,1-_)}}X.compose=function(s,_){H(J,"Axis.Scrollbar")&&(F=_,q(s,"afterGetOffset",d),q(s,"afterInit",L),q(s,"afterRender",M))}}(K||(K={})),K}),R(y,"Stock/Scrollbar/ScrollbarDefaults.js",[],function(){return{height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1}}),R(y,"Stock/Scrollbar/Scrollbar.js",[y["Core/Defaults.js"],y["Core/Globals.js"],y["Core/Axis/ScrollbarAxis.js"],y["Stock/Scrollbar/ScrollbarDefaults.js"],y["Core/Utilities.js"]],function(B,et,K,J,q){let{defaultOptions:Z}=B,{addEvent:tt,correctFloat:H,crisp:X,defined:F,destroyObjectProperties:U,fireEvent:d,merge:L,pick:M,removeEvent:s}=q;class _{static compose(o){K.compose(o,_)}static swapXY(o,u){return u&&o.forEach(C=>{let E,S=C.length;for(let v=0;vthis.calculatedWidth?u.minWidth:0;return{chartX:(o.chartX-this.x-this.xOffset)/(this.barWidth-C),chartY:(o.chartY-this.y-this.yOffset)/(this.barWidth-C)}}destroy(){let o=this,u=o.chart.scroller;o.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(C){o[C]&&o[C].destroy&&(o[C]=o[C].destroy())}),u&&o===u.scrollbar&&(u.scrollbar=null,U(u.scrollbarButtons))}drawScrollbarButton(o){let u=this.renderer,C=this.scrollbarButtons,E=this.options,S=this.size,v=u.g().add(this.group);if(C.push(v),E.buttonsEnabled){let g=u.rect().addClass("highcharts-scrollbar-button").add(v);this.chart.styledMode||g.attr({stroke:E.buttonBorderColor,"stroke-width":E.buttonBorderWidth,fill:E.buttonBackgroundColor}),g.attr(g.crisp({x:-.5,y:-.5,width:S,height:S,r:E.buttonBorderRadius},g.strokeWidth()));let x=u.path(_.swapXY([["M",S/2+(o?-1:1),S/2-3],["L",S/2+(o?-1:1),S/2+3],["L",S/2+(o?2:-2),S/2]],E.vertical)).addClass("highcharts-scrollbar-arrow").add(C[o]);this.chart.styledMode||x.attr({fill:E.buttonArrowColor})}}init(o,u,C){this.scrollbarButtons=[],this.renderer=o,this.userOptions=u,this.options=L(J,Z.scrollbar,u),this.options.margin=M(this.options.margin,10),this.chart=C,this.size=M(this.options.size,this.options.height),u.enabled&&(this.render(),this.addEvents())}mouseDownHandler(o){var E;let u=((E=this.chart.pointer)==null?void 0:E.normalize(o))||o,C=this.cursorToScrollbarPosition(u);this.chartX=C.chartX,this.chartY=C.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(o){var v;let u,C=((v=this.chart.pointer)==null?void 0:v.normalize(o))||o,E=this.options.vertical?"chartY":"chartX",S=this.initPositions||[];this.grabbedCenter&&(!o.touches||o.touches[0][E]!==0)&&(u=this.cursorToScrollbarPosition(C)[E]-this[E],this.hasDragged=!0,this.updatePosition(S[0]+u,S[1]+u),this.hasDragged&&d(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:o.type,DOMEvent:o}))}mouseUpHandler(o){this.hasDragged&&d(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:o.type,DOMEvent:o}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(o,u,C,E){let{buttonsEnabled:S,margin:v=0,vertical:g}=this.options,x=this.rendered?"animate":"attr",p=E,l=0;this.group.show(),this.x=o,this.y=u+this.trackBorderWidth,this.width=C,this.height=E,this.xOffset=p,this.yOffset=l,g?(this.width=this.yOffset=C=l=this.size,this.xOffset=p=0,this.yOffset=l=S?this.size:0,this.barWidth=E-(S?2*C:0),this.x=o+=v):(this.height=E=this.size,this.xOffset=p=S?this.size:0,this.barWidth=C-(S?2*E:0),this.y=this.y+v),this.group[x]({translateX:o,translateY:this.y}),this.track[x]({width:C,height:E}),this.scrollbarButtons[1][x]({translateX:g?0:C-p,translateY:g?E-l:0})}removeEvents(){this._events.forEach(function(o){s.apply(null,o)}),this._events.length=0}render(){let o=this.renderer,u=this.options,C=this.size,E=this.chart.styledMode,S=o.g("scrollbar").attr({zIndex:u.zIndex}).hide().add();this.group=S,this.track=o.rect().addClass("highcharts-scrollbar-track").attr({r:u.trackBorderRadius||0,height:C,width:C}).add(S),E||this.track.attr({fill:u.trackBackgroundColor,stroke:u.trackBorderColor,"stroke-width":u.trackBorderWidth});let v=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-X(0,v),y:-X(0,v)}),this.scrollbarGroup=o.g().add(S),this.scrollbar=o.rect().addClass("highcharts-scrollbar-thumb").attr({height:C-v,width:C-v,r:u.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=o.path(_.swapXY([["M",-3,C/4],["L",-3,2*C/3],["M",0,C/4],["L",0,2*C/3],["M",3,C/4],["L",3,2*C/3]],u.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),E||(this.scrollbar.attr({fill:u.barBackgroundColor,stroke:u.barBorderColor,"stroke-width":u.barBorderWidth}),this.scrollbarRifles.attr({stroke:u.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-X(0,this.scrollbarStrokeWidth),-X(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(o,u){let C,E,S=this.options,v=S.vertical,g=S.minWidth,x=this.barWidth,p=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!F(x))return;let l=x*Math.min(u,1);C=Math.ceil(x*(o=Math.max(o,0))),this.calculatedWidth=E=H(l-C),E=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(o){return M(this.options.liveRedraw,et.svg&&!et.isTouchDevice&&!this.chart.boosted)||o==="mouseup"||o==="touchend"||!F(o)}trackClick(o){var v;let u=((v=this.chart.pointer)==null?void 0:v.normalize(o))||o,C=this.to-this.from,E=this.y+this.scrollbarTop,S=this.x+this.scrollbarLeft;this.options.vertical&&u.chartY>E||!this.options.vertical&&u.chartX>S?this.updatePosition(this.from+C,this.to+C):this.updatePosition(this.from-C,this.to-C),d(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:o})}update(o){this.destroy(),this.init(this.chart.renderer,L(!0,this.options,o),this.chart)}updatePosition(o,u){u>1&&(o=H(1-H(u-o)),u=1),o<0&&(u=H(u-o),o=0),this.from=o,this.to=u}}return _.defaultOptions=J,Z.scrollbar=L(!0,_.defaultOptions,Z.scrollbar),_}),R(y,"Stock/Navigator/Navigator.js",[y["Core/Axis/Axis.js"],y["Stock/Navigator/ChartNavigatorComposition.js"],y["Core/Defaults.js"],y["Core/Globals.js"],y["Core/Axis/NavigatorAxisComposition.js"],y["Stock/Navigator/NavigatorComposition.js"],y["Stock/Scrollbar/Scrollbar.js"],y["Core/Renderer/SVG/SVGRenderer.js"],y["Core/Utilities.js"]],function(B,et,K,J,q,Z,tt,H,X){let{defaultOptions:F}=K,{isTouchDevice:U}=J,{prototype:{symbols:d}}=H,{addEvent:L,clamp:M,correctFloat:s,defined:_,destroyObjectProperties:w,erase:o,extend:u,find:C,fireEvent:E,isArray:S,isNumber:v,merge:g,pick:x,removeEvent:p,splat:l}=X;function f(z,...T){let k=[].filter.call(T,v);if(k.length)return Math[z].apply(0,k)}class b{static compose(T,k,Q){et.compose(T,b),Z.compose(T,k,Q)}constructor(T){this.isDirty=!1,this.scrollbarHeight=0,this.init(T)}drawHandle(T,k,Q,st){let nt=this.navigatorOptions.handles.height;this.handles[k][st](Q?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(T,10)+.5-nt)}:{translateX:Math.round(this.left+parseInt(T,10)),translateY:Math.round(this.top+this.height/2-nt/2-1)})}drawOutline(T,k,Q,st){let nt=this.navigatorOptions.maskInside,dt=this.outline.strokeWidth(),mt=dt/2,Et=dt%2/2,Mt=this.scrollButtonSize,I=this.size,Y=this.top,rt=this.height,ot=Y-mt,D=Y+rt,P=this.left,W,lt;Q?(W=Y+k+Et,k=Y+T+Et,lt=[["M",P+rt,Y-Mt-Et],["L",P+rt,W],["L",P,W],["M",P,k],["L",P+rt,k],["L",P+rt,Y+I+Mt]],nt&<.push(["M",P+rt,W-mt],["L",P+rt,k+mt])):(P-=Mt,T+=P+Mt-Et,k+=P+Mt-Et,lt=[["M",P,ot],["L",T,ot],["L",T,D],["M",k,D],["L",k,ot],["L",P+I+2*Mt,ot]],nt&<.push(["M",T-mt,ot],["L",k+mt,ot])),this.outline[st]({d:lt})}drawMasks(T,k,Q,st){let nt,dt,mt,Et,Mt=this.left,I=this.top,Y=this.height;Q?(mt=[Mt,Mt,Mt],Et=[I,I+T,I+k],dt=[Y,Y,Y],nt=[T,k-T,this.size-k]):(mt=[Mt,Mt+T,Mt+k],Et=[I,I,I],dt=[T,k-T,this.size-k],nt=[Y,Y,Y]),this.shades.forEach((rt,ot)=>{rt[st]({x:mt[ot],y:Et[ot],width:dt[ot],height:nt[ot]})})}renderElements(){var Mt,I;let T=this,k=T.navigatorOptions,Q=k.maskInside,st=T.chart,nt=st.inverted,dt=st.renderer,mt={cursor:nt?"ns-resize":"ew-resize"},Et=(Mt=T.navigatorGroup)!=null?Mt:T.navigatorGroup=dt.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!Q,Q,!Q].forEach((Y,rt)=>{var D;let ot=(D=T.shades[rt])!=null?D:T.shades[rt]=dt.rect().addClass("highcharts-navigator-mask"+(rt===1?"-inside":"-outside")).add(Et);st.styledMode||(ot.attr({fill:Y?k.maskFill:"rgba(0,0,0,0)"}),rt===1&&ot.css(mt))}),T.outline||(T.outline=dt.path().addClass("highcharts-navigator-outline").add(Et)),st.styledMode||T.outline.attr({"stroke-width":k.outlineWidth,stroke:k.outlineColor}),(I=k.handles)==null?void 0:I.enabled){let Y=k.handles,{height:rt,width:ot}=Y;[0,1].forEach(D=>{var W;let P=Y.symbols[D];if(T.handles[D]&&T.handles[D].symbolUrl===P){if(!T.handles[D].isImg&&T.handles[D].symbolName!==P){let lt=d[P].call(d,-ot/2-1,0,ot,rt);T.handles[D].attr({d:lt}),T.handles[D].symbolName=P}}else(W=T.handles[D])==null||W.destroy(),T.handles[D]=dt.symbol(P,-ot/2-1,0,ot,rt,Y),T.handles[D].attr({zIndex:7-D}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][D]).add(Et),T.addMouseEvents();st.inverted&&T.handles[D].attr({rotation:90,rotationOriginX:Math.floor(-ot/2),rotationOriginY:(rt+ot)/2}),st.styledMode||T.handles[D].attr({fill:Y.backgroundColor,stroke:Y.borderColor,"stroke-width":Y.lineWidth,width:Y.width,height:Y.height,x:-ot/2-1,y:0}).css(mt)})}}update(T,k=!1){var nt,dt;let Q=this.chart,st=Q.options.chart.inverted!==((nt=Q.scrollbar)==null?void 0:nt.options.vertical);if(g(!0,Q.options.navigator,T),this.navigatorOptions=Q.options.navigator||{},this.setOpposite(),_(T.enabled)||st)return this.destroy(),this.navigatorEnabled=T.enabled||this.navigatorEnabled,this.init(Q);if(this.navigatorEnabled&&(this.isDirty=!0,T.adaptToUpdatedData===!1&&this.baseSeries.forEach(mt=>{p(mt,"updatedData",this.updatedDataHandler)},this),T.adaptToUpdatedData&&this.baseSeries.forEach(mt=>{mt.eventsToUnbind.push(L(mt,"updatedData",this.updatedDataHandler))},this),(T.series||T.baseSeries)&&this.setBaseSeries(void 0,!1),T.height||T.xAxis||T.yAxis)){this.height=(dt=T.height)!=null?dt:this.height;let mt=this.getXAxisOffsets();this.xAxis.update(co(Fr({},T.xAxis),{offsets:mt,[Q.inverted?"width":"height"]:this.height,[Q.inverted?"height":"width"]:void 0}),!1),this.yAxis.update(co(Fr({},T.yAxis),{[Q.inverted?"width":"height"]:this.height}),!1)}k&&Q.redraw()}render(T,k,Q,st){let nt=this.chart,dt=this.xAxis,mt=dt.pointRange||0,Et=dt.navigatorAxis.fake?nt.xAxis[0]:dt,Mt=this.navigatorEnabled,I=this.rendered,Y=nt.inverted,rt=nt.xAxis[0].minRange,ot=nt.xAxis[0].options.maxRange,D=this.scrollButtonSize,P,W,lt,it=this.scrollbarHeight,vt,pt;if(this.hasDragged&&!_(Q))return;if(this.isDirty&&this.renderElements(),T=s(T-mt/2),k=s(k+mt/2),!v(T)||!v(k)){if(!I)return;Q=0,st=x(dt.width,Et.width)}this.left=x(dt.left,nt.plotLeft+D+(Y?nt.plotWidth:0));let xt=this.size=vt=x(dt.len,(Y?nt.plotHeight:nt.plotWidth)-2*D);P=Y?it:vt+2*D,Q=x(Q,dt.toPixels(T,!0)),st=x(st,dt.toPixels(k,!0)),v(Q)&&Math.abs(Q)!==1/0||(Q=0,st=P);let Ct=dt.toValue(Q,!0),Tt=dt.toValue(st,!0),Nt=Math.abs(s(Tt-Ct));Ntot&&(this.grabbedLeft?Q=dt.toPixels(Tt-ot-mt,!0):this.grabbedRight&&(st=dt.toPixels(Ct+ot+mt,!0))),this.zoomedMax=M(Math.max(Q,st),0,xt),this.zoomedMin=M(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(Q,st),0,xt),this.range=this.zoomedMax-this.zoomedMin,xt=Math.round(this.zoomedMax);let gt=Math.round(this.zoomedMin);Mt&&(this.navigatorGroup.attr({visibility:"inherit"}),pt=I&&!this.hasDragged?"animate":"attr",this.drawMasks(gt,xt,Y,pt),this.drawOutline(gt,xt,Y,pt),this.navigatorOptions.handles.enabled&&(this.drawHandle(gt,0,Y,pt),this.drawHandle(xt,1,Y,pt))),this.scrollbar&&(Y?(lt=this.top-D,W=this.left-it+(Mt||!Et.opposite?0:(Et.titleOffset||0)+Et.axisTitleMargin),it=vt+2*D):(lt=this.top+(Mt?this.height:-it),W=this.left-D),this.scrollbar.position(W,lt,P,it),this.scrollbar.setRange(this.zoomedMin/(vt||1),this.zoomedMax/(vt||1))),this.rendered=!0,this.isDirty=!1,E(this,"afterRender")}addMouseEvents(){let T=this,k=T.chart,Q=k.container,st=[],nt,dt;T.mouseMoveHandler=nt=function(mt){T.onMouseMove(mt)},T.mouseUpHandler=dt=function(mt){T.onMouseUp(mt)},(st=T.getPartsEvents("mousedown")).push(L(k.renderTo,"mousemove",nt),L(Q.ownerDocument,"mouseup",dt),L(k.renderTo,"touchmove",nt),L(Q.ownerDocument,"touchend",dt)),st.concat(T.getPartsEvents("touchstart")),T.eventsToUnbind=st,T.series&&T.series[0]&&st.push(L(T.series[0].xAxis,"foundExtremes",function(){k.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(T){let k=this,Q=[];return["shades","handles"].forEach(function(st){k[st].forEach(function(nt,dt){Q.push(L(nt.element,T,function(mt){k[st+"Mousedown"](mt,dt)}))})}),Q}shadesMousedown(T,k){var D;T=((D=this.chart.pointer)==null?void 0:D.normalize(T))||T;let Q=this.chart,st=this.xAxis,nt=this.zoomedMin,dt=this.size,mt=this.range,Et=this.left,Mt=T.chartX,I,Y,rt,ot;Q.inverted&&(Mt=T.chartY,Et=this.top),k===1?(this.grabbedCenter=Mt,this.fixedWidth=mt,this.dragOffset=Mt-nt):(ot=Mt-Et-mt/2,k===0?ot=Math.max(0,ot):k===2&&ot+mt>=dt&&(ot=dt-mt,this.reversedExtremes?(ot-=mt,Y=this.getUnionExtremes().dataMin):I=this.getUnionExtremes().dataMax),ot!==nt&&(this.fixedWidth=mt,_((rt=st.navigatorAxis.toFixedRange(ot,ot+mt,Y,I)).min)&&E(this,"setRange",{min:Math.min(rt.min,rt.max),max:Math.max(rt.min,rt.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(T,k){var dt;T=((dt=this.chart.pointer)==null?void 0:dt.normalize(T))||T;let Q=this.chart,st=Q.xAxis[0],nt=this.reversedExtremes;k===0?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=nt?st.min:st.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=nt?st.max:st.min),Q.setFixedRange(void 0)}onMouseMove(T){var I;let k=this,Q=k.chart,st=k.navigatorSize,nt=k.range,dt=k.dragOffset,mt=Q.inverted,Et=k.left,Mt;(!T.touches||T.touches[0].pageX!==0)&&(Mt=(T=((I=Q.pointer)==null?void 0:I.normalize(T))||T).chartX,mt&&(Et=k.top,Mt=T.chartY),k.grabbedLeft?(k.hasDragged=!0,k.render(0,0,Mt-Et,k.otherHandlePos)):k.grabbedRight?(k.hasDragged=!0,k.render(0,0,k.otherHandlePos,Mt-Et)):k.grabbedCenter&&(k.hasDragged=!0,Mtst+dt-nt&&(Mt=st+dt-nt),k.render(0,0,Mt-dt,Mt-dt+nt)),k.hasDragged&&k.scrollbar&&x(k.scrollbar.options.liveRedraw,!U&&!this.chart.boosted)&&(T.DOMType=T.type,setTimeout(function(){k.onMouseUp(T)},0)))}onMouseUp(T){let k,Q,st,nt,dt,mt,Et=this.chart,Mt=this.xAxis,I=this.scrollbar,Y=T.DOMEvent||T,rt=Et.inverted,ot=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!I||!I.hasDragged)||T.trigger==="scrollbar")&&(st=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?nt=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(dt=this.fixedExtreme),this.zoomedMax===this.size&&(dt=this.reversedExtremes?st.dataMin:st.dataMax),this.zoomedMin===0&&(nt=this.reversedExtremes?st.dataMax:st.dataMin),_((mt=Mt.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,nt,dt)).min)&&E(this,"setRange",{min:Math.min(mt.min,mt.max),max:Math.max(mt.min,mt.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:Y}})),T.DOMType!=="mousemove"&&T.DOMType!=="touchmove"&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&v(this.zoomedMin)&&v(this.zoomedMax)&&(Q=Math.round(this.zoomedMin),k=Math.round(this.zoomedMax),this.shades&&this.drawMasks(Q,k,rt,ot),this.outline&&this.drawOutline(Q,k,rt,ot),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(Q,0,rt,ot),this.drawHandle(k,1,rt,ot)))}removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(T){T()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let T=this.baseSeries||[];this.navigatorEnabled&&T[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&T.forEach(function(k){p(k,"updatedData",this.updatedDataHandler)},this),T[0].xAxis&&p(T[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}getXAxisOffsets(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]}init(T){var P;let k=T.options,Q=k.navigator||{},st=Q.enabled,nt=k.scrollbar||{},dt=nt.enabled,mt=st&&Q.height||0,Et=dt&&nt.height||0,Mt=nt.buttonsEnabled&&Et||0;this.handles=[],this.shades=[],this.chart=T,this.setBaseSeries(),this.height=mt,this.scrollbarHeight=Et,this.scrollButtonSize=Mt,this.scrollbarEnabled=dt,this.navigatorEnabled=st,this.navigatorOptions=Q,this.scrollbarOptions=nt,this.setOpposite();let I=this,Y=I.baseSeries,rt=T.xAxis.length,ot=T.yAxis.length,D=Y&&Y[0]&&Y[0].xAxis||T.xAxis[0]||{options:{}};if(T.isDirtyBox=!0,I.navigatorEnabled){let W=this.getXAxisOffsets();I.xAxis=new B(T,g({breaks:D.options.breaks,ordinal:D.options.ordinal,overscroll:D.options.overscroll},Q.xAxis,{type:"datetime",yAxis:(P=Q.yAxis)==null?void 0:P.id,index:rt,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:D.options.ordinal?0:D.options.minPadding,maxPadding:D.options.ordinal?0:D.options.maxPadding,zoomEnabled:!1},T.inverted?{offsets:W,width:mt}:{offsets:W,height:mt}),"xAxis"),I.yAxis=new B(T,g(Q.yAxis,{alignTicks:!1,offset:0,index:ot,isInternal:!0,reversed:x(Q.yAxis&&Q.yAxis.reversed,T.yAxis[0]&&T.yAxis[0].reversed,!1),zoomEnabled:!1},T.inverted?{width:mt}:{height:mt}),"yAxis"),Y||Q.series.data?I.updateNavigatorSeries(!1):T.series.length===0&&(I.unbindRedraw=L(T,"beforeRedraw",function(){T.series.length>0&&!I.series&&(I.setBaseSeries(),I.unbindRedraw())})),I.reversedExtremes=T.inverted&&!I.xAxis.reversed||!T.inverted&&I.xAxis.reversed,I.renderElements(),I.addMouseEvents()}else I.xAxis={chart:T,navigatorAxis:{fake:!0},translate:function(W,lt){let it=T.xAxis[0],vt=it.getExtremes(),pt=it.len-2*Mt,xt=f("min",it.options.min,vt.dataMin),Ct=f("max",it.options.max,vt.dataMax)-xt;return lt?W*Ct/pt+xt:pt*(W-xt)/Ct},toPixels:function(W){return this.translate(W)},toValue:function(W){return this.translate(W,!0)}},I.xAxis.navigatorAxis.axis=I.xAxis,I.xAxis.navigatorAxis.toFixedRange=q.prototype.toFixedRange.bind(I.xAxis.navigatorAxis);if(T.options.scrollbar.enabled){let W=g(T.options.scrollbar,{vertical:T.inverted});!v(W.margin)&&I.navigatorEnabled&&(W.margin=T.inverted?-3:3),T.scrollbar=I.scrollbar=new tt(T.renderer,W,T),L(I.scrollbar,"changed",function(lt){let it=I.size,vt=it*this.to,pt=it*this.from;I.hasDragged=I.scrollbar.hasDragged,I.render(0,0,pt,vt),this.shouldUpdateExtremes(lt.DOMType)&&setTimeout(function(){I.onMouseUp(lt)})})}I.addBaseSeriesEvents(),I.addChartEvents()}setOpposite(){let T=this.navigatorOptions,k=this.navigatorEnabled,Q=this.chart;this.opposite=x(T.opposite,!!(!k&&Q.inverted))}getUnionExtremes(T){let k,Q=this.chart.xAxis[0],st=this.xAxis,nt=st.options,dt=Q.options;return T&&Q.dataMin===null||(k={dataMin:x(nt&&nt.min,f("min",dt.min,Q.dataMin,st.dataMin,st.min)),dataMax:x(nt&&nt.max,f("max",dt.max,Q.dataMax,st.dataMax,st.max))}),k}setBaseSeries(T,k){let Q=this.chart,st=this.baseSeries=[];T=T||Q.options&&Q.options.navigator.baseSeries||(Q.series.length?C(Q.series,nt=>!nt.options.isInternal).index:0),(Q.series||[]).forEach((nt,dt)=>{!nt.options.isInternal&&(nt.options.showInNavigator||(dt===T||nt.options.id===T)&&nt.options.showInNavigator!==!1)&&st.push(nt)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,k)}updateNavigatorSeries(T,k){var rt,ot;let Q=this,st=Q.chart,nt=Q.baseSeries,dt={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:(rt=this.navigatorOptions.xAxis)==null?void 0:rt.id,yAxis:(ot=this.navigatorOptions.yAxis)==null?void 0:ot.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},mt=Q.series=(Q.series||[]).filter(D=>{let P=D.baseSeries;return!(0>nt.indexOf(P))||(P&&(p(P,"updatedData",Q.updatedDataHandler),delete P.navigatorSeries),D.chart&&D.destroy(),!1)}),Et,Mt,I=Q.navigatorOptions.series,Y;nt&&nt.length&&nt.forEach(D=>{let P=D.navigatorSeries,W=u({color:D.color,visible:D.visible},S(I)?F.navigator.series:I);if(P&&Q.navigatorOptions.adaptToUpdatedData===!1)return;dt.name="Navigator "+nt.length,Y=(Et=D.options||{}).navigatorOptions||{},W.dataLabels=l(W.dataLabels),(Mt=g(Et,dt,W,Y)).pointRange=x(W.pointRange,Y.pointRange,F.plotOptions[Mt.type||"line"].pointRange);let lt=Y.data||W.data;Q.hasNavigatorData=Q.hasNavigatorData||!!lt,Mt.data=lt||Et.data&&Et.data.slice(0),P&&P.options?P.update(Mt,k):(D.navigatorSeries=st.initSeries(Mt),st.setSortedData(),D.navigatorSeries.baseSeries=D,mt.push(D.navigatorSeries))}),(I.data&&!(nt&&nt.length)||S(I))&&(Q.hasNavigatorData=!1,(I=l(I)).forEach((D,P)=>{dt.name="Navigator "+(mt.length+1),(Mt=g(F.navigator.series,{color:st.series[P]&&!st.series[P].options.isInternal&&st.series[P].color||st.options.colors[P]||st.options.colors[0]},dt,D)).data=D.data,Mt.data&&(Q.hasNavigatorData=!0,mt.push(st.initSeries(Mt)))})),T&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let T=this,k=T.baseSeries||[];k[0]&&k[0].xAxis&&k[0].eventsToUnbind.push(L(k[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),k.forEach(Q=>{Q.eventsToUnbind.push(L(Q,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),Q.eventsToUnbind.push(L(Q,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),this.navigatorOptions.adaptToUpdatedData!==!1&&Q.xAxis&&Q.eventsToUnbind.push(L(Q,"updatedData",this.updatedDataHandler)),Q.eventsToUnbind.push(L(Q,"remove",function(){k&&o(k,Q),this.navigatorSeries&&(o(T.series,this.navigatorSeries),_(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(T){return this.baseSeries.reduce(function(k,Q){return Math.min(k,Q.xData&&Q.xData.length?Q.xData[0]:k)},T)}modifyNavigatorAxisExtremes(){let T=this.xAxis;if(T.getExtremes!==void 0){let k=this.getUnionExtremes(!0);k&&(k.dataMin!==T.min||k.dataMax!==T.max)&&(T.min=k.dataMin,T.max=k.dataMax)}}modifyBaseAxisExtremes(){var P;let T,k,Q=this.chart.navigator,st=this.getExtremes(),nt=st.min,dt=st.max,mt=st.dataMin,Et=st.dataMax,Mt=dt-nt,I=Q.stickToMin,Y=Q.stickToMax,rt=x((P=this.ordinal)==null?void 0:P.convertOverscroll(this.options.overscroll),0),ot=Q.series&&Q.series[0],D=!!this.setExtremes;!(this.eventArgs&&this.eventArgs.trigger==="rangeSelectorButton")&&(I&&(T=(k=mt)+Mt),Y&&(T=Et+rt,I||(k=Math.max(mt,T-Mt,Q.getBaseSeriesMin(ot&&ot.xData?ot.xData[0]:-Number.MAX_VALUE)))),D&&(I||Y)&&v(k)&&(this.min=this.userMin=k,this.max=this.userMax=T)),Q.stickToMin=Q.stickToMax=null}updatedDataHandler(){let T=this.chart.navigator,k=this.navigatorSeries,Q=T.reversedExtremes?Math.round(T.zoomedMin)===0:Math.round(T.zoomedMax)>=Math.round(T.size);T.stickToMax=x(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,Q),T.stickToMin=T.shouldStickToMin(this,T),k&&!T.hasNavigatorData&&(k.options.pointStart=this.xData[0],k.setData(this.options.data,!1,null,!1))}shouldStickToMin(T,k){let Q=k.getBaseSeriesMin(T.xData[0]),st=T.xAxis,nt=st.max,dt=st.min,mt=st.options.range;return!!(v(nt)&&v(dt))&&(mt&&nt-Q>0?nt-Q{T.destroy&&T.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(T=>{this[T]&&this[T].destroy&&this[T].destroy(),this[T]=null}),[this.handles].forEach(T=>{w(T)}),this.navigatorEnabled=!1}}return b}),R(y,"Accessibility/Components/NavigatorComponent.js",[y["Accessibility/AccessibilityComponent.js"],y["Accessibility/Utils/Announcer.js"],y["Accessibility/KeyboardNavigationHandler.js"],y["Stock/Navigator/Navigator.js"],y["Core/Animation/AnimationUtilities.js"],y["Core/Templating.js"],y["Core/Utilities.js"],y["Accessibility/Utils/HTMLUtilities.js"],y["Accessibility/Utils/ChartUtilities.js"]],function(B,et,K,J,q,Z,tt,H,X){let{animObject:F}=q,{format:U}=Z,{clamp:d,pick:L,syncTimeout:M}=tt,{getFakeMouseEvent:s}=H,{getAxisRangeDescription:_,fireEventOnWrappedOrUnwrappedElement:w}=X;return class extends B{init(){let o=this.chart,u=this;this.announcer=new et(o,"polite"),this.addEvent(J,"afterRender",function(){this.chart===u.chart&&this.chart.renderer&&M(()=>{u.proxyProvider.updateGroupProxyElementPositions("navigator"),u.updateHandleValues()},F(L(this.chart.renderer.globalAnimation,!0)).duration)})}onChartUpdate(){var E,S,v;let o=this.chart,u=o.options,C=u.navigator;if(C.enabled&&((E=C.accessibility)!=null&&E.enabled)){let g=u.accessibility.landmarkVerbosity,x=(S=u.lang.accessibility)==null?void 0:S.navigator.groupLabel;this.proxyProvider.removeGroup("navigator"),this.proxyProvider.addGroup("navigator","div",{role:g==="all"?"region":"group","aria-label":U(x,{chart:o},o)});let p=(v=u.lang.accessibility)==null?void 0:v.navigator.handleLabel;[0,1].forEach(l=>{let f=this.getHandleByIx(l);if(f){let b=this.proxyProvider.addProxyElement("navigator",{click:f},"input",{type:"range","aria-label":U(p,{handleIx:l,chart:o},o)});this[l?"maxHandleProxy":"minHandleProxy"]=b.innerElement,b.innerElement.style.pointerEvents="none",b.innerElement.oninput=()=>this.updateNavigator()}}),this.updateHandleValues()}else this.proxyProvider.removeGroup("navigator")}getNavigatorHandleNavigation(o){let u=this,C=this.chart,E=o?this.maxHandleProxy:this.minHandleProxy,S=this.keyCodes;return new K(C,{keyCodeMap:[[[S.left,S.right,S.up,S.down],function(v){if(E){let g=v===S.left||v===S.up?-1:1;E.value=""+d(parseFloat(E.value)+g,0,100),u.updateNavigator(()=>{let x=u.getHandleByIx(o);x&&C.setFocusToElement(x,E)})}return this.response.success}]],init:()=>{C.setFocusToElement(this.getHandleByIx(o),E)},validate:()=>{var v;return!!(this.getHandleByIx(o)&&E&&((v=C.options.navigator.accessibility)!=null&&v.enabled))}})}getKeyboardNavigation(){return[this.getNavigatorHandleNavigation(0),this.getNavigatorHandleNavigation(1)]}destroy(){this.updateNavigatorThrottleTimer&&clearTimeout(this.updateNavigatorThrottleTimer),this.proxyProvider.removeGroup("navigator"),this.announcer&&this.announcer.destroy()}updateHandleValues(){let o=this.chart.navigator;if(o&&this.minHandleProxy&&this.maxHandleProxy){let u=o.size;this.minHandleProxy.value=""+Math.round(o.zoomedMin/u*100),this.maxHandleProxy.value=""+Math.round(o.zoomedMax/u*100)}}getHandleByIx(o){let u=this.chart.navigator;return u&&u.handles&&u.handles[o]}updateNavigator(o){this.updateNavigatorThrottleTimer&&clearTimeout(this.updateNavigatorThrottleTimer),this.updateNavigatorThrottleTimer=setTimeout((u=>{var v;let C=this.chart,{navigator:E,pointer:S}=C;if(E&&S&&this.minHandleProxy&&this.maxHandleProxy){let g=S.getChartPosition(),x=parseFloat(this.minHandleProxy.value)/100*E.size,p=parseFloat(this.maxHandleProxy.value)/100*E.size;[[0,"mousedown",E.zoomedMin],[0,"mousemove",x],[0,"mouseup",x],[1,"mousedown",E.zoomedMax],[1,"mousemove",p],[1,"mouseup",p]].forEach(([b,z,T])=>{var Q;let k=(Q=this.getHandleByIx(b))==null?void 0:Q.element;k&&w(k,s(z,{x:g.left+E.left+T,y:g.top+E.top},k))}),u&&u();let l=(v=C.options.lang.accessibility)==null?void 0:v.navigator.changeAnnouncement,f=_(C.xAxis[0]);this.announcer.announce(U(l,{axisRangeDescription:f,chart:C},C))}}).bind(this,o),20)}}}),R(y,"Accessibility/Components/SeriesComponent/SeriesDescriber.js",[y["Accessibility/Components/AnnotationsA11y.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Core/Templating.js"],y["Accessibility/Utils/HTMLUtilities.js"],y["Core/Utilities.js"]],function(B,et,K,J,q){let{getPointAnnotationTexts:Z}=B,{getAxisDescription:tt,getSeriesFirstPointElement:H,getSeriesA11yElement:X,unhideChartElementFromAT:F}=et,{format:U,numberFormat:d}=K,{reverseChildNodes:L,stripHTMLTagsFromString:M}=J,{find:s,isNumber:_,isString:w,pick:o,defined:u}=q;function C(x){let p=x.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(p!==!1&&x.points&&x.points.length>=+p)}function E(x,p){let l=x.series,f=l.chart,b=f.options.accessibility.point||{},z=l.options.accessibility&&l.options.accessibility.point||{},T=l.tooltipOptions||{},k=f.options.lang;return _(p)?d(p,z.valueDecimals||b.valueDecimals||T.valueDecimals||-1,k.decimalPoint,k.accessibility.thousandsSep||k.thousandsSep):p}function S(x,p){let l=x[p];return x.chart.langFormat("accessibility.series."+p+"Description",{name:tt(l),series:x})}function v(x){let p=x.series,l=p.chart.series.length>1||p.options.name,f=function(k){let Q=k.series,st=Q.chart,nt=Q.options.accessibility,dt=nt&&nt.point&&nt.point.valueDescriptionFormat||st.options.accessibility.point.valueDescriptionFormat,mt=o(Q.xAxis&&Q.xAxis.options.accessibility&&Q.xAxis.options.accessibility.enabled,!st.angular&&Q.type!=="flowmap"),Et=mt?function(Mt){let I=function(D){let P=D.series,W=P.chart,lt=P.options.accessibility&&P.options.accessibility.point||{},it=W.options.accessibility.point||{},vt=P.xAxis&&P.xAxis.dateTime;if(vt){let pt=vt.getXDateFormat(D.x||0,W.options.tooltip.dateTimeLabelFormats),xt=lt.dateFormatter&<.dateFormatter(D)||it.dateFormatter&&it.dateFormatter(D)||lt.dateFormat||it.dateFormat||pt;return W.time.dateFormat(xt,D.x||0,void 0)}}(Mt),Y=(Mt.series.xAxis||{}).categories&&u(Mt.category)&&(""+Mt.category).replace("
    "," "),rt=u(Mt.id)&&0>(""+Mt.id).indexOf("highcharts-"),ot="x, "+Mt.x;return Mt.name||I||Y||(rt?Mt.id:ot)}(k):"";return U(dt,{point:k,index:u(k.index)?k.index+1:"",xDescription:Et,value:function(Mt){let I=Mt.series,Y=I.chart.options.accessibility.point||{},rt=I.chart.options.accessibility&&I.chart.options.accessibility.point||{},ot=I.tooltipOptions||{},D=rt.valuePrefix||Y.valuePrefix||ot.valuePrefix||"",P=rt.valueSuffix||Y.valueSuffix||ot.valueSuffix||"",W=Mt.value!==void 0?"value":"y",lt=E(Mt,Mt[W]);return Mt.isNull?I.chart.langFormat("accessibility.series.nullPointValue",{point:Mt}):I.pointArrayMap?function(it,vt,pt){let xt=vt||"",Ct=pt||"",Tt=function(Nt){let gt=E(it,o(it[Nt],it.options[Nt]));return gt!==void 0?Nt+": "+xt+gt+Ct:gt};return it.series.pointArrayMap.reduce(function(Nt,gt){let wt=Tt(gt);return wt?Nt+(Nt.length?", ":"")+wt:Nt},"")}(Mt,D,P):D+lt+P}(k),separator:mt?", ":""},st)}(x),b=x.options&&x.options.accessibility&&x.options.accessibility.description,z=l?" "+p.name+".":"",T=function(k){let Q=k.series.chart,st=Z(k);return st.length?Q.langFormat("accessibility.series.pointAnnotationsDescription",{point:k,annotations:st}):""}(x);return x.accessibility=x.accessibility||{},x.accessibility.valueDescription=f,f+(b?" "+b:"")+z+(T?" "+T:"")}function g(x){let p=x.chart,l=p.types||[],f=function(mt){let Et=(mt.options.accessibility||{}).description;return Et&&mt.chart.langFormat("accessibility.series.description",{description:Et,series:mt})||""}(x),b=function(mt){return p[mt]&&p[mt].length>1&&x[mt]},z=x.index+1,T=S(x,"xAxis"),k=S(x,"yAxis"),Q={seriesNumber:z,series:x,chart:p},st=l.length>1?"Combination":"",nt=p.langFormat("accessibility.series.summary."+x.type+st,Q)||p.langFormat("accessibility.series.summary.default"+st,Q),dt=(b("yAxis")?" "+k+".":"")+(b("xAxis")?" "+T+".":"");return U(o(x.options.accessibility&&x.options.accessibility.descriptionFormat,p.options.accessibility.series.descriptionFormat,""),{seriesDescription:nt,authorDescription:f?" "+f:"",axisDescription:dt,series:x,chart:p,seriesNumber:z},void 0)}return{defaultPointDescriptionFormatter:v,defaultSeriesDescriptionFormatter:g,describeSeries:function(x){let p=x.chart,l=H(x),f=X(x),b=p.is3d&&p.is3d();f&&(f.lastChild!==l||b||L(f),function(z){let T=function(st){let nt=st.options.accessibility||{};return!C(st)&&!nt.exposeAsGroupOnly}(z),k=function(st){let nt=st.chart.options.accessibility.keyboardNavigation.seriesNavigation;return!!(st.points&&(st.points.length<+nt.pointNavigationEnabledThreshold||nt.pointNavigationEnabledThreshold===!1))}(z),Q=z.chart.options.accessibility.point.describeNull;(T||k)&&z.points.forEach(st=>{let nt=st.graphic&&st.graphic.element||function(mt){let Et=mt.series,Mt=Et&&Et.chart,I=Et&&Et.is("sunburst"),Y=mt.isNull,rt=Mt&&Mt.options.accessibility.point.describeNull;return Y&&!I&&rt}(st)&&function(mt){let Et=mt.series,Mt=function(D){let P=D.index;return D.series&&D.series.data&&u(P)&&s(D.series.data,function(W){return!!(W&&W.index!==void 0&&W.index>P&&W.graphic&&W.graphic.element)})||null}(mt),I=Mt&&Mt.graphic,Y=I?I.parentGroup:Et.graph||Et.group,rt=Mt?{x:o(mt.plotX,Mt.plotX,0),y:o(mt.plotY,Mt.plotY,0)}:{x:o(mt.plotX,0),y:o(mt.plotY,0)},ot=function(D,P){let W=D.series.chart.renderer.rect(P.x,P.y,1,1);return W.attr({class:"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}),W}(mt,rt);if(Y&&Y.element)return mt.graphic=ot,mt.hasMockGraphic=!0,ot.add(Y),Y.element.insertBefore(ot.element,I?I.element:null),ot.element}(st),dt=st.options&&st.options.accessibility&&st.options.accessibility.enabled===!1;if(nt){if(st.isNull&&!Q){nt.setAttribute("aria-hidden",!0);return}nt.setAttribute("tabindex","-1"),z.chart.styledMode||(nt.style.outline="none"),T&&!dt?function(mt,Et){var ot,D,P;let Mt=mt.series,I=((ot=Mt.options.accessibility)==null?void 0:ot.point)||{},Y=Mt.chart.options.accessibility.point||{},rt=M(w(I.descriptionFormat)&&U(I.descriptionFormat,mt,Mt.chart)||((D=I.descriptionFormatter)==null?void 0:D.call(I,mt))||w(Y.descriptionFormat)&&U(Y.descriptionFormat,mt,Mt.chart)||((P=Y.descriptionFormatter)==null?void 0:P.call(Y,mt))||v(mt),Mt.chart.renderer.forExport);Et.setAttribute("role","img"),Et.setAttribute("aria-label",rt)}(st,nt):nt.setAttribute("aria-hidden",!0)}})}(x),F(p,f),function(z){let T=z.chart,k=T.options.chart,Q=k.options3d&&k.options3d.enabled,st=T.series.length>1,nt=T.options.accessibility.series.describeSingleSeries,dt=(z.options.accessibility||{}).exposeAsGroupOnly;return!(Q&&st)&&(st||nt||dt||C(z))}(x)?function(z,T){let k=z.options.accessibility||{},Q=z.chart.options.accessibility,st=Q.landmarkVerbosity;k.exposeAsGroupOnly?T.setAttribute("role","img"):st==="all"?T.setAttribute("role","region"):T.setAttribute("role","group"),T.setAttribute("tabindex","-1"),z.chart.styledMode||(T.style.outline="none"),T.setAttribute("aria-label",M(Q.series.descriptionFormatter&&Q.series.descriptionFormatter(z)||g(z),z.chart.renderer.forExport))}(x,f):f.removeAttribute("aria-label"))}}}),R(y,"Accessibility/Components/SeriesComponent/NewDataAnnouncer.js",[y["Core/Globals.js"],y["Core/Utilities.js"],y["Accessibility/Utils/Announcer.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Accessibility/Utils/EventProvider.js"],y["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(B,et,K,J,q,Z){let{composed:tt}=B,{addEvent:H,defined:X,pushUnique:F}=et,{getChartTitle:U}=J,{defaultPointDescriptionFormatter:d,defaultSeriesDescriptionFormatter:L}=Z;function M(_){return!!_.options.accessibility.announceNewData.enabled}class s{constructor(w){this.dirty={allSeries:{}},this.lastAnnouncementTime=0,this.chart=w}init(){let w=this.chart,o=w.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new q,this.announcer=new K(w,o),this.addEventListeners()}destroy(){this.eventProvider.removeAddedEvents(),this.announcer.destroy()}addEventListeners(){let w=this,o=this.chart,u=this.eventProvider;u.addEvent(o,"afterApplyDrilldown",function(){w.lastAnnouncementTime=0}),u.addEvent(o,"afterAddSeries",function(C){w.onSeriesAdded(C.series)}),u.addEvent(o,"redraw",function(){w.announceDirtyData()})}onSeriesAdded(w){M(this.chart)&&(this.dirty.hasDirty=!0,this.dirty.allSeries[w.name+w.index]=w,this.dirty.newSeries=X(this.dirty.newSeries)?void 0:w)}announceDirtyData(){let w=this.chart,o=this;if(w.options.accessibility.announceNewData&&this.dirty.hasDirty){let u=this.dirty.newPoint;u&&(u=function(C){let E=C.series.data.filter(S=>C.x===S.x&&C.y===S.y);return E.length===1?E[0]:C}(u)),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map(C=>o.dirty.allSeries[C]),this.dirty.newSeries,u),this.dirty={allSeries:{}}}}queueAnnouncement(w,o,u){let C=this.chart.options.accessibility.announceNewData;if(C.enabled){let E=+new Date,S=E-this.lastAnnouncementTime,v=Math.max(0,C.minAnnounceInterval-S),g=function(p,l){let f=(p||[]).concat(l||[]).reduce((b,z)=>(b[z.name+z.index]=z,b),{});return Object.keys(f).map(b=>f[b])}(this.queuedAnnouncement&&this.queuedAnnouncement.series,w),x=this.buildAnnouncementMessage(g,o,u);x&&(this.queuedAnnouncement&&clearTimeout(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:E,message:x,series:g},this.queuedAnnouncementTimer=setTimeout(()=>{this&&this.announcer&&(this.lastAnnouncementTime=+new Date,this.announcer.announce(this.queuedAnnouncement.message),delete this.queuedAnnouncement,delete this.queuedAnnouncementTimer)},v))}}buildAnnouncementMessage(w,o,u){let C=this.chart,E=C.options.accessibility.announceNewData;if(E.announcementFormatter){let x=E.announcementFormatter(w,o,u);if(x!==!1)return x.length?x:null}let S=B.charts&&B.charts.length>1?"Multiple":"Single",v=o?"newSeriesAnnounce"+S:u?"newPointAnnounce"+S:"newDataAnnounce",g=U(C);return C.langFormat("accessibility.announceNewData."+v,{chartTitle:g,seriesDesc:o?L(o):null,pointDesc:u?d(u):null,point:u,series:o})}}return function(_){function w(u){var S;let C=this.chart,E=(S=C.accessibility)==null?void 0:S.components.series.newDataAnnouncer;E&&E.chart===C&&M(C)&&(E.dirty.newPoint=X(E.dirty.newPoint)?void 0:u.point)}function o(){var E;let u=this.chart,C=(E=u.accessibility)==null?void 0:E.components.series.newDataAnnouncer;C&&C.chart===u&&M(u)&&(C.dirty.hasDirty=!0,C.dirty.allSeries[this.name+this.index]=this)}_.compose=function(u){F(tt,"A11y.NDA")&&(H(u,"addPoint",w),H(u,"updatedData",o))}}(s||(s={})),s}),R(y,"Accessibility/ProxyElement.js",[y["Core/Globals.js"],y["Core/Utilities.js"],y["Accessibility/Utils/EventProvider.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Accessibility/Utils/HTMLUtilities.js"]],function(B,et,K,J,q){let{doc:Z}=B,{attr:tt,css:H,merge:X}=et,{fireEventOnWrappedOrUnwrappedElement:F}=J,{cloneMouseEvent:U,cloneTouchEvent:d,getFakeMouseEvent:L,removeElement:M}=q;return class{constructor(s,_,w="button",o,u){this.chart=s,this.target=_,this.eventProvider=new K;let C=this.innerElement=Z.createElement(w),E=this.element=o?Z.createElement(o):C;s.styledMode||this.hideElementVisually(C),o&&(o!=="li"||s.styledMode||(E.style.listStyle="none"),E.appendChild(C),this.element=E),this.updateTarget(_,u)}click(){let s=this.getTargetPosition();s.x+=s.width/2,s.y+=s.height/2;let _=L("click",s);F(this.target.click,_)}updateTarget(s,_){this.target=s,this.updateCSSClassName();let w=_||{};Object.keys(w).forEach(u=>{w[u]===null&&delete w[u]});let o=this.getTargetAttr(s.click,"aria-label");tt(this.innerElement,X(o?{"aria-label":o}:{},w)),this.eventProvider.removeAddedEvents(),this.addProxyEventsToElement(this.innerElement,s.click),this.refreshPosition()}refreshPosition(){let s=this.getTargetPosition();H(this.innerElement,{width:(s.width||1)+"px",height:(s.height||1)+"px",left:(Math.round(s.x)||0)+"px",top:(Math.round(s.y)||0)+"px"})}remove(){this.eventProvider.removeAddedEvents(),M(this.element)}updateCSSClassName(){let s=C=>C.indexOf("highcharts-no-tooltip")>-1,_=this.chart.legend,w=_.group&&_.group.div,o=s(w&&w.className||""),u=s(this.getTargetAttr(this.target.click,"class")||"");this.innerElement.className=o||u?"highcharts-a11y-proxy-element highcharts-no-tooltip":"highcharts-a11y-proxy-element"}addProxyEventsToElement(s,_){["click","touchstart","touchend","touchcancel","touchmove","mouseover","mouseenter","mouseleave","mouseout"].forEach(w=>{let o=w.indexOf("touch")===0;this.eventProvider.addEvent(s,w,u=>{let C=o?d(u):U(u);_&&F(_,C),u.stopPropagation(),o||u.preventDefault()},{passive:!1})})}hideElementVisually(s){H(s,{borderWidth:0,backgroundColor:"transparent",cursor:"pointer",outline:"none",opacity:.001,filter:"alpha(opacity=1)",zIndex:999,overflow:"hidden",padding:0,margin:0,display:"block",position:"absolute","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)"})}getTargetPosition(){let s=this.target.click,_=s.element?s.element:s,w=this.target.visual||_,o=this.chart.renderTo,u=this.chart.pointer;if(o&&(w!=null&&w.getBoundingClientRect)&&u){let C=w.getBoundingClientRect(),E=u.getChartPosition();return{x:(C.left-E.left)/E.scaleX,y:(C.top-E.top)/E.scaleY,width:C.right/E.scaleX-C.left/E.scaleX,height:C.bottom/E.scaleY-C.top/E.scaleY}}return{x:0,y:0,width:1,height:1}}getTargetAttr(s,_){return s.element?s.element.getAttribute(_):s.getAttribute(_)}}}),R(y,"Accessibility/ProxyProvider.js",[y["Core/Globals.js"],y["Core/Utilities.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Accessibility/Utils/DOMElementProvider.js"],y["Accessibility/Utils/HTMLUtilities.js"],y["Accessibility/ProxyElement.js"]],function(B,et,K,J,q,Z){let{doc:tt}=B,{attr:H,css:X}=et,{unhideChartElementFromAT:F}=K,{removeChildNodes:U}=q;return class{constructor(d){this.chart=d,this.domElementProvider=new J,this.groups={},this.groupOrder=[],this.beforeChartProxyPosContainer=this.createProxyPosContainer("before"),this.afterChartProxyPosContainer=this.createProxyPosContainer("after"),this.update()}addProxyElement(d,L,M="button",s){let _=this.groups[d];if(!_)throw Error("ProxyProvider.addProxyElement: Invalid group key "+d);let w=_.type==="ul"||_.type==="ol"?"li":void 0,o=new Z(this.chart,L,M,w,s);return _.proxyContainerElement.appendChild(o.element),_.proxyElements.push(o),o}addGroup(d,L="div",M){let s,_=this.groups[d];if(_)return _.groupElement;let w=this.domElementProvider.createElement(L);return M&&M.role&&L!=="div"?(s=this.domElementProvider.createElement("div")).appendChild(w):s=w,s.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+d.replace(/\W/g,"-"),this.groups[d]={proxyContainerElement:w,groupElement:s,type:L,proxyElements:[]},H(s,M||{}),L==="ul"&&w.setAttribute("role","list"),this.afterChartProxyPosContainer.appendChild(s),this.updateGroupOrder(this.groupOrder),s}updateGroupAttrs(d,L){let M=this.groups[d];if(!M)throw Error("ProxyProvider.updateGroupAttrs: Invalid group key "+d);H(M.groupElement,L)}updateGroupOrder(d){if(this.groupOrder=d.slice(),this.isDOMOrderGroupOrder())return;let L=d.indexOf("series"),M=L>-1?d.slice(0,L):d,s=L>-1?d.slice(L+1):[],_=tt.activeElement;["before","after"].forEach(w=>{let o=this[w==="before"?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"];U(o),(w==="before"?M:s).forEach(u=>{let C=this.groups[u];C&&o.appendChild(C.groupElement)})}),(this.beforeChartProxyPosContainer.contains(_)||this.afterChartProxyPosContainer.contains(_))&&_&&_.focus&&_.focus()}clearGroup(d){let L=this.groups[d];if(!L)throw Error("ProxyProvider.clearGroup: Invalid group key "+d);U(L.proxyContainerElement)}removeGroup(d){let L=this.groups[d];L&&(this.domElementProvider.removeElement(L.groupElement),L.groupElement!==L.proxyContainerElement&&this.domElementProvider.removeElement(L.proxyContainerElement),delete this.groups[d])}update(){this.updatePosContainerPositions(),this.updateGroupOrder(this.groupOrder),this.updateProxyElementPositions()}updateProxyElementPositions(){Object.keys(this.groups).forEach(this.updateGroupProxyElementPositions.bind(this))}updateGroupProxyElementPositions(d){let L=this.groups[d];L&&L.proxyElements.forEach(M=>M.refreshPosition())}destroy(){this.domElementProvider.destroyCreatedElements()}createProxyPosContainer(d){let L=this.domElementProvider.createElement("div");return L.setAttribute("aria-hidden","false"),L.className="highcharts-a11y-proxy-container"+(d?"-"+d:""),X(L,{top:"0",left:"0"}),this.chart.styledMode||(L.style.whiteSpace="nowrap",L.style.position="absolute"),L}getCurrentGroupOrderInDOM(){let d=_=>{let w=Object.keys(this.groups),o=w.length;for(;o--;){let u=w[o],C=this.groups[u];if(C&&_===C.groupElement)return u}},L=_=>{let w=[],o=_.children;for(let u=0;us==="series"||!!this.groups[s]),M=d.length;if(M!==L.length)return!1;for(;M--;)if(d[M]!==L[M])return!1;return!0}updatePosContainerPositions(){let d=this.chart;if(d.renderer.forExport)return;let L=d.renderer.box;d.container.insertBefore(this.afterChartProxyPosContainer,L.nextSibling),d.container.insertBefore(this.beforeChartProxyPosContainer,L),F(this.chart,this.afterChartProxyPosContainer),F(this.chart,this.beforeChartProxyPosContainer)}}}),R(y,"Accessibility/Components/RangeSelectorComponent.js",[y["Accessibility/AccessibilityComponent.js"],y["Accessibility/Utils/Announcer.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Accessibility/KeyboardNavigationHandler.js"],y["Core/Utilities.js"]],function(B,et,K,J,q){let{unhideChartElementFromAT:Z,getAxisRangeDescription:tt}=K,{addEvent:H,attr:X}=q;class F extends B{init(){let d=this.chart;this.announcer=new et(d,"polite")}onChartUpdate(){let d=this.chart,L=this,M=d.rangeSelector;M&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),M.buttons&&M.buttons.length&&M.buttons.forEach(s=>{L.setRangeButtonAttrs(s)}),M.maxInput&&M.minInput&&["minInput","maxInput"].forEach(function(s,_){let w=M[s];w&&(Z(d,w),L.setRangeInputAttrs(w,"accessibility.rangeSelector."+(_?"max":"min")+"InputLabel"))}))}updateSelectorVisibility(){let d=this.chart,L=d.rangeSelector,M=L&&L.dropdown,s=L&&L.buttons||[],_=w=>w.setAttribute("aria-hidden",!0);L&&L.hasVisibleDropdown&&M?(Z(d,M),s.forEach(w=>_(w.element))):(M&&_(M),s.forEach(w=>Z(d,w.element)))}setDropdownAttrs(){let d=this.chart,L=d.rangeSelector&&d.rangeSelector.dropdown;if(L){let M=d.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:d.options.lang.rangeSelectorZoom});L.setAttribute("aria-label",M),L.setAttribute("tabindex",-1)}}setRangeButtonAttrs(d){X(d.element,{tabindex:-1,role:"button"})}setRangeInputAttrs(d,L){let M=this.chart;X(d,{tabindex:-1,"aria-label":M.langFormat(L,{chart:M})})}onButtonNavKbdArrowKey(d,L){let M=d.response,s=this.keyCodes,_=this.chart,w=_.options.accessibility.keyboardNavigation.wrapAround,o=L===s.left||L===s.up?-1:1;return _.highlightRangeSelectorButton(_.highlightedRangeSelectorItemIx+o)?M.success:w?(d.init(o),M.success):M[o>0?"next":"prev"]}onButtonNavKbdClick(d){let L=d.response,M=this.chart;return M.oldRangeSelectorItemState!==3&&this.fakeClickEvent(M.rangeSelector.buttons[M.highlightedRangeSelectorItemIx].element),L.success}onAfterBtnClick(){let d=this.chart,L=tt(d.xAxis[0]),M=d.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:d,axisRangeDescription:L});M&&this.announcer.announce(M)}onInputKbdMove(d){let L=this.chart,M=L.rangeSelector,s=L.highlightedInputRangeIx=(L.highlightedInputRangeIx||0)+d;if(s>1||s<0){if(L.accessibility)return L.accessibility.keyboardNavigation.exiting=!0,L.accessibility.keyboardNavigation.tabindexContainer.focus(),L.accessibility.keyboardNavigation.move(d)}else if(M){let _=M[s?"maxDateBox":"minDateBox"],w=M[s?"maxInput":"minInput"];_&&w&&L.setFocusToElement(_,w)}return!0}onInputNavInit(d){let L=this,M=this.chart,s=d>0?0:1,_=M.rangeSelector,w=_&&_[s?"maxDateBox":"minDateBox"],o=_&&_.minInput,u=_&&_.maxInput;if(M.highlightedInputRangeIx=s,w&&o&&u){M.setFocusToElement(w,s?u:o),this.removeInputKeydownHandler&&this.removeInputKeydownHandler();let C=v=>{(v.which||v.keyCode)===this.keyCodes.tab&&L.onInputKbdMove(v.shiftKey?-1:1)&&(v.preventDefault(),v.stopPropagation())},E=H(o,"keydown",C),S=H(u,"keydown",C);this.removeInputKeydownHandler=()=>{E(),S()}}}onInputNavTerminate(){let d=this.chart.rangeSelector||{};d.maxInput&&d.hideInput("max"),d.minInput&&d.hideInput("min"),this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)}initDropdownNav(){let d=this.chart,L=d.rangeSelector,M=L&&L.dropdown;L&&M&&(d.setFocusToElement(L.buttonGroup,M),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=H(M,"keydown",s=>{let _=(s.which||s.keyCode)===this.keyCodes.tab,w=d.accessibility;_&&(s.preventDefault(),s.stopPropagation(),w&&(w.keyboardNavigation.tabindexContainer.focus(),w.keyboardNavigation.move(s.shiftKey?-1:1)))}))}getRangeSelectorButtonNavigation(){let d=this.chart,L=this.keyCodes,M=this;return new J(d,{keyCodeMap:[[[L.left,L.right,L.up,L.down],function(s){return M.onButtonNavKbdArrowKey(this,s)}],[[L.enter,L.space],function(){return M.onButtonNavKbdClick(this)}]],validate:function(){return!!(d.rangeSelector&&d.rangeSelector.buttons&&d.rangeSelector.buttons.length)},init:function(s){let _=d.rangeSelector;if(_&&_.hasVisibleDropdown)M.initDropdownNav();else if(_){let w=_.buttons.length-1;d.highlightRangeSelectorButton(s>0?0:w)}},terminate:function(){M.removeDropdownKeydownHandler&&(M.removeDropdownKeydownHandler(),delete M.removeDropdownKeydownHandler)}})}getRangeSelectorInputNavigation(){let d=this.chart,L=this;return new J(d,{keyCodeMap:[],validate:function(){return!!(d.rangeSelector&&d.rangeSelector.inputGroup&&d.rangeSelector.inputGroup.element.style.visibility!=="hidden"&&d.options.rangeSelector.inputEnabled!==!1&&d.rangeSelector.minInput&&d.rangeSelector.maxInput)},init:function(M){L.onInputNavInit(M)},terminate:function(){L.onInputNavTerminate()}})}getKeyboardNavigation(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]}destroy(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),this.announcer&&this.announcer.destroy()}}return function(U){function d(M){let s=this.rangeSelector&&this.rangeSelector.buttons||[],_=this.highlightedRangeSelectorItemIx,w=this.rangeSelector&&this.rangeSelector.selected;return _!==void 0&&s[_]&&_!==w&&s[_].setState(this.oldRangeSelectorItemState||0),this.highlightedRangeSelectorItemIx=M,!!s[M]&&(this.setFocusToElement(s[M].box,s[M].element),M!==w&&(this.oldRangeSelectorItemState=s[M].state,s[M].setState(1)),!0)}function L(){let M=this.chart.accessibility;if(M&&M.components.rangeSelector)return M.components.rangeSelector.onAfterBtnClick()}U.compose=function(M,s){let _=M.prototype;_.highlightRangeSelectorButton||(_.highlightRangeSelectorButton=d,H(s,"afterBtnClick",L))}}(F||(F={})),F}),R(y,"Accessibility/Components/SeriesComponent/ForcedMarkers.js",[y["Core/Globals.js"],y["Core/Utilities.js"]],function(B,et){var K;let{composed:J}=B,{addEvent:q,merge:Z,pushUnique:tt}=et;return function(H){function X(_){Z(!0,_,{marker:{enabled:!0,states:{normal:{opacity:0}}}})}function F(_){return _.marker.states&&_.marker.states.normal&&_.marker.states.normal.opacity}function U(_){return!!(_._hasPointMarkers&&_.points&&_.points.length)}function d(){this.chart.styledMode&&(this.markerGroup&&this.markerGroup[this.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden"),U(this)&&this.points.forEach(_=>{_.graphic&&(_.graphic[_.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),_.graphic[_.hasForcedA11yMarker===!1?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))}))}function L(_){this.resetA11yMarkerOptions=Z(_.options.marker||{},this.userOptions.marker||{})}function M(){let _=this.options;(function(w){let o=w.chart.options.accessibility.enabled,u=(w.options.accessibility&&w.options.accessibility.enabled)!==!1;return o&&u&&function(C){let E=C.chart.options.accessibility;return C.points.length-1;x.highlightedPoint===this&&f!==l&&!z&&l&&l.focus&&l.focus()})}onDrillupAll(){let g,x=this.lastDrilledDownPoint,p=this.chart,l=x&&M(p,x.seriesName);x&&l&&U(x.x)&&U(x.y)&&(g=L(l,x.x,x.y)),g=g||u(p),p.container&&p.container.focus(),g&&g.highlight&&g.highlight(!1)}getKeyboardNavigationHandler(){let g=this,x=this.keyCodes,p=this.chart,l=p.inverted;return new Z(p,{keyCodeMap:[[l?[x.up,x.down]:[x.left,x.right],function(f){return g.onKbdSideways(this,f)}],[l?[x.left,x.right]:[x.up,x.down],function(f){return g.onKbdVertical(this,f)}],[[x.enter,x.space],function(f,b){var T;let z=p.highlightedPoint;if(z){let{plotLeft:k,plotTop:Q}=this.chart,{plotX:st=0,plotY:nt=0}=z;b=co(Fr({},b),{chartX:k+st,chartY:Q+nt,point:z,target:((T=z.graphic)==null?void 0:T.element)||b.target}),d(z.series,"click",b),z.firePointEvent("click",b)}return this.response.success}],[[x.home],function(){return E(p),this.response.success}],[[x.end],function(){return C(p),this.response.success}],[[x.pageDown,x.pageUp],function(f){return p.highlightAdjacentSeries(f===x.pageDown),this.response.success}]],init:function(){return g.onHandlerInit(this)},validate:function(){return!!u(p)},terminate:function(){return g.onHandlerTerminate()}})}onKbdSideways(g,x){let p=this.keyCodes,l=x===p.right||x===p.down;return this.attemptHighlightAdjacentPoint(g,l)}onHandlerInit(g){let x=this.chart;return x.options.accessibility.keyboardNavigation.seriesNavigation.rememberPointFocus&&x.highlightedPoint?x.highlightedPoint.highlight():E(x),g.response.success}onKbdVertical(g,x){let p=this.chart,l=this.keyCodes,f=x===l.down||x===l.right,b=p.options.accessibility.keyboardNavigation.seriesNavigation;if(b.mode&&b.mode==="serialize")return this.attemptHighlightAdjacentPoint(g,f);let z=p.highlightedPoint&&p.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries";return p[z](f),g.response.success}onHandlerTerminate(){let g=this.chart,x=g.options.accessibility.keyboardNavigation;g.tooltip&&g.tooltip.hide(0);let p=g.highlightedPoint&&g.highlightedPoint.series;p&&p.onMouseOut&&p.onMouseOut(),g.highlightedPoint&&g.highlightedPoint.onMouseOut&&g.highlightedPoint.onMouseOut(),x.seriesNavigation.rememberPointFocus||delete g.highlightedPoint}attemptHighlightAdjacentPoint(g,x){let p=this.chart,l=p.options.accessibility.keyboardNavigation.wrapAround;return p.highlightAdjacentPoint(x)||l&&(x?E(p):C(p))?g.response.success:g.response[x?"next":"prev"]}onSeriesDestroy(g){let x=this.chart;x.highlightedPoint&&x.highlightedPoint.series===g&&(delete x.highlightedPoint,x.focusElement&&x.focusElement.removeFocusBorder())}destroy(){this.eventProvider.removeAddedEvents()}}return function(v){function g(b){let z,T,k=this.series,Q=this.highlightedPoint,st=Q&&_(Q)||0,nt=Q&&Q.series.points||[],dt=this.series&&this.series[this.series.length-1],mt=dt&&dt.points&&dt.points[dt.points.length-1];if(!k[0]||!k[0].points)return!1;if(Q){if(z=k[Q.series.index+(b?1:-1)],(T=nt[st+(b?1:-1)])||!z||(T=z.points[b?0:z.points.length-1]),!T)return!1}else T=b?k[0].points[0]:mt;return o(T)?(w(z=T.series)?this.highlightedPoint=b?z.points[z.points.length-1]:z.points[0]:this.highlightedPoint=T,this.highlightAdjacentPoint(b)):T.highlight()}function x(b){let z=this.highlightedPoint,T=1/0,k;return!!(U(z.plotX)&&U(z.plotY))&&(this.series.forEach(Q=>{w(Q)||Q.points.forEach(st=>{if(!U(st.plotY)||!U(st.plotX)||st===z)return;let nt=st.plotY-z.plotY,dt=Math.abs(st.plotX-z.plotX),mt=Math.abs(nt)*Math.abs(nt)+dt*dt*4;Q.yAxis&&Q.yAxis.reversed&&(nt*=-1),!(nt<=0&&b||nt>=0&&!b||mt<5||o(st))&&mt!(U(W.plotX)&&U(W.plotY));if(!P(dt)){for(;D--;)!P(Y=mt.points[D])&&(ot=(dt.plotX-Y.plotX)*(dt.plotX-Y.plotX)*4+(dt.plotY-Y.plotY)*(dt.plotY-Y.plotY)*1)=0;--Q)if(!o(T[Q]))return T[Q].highlight()}return!1}v.compose=function(b,z,T){let k=b.prototype,Q=z.prototype,st=T.prototype;k.highlightAdjacentPoint||(k.highlightAdjacentPoint=g,k.highlightAdjacentPointVertical=x,k.highlightAdjacentSeries=p,Q.highlight=l,st.keyboardMoveVertical=!0,["column","gantt","pie"].forEach(nt=>{X[nt]&&(X[nt].prototype.keyboardMoveVertical=!1)}),st.highlightNextValidPoint=f)}}(S||(S={})),S}),R(y,"Accessibility/Components/SeriesComponent/SeriesComponent.js",[y["Accessibility/AccessibilityComponent.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Accessibility/Components/SeriesComponent/ForcedMarkers.js"],y["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],y["Accessibility/Components/SeriesComponent/SeriesDescriber.js"],y["Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js"]],function(B,et,K,J,q,Z){let{hideSeriesFromAT:tt}=et,{describeSeries:H}=q;return class extends B{static compose(X,F,U){J.compose(U),K.compose(U),Z.compose(X,F,U)}init(){this.newDataAnnouncer=new J(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new Z(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()}hideTooltipFromATWhenShown(){let X=this;this.chart.tooltip&&this.addEvent(this.chart.tooltip.constructor,"refresh",function(){this.chart===X.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})}hideSeriesLabelsFromATWhenShown(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEach(function(X){X.labelBySeries&&X.labelBySeries.attr("aria-hidden",!0)})})}onChartRender(){this.chart.series.forEach(function(X){(X.options.accessibility&&X.options.accessibility.enabled)!==!1&&X.visible&&X.getPointsCollection().length!==0?H(X):tt(X)})}getKeyboardNavigation(){return this.keyboardNavigation.getKeyboardNavigationHandler()}destroy(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()}}}),R(y,"Accessibility/Components/ZoomComponent.js",[y["Accessibility/AccessibilityComponent.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Accessibility/Utils/HTMLUtilities.js"],y["Accessibility/KeyboardNavigationHandler.js"],y["Core/Utilities.js"]],function(B,et,K,J,q){let{unhideChartElementFromAT:Z}=et,{getFakeMouseEvent:tt}=K,{attr:H,pick:X}=q;return class extends B{constructor(){super(...arguments),this.focusedMapNavButtonIx=-1}init(){let F=this,U=this.chart;this.proxyProvider.addGroup("zoom","div"),["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach(d=>{F.addEvent(U,d,function(){F.updateProxyOverlays()})})}onChartUpdate(){let F=this.chart,U=this;F.mapNavigation&&F.mapNavigation.navButtons.forEach((d,L)=>{Z(F,d.element),U.setMapNavButtonAttrs(d.element,"accessibility.zoom.mapZoom"+(L?"Out":"In"))})}setMapNavButtonAttrs(F,U){let d=this.chart;H(F,{tabindex:-1,role:"button","aria-label":d.langFormat(U,{chart:d})})}onChartRender(){this.updateProxyOverlays()}updateProxyOverlays(){let F=this.chart;if(this.proxyProvider.clearGroup("zoom"),F.resetZoomButton&&this.createZoomProxyButton(F.resetZoomButton,"resetZoomProxyButton",F.langFormat("accessibility.zoom.resetZoomButton",{chart:F})),F.drillUpButton&&F.breadcrumbs&&F.breadcrumbs.list){let U=F.breadcrumbs.list[F.breadcrumbs.list.length-1];this.createZoomProxyButton(F.drillUpButton,"drillUpProxyButton",F.langFormat("accessibility.drillUpButton",{chart:F,buttonText:F.breadcrumbs.getButtonText(U)}))}}createZoomProxyButton(F,U,d){this[U]=this.proxyProvider.addProxyElement("zoom",{click:F},"button",{"aria-label":d,tabindex:-1})}getMapZoomNavigation(){let F=this.keyCodes,U=this.chart,d=this;return new J(U,{keyCodeMap:[[[F.up,F.down,F.left,F.right],function(L){return d.onMapKbdArrow(this,L)}],[[F.tab],function(L,M){return d.onMapKbdTab(this,M)}],[[F.space,F.enter],function(){return d.onMapKbdClick(this)}]],validate:function(){return!!(U.mapView&&U.mapNavigation&&U.mapNavigation.navButtons.length)},init:function(L){return d.onMapNavInit(L)}})}onMapKbdArrow(F,U){let d=this.chart,L=this.keyCodes,M=d.container,s=U===L.up||U===L.down,_=U===L.left||U===L.up?1:-1,w=(s?d.plotHeight:d.plotWidth)/10*_,o=10*Math.random(),u={x:M.offsetLeft+d.plotLeft+d.plotWidth/2+o,y:M.offsetTop+d.plotTop+d.plotHeight/2+o},C=s?{x:u.x,y:u.y+w}:{x:u.x+w,y:u.y};return[tt("mousedown",u),tt("mousemove",C),tt("mouseup",C)].forEach(E=>M.dispatchEvent(E)),F.response.success}onMapKbdTab(F,U){let d=this.chart,L=F.response,M=U.shiftKey,s=M&&!this.focusedMapNavButtonIx||!M&&this.focusedMapNavButtonIx;if(d.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0),s)return d.mapView&&d.mapView.zoomBy(),L[M?"prev":"next"];this.focusedMapNavButtonIx+=M?-1:1;let _=d.mapNavigation.navButtons[this.focusedMapNavButtonIx];return d.setFocusToElement(_.box,_.element),_.setState(2),L.success}onMapKbdClick(F){let U=this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element;return this.fakeClickEvent(U),F.response.success}onMapNavInit(F){let U=this.chart,d=U.mapNavigation.navButtons[0],L=U.mapNavigation.navButtons[1],M=F>0?d:L;U.setFocusToElement(M.box,M.element),M.setState(2),this.focusedMapNavButtonIx=F>0?0:1}simpleButtonNavigation(F,U,d){let L=this.keyCodes,M=this,s=this.chart;return new J(s,{keyCodeMap:[[[L.tab,L.up,L.down,L.left,L.right],function(_,w){let o=_===L.tab&&w.shiftKey||_===L.left||_===L.up;return this.response[o?"prev":"next"]}],[[L.space,L.enter],function(){return X(d(this,s),this.response.success)}]],validate:function(){return s[F]&&s[F].box&&M[U].innerElement},init:function(){s.setFocusToElement(s[F].box,M[U].innerElement)}})}getKeyboardNavigation(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",function(F,U){U.zoomOut()}),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",function(F,U){return U.drillUp(),F.response.prev}),this.getMapZoomNavigation()]}}}),R(y,"Accessibility/HighContrastMode.js",[y["Core/Globals.js"]],function(B){let{doc:et,isMS:K,win:J}=B;return{isHighContrastModeActive:function(){let q=/(Edg)/.test(J.navigator.userAgent);if(J.matchMedia&&q)return J.matchMedia("(-ms-high-contrast: active)").matches;if(K&&J.getComputedStyle){let Z=et.createElement("div");Z.style.backgroundImage="url(data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)",et.body.appendChild(Z);let tt=(Z.currentStyle||J.getComputedStyle(Z)).backgroundImage;return et.body.removeChild(Z),tt==="none"}return J.matchMedia&&J.matchMedia("(forced-colors: active)").matches},setHighContrastTheme:function(q){var H;q.highContrastModeActive=!0;let Z=q.options.accessibility.highContrastTheme;q.update(Z,!1);let tt=((H=Z.colors)==null?void 0:H.length)>1;q.series.forEach(function(X){let F=Z.plotOptions[X.type]||{},U=tt&&X.colorIndex!==void 0?Z.colors[X.colorIndex]:F.color||"window",d={color:F.color||"windowText",colors:tt?Z.colors:[F.color||"windowText"],borderColor:F.borderColor||"window",fillColor:U};X.update(d,!1),X.points&&X.points.forEach(function(L){L.options&&L.options.color&&L.update({color:F.color||"windowText",borderColor:F.borderColor||"window"},!1)})}),q.redraw()}}}),R(y,"Accessibility/HighContrastTheme.js",[],function(){return{chart:{backgroundColor:"window"},title:{style:{color:"windowText"}},subtitle:{style:{color:"windowText"}},colorAxis:{minColor:"windowText",maxColor:"windowText",stops:[],dataClasses:[]},colors:["windowText"],xAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},yAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},tooltip:{backgroundColor:"window",borderColor:"windowText",style:{color:"windowText"}},plotOptions:{series:{lineColor:"windowText",fillColor:"window",borderColor:"windowText",edgeColor:"windowText",borderWidth:1,dataLabels:{connectorColor:"windowText",color:"windowText",style:{color:"windowText",textOutline:"none"}},marker:{lineColor:"windowText",fillColor:"windowText"}},pie:{color:"window",colors:["window"],borderColor:"windowText",borderWidth:1},boxplot:{fillColor:"window"},candlestick:{lineColor:"windowText",fillColor:"window"},errorbar:{fillColor:"window"}},legend:{backgroundColor:"window",itemStyle:{color:"windowText"},itemHoverStyle:{color:"windowText"},itemHiddenStyle:{color:"#555"},title:{style:{color:"windowText"}}},credits:{style:{color:"windowText"}},drilldown:{activeAxisLabelStyle:{color:"windowText"},activeDataLabelStyle:{color:"windowText"}},navigation:{buttonOptions:{symbolStroke:"windowText",theme:{fill:"window"}}},rangeSelector:{buttonTheme:{fill:"window",stroke:"windowText",style:{color:"windowText"},states:{hover:{fill:"window",stroke:"windowText",style:{color:"windowText"}},select:{fill:"#444",stroke:"windowText",style:{color:"windowText"}}}},inputBoxBorderColor:"windowText",inputStyle:{backgroundColor:"window",color:"windowText"},labelStyle:{color:"windowText"}},navigator:{handles:{backgroundColor:"window",borderColor:"windowText"},outlineColor:"windowText",maskFill:"transparent",series:{color:"windowText",lineColor:"windowText"},xAxis:{gridLineColor:"windowText"}},scrollbar:{barBackgroundColor:"#444",barBorderColor:"windowText",buttonArrowColor:"windowText",buttonBackgroundColor:"window",buttonBorderColor:"windowText",rifleColor:"windowText",trackBackgroundColor:"window",trackBorderColor:"windowText"}}}),R(y,"Accessibility/Options/A11yDefaults.js",[],function(){return{accessibility:{enabled:!0,screenReaderSection:{beforeChartFormat:"<{headingTagName}>{chartTitle}
    {typeDescription}
    {chartSubtitle}
    {chartLongdesc}
    {playAsSoundButton}
    {viewTableButton}
    {xAxisDescription}
    {yAxisDescription}
    {annotationsTitle}{annotationsList}
    ",afterChartFormat:"{endOfChartMarker}",axisRangeDateFormat:"%Y-%m-%d %H:%M:%S"},series:{descriptionFormat:"{seriesDescription}{authorDescription}{axisDescription}",describeSingleSeries:!1,pointDescriptionEnabledThreshold:200},point:{valueDescriptionFormat:"{xDescription}{separator}{value}.",describeNull:!0},landmarkVerbosity:"all",linkedDescription:'*[data-highcharts-chart="{index}"] + .highcharts-description',highContrastMode:"auto",keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:"#334eff",lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","navigator","legend","chartMenu"],wrapAround:!0,seriesNavigation:{skipNullPoints:!0,pointNavigationEnabledThreshold:!1,rememberPointFocus:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5e3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}},navigator:{accessibility:{enabled:!0}}}}),R(y,"Accessibility/Options/LangDefaults.js",[],function(){return{accessibility:{defaultChartTitle:"Chart",chartContainerLabel:"{title}. Highcharts interactive chart.",svgContainerLabel:"Interactive chart",drillUpButton:"{buttonText}",credits:"Chart credits: {creditsStr}",thousandsSep:",",svgContainerTitle:"",graphicContainerLabel:"",screenReaderSection:{beforeRegionLabel:"",afterRegionLabel:"",annotations:{heading:"Chart annotations summary",descriptionSinglePoint:"{annotationText}. Related to {annotationPoint}",descriptionMultiplePoints:"{annotationText}. Related to {annotationPoint}{#each additionalAnnotationPoints}, also related to {this}{/each}",descriptionNoPoints:"{annotationText}"},endOfChartMarker:"End of interactive chart."},sonification:{playAsSoundButtonText:"Play as sound, {chartTitle}",playAsSoundClickAnnouncement:"Play"},legend:{legendLabelNoTitle:"Toggle series visibility, {chartTitle}",legendLabel:"Chart legend: {legendTitle}",legendItem:"Show {itemName}"},zoom:{mapZoomIn:"Zoom chart",mapZoomOut:"Zoom out chart",resetZoomButton:"Reset zoom"},rangeSelector:{dropdownLabel:"{rangeTitle}",minInputLabel:"Select start date.",maxInputLabel:"Select end date.",clickButtonAnnouncement:"Viewing {axisRangeDescription}"},navigator:{handleLabel:"{#eq handleIx 0}Start, percent{else}End, percent{/eq}",groupLabel:"Axis zoom",changeAnnouncement:"{axisRangeDescription}"},table:{viewAsDataTableButtonText:"View as data table, {chartTitle}",tableSummary:"Table representation of chart."},announceNewData:{newDataAnnounce:"Updated data for chart {chartTitle}",newSeriesAnnounceSingle:"New data series: {seriesDesc}",newPointAnnounceSingle:"New data point: {pointDesc}",newSeriesAnnounceMultiple:"New data series in chart {chartTitle}: {seriesDesc}",newPointAnnounceMultiple:"New data point in chart {chartTitle}: {pointDesc}"},seriesTypeDescriptions:{boxplot:"Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile, and maximum.",arearange:"Arearange charts are line charts displaying a range between a lower and higher value for each point.",areasplinerange:"These charts are line charts displaying a range between a lower and higher value for each point.",bubble:"Bubble charts are scatter charts where each data point also has a size value.",columnrange:"Columnrange charts are column charts displaying a range between a lower and higher value for each point.",errorbar:"Errorbar series are used to display the variability of the data.",funnel:"Funnel charts are used to display reduction of data in stages.",pyramid:"Pyramid charts consist of a single pyramid with item heights corresponding to each point value.",waterfall:"A waterfall chart is a column chart where each column contributes towards a total end value."},chartTypes:{emptyChart:"Empty chart",mapTypeDescription:"Map of {mapTitle} with {numSeries} data series.",unknownMap:"Map of unspecified region with {numSeries} data series.",combinationChart:"Combination chart with {numSeries} data series.",defaultSingle:"Chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",defaultMultiple:"Chart with {numSeries} data series.",splineSingle:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",splineMultiple:"Line chart with {numSeries} lines.",lineSingle:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",lineMultiple:"Line chart with {numSeries} lines.",columnSingle:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}.",columnMultiple:"Bar chart with {numSeries} data series.",barSingle:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}.",barMultiple:"Bar chart with {numSeries} data series.",pieSingle:"Pie chart with {numPoints} {#eq numPoints 1}slice{else}slices{/eq}.",pieMultiple:"Pie chart with {numSeries} pies.",scatterSingle:"Scatter chart with {numPoints} {#eq numPoints 1}point{else}points{/eq}.",scatterMultiple:"Scatter chart with {numSeries} data series.",boxplotSingle:"Boxplot with {numPoints} {#eq numPoints 1}box{else}boxes{/eq}.",boxplotMultiple:"Boxplot with {numSeries} data series.",bubbleSingle:"Bubble chart with {numPoints} {#eq numPoints 1}bubbles{else}bubble{/eq}.",bubbleMultiple:"Bubble chart with {numSeries} data series."},axis:{xAxisDescriptionSingular:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}",xAxisDescriptionPlural:"The chart has {numAxes} X axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}.",yAxisDescriptionSingular:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}",yAxisDescriptionPlural:"The chart has {numAxes} Y axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}.",timeRangeDays:"Data range: {range} days.",timeRangeHours:"Data range: {range} hours.",timeRangeMinutes:"Data range: {range} minutes.",timeRangeSeconds:"Data range: {range} seconds.",rangeFromTo:"Data ranges from {rangeFrom} to {rangeTo}.",rangeCategories:"Data range: {numCategories} categories."},exporting:{chartMenuLabel:"Chart menu",menuButtonLabel:"View chart menu, {chartTitle}"},series:{summary:{default:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",defaultCombination:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",line:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",lineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",spline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",splineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",column:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",columnCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",bar:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",barCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",pie:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}.",pieCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}.",scatter:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}.",scatterCombination:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}.",boxplot:"{series.name}, boxplot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}box{else}boxes{/eq}.",boxplotCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Boxplot with {series.points.length} {#eq series.points.length 1}box{else}boxes{/eq}.",bubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",bubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",map:"{series.name}, map {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}area{else}areas{/eq}.",mapCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Map with {series.points.length} {#eq series.points.length 1}area{else}areas{/eq}.",mapline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",maplineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",mapbubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",mapbubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}."},description:"{description}",xAxisDescription:"X axis, {name}",yAxisDescription:"Y axis, {name}",nullPointValue:"No value",pointAnnotationsDescription:"{#each annotations}Annotation: {this}{/each}"}}}}),R(y,"Accessibility/Options/DeprecatedOptions.js",[y["Core/Utilities.js"]],function(B){let{error:et,pick:K}=B;function J(Z,tt,H){let X=Z,F,U=0;for(;Uk!=="series")):Object.keys(this.components):[]}update(){let k=this.components,Q=this.chart,st=Q.options.accessibility;l(Q,"beforeA11yUpdate"),Q.types=this.getChartTypes();let nt=st.keyboardNavigation.order;this.proxyProvider.updateGroupOrder(nt),this.getComponentOrder().forEach(function(dt){k[dt].onChartUpdate(),l(Q,"afterA11yComponentUpdate",{name:dt,component:k[dt]})}),this.keyboardNavigation.update(nt),!Q.highContrastModeActive&&st.highContrastMode!==!1&&(o.isHighContrastModeActive()||st.highContrastMode===!0)&&o.setHighContrastTheme(Q),l(Q,"afterA11yUpdate",{accessibility:this})}destroy(){let k=this.chart||{},Q=this.components;Object.keys(Q).forEach(function(st){Q[st].destroy(),Q[st].destroyBase()}),this.proxyProvider&&this.proxyProvider.destroy(),k.announcerContainer&&b(k.announcerContainer),this.keyboardNavigation&&this.keyboardNavigation.destroy(),k.renderTo&&k.renderTo.setAttribute("aria-hidden",!0),k.focusElement&&k.focusElement.removeFocusBorder()}getChartTypes(){let k={};return this.chart.series.forEach(function(Q){k[Q.type]=1}),Object.keys(k)}}return function(T){function k(){this.accessibility&&this.accessibility.destroy()}function Q(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());let mt=this.accessibility;mt&&!mt.zombie&&(mt.proxyProvider.updateProxyElementPositions(),mt.getComponentOrder().forEach(function(Et){mt.components[Et].onChartRender()}))}function st(mt){let Et=mt.options.accessibility;Et&&(Et.customComponents&&(this.options.accessibility.customComponents=Et.customComponents,delete Et.customComponents),f(!0,this.options.accessibility,Et),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility)),this.a11yDirty=!0}function nt(){let mt=this.accessibility,Et=this.options.accessibility,Mt=this.renderer.boxWrapper.element,I=this.title;if(Et&&Et.enabled)mt&&!mt.zombie?mt.update():(this.accessibility=mt=new T(this),mt&&!mt.zombie&&mt.update(),Mt.getAttribute("role")==="img"&&Mt.removeAttribute("role"));else if(mt)mt.destroy&&mt.destroy(),delete this.accessibility;else{this.renderTo.setAttribute("role","img"),this.renderTo.setAttribute("aria-hidden",!1),this.renderTo.setAttribute("aria-label",(I&&I.element.textContent||"").replace(/{x(mt,D,function(){this.a11yDirty=!0})}),["afterApplyDrilldown","drillupall"].forEach(D=>{x(mt,D,function(){let P=this.accessibility;P&&!P.zombie&&P.update()})}),x(Mt,"update",dt),["update","updatedData","remove"].forEach(D=>{x(I,D,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})}))}}(z||(z={})),f(!0,v,C,{accessibility:{highContrastTheme:u},lang:E}),z}),R(y,"masters/modules/accessibility.src.js",[y["Core/Globals.js"],y["Accessibility/Accessibility.js"],y["Accessibility/AccessibilityComponent.js"],y["Accessibility/Utils/ChartUtilities.js"],y["Accessibility/Utils/HTMLUtilities.js"],y["Accessibility/KeyboardNavigationHandler.js"],y["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(B,et,K,J,q,Z,tt){return B.i18nFormat=et.i18nFormat,B.A11yChartUtilities=J,B.A11yHTMLUtilities=q,B.AccessibilityComponent=K,B.KeyboardNavigationHandler=Z,B.SeriesAccessibilityDescriber=tt,et.compose(B.Chart,B.Legend,B.Point,B.Series,B.SVGElement,B.RangeSelector),B})})},5705:We=>{"use strict";var ue=function(ht,j,_t,m,y,R,B,et){if(!ht){var K;if(j===void 0)K=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var J=[_t,m,y,R,B,et],q=0;K=new Error(j.replace(/%s/g,function(){return J[q++]})),K.name="Invariant Violation"}throw K.framesToPop=1,K}};We.exports=ue},7967:(We,ue,ht)=>{var j="Expected a function",_t=NaN,m="[object Symbol]",y=/^\s+|\s+$/g,R=/^[-+]0x[0-9a-f]+$/i,B=/^0b[01]+$/i,et=/^0o[0-7]+$/i,K=parseInt,J=typeof ht.g=="object"&&ht.g&&ht.g.Object===Object&&ht.g,q=typeof self=="object"&&self&&self.Object===Object&&self,Z=J||q||Function("return this")(),tt=Object.prototype,H=tt.toString,X=Math.max,F=Math.min,U=function(){return Z.Date.now()};function d(w,o,u){var C,E,S,v,g,x,p=0,l=!1,f=!1,b=!0;if(typeof w!="function")throw new TypeError(j);o=_(o)||0,L(u)&&(l=!!u.leading,f="maxWait"in u,S=f?X(_(u.maxWait)||0,o):S,b="trailing"in u?!!u.trailing:b);function z(Mt){var I=C,Y=E;return C=E=void 0,p=Mt,v=w.apply(Y,I),v}function T(Mt){return p=Mt,g=setTimeout(st,o),l?z(Mt):v}function k(Mt){var I=Mt-x,Y=Mt-p,rt=o-I;return f?F(rt,S-Y):rt}function Q(Mt){var I=Mt-x,Y=Mt-p;return x===void 0||I>=o||I<0||f&&Y>=S}function st(){var Mt=U();if(Q(Mt))return nt(Mt);g=setTimeout(st,k(Mt))}function nt(Mt){return g=void 0,b&&C?z(Mt):(C=E=void 0,v)}function dt(){g!==void 0&&clearTimeout(g),p=0,C=x=E=g=void 0}function mt(){return g===void 0?v:nt(U())}function Et(){var Mt=U(),I=Q(Mt);if(C=arguments,E=this,x=Mt,I){if(g===void 0)return T(x);if(f)return g=setTimeout(st,o),z(x)}return g===void 0&&(g=setTimeout(st,o)),v}return Et.cancel=dt,Et.flush=mt,Et}function L(w){var o=typeof w;return!!w&&(o=="object"||o=="function")}function M(w){return!!w&&typeof w=="object"}function s(w){return typeof w=="symbol"||M(w)&&H.call(w)==m}function _(w){if(typeof w=="number")return w;if(s(w))return _t;if(L(w)){var o=typeof w.valueOf=="function"?w.valueOf():w;w=L(o)?o+"":o}if(typeof w!="string")return w===0?w:+w;w=w.replace(y,"");var u=B.test(w);return u||et.test(w)?K(w.slice(2),u?2:8):R.test(w)?_t:+w}We.exports=d},7230:(We,ue,ht)=>{var j=ht(3984),_t=ht(9107),m=j(_t,"DataView");We.exports=m},3435:(We,ue,ht)=>{var j=ht(6890),_t=ht(9484),m=ht(7215),y=ht(7811),R=ht(747);function B(et){var K=-1,J=et==null?0:et.length;for(this.clear();++K{var j=ht(4412),_t=ht(8522),m=ht(469),y=ht(1161),R=ht(1441);function B(et){var K=-1,J=et==null?0:et.length;for(this.clear();++K{var j=ht(3984),_t=ht(9107),m=j(_t,"Map");We.exports=m},3287:(We,ue,ht)=>{var j=ht(8206),_t=ht(9768),m=ht(6827),y=ht(663),R=ht(5135);function B(et){var K=-1,J=et==null?0:et.length;for(this.clear();++K{var j=ht(3984),_t=ht(9107),m=j(_t,"Promise");We.exports=m},5963:(We,ue,ht)=>{var j=ht(3984),_t=ht(9107),m=j(_t,"Set");We.exports=m},6435:(We,ue,ht)=>{var j=ht(5217),_t=ht(8658),m=ht(3844),y=ht(6503),R=ht(1563),B=ht(259);function et(K){var J=this.__data__=new j(K);this.size=J.size}et.prototype.clear=_t,et.prototype.delete=m,et.prototype.get=y,et.prototype.has=R,et.prototype.set=B,We.exports=et},6711:(We,ue,ht)=>{var j=ht(9107),_t=j.Symbol;We.exports=_t},9282:(We,ue,ht)=>{var j=ht(9107),_t=j.Uint8Array;We.exports=_t},2850:(We,ue,ht)=>{var j=ht(3984),_t=ht(9107),m=j(_t,"WeakMap");We.exports=m},3643:We=>{function ue(ht,j){for(var _t=-1,m=ht==null?0:ht.length;++_t{function ue(ht,j){for(var _t=-1,m=ht==null?0:ht.length,y=0,R=[];++_t{var j=ht(5410),_t=ht(2382),m=ht(2003),y=ht(1262),R=ht(2615),B=ht(9221),et=Object.prototype,K=et.hasOwnProperty;function J(q,Z){var tt=m(q),H=!tt&&_t(q),X=!tt&&!H&&y(q),F=!tt&&!H&&!X&&B(q),U=tt||H||X||F,d=U?j(q.length,String):[],L=d.length;for(var M in q)(Z||K.call(q,M))&&!(U&&(M=="length"||X&&(M=="offset"||M=="parent")||F&&(M=="buffer"||M=="byteLength"||M=="byteOffset")||R(M,L)))&&d.push(M);return d}We.exports=J},562:We=>{function ue(ht,j){for(var _t=-1,m=j.length,y=ht.length;++_t{var j=ht(9330),_t=ht(8330),m=Object.prototype,y=m.hasOwnProperty;function R(B,et,K){var J=B[et];(!(y.call(B,et)&&_t(J,K))||K===void 0&&!(et in B))&&j(B,et,K)}We.exports=R},4767:(We,ue,ht)=>{var j=ht(8330);function _t(m,y){for(var R=m.length;R--;)if(j(m[R][0],y))return R;return-1}We.exports=_t},383:(We,ue,ht)=>{var j=ht(8113),_t=ht(5304);function m(y,R){return y&&j(R,_t(R),y)}We.exports=m},7844:(We,ue,ht)=>{var j=ht(8113),_t=ht(7495);function m(y,R){return y&&j(R,_t(R),y)}We.exports=m},9330:(We,ue,ht)=>{var j=ht(5390);function _t(m,y,R){y=="__proto__"&&j?j(m,y,{configurable:!0,enumerable:!0,value:R,writable:!0}):m[y]=R}We.exports=_t},1937:(We,ue,ht)=>{var j=ht(6435),_t=ht(3643),m=ht(6645),y=ht(383),R=ht(7844),B=ht(2932),et=ht(9061),K=ht(709),J=ht(8038),q=ht(5760),Z=ht(3183),tt=ht(695),H=ht(9303),X=ht(5385),F=ht(3991),U=ht(2003),d=ht(1262),L=ht(5652),M=ht(5603),s=ht(9318),_=ht(5304),w=ht(7495),o=1,u=2,C=4,E="[object Arguments]",S="[object Array]",v="[object Boolean]",g="[object Date]",x="[object Error]",p="[object Function]",l="[object GeneratorFunction]",f="[object Map]",b="[object Number]",z="[object Object]",T="[object RegExp]",k="[object Set]",Q="[object String]",st="[object Symbol]",nt="[object WeakMap]",dt="[object ArrayBuffer]",mt="[object DataView]",Et="[object Float32Array]",Mt="[object Float64Array]",I="[object Int8Array]",Y="[object Int16Array]",rt="[object Int32Array]",ot="[object Uint8Array]",D="[object Uint8ClampedArray]",P="[object Uint16Array]",W="[object Uint32Array]",lt={};lt[E]=lt[S]=lt[dt]=lt[mt]=lt[v]=lt[g]=lt[Et]=lt[Mt]=lt[I]=lt[Y]=lt[rt]=lt[f]=lt[b]=lt[z]=lt[T]=lt[k]=lt[Q]=lt[st]=lt[ot]=lt[D]=lt[P]=lt[W]=!0,lt[x]=lt[p]=lt[nt]=!1;function it(vt,pt,xt,Ct,Tt,Nt){var gt,wt=pt&o,Rt=pt&u,jt=pt&C;if(xt&&(gt=Tt?xt(vt,Ct,Tt,Nt):xt(vt)),gt!==void 0)return gt;if(!M(vt))return vt;var Zt=U(vt);if(Zt){if(gt=H(vt),!wt)return et(vt,gt)}else{var ne=tt(vt),Wt=ne==p||ne==l;if(d(vt))return B(vt,wt);if(ne==z||ne==E||Wt&&!Tt){if(gt=Rt||Wt?{}:F(vt),!wt)return Rt?J(vt,R(gt,vt)):K(vt,y(gt,vt))}else{if(!lt[ne])return Tt?vt:{};gt=X(vt,ne,wt)}}Nt||(Nt=new j);var le=Nt.get(vt);if(le)return le;Nt.set(vt,gt),s(vt)?vt.forEach(function(be){gt.add(it(be,pt,xt,be,vt,Nt))}):L(vt)&&vt.forEach(function(be,Ye){gt.set(Ye,it(be,pt,xt,Ye,vt,Nt))});var fe=jt?Rt?Z:q:Rt?w:_,xe=Zt?void 0:fe(vt);return _t(xe||vt,function(be,Ye){xe&&(Ye=be,be=vt[Ye]),m(gt,Ye,it(be,pt,xt,Ye,vt,Nt))}),gt}We.exports=it},3962:(We,ue,ht)=>{var j=ht(5603),_t=Object.create,m=function(){function y(){}return function(R){if(!j(R))return{};if(_t)return _t(R);y.prototype=R;var B=new y;return y.prototype=void 0,B}}();We.exports=m},8821:(We,ue,ht)=>{var j=ht(562),_t=ht(2003);function m(y,R,B){var et=R(y);return _t(y)?et:j(et,B(y))}We.exports=m},6522:(We,ue,ht)=>{var j=ht(6711),_t=ht(905),m=ht(2588),y="[object Null]",R="[object Undefined]",B=j?j.toStringTag:void 0;function et(K){return K==null?K===void 0?R:y:B&&B in Object(K)?_t(K):m(K)}We.exports=et},2744:(We,ue,ht)=>{var j=ht(6522),_t=ht(2620),m="[object Arguments]";function y(R){return _t(R)&&j(R)==m}We.exports=y},8742:(We,ue,ht)=>{var j=ht(695),_t=ht(2620),m="[object Map]";function y(R){return _t(R)&&j(R)==m}We.exports=y},2249:(We,ue,ht)=>{var j=ht(8148),_t=ht(9017),m=ht(5603),y=ht(1543),R=/[\\^$.*+?()[\]{}|]/g,B=/^\[object .+?Constructor\]$/,et=Function.prototype,K=Object.prototype,J=et.toString,q=K.hasOwnProperty,Z=RegExp("^"+J.call(q).replace(R,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tt(H){if(!m(H)||_t(H))return!1;var X=j(H)?Z:B;return X.test(y(H))}We.exports=tt},5476:(We,ue,ht)=>{var j=ht(695),_t=ht(2620),m="[object Set]";function y(R){return _t(R)&&j(R)==m}We.exports=y},5387:(We,ue,ht)=>{var j=ht(6522),_t=ht(7164),m=ht(2620),y="[object Arguments]",R="[object Array]",B="[object Boolean]",et="[object Date]",K="[object Error]",J="[object Function]",q="[object Map]",Z="[object Number]",tt="[object Object]",H="[object RegExp]",X="[object Set]",F="[object String]",U="[object WeakMap]",d="[object ArrayBuffer]",L="[object DataView]",M="[object Float32Array]",s="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",o="[object Int32Array]",u="[object Uint8Array]",C="[object Uint8ClampedArray]",E="[object Uint16Array]",S="[object Uint32Array]",v={};v[M]=v[s]=v[_]=v[w]=v[o]=v[u]=v[C]=v[E]=v[S]=!0,v[y]=v[R]=v[d]=v[B]=v[L]=v[et]=v[K]=v[J]=v[q]=v[Z]=v[tt]=v[H]=v[X]=v[F]=v[U]=!1;function g(x){return m(x)&&_t(x.length)&&!!v[j(x)]}We.exports=g},6794:(We,ue,ht)=>{var j=ht(6165),_t=ht(6132),m=Object.prototype,y=m.hasOwnProperty;function R(B){if(!j(B))return _t(B);var et=[];for(var K in Object(B))y.call(B,K)&&K!="constructor"&&et.push(K);return et}We.exports=R},8157:(We,ue,ht)=>{var j=ht(5603),_t=ht(6165),m=ht(4555),y=Object.prototype,R=y.hasOwnProperty;function B(et){if(!j(et))return m(et);var K=_t(et),J=[];for(var q in et)q=="constructor"&&(K||!R.call(et,q))||J.push(q);return J}We.exports=B},5410:We=>{function ue(ht,j){for(var _t=-1,m=Array(ht);++_t{function ue(ht){return function(j){return ht(j)}}We.exports=ue},1987:(We,ue,ht)=>{var j=ht(9282);function _t(m){var y=new m.constructor(m.byteLength);return new j(y).set(new j(m)),y}We.exports=_t},2932:(We,ue,ht)=>{We=ht.nmd(We);var j=ht(9107),_t=ue&&!ue.nodeType&&ue,m=_t&&!0&&We&&!We.nodeType&&We,y=m&&m.exports===_t,R=y?j.Buffer:void 0,B=R?R.allocUnsafe:void 0;function et(K,J){if(J)return K.slice();var q=K.length,Z=B?B(q):new K.constructor(q);return K.copy(Z),Z}We.exports=et},3931:(We,ue,ht)=>{var j=ht(1987);function _t(m,y){var R=y?j(m.buffer):m.buffer;return new m.constructor(R,m.byteOffset,m.byteLength)}We.exports=_t},1259:We=>{var ue=/\w*$/;function ht(j){var _t=new j.constructor(j.source,ue.exec(j));return _t.lastIndex=j.lastIndex,_t}We.exports=ht},6878:(We,ue,ht)=>{var j=ht(6711),_t=j?j.prototype:void 0,m=_t?_t.valueOf:void 0;function y(R){return m?Object(m.call(R)):{}}We.exports=y},3859:(We,ue,ht)=>{var j=ht(1987);function _t(m,y){var R=y?j(m.buffer):m.buffer;return new m.constructor(R,m.byteOffset,m.length)}We.exports=_t},9061:We=>{function ue(ht,j){var _t=-1,m=ht.length;for(j||(j=Array(m));++_t{var j=ht(6645),_t=ht(9330);function m(y,R,B,et){var K=!B;B||(B={});for(var J=-1,q=R.length;++J{var j=ht(8113),_t=ht(6806);function m(y,R){return j(y,_t(y),R)}We.exports=m},8038:(We,ue,ht)=>{var j=ht(8113),_t=ht(6337);function m(y,R){return j(y,_t(y),R)}We.exports=m},3887:(We,ue,ht)=>{var j=ht(9107),_t=j["__core-js_shared__"];We.exports=_t},5390:(We,ue,ht)=>{var j=ht(3984),_t=function(){try{var m=j(Object,"defineProperty");return m({},"",{}),m}catch(y){}}();We.exports=_t},2718:(We,ue,ht)=>{var j=typeof ht.g=="object"&&ht.g&&ht.g.Object===Object&&ht.g;We.exports=j},5760:(We,ue,ht)=>{var j=ht(8821),_t=ht(6806),m=ht(5304);function y(R){return j(R,m,_t)}We.exports=y},3183:(We,ue,ht)=>{var j=ht(8821),_t=ht(6337),m=ht(7495);function y(R){return j(R,m,_t)}We.exports=y},6929:(We,ue,ht)=>{var j=ht(9732);function _t(m,y){var R=m.__data__;return j(y)?R[typeof y=="string"?"string":"hash"]:R.map}We.exports=_t},3984:(We,ue,ht)=>{var j=ht(2249),_t=ht(1074);function m(y,R){var B=_t(y,R);return j(B)?B:void 0}We.exports=m},5425:(We,ue,ht)=>{var j=ht(889),_t=j(Object.getPrototypeOf,Object);We.exports=_t},905:(We,ue,ht)=>{var j=ht(6711),_t=Object.prototype,m=_t.hasOwnProperty,y=_t.toString,R=j?j.toStringTag:void 0;function B(et){var K=m.call(et,R),J=et[R];try{et[R]=void 0;var q=!0}catch(tt){}var Z=y.call(et);return q&&(K?et[R]=J:delete et[R]),Z}We.exports=B},6806:(We,ue,ht)=>{var j=ht(3928),_t=ht(119),m=Object.prototype,y=m.propertyIsEnumerable,R=Object.getOwnPropertySymbols,B=R?function(et){return et==null?[]:(et=Object(et),j(R(et),function(K){return y.call(et,K)}))}:_t;We.exports=B},6337:(We,ue,ht)=>{var j=ht(562),_t=ht(5425),m=ht(6806),y=ht(119),R=Object.getOwnPropertySymbols,B=R?function(et){for(var K=[];et;)j(K,m(et)),et=_t(et);return K}:y;We.exports=B},695:(We,ue,ht)=>{var j=ht(7230),_t=ht(5661),m=ht(9102),y=ht(5963),R=ht(2850),B=ht(6522),et=ht(1543),K="[object Map]",J="[object Object]",q="[object Promise]",Z="[object Set]",tt="[object WeakMap]",H="[object DataView]",X=et(j),F=et(_t),U=et(m),d=et(y),L=et(R),M=B;(j&&M(new j(new ArrayBuffer(1)))!=H||_t&&M(new _t)!=K||m&&M(m.resolve())!=q||y&&M(new y)!=Z||R&&M(new R)!=tt)&&(M=function(s){var _=B(s),w=_==J?s.constructor:void 0,o=w?et(w):"";if(o)switch(o){case X:return H;case F:return K;case U:return q;case d:return Z;case L:return tt}return _}),We.exports=M},1074:We=>{function ue(ht,j){return ht==null?void 0:ht[j]}We.exports=ue},6890:(We,ue,ht)=>{var j=ht(6060);function _t(){this.__data__=j?j(null):{},this.size=0}We.exports=_t},9484:We=>{function ue(ht){var j=this.has(ht)&&delete this.__data__[ht];return this.size-=j?1:0,j}We.exports=ue},7215:(We,ue,ht)=>{var j=ht(6060),_t="__lodash_hash_undefined__",m=Object.prototype,y=m.hasOwnProperty;function R(B){var et=this.__data__;if(j){var K=et[B];return K===_t?void 0:K}return y.call(et,B)?et[B]:void 0}We.exports=R},7811:(We,ue,ht)=>{var j=ht(6060),_t=Object.prototype,m=_t.hasOwnProperty;function y(R){var B=this.__data__;return j?B[R]!==void 0:m.call(B,R)}We.exports=y},747:(We,ue,ht)=>{var j=ht(6060),_t="__lodash_hash_undefined__";function m(y,R){var B=this.__data__;return this.size+=this.has(y)?0:1,B[y]=j&&R===void 0?_t:R,this}We.exports=m},9303:We=>{var ue=Object.prototype,ht=ue.hasOwnProperty;function j(_t){var m=_t.length,y=new _t.constructor(m);return m&&typeof _t[0]=="string"&&ht.call(_t,"index")&&(y.index=_t.index,y.input=_t.input),y}We.exports=j},5385:(We,ue,ht)=>{var j=ht(1987),_t=ht(3931),m=ht(1259),y=ht(6878),R=ht(3859),B="[object Boolean]",et="[object Date]",K="[object Map]",J="[object Number]",q="[object RegExp]",Z="[object Set]",tt="[object String]",H="[object Symbol]",X="[object ArrayBuffer]",F="[object DataView]",U="[object Float32Array]",d="[object Float64Array]",L="[object Int8Array]",M="[object Int16Array]",s="[object Int32Array]",_="[object Uint8Array]",w="[object Uint8ClampedArray]",o="[object Uint16Array]",u="[object Uint32Array]";function C(E,S,v){var g=E.constructor;switch(S){case X:return j(E);case B:case et:return new g(+E);case F:return _t(E,v);case U:case d:case L:case M:case s:case _:case w:case o:case u:return R(E,v);case K:return new g;case J:case tt:return new g(E);case q:return m(E);case Z:return new g;case H:return y(E)}}We.exports=C},3991:(We,ue,ht)=>{var j=ht(3962),_t=ht(5425),m=ht(6165);function y(R){return typeof R.constructor=="function"&&!m(R)?j(_t(R)):{}}We.exports=y},2615:We=>{var ue=9007199254740991,ht=/^(?:0|[1-9]\d*)$/;function j(_t,m){var y=typeof _t;return m=m==null?ue:m,!!m&&(y=="number"||y!="symbol"&&ht.test(_t))&&_t>-1&&_t%1==0&&_t{function ue(ht){var j=typeof ht;return j=="string"||j=="number"||j=="symbol"||j=="boolean"?ht!=="__proto__":ht===null}We.exports=ue},9017:(We,ue,ht)=>{var j=ht(3887),_t=function(){var y=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}();function m(y){return!!_t&&_t in y}We.exports=m},6165:We=>{var ue=Object.prototype;function ht(j){var _t=j&&j.constructor,m=typeof _t=="function"&&_t.prototype||ue;return j===m}We.exports=ht},4412:We=>{function ue(){this.__data__=[],this.size=0}We.exports=ue},8522:(We,ue,ht)=>{var j=ht(4767),_t=Array.prototype,m=_t.splice;function y(R){var B=this.__data__,et=j(B,R);if(et<0)return!1;var K=B.length-1;return et==K?B.pop():m.call(B,et,1),--this.size,!0}We.exports=y},469:(We,ue,ht)=>{var j=ht(4767);function _t(m){var y=this.__data__,R=j(y,m);return R<0?void 0:y[R][1]}We.exports=_t},1161:(We,ue,ht)=>{var j=ht(4767);function _t(m){return j(this.__data__,m)>-1}We.exports=_t},1441:(We,ue,ht)=>{var j=ht(4767);function _t(m,y){var R=this.__data__,B=j(R,m);return B<0?(++this.size,R.push([m,y])):R[B][1]=y,this}We.exports=_t},8206:(We,ue,ht)=>{var j=ht(3435),_t=ht(5217),m=ht(5661);function y(){this.size=0,this.__data__={hash:new j,map:new(m||_t),string:new j}}We.exports=y},9768:(We,ue,ht)=>{var j=ht(6929);function _t(m){var y=j(this,m).delete(m);return this.size-=y?1:0,y}We.exports=_t},6827:(We,ue,ht)=>{var j=ht(6929);function _t(m){return j(this,m).get(m)}We.exports=_t},663:(We,ue,ht)=>{var j=ht(6929);function _t(m){return j(this,m).has(m)}We.exports=_t},5135:(We,ue,ht)=>{var j=ht(6929);function _t(m,y){var R=j(this,m),B=R.size;return R.set(m,y),this.size+=R.size==B?0:1,this}We.exports=_t},6060:(We,ue,ht)=>{var j=ht(3984),_t=j(Object,"create");We.exports=_t},6132:(We,ue,ht)=>{var j=ht(889),_t=j(Object.keys,Object);We.exports=_t},4555:We=>{function ue(ht){var j=[];if(ht!=null)for(var _t in Object(ht))j.push(_t);return j}We.exports=ue},8315:(We,ue,ht)=>{We=ht.nmd(We);var j=ht(2718),_t=ue&&!ue.nodeType&&ue,m=_t&&!0&&We&&!We.nodeType&&We,y=m&&m.exports===_t,R=y&&j.process,B=function(){try{var et=m&&m.require&&m.require("util").types;return et||R&&R.binding&&R.binding("util")}catch(K){}}();We.exports=B},2588:We=>{var ue=Object.prototype,ht=ue.toString;function j(_t){return ht.call(_t)}We.exports=j},889:We=>{function ue(ht,j){return function(_t){return ht(j(_t))}}We.exports=ue},9107:(We,ue,ht)=>{var j=ht(2718),_t=typeof self=="object"&&self&&self.Object===Object&&self,m=j||_t||Function("return this")();We.exports=m},8658:(We,ue,ht)=>{var j=ht(5217);function _t(){this.__data__=new j,this.size=0}We.exports=_t},3844:We=>{function ue(ht){var j=this.__data__,_t=j.delete(ht);return this.size=j.size,_t}We.exports=ue},6503:We=>{function ue(ht){return this.__data__.get(ht)}We.exports=ue},1563:We=>{function ue(ht){return this.__data__.has(ht)}We.exports=ue},259:(We,ue,ht)=>{var j=ht(5217),_t=ht(5661),m=ht(3287),y=200;function R(B,et){var K=this.__data__;if(K instanceof j){var J=K.__data__;if(!_t||J.length{var ue=Function.prototype,ht=ue.toString;function j(_t){if(_t!=null){try{return ht.call(_t)}catch(m){}try{return _t+""}catch(m){}}return""}We.exports=j},3009:(We,ue,ht)=>{var j=ht(1937),_t=1,m=4;function y(R){return j(R,_t|m)}We.exports=y},8330:We=>{function ue(ht,j){return ht===j||ht!==ht&&j!==j}We.exports=ue},2382:(We,ue,ht)=>{var j=ht(2744),_t=ht(2620),m=Object.prototype,y=m.hasOwnProperty,R=m.propertyIsEnumerable,B=j(function(){return arguments}())?j:function(et){return _t(et)&&y.call(et,"callee")&&!R.call(et,"callee")};We.exports=B},2003:We=>{var ue=Array.isArray;We.exports=ue},6316:(We,ue,ht)=>{var j=ht(8148),_t=ht(7164);function m(y){return y!=null&&_t(y.length)&&!j(y)}We.exports=m},1262:(We,ue,ht)=>{We=ht.nmd(We);var j=ht(9107),_t=ht(2125),m=ue&&!ue.nodeType&&ue,y=m&&!0&&We&&!We.nodeType&&We,R=y&&y.exports===m,B=R?j.Buffer:void 0,et=B?B.isBuffer:void 0,K=et||_t;We.exports=K},8148:(We,ue,ht)=>{var j=ht(6522),_t=ht(5603),m="[object AsyncFunction]",y="[object Function]",R="[object GeneratorFunction]",B="[object Proxy]";function et(K){if(!_t(K))return!1;var J=j(K);return J==y||J==R||J==m||J==B}We.exports=et},7164:We=>{var ue=9007199254740991;function ht(j){return typeof j=="number"&&j>-1&&j%1==0&&j<=ue}We.exports=ht},5652:(We,ue,ht)=>{var j=ht(8742),_t=ht(2347),m=ht(8315),y=m&&m.isMap,R=y?_t(y):j;We.exports=R},5603:We=>{function ue(ht){var j=typeof ht;return ht!=null&&(j=="object"||j=="function")}We.exports=ue},2620:We=>{function ue(ht){return ht!=null&&typeof ht=="object"}We.exports=ue},9318:(We,ue,ht)=>{var j=ht(5476),_t=ht(2347),m=ht(8315),y=m&&m.isSet,R=y?_t(y):j;We.exports=R},9221:(We,ue,ht)=>{var j=ht(5387),_t=ht(2347),m=ht(8315),y=m&&m.isTypedArray,R=y?_t(y):j;We.exports=R},5304:(We,ue,ht)=>{var j=ht(7137),_t=ht(6794),m=ht(6316);function y(R){return m(R)?j(R):_t(R)}We.exports=y},7495:(We,ue,ht)=>{var j=ht(7137),_t=ht(8157),m=ht(6316);function y(R){return m(R)?j(R,!0):_t(R)}We.exports=y},119:We=>{function ue(){return[]}We.exports=ue},2125:We=>{function ue(){return!1}We.exports=ue},628:(We,ue,ht)=>{"use strict";var j=ht(4067);function _t(){}function m(){}m.resetWarningCache=_t,We.exports=function(){function y(et,K,J,q,Z,tt){if(tt!==j){var H=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw H.name="Invariant Violation",H}}y.isRequired=y;function R(){return y}var B={array:y,bigint:y,bool:y,func:y,number:y,object:y,string:y,symbol:y,any:y,arrayOf:R,element:y,elementType:y,instanceOf:R,node:y,objectOf:R,oneOf:R,oneOfType:R,shape:R,exact:R,checkPropTypes:m,resetWarningCache:_t};return B.PropTypes=B,B}},5826:(We,ue,ht)=>{if(0)var j,_t;else We.exports=ht(628)()},4067:We=>{"use strict";var ue="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";We.exports=ue},1363:(We,ue,ht)=>{"use strict";/** * @license React * react-dom-server-legacy.browser.production.min.js * @@ -340,13 +340,13 @@ var qY=Object.defineProperty,KY=Object.defineProperties;var ZY=Object.getOwnProp * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var z=ht(7810);function _t(ee){for(var Se="https://reactjs.org/docs/error-decoder.html?invariant="+ee,Xe=1;Xe